diff options
author | Max Kellermann <max@duempel.org> | 2014-02-23 22:02:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-23 22:02:02 +0100 |
commit | db20e29af6a3fc31f783c4584739ca1592beaabb (patch) | |
tree | a901e5f86163e82bceee1307d720480128ca1845 /src/db/Directory.hxx | |
parent | 5f5c95cc6811a013c4739dcfce7486302c5ff3c6 (diff) | |
download | mpd-db20e29af6a3fc31f783c4584739ca1592beaabb.tar.gz mpd-db20e29af6a3fc31f783c4584739ca1592beaabb.tar.xz mpd-db20e29af6a3fc31f783c4584739ca1592beaabb.zip |
Directory: pass std::string&& to constructor
Diffstat (limited to 'src/db/Directory.hxx')
-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); } /** |