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

View File

@@ -26,7 +26,7 @@
#include <alsa/asoundlib.h>
#include <assert.h>
#include <cassert>
#if SND_LIB_VERSION >= 0x1001c
/* alsa-lib supports DSD since version 1.0.27.1 */

View File

@@ -23,8 +23,8 @@
#include <alsa/asoundlib.h>
#include <algorithm>
#include <cassert>
#include <assert.h>
#include <stdint.h>
namespace Alsa {

View File

@@ -30,10 +30,9 @@
#include "Delegate.hxx"
#include "Parser.hxx"
#include <cassert>
#include <utility>
#include <assert.h>
void
DelegateCurlResponseHandler::OnHeaders(unsigned status,
std::multimap<std::string, std::string> &&headers)

View File

@@ -35,7 +35,7 @@
#include "util/RuntimeError.hxx"
#include "util/Domain.hxx"
#include <assert.h>
#include <cassert>
static constexpr Domain curlm_domain("curlm");

View File

@@ -32,7 +32,7 @@
#include "event/Call.hxx"
#include "thread/Mutex.hxx"
#include <assert.h>
#include <cassert>
Mutex CurlInit::mutex;
unsigned CurlInit::ref;

View File

@@ -40,8 +40,8 @@
#include <curl/curl.h>
#include <algorithm>
#include <cassert>
#include <assert.h>
#include <string.h>
CurlRequest::CurlRequest(CurlGlobal &_global,

View File

@@ -33,10 +33,9 @@
#include "PendingCall.hxx"
#include "Message.hxx"
#include <cassert>
#include <functional>
#include <assert.h>
namespace ODBus {
/**

View File

@@ -28,7 +28,8 @@ extern "C" {
#include <libavutil/mathematics.h>
}
#include <assert.h>
#include <cassert>
#include <stdint.h>
/* suppress the ffmpeg compatibility macro */

View File

@@ -40,9 +40,9 @@
#include <windows.h>
#endif
#include <cassert>
#include <memory>
#include <assert.h>
#include <string.h>
AllocatedString<>

View File

@@ -38,10 +38,10 @@
#include <windows.h>
#endif
#include <cassert>
#include <memory>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#ifdef HAVE_ICU

View File

@@ -24,10 +24,10 @@
#include <unicode/ustring.h>
#include <cassert>
#include <memory>
#include <stdexcept>
#include <assert.h>
#include <string.h>
AllocatedArray<UChar>

View File

@@ -19,7 +19,8 @@
#include "Base.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
static char nfs_base_server[64];

View File

@@ -25,8 +25,7 @@
#include <boost/intrusive/list.hpp>
#include <algorithm>
#include <assert.h>
#include <cassert>
template<typename T>
class CancellablePointer

View File

@@ -37,7 +37,8 @@ extern "C" {
#include <nfsc/libnfs.h>
}
#include <assert.h>
#include <cassert>
#include <string.h>
static StringBuffer<256>

View File

@@ -24,10 +24,10 @@
#include "event/Call.hxx"
#include "util/ASCII.hxx"
#include <utility>
#include <cassert>
#include <stdexcept>
#include <utility>
#include <assert.h>
#include <string.h>
#include <fcntl.h>

View File

@@ -22,7 +22,7 @@
#include "event/Call.hxx"
#include "util/Manual.hxx"
#include <assert.h>
#include <cassert>
static Manual<NfsManager> nfs_glue;
static unsigned in_use;

View File

@@ -25,7 +25,7 @@
#include <sqlite3.h>
#include <assert.h>
#include <cassert>
namespace Sqlite {

View File

@@ -25,7 +25,7 @@
#include <upnptools.h>
#include <assert.h>
#include <cassert>
static Mutex upnp_client_init_mutex;
static unsigned upnp_client_ref;

View File

@@ -25,7 +25,7 @@
#include <upnptools.h>
#include <ixml.h>
#include <assert.h>
#include <cassert>
static Mutex upnp_init_mutex;
static unsigned upnp_ref;

View File

@@ -30,7 +30,7 @@
#include "ReplayGainInfo.hxx"
#include "util/StringView.hxx"
#include <assert.h>
#include <cassert>
static StringView
ToStringView(const FLAC__StreamMetadata_VorbisComment_Entry &entry) noexcept

View File

@@ -22,7 +22,8 @@
#include <ogg/ogg.h>
#include <assert.h>
#include <cassert>
#include <string.h>
#include <stdint.h>

View File

@@ -22,7 +22,8 @@
#include <ogg/ogg.h>
#include <assert.h>
#include <cassert>
#include <string.h>
#include <stdint.h>