From b76a29a69ae5412c3c1d101eefa9562990e74407 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 7 Aug 2013 19:54:38 +0200 Subject: ConfigPath: return a Path object Migrate all callers to use Path directly, instead of doing the conversion in each caller. --- src/StateFile.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/StateFile.cxx') diff --git a/src/StateFile.cxx b/src/StateFile.cxx index 73af1777c..caba82da8 100644 --- a/src/StateFile.cxx +++ b/src/StateFile.cxx @@ -34,9 +34,10 @@ #undef G_LOG_DOMAIN #define G_LOG_DOMAIN "state_file" -StateFile::StateFile(Path &&_path, const char *_path_utf8, - Partition &_partition, EventLoop &_loop) - :TimeoutMonitor(_loop), path(std::move(_path)), path_utf8(_path_utf8), +StateFile::StateFile(Path &&_path, + Partition &_partition, EventLoop &_loop) + :TimeoutMonitor(_loop), + path(std::move(_path)), path_utf8(path.ToUTF8()), partition(_partition), prev_volume_version(0), prev_output_version(0), prev_playlist_version(0) -- cgit v1.2.3