Commit c02f1467 authored by Max Kellermann's avatar Max Kellermann

fs/DirectoryReader: GetEntry() returns Path, not AllocatedPath

Reduce overhead, don't duplicate the string.
parent a631200c
......@@ -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);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment