From e5039c478aa93e3e107ee9031a3cf27a6c203fea Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Jan 2013 00:56:57 +0100 Subject: Path: new class "Path" wraps filesystem path strings --- src/StateFile.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/StateFile.hxx') diff --git a/src/StateFile.hxx b/src/StateFile.hxx index 39c3fcdf..72d71e10 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 @@ -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(); -- cgit v1.2.3