aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-28 23:58:17 +0100
committerMax Kellermann <max@duempel.org>2013-10-28 23:58:17 +0100
commit20597b3632d3b6e25ba532716106f90d5b64d0e8 (patch)
treefa6dabaff127150caf3cf4723257f15ef2c3e0f8 /src/command
parent4728735acf20fba24d0d03ab431160e250325869 (diff)
downloadmpd-20597b3632d3b6e25ba532716106f90d5b64d0e8.tar.gz
mpd-20597b3632d3b6e25ba532716106f90d5b64d0e8.tar.xz
mpd-20597b3632d3b6e25ba532716106f90d5b64d0e8.zip
*: use nullptr instead of NULL
Diffstat (limited to 'src/command')
-rw-r--r--src/command/OtherCommands.cxx4
-rw-r--r--src/command/PlayerCommands.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx
index 510ef89e7..75faa4dc2 100644
--- a/src/command/OtherCommands.cxx
+++ b/src/command/OtherCommands.cxx
@@ -129,7 +129,7 @@ handle_lsinfo(Client &client, int argc, char *argv[])
return print_error(client, error);
Song *song = Song::LoadFile(path_utf8, nullptr);
- if (song == NULL) {
+ if (song == nullptr) {
command_error(client, ACK_ERROR_NO_EXIST,
"No such file");
return CommandResult::ERROR;
@@ -310,7 +310,7 @@ handle_config(Client &client,
}
const char *path = mapper_get_music_directory_utf8();
- if (path != NULL)
+ if (path != nullptr)
client_printf(client, "music_directory: %s\n", path);
return CommandResult::OK;
diff --git a/src/command/PlayerCommands.cxx b/src/command/PlayerCommands.cxx
index d30bde273..171ffaa4f 100644
--- a/src/command/PlayerCommands.cxx
+++ b/src/command/PlayerCommands.cxx
@@ -111,7 +111,7 @@ CommandResult
handle_status(Client &client,
gcc_unused int argc, gcc_unused char *argv[])
{
- const char *state = NULL;
+ const char *state = nullptr;
int updateJobId;
int song;