diff options
Diffstat (limited to '')
-rw-r--r-- | src/db/Directory.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/Directory.hxx b/src/db/Directory.hxx index ebca95935..391ca2db4 100644 --- a/src/db/Directory.hxx +++ b/src/db/Directory.hxx @@ -85,7 +85,7 @@ struct Directory { std::string path; public: - Directory(const char *_path_utf8, Directory *_parent); + Directory(std::string &&_path_utf8, Directory *_parent); ~Directory(); /** @@ -93,7 +93,7 @@ public: */ gcc_malloc static Directory *NewRoot() { - return new Directory("", nullptr); + return new Directory(std::string(), nullptr); } /** |