Skip to content

Commit 0a5dc03

Browse files
committed
clang-tidy: Fix performance-move-const-arg in headers
See https://clang.llvm.org/extra/clang-tidy/checks/performance/move-const-arg.html
1 parent 3fef294 commit 0a5dc03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class path : public std::filesystem::path
3535
// Allow path objects arguments for compatibility.
3636
path(std::filesystem::path path) : std::filesystem::path::path(std::move(path)) {}
3737
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; }
38+
path& operator/=(std::filesystem::path path) { std::filesystem::path::operator/=(path); return *this; }
3939

4040
// Allow literal string arguments, which are safe as long as the literals are ASCII.
4141
path(const char* c) : std::filesystem::path(c) {}

0 commit comments

Comments
 (0)