use std chr functions
The ones in std have overloads for const char/char. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:

committed by
Max Kellermann

parent
99afe8e6d1
commit
e4dad42ca1
@@ -96,7 +96,7 @@ song_load(TextFile &file, const char *uri,
|
||||
char *line;
|
||||
while ((line = file.ReadLine()) != nullptr &&
|
||||
!StringIsEqual(line, SONG_END)) {
|
||||
char *colon = strchr(line, ':');
|
||||
char *colon = std::strchr(line, ':');
|
||||
if (colon == nullptr || colon == line) {
|
||||
throw FormatRuntimeError("unknown line in db: %s", line);
|
||||
}
|
||||
|
Reference in New Issue
Block a user