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:
@@ -23,9 +23,9 @@
|
||||
#include "thread/Cond.hxx"
|
||||
#include "event/Loop.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "InputStream.hxx"
|
||||
#include "BufferingInputStream.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
/**
|
||||
* A "huge" buffer which remembers the (partial) contents of an
|
||||
|
||||
@@ -27,10 +27,9 @@
|
||||
#include "PluginUnavailable.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
void
|
||||
input_stream_global_init(const ConfigData &config, EventLoop &event_loop)
|
||||
{
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
#include "InputPlugin.hxx"
|
||||
#include "util/StringCompare.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <iterator>
|
||||
|
||||
bool
|
||||
@@ -71,4 +71,4 @@ protocol_is_whitelisted(const char *proto) {
|
||||
return std::binary_search(begin, end, proto, [](const char* a, const char* b) {
|
||||
return strcasecmp(a,b) < 0;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,8 @@
|
||||
#include "Ptr.hxx"
|
||||
#include "thread/Mutex.hxx"
|
||||
#include "util/Compiler.h"
|
||||
#include <assert.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -22,10 +22,9 @@
|
||||
#include "tag/Tag.hxx"
|
||||
#include "util/ASCII.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
InputStream::~InputStream() noexcept = default;
|
||||
|
||||
void
|
||||
|
||||
@@ -25,10 +25,9 @@
|
||||
#include "thread/Mutex.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string>
|
||||
|
||||
struct Tag;
|
||||
class InputStreamHandler;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "fs/Path.hxx"
|
||||
#include "system/Error.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
InputStreamPtr
|
||||
OpenLocalInputStream(Path path, Mutex &mutex)
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
#include "RewindInputStream.hxx"
|
||||
#include "ProxyInputStream.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
class RewindInputStream final : public ProxyInputStream {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "InputStream.hxx"
|
||||
#include "util/TextFile.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
TextInputStream::TextInputStream(InputStreamPtr &&_is) noexcept
|
||||
:is(std::move(_is)) {}
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
#include "CondHandler.hxx"
|
||||
#include "thread/Name.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
ThreadInputStream::ThreadInputStream(const char *_plugin,
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
#include "util/HugeAllocator.hxx"
|
||||
#include "util/CircularBuffer.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <exception>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
|
||||
2
src/input/cache/Item.cxx
vendored
2
src/input/cache/Item.cxx
vendored
@@ -21,7 +21,7 @@
|
||||
#include "Lease.hxx"
|
||||
#include "input/InputStream.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
InputCacheItem::InputCacheItem(InputStreamPtr _input) noexcept
|
||||
:BufferingInputStream(std::move(_input)),
|
||||
|
||||
@@ -43,7 +43,8 @@
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
static constexpr Domain alsa_input_domain("alsa");
|
||||
|
||||
@@ -34,11 +34,12 @@
|
||||
#include "Log.hxx"
|
||||
#include "config/Block.hxx"
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <cdio/cd_types.h>
|
||||
|
||||
|
||||
@@ -49,9 +49,9 @@
|
||||
#include "util/UriQueryParser.hxx"
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
#include <cinttypes>
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
@@ -21,10 +21,9 @@
|
||||
#include "lib/crypto/MD5.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
namespace {
|
||||
|
||||
class QueryStringBuilder {
|
||||
|
||||
Reference in New Issue
Block a user