Skip to content

Commit f29610b

Browse files
committed
partial bitcoin#26707: Fix performance-*move* warnings in headers
includes: - 0a5dc03
1 parent ee63d4b commit f29610b

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
@@ -34,7 +34,7 @@ class path : public std::filesystem::path
3434
// Allow path objects arguments for compatibility.
3535
path(std::filesystem::path path) : std::filesystem::path::path(std::move(path)) {}
3636
path& operator=(std::filesystem::path path) { std::filesystem::path::operator=(std::move(path)); return *this; }
37-
path& operator/=(std::filesystem::path path) { std::filesystem::path::operator/=(std::move(path)); return *this; }
37+
path& operator/=(std::filesystem::path path) { std::filesystem::path::operator/=(path); return *this; }
3838

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

0 commit comments

Comments
 (0)