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/SongUpdate.cxx | |
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/SongUpdate.cxx')
-rw-r--r-- | src/SongUpdate.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index bce944315..30cd699e0 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -44,7 +44,7 @@ SongPtr Song::LoadFile(Storage &storage, const char *path_utf8, Directory &parent) { assert(!uri_has_scheme(path_utf8)); - assert(strchr(path_utf8, '\n') == nullptr); + assert(std::strchr(path_utf8, '\n') == nullptr); auto song = std::make_unique<Song>(path_utf8, parent); if (!song->UpdateFile(storage)) @@ -95,7 +95,7 @@ Song::LoadFromArchive(ArchiveFile &archive, const char *name_utf8, Directory &parent) noexcept { assert(!uri_has_scheme(name_utf8)); - assert(strchr(name_utf8, '\n') == nullptr); + assert(std::strchr(name_utf8, '\n') == nullptr); auto song = std::make_unique<Song>(name_utf8, parent); if (!song->UpdateFileInArchive(archive)) |