diff options
author | Max Kellermann <max@duempel.org> | 2015-01-07 18:55:31 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-07 18:55:34 +0100 |
commit | d83127722f2aad4e5d1ebd8aa91d7490893b0d51 (patch) | |
tree | ac217ee8e6bafefde715009bfcfd0b60e82ad09a /src/output | |
parent | dc03ad05be392af71c2d41f8a0b9521e0b14b614 (diff) | |
download | mpd-d83127722f2aad4e5d1ebd8aa91d7490893b0d51.tar.gz mpd-d83127722f2aad4e5d1ebd8aa91d7490893b0d51.tar.xz mpd-d83127722f2aad4e5d1ebd8aa91d7490893b0d51.zip |
output/oss: use nullptr instead of NULL
Diffstat (limited to '')
-rw-r--r-- | src/output/plugins/OssOutputPlugin.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/output/plugins/OssOutputPlugin.cxx b/src/output/plugins/OssOutputPlugin.cxx index b895046f0..1b14e16c7 100644 --- a/src/output/plugins/OssOutputPlugin.cxx +++ b/src/output/plugins/OssOutputPlugin.cxx @@ -199,7 +199,7 @@ oss_open_default(Error &error) OssOutput *od = new OssOutput(default_devices[i]); if (!od->Initialize(empty, error)) { delete od; - return NULL; + return nullptr; } return od; @@ -232,18 +232,18 @@ oss_open_default(Error &error) error.Set(oss_output_domain, "error trying to open default OSS device"); - return NULL; + return nullptr; } inline OssOutput * OssOutput::Create(const config_param ¶m, Error &error) { const char *device = param.GetBlockValue("device"); - if (device != NULL) { + if (device != nullptr) { OssOutput *od = new OssOutput(); if (!od->Initialize(param, error)) { delete od; - return NULL; + return nullptr; } od->device = device; @@ -280,8 +280,8 @@ oss_try_ioctl_r(int fd, unsigned long request, int *value_r, const char *msg, Error &error) { assert(fd >= 0); - assert(value_r != NULL); - assert(msg != NULL); + assert(value_r != nullptr); + assert(msg != nullptr); assert(!error.IsDefined()); int ret = ioctl(fd, request, value_r); |