mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
feat(CI/Codestyle): added codestyle check (#3668)
This commit is contained in:
@@ -364,7 +364,7 @@ protected:
|
||||
int numBVH2{0};
|
||||
|
||||
public:
|
||||
BuildStats()
|
||||
BuildStats()
|
||||
{
|
||||
for (int & i : numLeavesN) i = 0;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
#include "G3D/Set.h"
|
||||
#include "BoundingIntervalHierarchy.h"
|
||||
|
||||
|
||||
template<class T, class BoundsFunc = BoundsTrait<T>>
|
||||
class BIHWrap
|
||||
{
|
||||
|
||||
@@ -38,4 +38,3 @@ namespace MMAP
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -50,7 +50,6 @@ namespace MMAP
|
||||
MMapTileSet mmapLoadedTiles; // maps [map grid coords] to [dtTile]
|
||||
};
|
||||
|
||||
|
||||
typedef std::unordered_map<uint32, MMapData*> MMapDataSet;
|
||||
|
||||
// singleton class
|
||||
|
||||
@@ -408,7 +408,6 @@ namespace VMAP
|
||||
READ_OR_RETURN(&mogpflags, sizeof(uint32));
|
||||
READ_OR_RETURN(&GroupWMOID, sizeof(uint32));
|
||||
|
||||
|
||||
Vector3 vec1, vec2;
|
||||
READ_OR_RETURN(&vec1, sizeof(Vector3));
|
||||
|
||||
@@ -482,7 +481,6 @@ namespace VMAP
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
GroupModel_Raw::~GroupModel_Raw()
|
||||
{
|
||||
delete liquid;
|
||||
|
||||
@@ -63,7 +63,6 @@ namespace VMAP
|
||||
std::vector<G3D::Vector3> vertexArray;
|
||||
class WmoLiquid* liquid;
|
||||
|
||||
|
||||
GroupModel_Raw() : liquid(nullptr) { }
|
||||
|
||||
~GroupModel_Raw();
|
||||
|
||||
@@ -34,7 +34,6 @@ class GameObjectModel /*, public Intersectable*/
|
||||
VMAP::WorldModel* iModel;
|
||||
GameObject const* owner;
|
||||
|
||||
|
||||
GameObjectModel() : iModel(nullptr), owner(nullptr) { }
|
||||
bool initialize(const GameObject& go, const GameObjectDisplayInfoEntry& info);
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef _REGULAR_GRID_H
|
||||
#define _REGULAR_GRID_H
|
||||
|
||||
|
||||
#include <G3D/Ray.h>
|
||||
#include <G3D/Table.h>
|
||||
#include <G3D/BoundsTrait.h>
|
||||
@@ -143,7 +142,6 @@ public:
|
||||
bool isValid() const { return x >= 0 && x < CELL_NUMBER && y >= 0 && y < CELL_NUMBER;}
|
||||
};
|
||||
|
||||
|
||||
Node& getGridFor(float fx, float fy)
|
||||
{
|
||||
Cell c = Cell::ComputeCell(fx, fy);
|
||||
|
||||
@@ -35,4 +35,3 @@ void CleanStringForMysqlQuery(std::string& str)
|
||||
while ((n = str.find('"')) != str.npos) str.erase(n, 1);
|
||||
while ((n = str.find('\'')) != str.npos) str.erase(n, 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,4 +58,3 @@ void AuthCrypt::EncryptSend(uint8* data, size_t len)
|
||||
|
||||
_serverEncrypt.UpdateData(len, data);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
||||
*/
|
||||
|
||||
|
||||
#include "Cryptography/BigNumber.h"
|
||||
#include <openssl/bn.h>
|
||||
#include <openssl/crypto.h>
|
||||
@@ -186,4 +185,3 @@ char* BigNumber::AsDecStr() const
|
||||
{
|
||||
return BN_bn2dec(_bn);
|
||||
}
|
||||
|
||||
|
||||
@@ -88,4 +88,3 @@ private:
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -32,4 +32,3 @@ private:
|
||||
uint8 m_digest[SHA_DIGEST_LENGTH];
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -53,4 +53,3 @@ void SHA1Hash::Finalize(void)
|
||||
{
|
||||
SHA1_Final(mDigest, &mC);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,4 +35,3 @@ private:
|
||||
uint8 mDigest[SHA_DIGEST_LENGTH];
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -31,4 +31,3 @@ extern CharacterDatabaseWorkerPool CharacterDatabase;
|
||||
extern LoginDatabaseWorkerPool LoginDatabase;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -410,4 +410,3 @@ private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -451,7 +451,6 @@ PreparedStatementTask::PreparedStatementTask(PreparedStatement* stmt, PreparedQu
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
PreparedStatementTask::~PreparedStatementTask()
|
||||
{
|
||||
delete m_stmt;
|
||||
|
||||
@@ -99,4 +99,3 @@ private:
|
||||
typedef std::shared_ptr<PreparedResultSet> PreparedQueryResult;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -70,7 +70,6 @@ bool WheatyExceptionReport::alreadyCrashed;
|
||||
std::mutex WheatyExceptionReport::alreadyCrashedLock;
|
||||
WheatyExceptionReport::pRtlGetVersion WheatyExceptionReport::RtlGetVersion;
|
||||
|
||||
|
||||
// Declare global instance of class
|
||||
WheatyExceptionReport g_WheatyExceptionReport;
|
||||
|
||||
@@ -1230,7 +1229,6 @@ void WheatyExceptionReport::DumpTypeIndex(
|
||||
dataKind == DataIsStaticMember)
|
||||
continue;
|
||||
|
||||
|
||||
symbolDetails.top().HasChildren = true;
|
||||
if (!logChildren)
|
||||
{
|
||||
|
||||
@@ -75,7 +75,7 @@ private:
|
||||
LinkedListElement iLast;
|
||||
uint32 iSize{0};
|
||||
public:
|
||||
LinkedListHead()
|
||||
LinkedListHead()
|
||||
{
|
||||
// create empty list
|
||||
|
||||
|
||||
@@ -41,4 +41,3 @@ public:
|
||||
|
||||
//=====================================================
|
||||
#endif
|
||||
|
||||
|
||||
@@ -109,4 +109,3 @@ private:
|
||||
ContainerMapList<OBJECT_TYPES> i_elements;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -98,4 +98,3 @@ namespace acore
|
||||
//}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -153,4 +153,3 @@ namespace acore
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -96,4 +96,3 @@ private:
|
||||
VISITOR& i_visitor;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -29,4 +29,3 @@ struct TypeList
|
||||
#define TYPELIST_4(T1, T2, T3, T4) TypeList<T1, TYPELIST_3(T2, T3, T4) >
|
||||
#define TYPELIST_5(T1, T2, T3, T4, T5) TypeList<T1, TYPELIST_4(T2, T3, T4, T5) >
|
||||
#endif
|
||||
|
||||
|
||||
@@ -127,5 +127,4 @@ public:
|
||||
virtual bool GetSQLDriverQueryLogging() const = 0;
|
||||
};
|
||||
|
||||
|
||||
#endif //AZEROTHCORE_ILOG_H
|
||||
|
||||
@@ -64,7 +64,6 @@ Log::~Log()
|
||||
miscLogFile = NULL;
|
||||
}
|
||||
|
||||
|
||||
std::unique_ptr<ILog>& getLogInstance()
|
||||
{
|
||||
static std::unique_ptr<ILog> instance = std::make_unique<Log>();
|
||||
|
||||
@@ -118,4 +118,3 @@ std::unique_ptr<ILog>& getLogInstance();
|
||||
#define sLog getLogInstance()
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
const static size_t DEFAULT_SIZE = 0x1000;
|
||||
|
||||
// constructor
|
||||
ByteBuffer()
|
||||
ByteBuffer()
|
||||
{
|
||||
_storage.reserve(DEFAULT_SIZE);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ class WorldPacket : public ByteBuffer
|
||||
{
|
||||
public:
|
||||
// just container for later use
|
||||
WorldPacket() : ByteBuffer(0)
|
||||
WorldPacket() : ByteBuffer(0)
|
||||
{
|
||||
}
|
||||
explicit WorldPacket(uint16 opcode, size_t res = 200) : ByteBuffer(res), m_opcode(opcode) { }
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace ACE_Based
|
||||
|
||||
//! Create a LockedQueue.
|
||||
LockedQueue()
|
||||
|
||||
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -117,7 +117,6 @@ void Thread::setPriority(Priority priority)
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
// remove this ASSERT in case you don't want to know is thread priority change was successful or not
|
||||
ASSERT(_ok);
|
||||
}
|
||||
|
||||
@@ -53,4 +53,3 @@ inline void EndianConvertReverse(uint8&) { }
|
||||
inline void EndianConvertReverse( int8&) { }
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-GPL2
|
||||
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
|
||||
*/
|
||||
|
||||
#ifndef ACORE_OPTIONAL_H
|
||||
|
||||
@@ -249,4 +249,3 @@ bool WinServiceRun()
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ bool WinServiceRun();
|
||||
|
||||
#endif // _WIN32_SERVICE_
|
||||
#endif // _WIN32
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ struct IntervalTimer
|
||||
public:
|
||||
|
||||
IntervalTimer()
|
||||
|
||||
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user