diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-03-12 15:20:59 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-03-12 15:25:38 -0700 |
commit | ab9f5d2067e1f8f22cb5009015ec059f4a1a7431 (patch) | |
tree | 29c6f69c06e70d4e9a26dd137d233ae776206d83 /src/filter | |
parent | a718086ffb989b7c56afc51eb3380f6568ef929e (diff) |
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>
Diffstat (limited to 'src/filter')
-rw-r--r-- | src/filter/Filter.hxx | 2 | ||||
-rw-r--r-- | src/filter/Observer.cxx | 2 | ||||
-rw-r--r-- | src/filter/plugins/AutoConvertFilterPlugin.cxx | 3 | ||||
-rw-r--r-- | src/filter/plugins/ChainFilterPlugin.cxx | 5 | ||||
-rw-r--r-- | src/filter/plugins/ConvertFilterPlugin.cxx | 3 | ||||
-rw-r--r-- | src/filter/plugins/ReplayGainFilterPlugin.cxx | 3 |
6 files changed, 7 insertions, 11 deletions
diff --git a/src/filter/Filter.hxx b/src/filter/Filter.hxx index 214a22ec1..b434663a7 100644 --- a/src/filter/Filter.hxx +++ b/src/filter/Filter.hxx @@ -22,7 +22,7 @@ #include "pcm/AudioFormat.hxx" -#include <assert.h> +#include <cassert> template<typename T> struct ConstBuffer; diff --git a/src/filter/Observer.cxx b/src/filter/Observer.cxx index 364c7b958..e052272eb 100644 --- a/src/filter/Observer.cxx +++ b/src/filter/Observer.cxx @@ -22,7 +22,7 @@ #include "Prepared.hxx" #include "util/ConstBuffer.hxx" -#include <assert.h> +#include <cassert> class FilterObserver::PreparedProxy final : public PreparedFilter { FilterObserver &observer; diff --git a/src/filter/plugins/AutoConvertFilterPlugin.cxx b/src/filter/plugins/AutoConvertFilterPlugin.cxx index cf6786c92..54c692406 100644 --- a/src/filter/plugins/AutoConvertFilterPlugin.cxx +++ b/src/filter/plugins/AutoConvertFilterPlugin.cxx @@ -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. diff --git a/src/filter/plugins/ChainFilterPlugin.cxx b/src/filter/plugins/ChainFilterPlugin.cxx index ba4a000dd..07bca48af 100644 --- a/src/filter/plugins/ChainFilterPlugin.cxx +++ b/src/filter/plugins/ChainFilterPlugin.cxx @@ -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 { diff --git a/src/filter/plugins/ConvertFilterPlugin.cxx b/src/filter/plugins/ConvertFilterPlugin.cxx index 15c3ae0a6..91ddddeef 100644 --- a/src/filter/plugins/ConvertFilterPlugin.cxx +++ b/src/filter/plugins/ConvertFilterPlugin.cxx @@ -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() diff --git a/src/filter/plugins/ReplayGainFilterPlugin.cxx b/src/filter/plugins/ReplayGainFilterPlugin.cxx index 4a667dbe7..6dc63b863 100644 --- a/src/filter/plugins/ReplayGainFilterPlugin.cxx +++ b/src/filter/plugins/ReplayGainFilterPlugin.cxx @@ -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 { |