diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 18:19:03 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 18:19:03 +0200 |
commit | 59f8144c50765189594d5932fc25869f9ea6e265 (patch) | |
tree | f460d9f46a99040dea402bcb3ad2d84a0e734285 /src/UpdateDatabase.cxx | |
parent | 5a7c931293b55a27c3f79c6951707a8d6e2a5f6c (diff) | |
download | mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.gz mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.xz mpd-59f8144c50765189594d5932fc25869f9ea6e265.zip |
*: use nullptr instead of NULL
Diffstat (limited to '')
-rw-r--r-- | src/UpdateDatabase.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/UpdateDatabase.cxx b/src/UpdateDatabase.cxx index 83bc66876..684976d68 100644 --- a/src/UpdateDatabase.cxx +++ b/src/UpdateDatabase.cxx @@ -70,7 +70,7 @@ clear_directory(Directory *directory) void delete_directory(Directory *directory) { - assert(directory->parent != NULL); + assert(directory->parent != nullptr); clear_directory(directory); @@ -85,13 +85,13 @@ delete_name_in(Directory *parent, const char *name) db_lock(); Directory *directory = parent->FindChild(name); - if (directory != NULL) { + if (directory != nullptr) { delete_directory(directory); modified = true; } Song *song = parent->FindSong(name); - if (song != NULL) { + if (song != nullptr) { delete_song(parent, song); modified = true; } |