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

View File

@@ -29,7 +29,7 @@
#include <adplug/adplug.h>
#include <adplug/emuopl.h>
#include <assert.h>
#include <cassert>
static constexpr Domain adplug_domain("adplug");

View File

@@ -29,9 +29,9 @@
#include <audiofile.h>
#include <af_vfs.h>
#include <cassert>
#include <exception>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>

View File

@@ -30,9 +30,9 @@
#include <neaacdec.h>
#include <cassert>
#include <cmath>
#include <assert.h>
#include <string.h>
static const unsigned adts_sample_rates[] =

View File

@@ -52,7 +52,8 @@ extern "C" {
#include <libavutil/frame.h>
}
#include <assert.h>
#include <cassert>
#include <string.h>
/**

View File

@@ -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,

View File

@@ -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.

View File

@@ -37,7 +37,8 @@
#include <gme/gme.h>
#include <assert.h>
#include <cassert>
#include <stdlib.h>
#include <string.h>

View File

@@ -39,7 +39,8 @@
#include <id3tag.h>
#endif
#include <assert.h>
#include <cassert>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View File

@@ -29,7 +29,7 @@
#include <mikmod.h>
#include <assert.h>
#include <cassert>
static constexpr Domain mikmod_domain("mikmod");

View File

@@ -29,8 +29,7 @@
#include <libmodplug/modplug.h>
#include <assert.h>
#include <cassert>
static constexpr Domain modplug_domain("modplug");

View File

@@ -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