diff options
author | Max Kellermann <max@duempel.org> | 2013-01-17 00:56:57 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-18 15:34:01 +0100 |
commit | e5039c478aa93e3e107ee9031a3cf27a6c203fea (patch) | |
tree | 5d9fecc644b915fe02634911d65c29123e03c1b8 /src/StateFile.hxx | |
parent | 890151450663abd581cab56e853e8e713d822851 (diff) |
Path: new class "Path" wraps filesystem path strings
Diffstat (limited to 'src/StateFile.hxx')
-rw-r--r-- | src/StateFile.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/StateFile.hxx b/src/StateFile.hxx index 39c3fcdf6..72d71e105 100644 --- a/src/StateFile.hxx +++ b/src/StateFile.hxx @@ -21,6 +21,7 @@ #define MPD_STATE_FILE_HXX #include "event/TimeoutMonitor.hxx" +#include "Path.hxx" #include "gcc.h" #include <string> @@ -28,7 +29,7 @@ struct Partition; class StateFile final : private TimeoutMonitor { - std::string path; + Path path; Partition &partition; @@ -40,7 +41,7 @@ class StateFile final : private TimeoutMonitor { prev_playlist_version; public: - StateFile(const char *path, Partition &partition, EventLoop &loop); + StateFile(Path &&path, Partition &partition, EventLoop &loop); void Read(); void Write(); |