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
+1 -1
View File
@@ -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
View File
@@ -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"
+1 -1
View File
@@ -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,
+1 -2
View File
@@ -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;
+1 -1
View File
@@ -19,7 +19,7 @@
#include "OutputPlugin.hxx"
#include <assert.h>
#include <cassert>
AudioOutput *
ao_plugin_init(EventLoop &event_loop,
+1 -1
View File
@@ -22,7 +22,7 @@
#include "util/Compiler.h"
#include <assert.h>
#include <cassert>
struct MusicChunk;
class MusicPipe;
+2 -2
View File
@@ -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;
+2 -1
View File
@@ -29,7 +29,8 @@
#include "util/RuntimeError.hxx"
#include "Log.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
void
+1 -1
View File
@@ -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())
+1 -2
View File
@@ -29,8 +29,7 @@
#include "Log.hxx"
#include <atomic>
#include <assert.h>
#include <cassert>
#include <jack/jack.h>
#include <jack/types.h>
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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>
+2 -2
View File
@@ -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");
+2 -2
View File
@@ -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;
+2 -1
View File
@@ -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>