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:
@@ -29,7 +29,7 @@
|
||||
#include "thread/Mutex.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
extern Mutex db_mutex;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -23,9 +23,9 @@
|
||||
#include "song/Filter.hxx"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <utility>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
#include "util/Alloc.hxx"
|
||||
#include "util/DeleteDisposer.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "util/StringStrip.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#ifdef HAVE_CLASS_GLOB
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include "event/Loop.hxx"
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
UpdateService::UpdateService(const ConfigData &_config,
|
||||
EventLoop &_loop, SimpleDatabase &_db,
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user