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/client | |
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/client')
-rw-r--r-- | src/client/Idle.cxx | 2 | ||||
-rw-r--r-- | src/client/List.cxx | 2 | ||||
-rw-r--r-- | src/client/New.cxx | 2 | ||||
-rw-r--r-- | src/client/Subscribe.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/client/Idle.cxx b/src/client/Idle.cxx index 4d328dee6..ecb3f98ec 100644 --- a/src/client/Idle.cxx +++ b/src/client/Idle.cxx @@ -22,7 +22,7 @@ #include "Response.hxx" #include "Idle.hxx" -#include <assert.h> +#include <cassert> static void WriteIdleResponse(Response &r, unsigned flags) noexcept diff --git a/src/client/List.cxx b/src/client/List.cxx index bc1f60487..9ffc56af7 100644 --- a/src/client/List.cxx +++ b/src/client/List.cxx @@ -20,7 +20,7 @@ #include "List.hxx" #include "util/DeleteDisposer.hxx" -#include <assert.h> +#include <cassert> ClientList::~ClientList() noexcept { diff --git a/src/client/New.cxx b/src/client/New.cxx index 87a5c8e7a..b12ec4146 100644 --- a/src/client/New.cxx +++ b/src/client/New.cxx @@ -29,7 +29,7 @@ #include "net/ToString.hxx" #include "Log.hxx" -#include <assert.h> +#include <cassert> static constexpr char GREETING[] = "OK MPD " PROTOCOL_VERSION "\n"; diff --git a/src/client/Subscribe.cxx b/src/client/Subscribe.cxx index 4e636cc50..0b65d5b1b 100644 --- a/src/client/Subscribe.cxx +++ b/src/client/Subscribe.cxx @@ -21,7 +21,7 @@ #include "Partition.hxx" #include "IdleFlags.hxx" -#include <assert.h> +#include <cassert> Client::SubscribeResult Client::Subscribe(const char *channel) noexcept |