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

@@ -48,9 +48,9 @@
#include "StickerCommands.hxx"
#endif
#include <cassert>
#include <iterator>
#include <assert.h>
#include <string.h>
/*

View File

@@ -20,11 +20,10 @@
#ifndef MPD_COMMAND_LIST_BUILDER_HXX
#define MPD_COMMAND_LIST_BUILDER_HXX
#include <cassert>
#include <list>
#include <string>
#include <assert.h>
class CommandListBuilder {
/**
* print OK after each command execution

View File

@@ -43,7 +43,8 @@
#include "thread/Mutex.hxx"
#include "Log.hxx"
#include <assert.h>
#include <cassert>
#include <inttypes.h> /* for PRIu64 */
gcc_pure

View File

@@ -25,11 +25,10 @@
#include "util/ConstBuffer.hxx"
#include "Partition.hxx"
#include <cassert>
#include <set>
#include <string>
#include <assert.h>
CommandResult
handle_subscribe(Client &client, Request args, Response &r)
{

View File

@@ -55,7 +55,7 @@
#include "db/update/Service.hxx"
#endif
#include <assert.h>
#include <cassert>
static void
print_spl_list(Response &r, const PlaylistVector &list)

View File

@@ -25,10 +25,9 @@
#include "Chrono.hxx"
#include "util/ConstBuffer.hxx"
#include <cassert>
#include <utility>
#include <assert.h>
class Response;
class Request : public ConstBuffer<const char *> {