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>
This commit is contained in:
Rosen Penev
2020-03-12 15:20:59 -07:00
parent a718086ffb
commit ab9f5d2067
246 changed files with 320 additions and 317 deletions
+1 -2
View File
@@ -31,8 +31,7 @@
#endif
#include <algorithm>
#include <assert.h>
#include <cassert>
#ifdef HAVE_FS_CHARSET
+1 -2
View File
@@ -23,10 +23,9 @@
#include "util/Compiler.h"
#include "Traits.hxx"
#include <cassert>
#include <string>
#include <assert.h>
class AllocatedPath;
/**
+1 -2
View File
@@ -29,10 +29,9 @@
#include <tchar.h>
#endif
#include <cassert>
#include <string>
#include <assert.h>
#ifdef _WIN32
#define PATH_LITERAL(s) _T(s)
#else
+2 -1
View File
@@ -38,7 +38,8 @@
#include "system/FileDescriptor.hxx"
#endif
#include <assert.h>
#include <cassert>
#include <stdint.h>
#ifdef _WIN32
+1 -1
View File
@@ -32,7 +32,7 @@
#include "system/Error.hxx"
#include "system/Open.hxx"
#include <assert.h>
#include <cassert>
#ifdef _WIN32
+1 -1
View File
@@ -20,8 +20,8 @@
#include "PeekReader.hxx"
#include <algorithm>
#include <cassert>
#include <assert.h>
#include <string.h>
const void *
+1 -1
View File
@@ -23,7 +23,7 @@
#include "BufferedReader.hxx"
#include "fs/Path.hxx"
#include <assert.h>
#include <cassert>
TextFile::TextFile(Path path_fs)
:file_reader(std::make_unique<FileReader>(path_fs)),