diff options
author | Max Kellermann <max@duempel.org> | 2013-10-02 08:13:28 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-02 08:56:27 +0200 |
commit | 0214baad5affb78bf64c7774ba48693a3c6d15ee (patch) | |
tree | 79c8c8c13a443f60007db87f65bcbe44941586f3 /src/PlaylistDatabase.cxx | |
parent | c2d3ed2acc9fdb9b0900b70d427d91b22684a8ec (diff) |
Playlist*: use nullptr instead of NULL
Diffstat (limited to 'src/PlaylistDatabase.cxx')
-rw-r--r-- | src/PlaylistDatabase.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PlaylistDatabase.cxx b/src/PlaylistDatabase.cxx index 690845a68..3810d8866 100644 --- a/src/PlaylistDatabase.cxx +++ b/src/PlaylistDatabase.cxx @@ -49,10 +49,10 @@ playlist_metadata_load(TextFile &file, PlaylistVector &pv, const char *name, char *line, *colon; const char *value; - while ((line = file.ReadLine()) != NULL && + while ((line = file.ReadLine()) != nullptr && strcmp(line, "playlist_end") != 0) { colon = strchr(line, ':'); - if (colon == NULL || colon == line) { + if (colon == nullptr || colon == line) { error.Format(playlist_database_domain, "unknown line in db: %s", line); return false; @@ -62,7 +62,7 @@ playlist_metadata_load(TextFile &file, PlaylistVector &pv, const char *name, value = strchug_fast_c(colon); if (strcmp(line, "mtime") == 0) - pm.mtime = strtol(value, NULL, 10); + pm.mtime = strtol(value, nullptr, 10); else { error.Format(playlist_database_domain, "unknown line in db: %s", line); |