fs/Path: add method GetSuffix()

Type-safe wrapper for uri_get_suffix().
This commit is contained in:
Max Kellermann
2015-03-01 01:09:53 +01:00
parent 41cc31c124
commit 7ce96585f5
5 changed files with 14 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ tag_file_scan(Path path_fs, const tag_handler &handler, void *handler_ctx)
/* check if there's a suffix and a plugin */
const char *suffix = uri_get_suffix(path_fs.c_str());
const char *suffix = path_fs.GetSuffix();
if (suffix == nullptr)
return false;