aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/Directory.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-23 22:02:02 +0100
committerMax Kellermann <max@duempel.org>2014-02-23 22:02:02 +0100
commitdb20e29af6a3fc31f783c4584739ca1592beaabb (patch)
treea901e5f86163e82bceee1307d720480128ca1845 /src/db/Directory.cxx
parent5f5c95cc6811a013c4739dcfce7486302c5ff3c6 (diff)
downloadmpd-db20e29af6a3fc31f783c4584739ca1592beaabb.tar.gz
mpd-db20e29af6a3fc31f783c4584739ca1592beaabb.tar.xz
mpd-db20e29af6a3fc31f783c4584739ca1592beaabb.zip
Directory: pass std::string&& to constructor
Diffstat (limited to 'src/db/Directory.cxx')
-rw-r--r--src/db/Directory.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/Directory.cxx b/src/db/Directory.cxx
index 9c7c83314..04bdfa88f 100644
--- a/src/db/Directory.cxx
+++ b/src/db/Directory.cxx
@@ -41,10 +41,10 @@ extern "C" {
#include <string.h>
#include <stdlib.h>
-Directory::Directory(const char *_path_utf8, Directory *_parent)
+Directory::Directory(std::string &&_path_utf8, Directory *_parent)
:parent(_parent),
mtime(0), have_stat(false),
- path(_path_utf8)
+ path(std::move(_path_utf8))
{
INIT_LIST_HEAD(&children);
INIT_LIST_HEAD(&songs);