refactor: include cleanups (#2392)

* refactor: include <memory> when using shared_ptr or unique_ptr

* refactor: include <cstdio> iff we use it

* refactor: include <cstring> iff we use it

* refactor: include <cstdlib> iff we use it

* refactor: include <string_view> or <string> iff we use it

* refactor: include <array> iff we use it

* refactor: include <ctime> iff we use it

* refactor: include <cctype> iff we use it

* refactor: misc #include cleanups in libtransmission
This commit is contained in:
Charles Kerr
2022-01-12 20:13:58 -06:00
committed by GitHub
parent a9284c0a6b
commit b0ee4007ff
91 changed files with 139 additions and 90 deletions

View File

@@ -21,6 +21,7 @@
#include <zlib.h>
#include "transmission.h"
#include "completion.h"
#include "crypto-utils.h"
#include "error.h"
@@ -28,9 +29,10 @@
#include "file.h"
#include "log.h"
#include "platform-quota.h" /* tr_device_info_get_disk_space() */
#include "quark.h"
#include "rpcimpl.h"
#include "session.h"
#include "session-id.h"
#include "session.h"
#include "stats.h"
#include "torrent.h"
#include "tr-assert.h"
@@ -38,8 +40,8 @@
#include "utils.h"
#include "variant.h"
#include "version.h"
#include "web.h"
#include "web-utils.h"
#include "web.h"
static auto constexpr RpcVersion = int64_t{ 17 };
static auto constexpr RpcVersionMin = int64_t{ 14 };