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
@@ -133,7 +133,7 @@ parse_cdio_uri(const char *src)
|
||||
return dest;
|
||||
}
|
||||
|
||||
const char *slash = strrchr(src, '/');
|
||||
const char *slash = std::strrchr(src, '/');
|
||||
if (slash == nullptr) {
|
||||
/* play the whole CD in the specified drive */
|
||||
CopyTruncateString(dest.device, src, sizeof(dest.device));
|
||||
|
||||
Reference in New Issue
Block a user