aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Path.hxx
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-01-27 13:26:17 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-01-28 00:13:46 +0600
commite98e2a0b07363132707146f571d3411e3e1b8076 (patch)
treece4653efde5670ca2a151e2888114ac9c0423fe4 /src/fs/Path.hxx
parent943064bb5148884339ccaf60e276191bc4d9abd9 (diff)
downloadmpd-e98e2a0b07363132707146f571d3411e3e1b8076.tar.gz
mpd-e98e2a0b07363132707146f571d3411e3e1b8076.tar.xz
mpd-e98e2a0b07363132707146f571d3411e3e1b8076.zip
Path::FromUTF8() returns nulled instance on error, add error handling where required
Diffstat (limited to '')
-rw-r--r--src/fs/Path.hxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx
index b9754b5c5..8635d12a9 100644
--- a/src/fs/Path.hxx
+++ b/src/fs/Path.hxx
@@ -144,10 +144,7 @@ public:
/**
* Convert a UTF-8 C string to a #Path instance.
- * Returns a duplicate of the UTF-8 string on failure.
- *
- * TODO: return a "nulled" instance on error and add checks to
- * all callers
+ * Returns return a "nulled" instance on error.
*/
gcc_pure
static Path FromUTF8(const char *path_utf8);