We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
performance-move-const-arg
1 parent 3fef294 commit 0a5dc03Copy full SHA for 0a5dc03
src/fs.h
@@ -35,7 +35,7 @@ class path : public std::filesystem::path
35
// Allow path objects arguments for compatibility.
36
path(std::filesystem::path path) : std::filesystem::path::path(std::move(path)) {}
37
path& operator=(std::filesystem::path path) { std::filesystem::path::operator=(std::move(path)); return *this; }
38
- path& operator/=(std::filesystem::path path) { std::filesystem::path::operator/=(std::move(path)); return *this; }
+ path& operator/=(std::filesystem::path path) { std::filesystem::path::operator/=(path); return *this; }
39
40
// Allow literal string arguments, which are safe as long as the literals are ASCII.
41
path(const char* c) : std::filesystem::path(c) {}
0 commit comments