From bf4ee48efad262c650b6b1a5b61ebe837d59f910 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 12 Sep 2013 10:03:37 +0200 Subject: ConfigPath: move path_domain to system/Path.cxx --- src/ConfigPath.cxx | 3 --- src/fs/Path.cxx | 3 +++ src/fs/Path.hxx | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ConfigPath.cxx b/src/ConfigPath.cxx index a1a73a63c..86f70dfd3 100644 --- a/src/ConfigPath.cxx +++ b/src/ConfigPath.cxx @@ -21,7 +21,6 @@ #include "ConfigPath.hxx" #include "fs/Path.hxx" #include "util/Error.hxx" -#include "util/Domain.hxx" #include "ConfigGlobal.hxx" #include "ConfigOption.hxx" @@ -49,8 +48,6 @@ #include #endif -static constexpr Domain path_domain("path"); - Path ParsePath(const char *path, Error &error) { diff --git a/src/fs/Path.cxx b/src/fs/Path.cxx index 7de19a582..c063025c8 100644 --- a/src/fs/Path.cxx +++ b/src/fs/Path.cxx @@ -21,6 +21,7 @@ #include "fs/Path.hxx" #include "ConfigGlobal.hxx" #include "system/FatalError.hxx" +#include "util/Domain.hxx" #include "gcc.h" #include @@ -46,6 +47,8 @@ */ #define MPD_PATH_MAX_UTF8 ((MPD_PATH_MAX - 1) * 4 + 1) +const Domain path_domain("path"); + std::string fs_charset; std::string Path::ToUTF8(const_pointer path_fs) diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx index eaab2bde5..dd4cf38a7 100644 --- a/src/fs/Path.hxx +++ b/src/fs/Path.hxx @@ -44,6 +44,8 @@ # endif #endif +extern const class Domain path_domain; + /** * A path name in the native file system character set. */ -- cgit v1.2.3