mirror of
https://github.com/transmission/transmission.git
synced 2025-12-27 05:38:40 +00:00
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:
@@ -9,6 +9,8 @@
|
||||
#include <array>
|
||||
#include <stdio.h> /* fprintf() */
|
||||
#include <stdlib.h> /* EXIT_FAILURE */
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
#include <event2/buffer.h>
|
||||
|
||||
@@ -7,13 +7,14 @@
|
||||
*/
|
||||
|
||||
#include <array>
|
||||
#include <assert.h>
|
||||
#include <ctype.h> /* isspace */
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h> /* strcmp */
|
||||
#include <cassert>
|
||||
#include <cctype> /* isspace */
|
||||
#include <cerrno>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring> /* strcmp */
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
#include <event2/buffer.h>
|
||||
|
||||
@@ -6,13 +6,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
#include <ctime>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <algorithm>
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user