mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
refactor(Core): apply clang-tidy modernize-deprecated-headers (#3821)
This commit is contained in:
@@ -13,12 +13,12 @@
|
|||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cmath>
|
||||||
|
#include <cstring>
|
||||||
|
#include <limits>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <algorithm>
|
|
||||||
#include <limits>
|
|
||||||
#include <cmath>
|
|
||||||
#include "string.h"
|
|
||||||
|
|
||||||
#define MAX_STACK_SIZE 64
|
#define MAX_STACK_SIZE 64
|
||||||
|
|
||||||
|
|||||||
@@ -49,16 +49,16 @@
|
|||||||
|
|
||||||
#include "Define.h"
|
#include "Define.h"
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <cerrno>
|
||||||
|
#include <cmath>
|
||||||
|
#include <csignal>
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
|
#include <ctime>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <math.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
#if AC_PLATFORM == AC_PLATFORM_WINDOWS
|
#if AC_PLATFORM == AC_PLATFORM_WINDOWS
|
||||||
#define STRCASECMP stricmp
|
#define STRCASECMP stricmp
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
#ifndef LOCKEDQUEUE_H
|
#ifndef LOCKEDQUEUE_H
|
||||||
#define LOCKEDQUEUE_H
|
#define LOCKEDQUEUE_H
|
||||||
|
|
||||||
|
#include "Debugging/Errors.h"
|
||||||
#include <ace/Guard_T.h>
|
#include <ace/Guard_T.h>
|
||||||
#include <ace/Thread_Mutex.h>
|
#include <ace/Thread_Mutex.h>
|
||||||
|
#include <cassert>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <assert.h>
|
|
||||||
#include "Debugging/Errors.h"
|
|
||||||
|
|
||||||
namespace ACE_Based
|
namespace ACE_Based
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1196,8 +1196,8 @@ void PatcherRunnable::run() { }
|
|||||||
|
|
||||||
// Preload MD5 hashes of existing patch files on server
|
// Preload MD5 hashes of existing patch files on server
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
#include <cerrno>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <errno.h>
|
|
||||||
void Patcher::LoadPatchesInfo()
|
void Patcher::LoadPatchesInfo()
|
||||||
{
|
{
|
||||||
DIR* dirp;
|
DIR* dirp;
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
|
|
||||||
#define _CRT_SECURE_NO_DEPRECATE
|
#define _CRT_SECURE_NO_DEPRECATE
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <cstdlib>
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include "direct.h"
|
#include "direct.h"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ typedef unsigned __int32 uint32;
|
|||||||
typedef unsigned __int16 uint16;
|
typedef unsigned __int16 uint16;
|
||||||
typedef unsigned __int8 uint8;
|
typedef unsigned __int8 uint8;
|
||||||
#else
|
#else
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#ifndef uint64_t
|
#ifndef uint64_t
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
#ifndef MPQ_H
|
#ifndef MPQ_H
|
||||||
#define MPQ_H
|
#define MPQ_H
|
||||||
|
|
||||||
#include "loadlib/loadlib.h"
|
|
||||||
#include "libmpq/mpq.h"
|
#include "libmpq/mpq.h"
|
||||||
#include <string.h>
|
#include "loadlib/loadlib.h"
|
||||||
#include <ctype.h>
|
#include <cctype>
|
||||||
#include <vector>
|
#include <cstring>
|
||||||
#include <iostream>
|
|
||||||
#include <deque>
|
#include <deque>
|
||||||
|
#include <iostream>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <stddef.h>
|
#include <cstddef>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "vmapexport.h"
|
#include "vmapexport.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
bool ExtractSingleModel(std::string& fname)
|
bool ExtractSingleModel(std::string& fname)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ typedef unsigned __int32 uint32;
|
|||||||
typedef unsigned __int16 uint16;
|
typedef unsigned __int16 uint16;
|
||||||
typedef unsigned __int8 uint8;
|
typedef unsigned __int8 uint8;
|
||||||
#else
|
#else
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#ifndef uint64_t
|
#ifndef uint64_t
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
#ifndef MPQ_H
|
#ifndef MPQ_H
|
||||||
#define MPQ_H
|
#define MPQ_H
|
||||||
|
|
||||||
#include "loadlib/loadlib.h"
|
|
||||||
#include "libmpq/mpq.h"
|
#include "libmpq/mpq.h"
|
||||||
#include <string.h>
|
#include "loadlib/loadlib.h"
|
||||||
#include <ctype.h>
|
#include <cctype>
|
||||||
#include <vector>
|
#include <cstring>
|
||||||
#include <iostream>
|
|
||||||
#include <deque>
|
#include <deque>
|
||||||
|
#include <iostream>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define _CRT_SECURE_NO_DEPRECATE
|
#define _CRT_SECURE_NO_DEPRECATE
|
||||||
|
#include <cerrno>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <errno.h>
|
#include <vector>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
#include "mpq_libmpq04.h"
|
#include "mpq_libmpq04.h"
|
||||||
#include "wmo.h"
|
#include "wmo.h"
|
||||||
|
#include <cstdlib>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "stdlib.h"
|
|
||||||
|
|
||||||
class ADTFile;
|
class ADTFile;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user