diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-08 11:44:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-08 13:04:49 +0300 |
commit | b13beb3c1d965dd1a2a8dd3bdbea3d66242c3298 (patch) | |
tree | 09e94834279ae54b19403805e7f77766cf38bcce /src/utils | |
parent | 57c8ddb516edcf88de31a6bcd7724d4329839c0a (diff) | |
download | manaplus-b13beb3c1d965dd1a2a8dd3bdbea3d66242c3298.tar.gz manaplus-b13beb3c1d965dd1a2a8dd3bdbea3d66242c3298.tar.bz2 manaplus-b13beb3c1d965dd1a2a8dd3bdbea3d66242c3298.tar.xz manaplus-b13beb3c1d965dd1a2a8dd3bdbea3d66242c3298.zip |
remove unused system headers.
also remplace legacy headers.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/base64.cpp | 3 | ||||
-rw-r--r-- | src/utils/mathutils.h | 1 | ||||
-rw-r--r-- | src/utils/paths.cpp | 4 | ||||
-rw-r--r-- | src/utils/physfsrwops.cpp | 2 | ||||
-rw-r--r-- | src/utils/process.cpp | 1 | ||||
-rw-r--r-- | src/utils/stringutils.cpp | 6 | ||||
-rw-r--r-- | src/utils/translation/poparser.cpp | 2 | ||||
-rw-r--r-- | src/utils/translation/translationmanager.cpp | 2 |
8 files changed, 5 insertions, 16 deletions
diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp index 4e1061b6e..4ba721177 100644 --- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -29,8 +29,7 @@ #include "utils/base64.h" -#include <stdlib.h> -#include <string.h> +#include <string> #include "debug.h" diff --git a/src/utils/mathutils.h b/src/utils/mathutils.h index 094ae984c..01078baf3 100644 --- a/src/utils/mathutils.h +++ b/src/utils/mathutils.h @@ -24,7 +24,6 @@ #define UTILS_MATHUTILS_H #include <string> -#include <stdint.h> #include <cstring> #include "localconsts.h" diff --git a/src/utils/paths.cpp b/src/utils/paths.cpp index dbbdf6b31..e3992cd72 100644 --- a/src/utils/paths.cpp +++ b/src/utils/paths.cpp @@ -30,13 +30,11 @@ #include "resources/resourcemanager.h" -#include <stdlib.h> - #ifdef WIN32 #include "utils/specialfolder.h" #define realpath(N, R) _fullpath((R), (N), _MAX_PATH) #elif defined __OpenBSD__ -#include <limits.h> +#include <limits> #endif #ifdef ANDROID diff --git a/src/utils/physfsrwops.cpp b/src/utils/physfsrwops.cpp index aa5caf7c7..d6a1e891a 100644 --- a/src/utils/physfsrwops.cpp +++ b/src/utils/physfsrwops.cpp @@ -29,8 +29,6 @@ #include "utils/fuzzer.h" #include "utils/physfscheckutils.h" -#include <stdio.h> - #include "debug.h" #ifdef USE_SDL2 diff --git a/src/utils/process.cpp b/src/utils/process.cpp index 0675adae3..1bd8430b5 100644 --- a/src/utils/process.cpp +++ b/src/utils/process.cpp @@ -23,7 +23,6 @@ #include <cstdarg> #include <cstdio> -#include <stdlib.h> #include <unistd.h> #include "localconsts.h" diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 9c5a53791..e1486d91b 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -22,13 +22,13 @@ #include "utils/stringutils.h" -#include <string.h> +#include <string> #include <algorithm> #include <cstdarg> #include <cstdio> -#include <ctype.h> +#include <cctype> #include <list> -#include <time.h> +#include <ctime> #include "debug.h" diff --git a/src/utils/translation/poparser.cpp b/src/utils/translation/poparser.cpp index b2034903d..6405e5f85 100644 --- a/src/utils/translation/poparser.cpp +++ b/src/utils/translation/poparser.cpp @@ -26,8 +26,6 @@ #include "logger.h" -#include <stdlib.h> - #include "debug.h" PoParser::PoParser() : diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp index 6036ddeab..ebe7c8436 100644 --- a/src/utils/translation/translationmanager.cpp +++ b/src/utils/translation/translationmanager.cpp @@ -28,8 +28,6 @@ #include "resources/resourcemanager.h" -#include <stdlib.h> - #include "logger.h" #include "debug.h" |