diff options
author | Max Kellermann <max@duempel.org> | 2013-04-09 00:20:49 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-04-09 00:20:49 +0200 |
commit | 6728b8c1a386d82ac15137f82d693559a0d51a8f (patch) | |
tree | a684a973ba0abd5e5fc3a28a9b842de0cec3e5b3 /src | |
parent | 450c26c4713a2de440296260e8d0be8e6b283d75 (diff) | |
download | mpd-6728b8c1a386d82ac15137f82d693559a0d51a8f.tar.gz mpd-6728b8c1a386d82ac15137f82d693559a0d51a8f.tar.xz mpd-6728b8c1a386d82ac15137f82d693559a0d51a8f.zip |
decoder_plugin: convert to C++
Diffstat (limited to '')
-rw-r--r-- | src/DecoderPlugin.cxx (renamed from src/decoder_plugin.c) | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/decoder_plugin.c b/src/DecoderPlugin.cxx index d32043f0e..ccea032de 100644 --- a/src/decoder_plugin.c +++ b/src/DecoderPlugin.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -27,10 +27,10 @@ bool decoder_plugin_supports_suffix(const struct decoder_plugin *plugin, const char *suffix) { - assert(plugin != NULL); - assert(suffix != NULL); + assert(plugin != nullptr); + assert(suffix != nullptr); - return plugin->suffixes != NULL && + return plugin->suffixes != nullptr && string_array_contains(plugin->suffixes, suffix); } @@ -39,9 +39,9 @@ bool decoder_plugin_supports_mime_type(const struct decoder_plugin *plugin, const char *mime_type) { - assert(plugin != NULL); - assert(mime_type != NULL); + assert(plugin != nullptr); + assert(mime_type != nullptr); - return plugin->mime_types != NULL && + return plugin->mime_types != nullptr && string_array_contains(plugin->mime_types, mime_type); } |