Skip to content

Commit

Permalink
clang-tidy: Fix performance-move-const-arg in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Jan 18, 2023
1 parent 3fef294 commit 0a5dc03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class path : public std::filesystem::path
// Allow path objects arguments for compatibility.
path(std::filesystem::path path) : std::filesystem::path::path(std::move(path)) {}
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/=(std::move(path)); return *this; }
path& operator/=(std::filesystem::path path) { std::filesystem::path::operator/=(path); return *this; }

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

0 comments on commit 0a5dc03

Please sign in to comment.