diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-03-12 15:20:59 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-03-12 15:25:38 -0700 |
commit | ab9f5d2067e1f8f22cb5009015ec059f4a1a7431 (patch) | |
tree | 29c6f69c06e70d4e9a26dd137d233ae776206d83 /src/storage | |
parent | a718086ffb989b7c56afc51eb3380f6568ef929e (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/storage')
-rw-r--r-- | src/storage/MemoryDirectoryReader.cxx | 2 | ||||
-rw-r--r-- | src/storage/plugins/CurlStorage.cxx | 3 | ||||
-rw-r--r-- | src/storage/plugins/NfsStorage.cxx | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/storage/MemoryDirectoryReader.cxx b/src/storage/MemoryDirectoryReader.cxx index af2087ef2..4220c237e 100644 --- a/src/storage/MemoryDirectoryReader.cxx +++ b/src/storage/MemoryDirectoryReader.cxx @@ -19,7 +19,7 @@ #include "MemoryDirectoryReader.hxx" -#include <assert.h> +#include <cassert> const char * MemoryStorageDirectoryReader::Read() noexcept diff --git a/src/storage/plugins/CurlStorage.cxx b/src/storage/plugins/CurlStorage.cxx index a45f7369b..07f25c441 100644 --- a/src/storage/plugins/CurlStorage.cxx +++ b/src/storage/plugins/CurlStorage.cxx @@ -41,12 +41,11 @@ #include "util/StringFormat.hxx" #include "util/UriExtract.hxx" +#include <cassert> #include <memory> #include <string> #include <utility> -#include <assert.h> - class CurlStorage final : public Storage { const std::string base; diff --git a/src/storage/plugins/NfsStorage.cxx b/src/storage/plugins/NfsStorage.cxx index c1c88c069..f6d4a5dcb 100644 --- a/src/storage/plugins/NfsStorage.cxx +++ b/src/storage/plugins/NfsStorage.cxx @@ -42,9 +42,9 @@ extern "C" { #include <nfsc/libnfs-raw-nfs.h> } +#include <cassert> #include <string> -#include <assert.h> #include <sys/stat.h> #include <fcntl.h> |