We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c0d64c commit a5d8c58Copy full SHA for a5d8c58
1 file changed
modules/task/tests/task_tests.cpp
@@ -20,7 +20,7 @@ using namespace ppc::task;
20
21
class ScopedFile {
22
public:
23
- explicit ScopedFile(const std::string& path) : path_(path) {}
+ explicit ScopedFile(std::string path) : path_(std::move(path)) {}
24
~ScopedFile() {
25
std::error_code ec;
26
std::filesystem::remove(path_, ec);
0 commit comments