aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-30 22:05:03 +0100
committerMax Kellermann <max@duempel.org>2014-01-30 22:20:57 +0100
commitc02f14679137dce3e2068a7a10bf81a615c16023 (patch)
treeaa2e88be0399a597e0cd51c015c86c4891d34098 /src
parenta631200cca3fb19bca96340a92fb882acb2d5631 (diff)
downloadmpd-c02f14679137dce3e2068a7a10bf81a615c16023.tar.gz
mpd-c02f14679137dce3e2068a7a10bf81a615c16023.tar.xz
mpd-c02f14679137dce3e2068a7a10bf81a615c16023.zip
fs/DirectoryReader: GetEntry() returns Path, not AllocatedPath
Reduce overhead, don't duplicate the string.
Diffstat (limited to '')
-rw-r--r--src/fs/DirectoryReader.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/DirectoryReader.hxx b/src/fs/DirectoryReader.hxx
index 566b608ec..f77c0629f 100644
--- a/src/fs/DirectoryReader.hxx
+++ b/src/fs/DirectoryReader.hxx
@@ -21,7 +21,7 @@
#define MPD_FS_DIRECTORY_READER_HXX
#include "check.h"
-#include "AllocatedPath.hxx"
+#include "Path.hxx"
#include <dirent.h>
@@ -78,9 +78,9 @@ public:
/**
* Extracts directory entry that was previously read by #ReadEntry.
*/
- AllocatedPath GetEntry() const {
+ Path GetEntry() const {
assert(HasEntry());
- return AllocatedPath::FromFS(ent->d_name);
+ return Path::FromFS(ent->d_name);
}
};