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:
@@ -36,7 +36,8 @@
|
||||
#include "util/ConstBuffer.hxx"
|
||||
#include "util/StringBuffer.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
|
@@ -21,10 +21,9 @@
|
||||
#include "MusicPipe.hxx"
|
||||
#include "song/DetachedSong.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
DecoderControl::DecoderControl(Mutex &_mutex, Cond &_client_cond,
|
||||
InputCacheManager *_input_cache,
|
||||
const AudioFormat _configured_audio_format,
|
||||
|
@@ -31,11 +31,11 @@
|
||||
#include "ReplayGainConfig.hxx"
|
||||
#include "ReplayGainMode.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <exception>
|
||||
#include <utility>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/* damn you, windows.h! */
|
||||
|
@@ -21,7 +21,7 @@
|
||||
#include "input/InputStream.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
size_t
|
||||
decoder_read(DecoderClient *client,
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#include "DecoderPlugin.hxx"
|
||||
#include "util/StringUtil.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
bool
|
||||
DecoderPlugin::SupportsSuffix(const char *suffix) const noexcept
|
||||
|
@@ -22,10 +22,9 @@
|
||||
#include "DecoderPlugin.hxx"
|
||||
#include "client/Response.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <functional>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
static void
|
||||
decoder_plugin_print(Response &r,
|
||||
const DecoderPlugin &plugin)
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include <adplug/adplug.h>
|
||||
#include <adplug/emuopl.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
static constexpr Domain adplug_domain("adplug");
|
||||
|
||||
|
@@ -29,9 +29,9 @@
|
||||
#include <audiofile.h>
|
||||
#include <af_vfs.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <exception>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@@ -30,9 +30,9 @@
|
||||
|
||||
#include <neaacdec.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
static const unsigned adts_sample_rates[] =
|
||||
|
@@ -52,7 +52,8 @@ extern "C" {
|
||||
#include <libavutil/frame.h>
|
||||
}
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
/**
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
void
|
||||
FlacPcmImport::Open(unsigned sample_rate, unsigned bits_per_sample,
|
||||
|
@@ -22,10 +22,9 @@
|
||||
|
||||
#include <FLAC/stream_decoder.h>
|
||||
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
#include <utility>
|
||||
|
||||
/**
|
||||
* OO wrapper for a FLAC__StreamDecoder.
|
||||
|
@@ -37,7 +37,8 @@
|
||||
|
||||
#include <gme/gme.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@@ -39,7 +39,8 @@
|
||||
#include <id3tag.h>
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <mikmod.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
static constexpr Domain mikmod_domain("mikmod");
|
||||
|
||||
|
@@ -29,8 +29,7 @@
|
||||
|
||||
#include <libmodplug/modplug.h>
|
||||
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
static constexpr Domain modplug_domain("modplug");
|
||||
|
||||
|
@@ -31,13 +31,11 @@
|
||||
#include <wavpack/wavpack.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#define ERRORLEN 80
|
||||
|
||||
#ifdef OPEN_DSD_AS_PCM
|
||||
|
Reference in New Issue
Block a user