diff options
author | Max Kellermann <max@duempel.org> | 2013-09-12 10:02:11 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-12 10:17:41 +0200 |
commit | 1ee6a78cb727561e75a5d60135bb0cd7956f70b0 (patch) | |
tree | 1b04fc472927341f818d3d571456fb495dd43ece /src/fs/Path.hxx | |
parent | bf4ee48efad262c650b6b1a5b61ebe837d59f910 (diff) |
Path: add FromUTF8() overload that returns an Error
Diffstat (limited to 'src/fs/Path.hxx')
-rw-r--r-- | src/fs/Path.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx index dd4cf38a7..8bfc9b8c4 100644 --- a/src/fs/Path.hxx +++ b/src/fs/Path.hxx @@ -44,6 +44,8 @@ # endif #endif +class Error; + extern const class Domain path_domain; /** @@ -151,6 +153,9 @@ public: gcc_pure static Path FromUTF8(const char *path_utf8); + gcc_pure + static Path FromUTF8(const char *path_utf8, Error &error); + /** * Convert the path to UTF-8. * Returns empty string on error or if #path_fs is null pointer. |