aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateRemove.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 18:19:03 +0200
committerMax Kellermann <max@duempel.org>2013-10-19 18:19:03 +0200
commit59f8144c50765189594d5932fc25869f9ea6e265 (patch)
treef460d9f46a99040dea402bcb3ad2d84a0e734285 /src/UpdateRemove.cxx
parent5a7c931293b55a27c3f79c6951707a8d6e2a5f6c (diff)
downloadmpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.gz
mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.xz
mpd-59f8144c50765189594d5932fc25869f9ea6e265.zip
*: use nullptr instead of NULL
Diffstat (limited to '')
-rw-r--r--src/UpdateRemove.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/UpdateRemove.cxx b/src/UpdateRemove.cxx
index 6bccdafcc..bb6f36829 100644
--- a/src/UpdateRemove.cxx
+++ b/src/UpdateRemove.cxx
@@ -50,7 +50,7 @@ static Cond remove_cond;
static void
song_remove_event(void)
{
- assert(removed_song != NULL);
+ assert(removed_song != nullptr);
{
const auto uri = removed_song->GetURI();
@@ -67,7 +67,7 @@ song_remove_event(void)
/* clear "removed_song" and send signal to update thread */
remove_mutex.lock();
- removed_song = NULL;
+ removed_song = nullptr;
remove_cond.signal();
remove_mutex.unlock();
}
@@ -81,7 +81,7 @@ update_remove_global_init(void)
void
update_remove_song(const Song *song)
{
- assert(removed_song == NULL);
+ assert(removed_song == nullptr);
removed_song = song;
@@ -89,7 +89,7 @@ update_remove_song(const Song *song)
remove_mutex.lock();
- while (removed_song != NULL)
+ while (removed_song != nullptr)
remove_cond.wait(remove_mutex);
remove_mutex.unlock();