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:
@@ -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 */
|
||||
|
@@ -23,8 +23,8 @@
|
||||
#include <alsa/asoundlib.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace Alsa {
|
||||
|
@@ -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)
|
||||
|
@@ -35,7 +35,7 @@
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
static constexpr Domain curlm_domain("curlm");
|
||||
|
||||
|
@@ -32,7 +32,7 @@
|
||||
#include "event/Call.hxx"
|
||||
#include "thread/Mutex.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
Mutex CurlInit::mutex;
|
||||
unsigned CurlInit::ref;
|
||||
|
@@ -40,8 +40,8 @@
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
CurlRequest::CurlRequest(CurlGlobal &_global,
|
||||
|
@@ -33,10 +33,9 @@
|
||||
#include "PendingCall.hxx"
|
||||
#include "Message.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <functional>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
namespace ODBus {
|
||||
|
||||
/**
|
||||
|
@@ -28,7 +28,8 @@ extern "C" {
|
||||
#include <libavutil/mathematics.h>
|
||||
}
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* suppress the ffmpeg compatibility macro */
|
||||
|
@@ -40,9 +40,9 @@
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
AllocatedString<>
|
||||
|
@@ -38,10 +38,10 @@
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_ICU
|
||||
|
@@ -24,10 +24,10 @@
|
||||
|
||||
#include <unicode/ustring.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
AllocatedArray<UChar>
|
||||
|
@@ -19,7 +19,8 @@
|
||||
|
||||
#include "Base.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
static char nfs_base_server[64];
|
||||
|
@@ -25,8 +25,7 @@
|
||||
#include <boost/intrusive/list.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
template<typename T>
|
||||
class CancellablePointer
|
||||
|
@@ -37,7 +37,8 @@ extern "C" {
|
||||
#include <nfsc/libnfs.h>
|
||||
}
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
static StringBuffer<256>
|
||||
|
@@ -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>
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <sqlite3.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
namespace Sqlite {
|
||||
|
||||
|
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <upnptools.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
static Mutex upnp_client_init_mutex;
|
||||
static unsigned upnp_client_ref;
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include <upnptools.h>
|
||||
#include <ixml.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
static Mutex upnp_init_mutex;
|
||||
static unsigned upnp_ref;
|
||||
|
@@ -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
|
||||
|
@@ -22,7 +22,8 @@
|
||||
|
||||
#include <ogg/ogg.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
@@ -22,7 +22,8 @@
|
||||
|
||||
#include <ogg/ogg.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
Reference in New Issue
Block a user