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/archive/ZzipArchivePlugin.cxx | |
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/archive/ZzipArchivePlugin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/archive/ZzipArchivePlugin.cxx b/src/archive/ZzipArchivePlugin.cxx index 35730d078..436afc417 100644 --- a/src/archive/ZzipArchivePlugin.cxx +++ b/src/archive/ZzipArchivePlugin.cxx @@ -75,11 +75,11 @@ static constexpr Domain zzip_domain("zzip"); static ArchiveFile * zzip_archive_open(const char *pathname, Error &error) { - ZZIP_DIR *dir = zzip_dir_open(pathname, NULL); + ZZIP_DIR *dir = zzip_dir_open(pathname, nullptr); if (dir == nullptr) { error.Format(zzip_domain, "Failed to open ZIP file %s", pathname); - return NULL; + return nullptr; } return new ZzipArchiveFile(dir); @@ -137,7 +137,7 @@ ZzipArchiveFile::OpenStream(const char *pathname, if (_file == nullptr) { error.Format(zzip_domain, "not found in the ZIP file: %s", pathname); - return NULL; + return nullptr; } ZzipInputStream *zis = @@ -199,7 +199,7 @@ zzip_input_seek(struct input_stream *is, InputPlugin::offset_type offset, static const char *const zzip_archive_extensions[] = { "zip", - NULL + nullptr }; const InputPlugin zzip_input_plugin = { |