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:
@@ -20,7 +20,8 @@
|
||||
#include "AudioFormat.hxx"
|
||||
#include "util/StringBuffer.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
#include "AudioFormat.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "util/ConstBuffer.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
void
|
||||
PcmChannelsConverter::Open(SampleFormat _format,
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "Buffer.hxx"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
#endif
|
||||
|
||||
template<typename T> struct ConstBuffer;
|
||||
|
||||
@@ -34,7 +34,8 @@
|
||||
#include "SoxrResampler.hxx"
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
enum class SelectedResampler {
|
||||
|
||||
+1
-2
@@ -21,10 +21,9 @@
|
||||
#include "ConfiguredResampler.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
void
|
||||
pcm_convert_global_init(const ConfigData &config)
|
||||
{
|
||||
|
||||
+1
-2
@@ -21,10 +21,9 @@
|
||||
#include "ChannelDefs.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <functional>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
static constexpr uint32_t
|
||||
pcm_two_dsd_to_dop_marker1(uint8_t a, uint8_t b) noexcept
|
||||
{
|
||||
|
||||
+2
-1
@@ -35,7 +35,8 @@ or implied, of Sebastian Gesemann.
|
||||
#include "util/BitReverse.hxx"
|
||||
#include "util/GenerateArray.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
+2
-1
@@ -25,7 +25,8 @@
|
||||
#include "util/ConstBuffer.hxx"
|
||||
#include "util/WritableBuffer.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
void
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "FallbackResampler.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
AudioFormat
|
||||
FallbackPcmResampler::Open(AudioFormat &af, unsigned new_sample_rate)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "util/ConstBuffer.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
void
|
||||
PcmFormatConverter::Open(SampleFormat _src_format, SampleFormat _dest_format)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "Dither.hxx"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
#endif
|
||||
|
||||
template<typename T> struct ConstBuffer;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "Resampler.hxx"
|
||||
#include "AudioFormat.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
GluePcmResampler::GluePcmResampler()
|
||||
:resampler(pcm_resampler_create()) {}
|
||||
|
||||
@@ -24,7 +24,8 @@
|
||||
#include "util/Domain.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
+1
-2
@@ -25,10 +25,9 @@
|
||||
|
||||
#include "Dither.cxx" // including the .cxx file to get inlined templates
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
template<SampleFormat F, class Traits=SampleTraits<F>>
|
||||
static typename Traits::value_type
|
||||
PcmAddVolume(PcmDither &dither,
|
||||
|
||||
@@ -27,8 +27,7 @@
|
||||
|
||||
#include <array>
|
||||
#include <algorithm>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
template<typename D, typename S>
|
||||
static void
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
#include "Dsd2Pcm.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
ConstBuffer<float>
|
||||
PcmDsd::ToFloat(unsigned channels, ConstBuffer<uint8_t> src) noexcept
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
#include "ChannelDefs.hxx"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
|
||||
template<typename T> struct ConstBuffer;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "SampleFormat.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
const char *
|
||||
sample_format_to_string(SampleFormat format) noexcept
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
|
||||
#include <soxr.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
static constexpr Domain soxr_domain("soxr");
|
||||
|
||||
+2
-1
@@ -27,7 +27,8 @@
|
||||
|
||||
#include "Dither.cxx" // including the .cxx file to get inlined templates
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
#include "Dither.hxx"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
#endif
|
||||
|
||||
template<typename T> struct ConstBuffer;
|
||||
|
||||
Reference in New Issue
Block a user