mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
clang-tidy: Fix performance-move-const-arg
in headers
See https://clang.llvm.org/extra/clang-tidy/checks/performance/move-const-arg.html
This commit is contained in:
parent
3fef2944ad
commit
0a5dc030b9
2
src/fs.h
2
src/fs.h
@ -35,7 +35,7 @@ public:
|
||||
// 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) {}
|
||||
|
Loading…
Reference in New Issue
Block a user