diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 22:13:54 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 22:29:03 +0200 |
commit | 080ee87e07f0037e559abbea6f7db73602af5137 (patch) | |
tree | 66464d51200132175724333164a43d65efb2dfe1 /src/DatabaseSave.cxx | |
parent | fa60b9ae94a61c71da2b7dd7305eb191612bc6e6 (diff) | |
download | mpd-080ee87e07f0037e559abbea6f7db73602af5137.tar.gz mpd-080ee87e07f0037e559abbea6f7db73602af5137.tar.xz mpd-080ee87e07f0037e559abbea6f7db73602af5137.zip |
fs/Path: move configuration code to Config.cxx
Diffstat (limited to '')
-rw-r--r-- | src/DatabaseSave.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DatabaseSave.cxx b/src/DatabaseSave.cxx index 452a7828a..67df236ef 100644 --- a/src/DatabaseSave.cxx +++ b/src/DatabaseSave.cxx @@ -27,7 +27,7 @@ #include "TextFile.hxx" #include "tag/Tag.hxx" #include "tag/TagSettings.h" -#include "fs/Path.hxx" +#include "fs/Charset.hxx" #include "util/Error.hxx" #include "Log.hxx" @@ -57,7 +57,7 @@ db_save_internal(FILE *fp, const Directory *music_root) fprintf(fp, DB_FORMAT_PREFIX "%u\n", DB_FORMAT); fprintf(fp, "%s%s\n", DIRECTORY_MPD_VERSION, VERSION); fprintf(fp, "%s%s\n", DIRECTORY_FS_CHARSET, - Path::GetFSCharset().c_str()); + GetFSCharset().c_str()); for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; ++i) if (!ignore_tag_items[i]) @@ -110,7 +110,7 @@ db_load_internal(TextFile &file, Directory *music_root, Error &error) found_charset = true; new_charset = line + sizeof(DIRECTORY_FS_CHARSET) - 1; - const std::string &old_charset = Path::GetFSCharset(); + const std::string &old_charset = GetFSCharset(); if (!old_charset.empty() && strcmp(new_charset, old_charset.c_str())) { error.Format(db_domain, |