aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-07 23:41:06 +0100
committerMax Kellermann <max@duempel.org>2014-02-07 23:41:06 +0100
commitbe081929f4523376db2df52903230d3b20dc54e9 (patch)
treee48e32ba99511d8d326ff3e7195d1c0e35b661fc /src/Main.cxx
parentb0b086d47302867291f2241880b54429f0347691 (diff)
downloadmpd-be081929f4523376db2df52903230d3b20dc54e9.tar.gz
mpd-be081929f4523376db2df52903230d3b20dc54e9.tar.xz
mpd-be081929f4523376db2df52903230d3b20dc54e9.zip
storage/local: remove utf8 path from constructor
Build the UTF-8 version of the path automatically in the constructor.
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index eb71372eb..82e0145cd 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -162,10 +162,7 @@ InitStorage(Error &error)
path_fs.ChopSeparators();
CheckDirectoryReadable(path_fs);
- const auto utf8 = path_fs.ToUTF8();
- assert(!utf8.empty());
-
- instance->storage = CreateLocalStorage(utf8.c_str(), path_fs);
+ instance->storage = CreateLocalStorage(path_fs);
return true;
}