summaryrefslogtreecommitdiff
path: root/src/archive
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-12 15:20:59 -0700
committerRosen Penev <rosenp@gmail.com>2020-03-12 15:25:38 -0700
commitab9f5d2067e1f8f22cb5009015ec059f4a1a7431 (patch)
tree29c6f69c06e70d4e9a26dd137d233ae776206d83 /src/archive
parenta718086ffb989b7c56afc51eb3380f6568ef929e (diff)
replace assert.h with cassert
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/archive')
-rw-r--r--src/archive/ArchiveList.cxx2
-rw-r--r--src/archive/ArchivePlugin.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/archive/ArchiveList.cxx b/src/archive/ArchiveList.cxx
index 4e371c0bb..a81d4f382 100644
--- a/src/archive/ArchiveList.cxx
+++ b/src/archive/ArchiveList.cxx
@@ -25,9 +25,9 @@
#include "plugins/Iso9660ArchivePlugin.hxx"
#include "plugins/ZzipArchivePlugin.hxx"
+#include <cassert>
#include <iterator>
-#include <assert.h>
#include <string.h>
const ArchivePlugin *const archive_plugins[] = {
diff --git a/src/archive/ArchivePlugin.cxx b/src/archive/ArchivePlugin.cxx
index 7a775e995..65e90bc60 100644
--- a/src/archive/ArchivePlugin.cxx
+++ b/src/archive/ArchivePlugin.cxx
@@ -21,7 +21,7 @@
#include "ArchiveFile.hxx"
#include "fs/Path.hxx"
-#include <assert.h>
+#include <cassert>
std::unique_ptr<ArchiveFile>
archive_file_open(const ArchivePlugin *plugin, Path path)