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 -1
View File
@@ -29,7 +29,7 @@
#include "thread/Mutex.hxx"
#include "util/Compiler.h"
#include <assert.h>
#include <cassert>
extern Mutex db_mutex;
+1 -1
View File
@@ -26,7 +26,7 @@
#include "util/UriExtract.hxx"
#include "util/UriRelative.hxx"
#include <assert.h>
#include <cassert>
DetachedSong
DatabaseDetachSong(const Storage *storage, const LightSong &song) noexcept
+1 -2
View File
@@ -21,8 +21,7 @@
#include "db/DatabaseLock.hxx"
#include <algorithm>
#include <assert.h>
#include <cassert>
PlaylistVector::iterator
PlaylistVector::find(const char *name) noexcept
+1 -1
View File
@@ -23,9 +23,9 @@
#include "song/Filter.hxx"
#include <algorithm>
#include <cassert>
#include <utility>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
+2 -1
View File
@@ -33,7 +33,8 @@
#include "util/Alloc.hxx"
#include "util/DeleteDisposer.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <stdlib.h>
+1 -1
View File
@@ -40,10 +40,10 @@
#include "util/RecursiveMap.hxx"
#include "util/SplitString.hxx"
#include <cassert>
#include <string>
#include <utility>
#include <assert.h>
#include <string.h>
static const char *const rootid = "0";
+1 -1
View File
@@ -24,7 +24,7 @@
#include "db/plugins/simple/Directory.hxx"
#include "db/plugins/simple/Song.hxx"
#include <assert.h>
#include <cassert>
void
DatabaseEditor::DeleteSong(Directory &dir, Song *del)
+1 -1
View File
@@ -29,7 +29,7 @@
#include "util/StringStrip.hxx"
#include "config.h"
#include <assert.h>
#include <cassert>
#ifdef HAVE_CLASS_GLOB
+3 -3
View File
@@ -27,11 +27,11 @@
#include "fs/Traits.hxx"
#include "Log.hxx"
#include <string>
#include <map>
#include <cassert>
#include <forward_list>
#include <map>
#include <string>
#include <assert.h>
#include <sys/inotify.h>
#include <string.h>
#include <dirent.h>
+1 -1
View File
@@ -36,7 +36,7 @@
#include "event/Loop.hxx"
#endif
#include <assert.h>
#include <cassert>
UpdateService::UpdateService(const ConfigData &_config,
EventLoop &_loop, SimpleDatabase &_db,
+1 -1
View File
@@ -38,10 +38,10 @@
#include "util/UriExtract.hxx"
#include "Log.hxx"
#include <cassert>
#include <exception>
#include <memory>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>