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:
@@ -24,7 +24,7 @@
|
||||
#include "config/Block.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
/** after a failure, wait this duration before
|
||||
automatically reopening the device */
|
||||
|
||||
+1
-1
@@ -39,9 +39,9 @@
|
||||
#include "util/StringFormat.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#define AUDIO_OUTPUT_TYPE "type"
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "util/StringAPI.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
MultipleOutputs::MultipleOutputs(AudioOutputClient &_client,
|
||||
|
||||
@@ -28,11 +28,10 @@
|
||||
#include "Chrono.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
class MusicPipe;
|
||||
class EventLoop;
|
||||
class MixerListener;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "OutputPlugin.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
AudioOutput *
|
||||
ao_plugin_init(EventLoop &event_loop,
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
struct MusicChunk;
|
||||
class MusicPipe;
|
||||
|
||||
@@ -28,10 +28,10 @@
|
||||
#include "thread/Mutex.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct MusicChunk;
|
||||
|
||||
@@ -29,7 +29,8 @@
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
void
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "Timer.hxx"
|
||||
#include "pcm/AudioFormat.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
Timer::Timer(const AudioFormat af)
|
||||
:rate(af.sample_rate * af.GetFrameSize())
|
||||
|
||||
@@ -29,8 +29,7 @@
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <jack/jack.h>
|
||||
#include <jack/types.h>
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "util/ByteOrder.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <iterator>
|
||||
#include <stdexcept>
|
||||
|
||||
@@ -36,7 +37,6 @@
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
|
||||
#if defined(__OpenBSD__) || defined(__NetBSD__)
|
||||
# include <soundcard.h>
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
#include <pulse/subscribe.h>
|
||||
#include <pulse/version.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
#include "util/Domain.hxx"
|
||||
#include "util/ScopeExit.hxx"
|
||||
|
||||
#include <stdexcept>
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static constexpr Domain recorder_domain("recorder");
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
|
||||
#include <shout/shout.h>
|
||||
|
||||
#include <stdexcept>
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
static constexpr unsigned DEFAULT_CONN_TIMEOUT = 2;
|
||||
|
||||
@@ -27,7 +27,8 @@
|
||||
#include "net/UniqueSocketDescriptor.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "util/DeleteDisposer.hxx"
|
||||
#include "config/Net.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user