aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Path.cxx
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-01-24 02:35:35 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-01-28 00:13:45 +0600
commit7149a8ae4f7df43440f71348789585e53aa039d8 (patch)
treef44edaac3c16762ed9d2ff2f96c103507b154af7 /src/fs/Path.cxx
parent3c7cf94643bc45237d1e61c4e6015d498e4400b0 (diff)
downloadmpd-7149a8ae4f7df43440f71348789585e53aa039d8.tar.gz
mpd-7149a8ae4f7df43440f71348789585e53aa039d8.tar.xz
mpd-7149a8ae4f7df43440f71348789585e53aa039d8.zip
Path: merge utf8_to_fs_charset() into Path::FromUTF8()
Diffstat (limited to 'src/fs/Path.cxx')
-rw-r--r--src/fs/Path.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fs/Path.cxx b/src/fs/Path.cxx
index 0590fbd8f..6d17cd7da 100644
--- a/src/fs/Path.cxx
+++ b/src/fs/Path.cxx
@@ -75,8 +75,7 @@ std::string Path::ToUTF8(const_pointer path_fs)
return std::string(path_utf8, sizeof(path_utf8) - out_left);
}
-char *
-utf8_to_fs_charset(const char *path_utf8)
+Path Path::FromUTF8(const char *path_utf8)
{
gchar *p;
@@ -87,7 +86,7 @@ utf8_to_fs_charset(const char *path_utf8)
/* fall back to UTF-8 */
p = g_strdup(path_utf8);
- return p;
+ return Path(Donate(), p);
}
gcc_pure