summaryrefslogtreecommitdiff
path: root/src/TagFile.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/TagFile.cxx
parent5a7c931293b55a27c3f79c6951707a8d6e2a5f6c (diff)
*: use nullptr instead of NULL
Diffstat (limited to 'src/TagFile.cxx')
-rw-r--r--src/TagFile.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/TagFile.cxx b/src/TagFile.cxx
index 4f7284903..70a38196c 100644
--- a/src/TagFile.cxx
+++ b/src/TagFile.cxx
@@ -33,21 +33,21 @@ bool
tag_file_scan(const char *path_fs,
const struct tag_handler *handler, void *handler_ctx)
{
- assert(path_fs != NULL);
- assert(handler != NULL);
+ assert(path_fs != nullptr);
+ assert(handler != nullptr);
/* check if there's a suffix and a plugin */
const char *suffix = uri_get_suffix(path_fs);
- if (suffix == NULL)
+ if (suffix == nullptr)
return false;
const struct decoder_plugin *plugin =
- decoder_plugin_from_suffix(suffix, NULL);
- if (plugin == NULL)
+ decoder_plugin_from_suffix(suffix, nullptr);
+ if (plugin == nullptr)
return false;
- struct input_stream *is = NULL;
+ struct input_stream *is = nullptr;
Mutex mutex;
Cond cond;
@@ -58,7 +58,7 @@ tag_file_scan(const char *path_fs,
break;
/* fall back to stream tag */
- if (plugin->scan_stream != NULL) {
+ if (plugin->scan_stream != nullptr) {
/* open the input_stream (if not already
open) */
if (is == nullptr) {
@@ -68,7 +68,7 @@ tag_file_scan(const char *path_fs,
}
/* now try the stream_tag() method */
- if (is != NULL) {
+ if (is != nullptr) {
if (decoder_plugin_scan_stream(plugin, is,
handler,
handler_ctx))
@@ -79,10 +79,10 @@ tag_file_scan(const char *path_fs,
}
plugin = decoder_plugin_from_suffix(suffix, plugin);
- } while (plugin != NULL);
+ } while (plugin != nullptr);
- if (is != NULL)
+ if (is != nullptr)
is->Close();
- return plugin != NULL;
+ return plugin != nullptr;
}