From c02f14679137dce3e2068a7a10bf81a615c16023 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Thu, 30 Jan 2014 22:05:03 +0100
Subject: [PATCH] fs/DirectoryReader: GetEntry() returns Path, not
 AllocatedPath

Reduce overhead, don't duplicate the string.
---
 src/fs/DirectoryReader.hxx | 6 +++---
 1 file 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);
 	}
 };