From 0214baad5affb78bf64c7774ba48693a3c6d15ee Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Oct 2013 08:13:28 +0200 Subject: Playlist*: use nullptr instead of NULL --- src/PlaylistState.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/PlaylistState.cxx') diff --git a/src/PlaylistState.cxx b/src/PlaylistState.cxx index c0f9f9e54..a0b6972cf 100644 --- a/src/PlaylistState.cxx +++ b/src/PlaylistState.cxx @@ -101,7 +101,7 @@ static void playlist_state_load(TextFile &file, struct playlist *playlist) { const char *line = file.ReadLine(); - if (line == NULL) { + if (line == nullptr) { g_warning("No playlist in state file"); return; } @@ -110,7 +110,7 @@ playlist_state_load(TextFile &file, struct playlist *playlist) queue_load_song(file, line, &playlist->queue); line = file.ReadLine(); - if (line == NULL) { + if (line == nullptr) { g_warning("'" PLAYLIST_STATE_FILE_PLAYLIST_END "' not found in state file"); break; @@ -141,7 +141,7 @@ playlist_state_restore(const char *line, TextFile &file, else state = PlayerState::STOP; - while ((line = file.ReadLine()) != NULL) { + while ((line = file.ReadLine()) != nullptr) { if (g_str_has_prefix(line, PLAYLIST_STATE_FILE_TIME)) { seek_time = atoi(&(line[strlen(PLAYLIST_STATE_FILE_TIME)])); -- cgit v1.2.3