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/DatabaseSelection.hxx | |
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/DatabaseSelection.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/DatabaseSelection.hxx b/src/DatabaseSelection.hxx index 7fab2d303..8ef5b6d9c 100644 --- a/src/DatabaseSelection.hxx +++ b/src/DatabaseSelection.hxx @@ -23,7 +23,6 @@ #include "Compiler.h" #include <assert.h> -#include <stddef.h> class SongFilter; struct Song; @@ -31,7 +30,7 @@ struct Song; struct DatabaseSelection { /** * The base URI of the search (UTF-8). Must not begin or end - * with a slash. NULL or an empty string searches the whole + * with a slash. nullptr or an empty string searches the whole * database. */ const char *uri; @@ -46,7 +45,7 @@ struct DatabaseSelection { DatabaseSelection(const char *_uri, bool _recursive, const SongFilter *_filter=nullptr) :uri(_uri), recursive(_recursive), filter(_filter) { - assert(uri != NULL); + assert(uri != nullptr); } gcc_pure |