diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-04-30 19:25:55 -0700 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-05-30 13:36:53 +0200 |
commit | e4dad42ca123b9f0f987218c68c42422d6735c0a (patch) | |
tree | 6cf4c3d28e251b285cfe5a30e842edfc3080d6bc /src/fs | |
parent | 99afe8e6d1157c0d443ccbe4b571797cce5b2304 (diff) |
use std chr functions
The ones in std have overloads for const char/char.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/StandardDirectory.cxx | 2 | ||||
-rw-r--r-- | src/fs/Traits.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/StandardDirectory.cxx b/src/fs/StandardDirectory.cxx index c80ebdeef..55c02c5fc 100644 --- a/src/fs/StandardDirectory.cxx +++ b/src/fs/StandardDirectory.cxx @@ -164,7 +164,7 @@ ParseConfigLine(char *line, const char *dir_name, AllocatedPath &result_dir) char *line_end; // find end of the string if (quoted) { - line_end = strrchr(line, '"'); + line_end = std::strrchr(line, '"'); if (line_end == nullptr) return true; } else { diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx index bcb432f60..da899df63 100644 --- a/src/fs/Traits.hxx +++ b/src/fs/Traits.hxx @@ -196,7 +196,7 @@ struct PathTraitsUTF8 { assert(p != nullptr); #endif - return strrchr(p, SEPARATOR); + return std::strrchr(p, SEPARATOR); } #ifdef _WIN32 |