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

@@ -22,7 +22,7 @@
#include "pcm/AudioFormat.hxx"
#include <assert.h>
#include <cassert>
template<typename T> struct ConstBuffer;

View File

@@ -22,7 +22,7 @@
#include "Prepared.hxx"
#include "util/ConstBuffer.hxx"
#include <assert.h>
#include <cassert>
class FilterObserver::PreparedProxy final : public PreparedFilter {
FilterObserver &observer;

View File

@@ -24,10 +24,9 @@
#include "pcm/AudioFormat.hxx"
#include "util/ConstBuffer.hxx"
#include <cassert>
#include <memory>
#include <assert.h>
class AutoConvertFilter final : public Filter {
/**
* The underlying filter.

View File

@@ -25,10 +25,9 @@
#include "util/StringBuffer.hxx"
#include "util/RuntimeError.hxx"
#include <memory>
#include <cassert>
#include <list>
#include <assert.h>
#include <memory>
class ChainFilter final : public Filter {
struct Child {

View File

@@ -24,10 +24,9 @@
#include "pcm/Convert.hxx"
#include "util/ConstBuffer.hxx"
#include <cassert>
#include <memory>
#include <assert.h>
class ConvertFilter final : public Filter {
/**
* The input audio format; PCM data is passed to the filter()

View File

@@ -29,10 +29,9 @@
#include "util/Domain.hxx"
#include "Log.hxx"
#include <cassert>
#include <exception>
#include <assert.h>
static constexpr Domain replay_gain_domain("replay_gain");
class ReplayGainFilter final : public Filter {