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
+2 -1
View File
@@ -23,7 +23,8 @@
#include "EncoderPlugin.hxx"
#include "util/Compiler.h"
#include <assert.h>
#include <cassert>
#include <stddef.h>
struct AudioFormat;
+1 -1
View File
@@ -26,9 +26,9 @@
#include <lame/lame.h>
#include <cassert>
#include <stdexcept>
#include <assert.h>
#include <string.h>
class LameEncoder final : public Encoder {
+1 -1
View File
@@ -26,9 +26,9 @@
#include <opus.h>
#include <ogg/ogg.h>
#include <cassert>
#include <stdexcept>
#include <assert.h>
#include <stdlib.h>
namespace {
+1 -1
View File
@@ -27,9 +27,9 @@
#include <twolame.h>
#include <cassert>
#include <stdexcept>
#include <assert.h>
#include <string.h>
class TwolameEncoder final : public Encoder {
+2 -1
View File
@@ -22,7 +22,8 @@
#include "util/ByteOrder.hxx"
#include "util/DynamicFifoBuffer.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
static constexpr uint16_t WAVE_FORMAT_PCM = 1;