fs/Charset: don't allow nullptr arguments

This commit is contained in:
Max Kellermann
2013-10-17 22:39:06 +02:00
parent 080ee87e07
commit f951e5356b
3 changed files with 8 additions and 7 deletions

View File

@@ -123,10 +123,10 @@ public:
* Convert a UTF-8 C string to a #Path instance.
* Returns return a "nulled" instance on error.
*/
gcc_pure
gcc_pure gcc_nonnull_all
static Path FromUTF8(const char *path_utf8);
gcc_pure
gcc_pure gcc_nonnull_all
static Path FromUTF8(const char *path_utf8, Error &error);
/**