Merge pull request #11147 from LeGuybrush/master
Core/Code: Unify [more] codestyle for brackets: )\n{\n} to ) { }.
This commit is contained in:
@@ -1096,9 +1096,7 @@ PatcherRunnable::PatcherRunnable(class AuthSocket* as)
|
||||
}
|
||||
|
||||
// Send content of patch file to the client
|
||||
void PatcherRunnable::run()
|
||||
{
|
||||
}
|
||||
void PatcherRunnable::run() { }
|
||||
|
||||
// Preload MD5 hashes of existing patch files on server
|
||||
#ifndef _WIN32
|
||||
|
||||
@@ -107,9 +107,7 @@ struct DynTreeImpl : public ParentTree/*, public Intersectable*/
|
||||
int unbalanced_times;
|
||||
};
|
||||
|
||||
DynamicMapTree::DynamicMapTree() : impl(new DynTreeImpl())
|
||||
{
|
||||
}
|
||||
DynamicMapTree::DynamicMapTree() : impl(new DynTreeImpl()) { }
|
||||
|
||||
DynamicMapTree::~DynamicMapTree()
|
||||
{
|
||||
|
||||
@@ -31,9 +31,7 @@ int GuardAI::Permissible(Creature const* creature)
|
||||
return PERMIT_BASE_NO;
|
||||
}
|
||||
|
||||
GuardAI::GuardAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
}
|
||||
GuardAI::GuardAI(Creature* creature) : ScriptedAI(creature) { }
|
||||
|
||||
bool GuardAI::CanSeeAlways(WorldObject const* obj)
|
||||
{
|
||||
|
||||
@@ -40,9 +40,7 @@ TotemAI::TotemAI(Creature* c) : CreatureAI(c), i_victimGuid(0)
|
||||
ASSERT(c->IsTotem());
|
||||
}
|
||||
|
||||
void TotemAI::MoveInLineOfSight(Unit* /*who*/)
|
||||
{
|
||||
}
|
||||
void TotemAI::MoveInLineOfSight(Unit* /*who*/) { }
|
||||
|
||||
void TotemAI::EnterEvadeMode()
|
||||
{
|
||||
|
||||
@@ -448,9 +448,7 @@ BossAI::BossAI(Creature* creature, uint32 bossId) : ScriptedAI(creature),
|
||||
instance(creature->GetInstanceScript()),
|
||||
summons(creature),
|
||||
_boundary(instance ? instance->GetBossBoundary(bossId) : NULL),
|
||||
_bossId(bossId)
|
||||
{
|
||||
}
|
||||
_bossId(bossId) { }
|
||||
|
||||
void BossAI::_Reset()
|
||||
{
|
||||
@@ -584,9 +582,7 @@ void BossAI::UpdateAI(uint32 diff)
|
||||
|
||||
WorldBossAI::WorldBossAI(Creature* creature) :
|
||||
ScriptedAI(creature),
|
||||
summons(creature)
|
||||
{
|
||||
}
|
||||
summons(creature) { }
|
||||
|
||||
void WorldBossAI::_Reset()
|
||||
{
|
||||
|
||||
@@ -674,9 +674,7 @@ void SmartAI::SummonedCreatureDespawn(Creature* unit)
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_SUMMON_DESPAWNED, unit);
|
||||
}
|
||||
|
||||
void SmartAI::UpdateAIWhileCharmed(const uint32 /*diff*/)
|
||||
{
|
||||
}
|
||||
void SmartAI::UpdateAIWhileCharmed(const uint32 /*diff*/) { }
|
||||
|
||||
void SmartAI::CorpseRemoved(uint32& respawnDelay)
|
||||
{
|
||||
@@ -720,9 +718,7 @@ void SmartAI::SetData(uint32 id, uint32 value)
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_DATA_SET, NULL, id, value);
|
||||
}
|
||||
|
||||
void SmartAI::SetGUID(uint64 /*guid*/, int32 /*id*/)
|
||||
{
|
||||
}
|
||||
void SmartAI::SetGUID(uint64 /*guid*/, int32 /*id*/) { }
|
||||
|
||||
uint64 SmartAI::GetGUID(int32 /*id*/) const
|
||||
{
|
||||
@@ -755,9 +751,7 @@ void SmartAI::sGossipSelect(Player* player, uint32 sender, uint32 action)
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_GOSSIP_SELECT, player, sender, action);
|
||||
}
|
||||
|
||||
void SmartAI::sGossipSelectCode(Player* /*player*/, uint32 /*sender*/, uint32 /*action*/, const char* /*code*/)
|
||||
{
|
||||
}
|
||||
void SmartAI::sGossipSelectCode(Player* /*player*/, uint32 /*sender*/, uint32 /*action*/, const char* /*code*/) { }
|
||||
|
||||
void SmartAI::sQuestAccept(Player* player, Quest const* quest)
|
||||
{
|
||||
|
||||
@@ -3363,43 +3363,29 @@ void SmartScript::OnMoveInLineOfSight(Unit* who)
|
||||
}
|
||||
|
||||
/*
|
||||
void SmartScript::UpdateAIWhileCharmed(const uint32 diff)
|
||||
{
|
||||
}
|
||||
void SmartScript::UpdateAIWhileCharmed(const uint32 diff) { }
|
||||
|
||||
void SmartScript::DoAction(const int32 param)
|
||||
{
|
||||
}
|
||||
void SmartScript::DoAction(const int32 param) { }
|
||||
|
||||
uint32 SmartScript::GetData(uint32 id)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SmartScript::SetData(uint32 id, uint32 value)
|
||||
{
|
||||
}
|
||||
void SmartScript::SetData(uint32 id, uint32 value) { }
|
||||
|
||||
void SmartScript::SetGUID(uint64 guid, int32 id)
|
||||
{
|
||||
}
|
||||
void SmartScript::SetGUID(uint64 guid, int32 id) { }
|
||||
|
||||
uint64 SmartScript::GetGUID(int32 id)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SmartScript::MovepointStart(uint32 id)
|
||||
{
|
||||
}
|
||||
void SmartScript::MovepointStart(uint32 id) { }
|
||||
|
||||
void SmartScript::SetRun(bool run)
|
||||
{
|
||||
}
|
||||
void SmartScript::SetRun(bool run) { }
|
||||
|
||||
void SmartScript::SetMovePathEndAction(SMART_ACTION action)
|
||||
{
|
||||
}
|
||||
void SmartScript::SetMovePathEndAction(SMART_ACTION action) { }
|
||||
|
||||
uint32 SmartScript::DoChat(int8 id, uint64 whisperGuid)
|
||||
{
|
||||
|
||||
@@ -25,9 +25,7 @@
|
||||
#include "SHA1.h"
|
||||
#include "WorldSession.h"
|
||||
|
||||
AccountMgr::AccountMgr()
|
||||
{
|
||||
}
|
||||
AccountMgr::AccountMgr() { }
|
||||
|
||||
AccountMgr::~AccountMgr()
|
||||
{
|
||||
|
||||
@@ -437,9 +437,7 @@ AchievementMgr::AchievementMgr(Player* player)
|
||||
m_player = player;
|
||||
}
|
||||
|
||||
AchievementMgr::~AchievementMgr()
|
||||
{
|
||||
}
|
||||
AchievementMgr::~AchievementMgr() { }
|
||||
|
||||
void AchievementMgr::Reset()
|
||||
{
|
||||
|
||||
@@ -37,9 +37,7 @@ enum eAuctionHouse
|
||||
AH_MINIMUM_DEPOSIT = 100
|
||||
};
|
||||
|
||||
AuctionHouseMgr::AuctionHouseMgr()
|
||||
{
|
||||
}
|
||||
AuctionHouseMgr::AuctionHouseMgr() { }
|
||||
|
||||
AuctionHouseMgr::~AuctionHouseMgr()
|
||||
{
|
||||
|
||||
@@ -1894,9 +1894,7 @@ int32 Battleground::GetObjectType(uint64 guid)
|
||||
return -1;
|
||||
}
|
||||
|
||||
void Battleground::HandleKillUnit(Creature* /*victim*/, Player* /*killer*/)
|
||||
{
|
||||
}
|
||||
void Battleground::HandleKillUnit(Creature* /*victim*/, Player* /*killer*/) { }
|
||||
|
||||
void Battleground::CheckArenaAfterTimerConditions()
|
||||
{
|
||||
|
||||
@@ -41,9 +41,7 @@ BattlegroundAB::BattlegroundAB()
|
||||
StartMessageIds[BG_STARTING_EVENT_FOURTH] = LANG_BG_AB_HAS_BEGUN;
|
||||
}
|
||||
|
||||
BattlegroundAB::~BattlegroundAB()
|
||||
{
|
||||
}
|
||||
BattlegroundAB::~BattlegroundAB() { }
|
||||
|
||||
void BattlegroundAB::PostUpdateImpl(uint32 diff)
|
||||
{
|
||||
|
||||
@@ -39,9 +39,7 @@ BattlegroundAV::BattlegroundAV()
|
||||
StartMessageIds[BG_STARTING_EVENT_FOURTH] = LANG_BG_AV_HAS_BEGUN;
|
||||
}
|
||||
|
||||
BattlegroundAV::~BattlegroundAV()
|
||||
{
|
||||
}
|
||||
BattlegroundAV::~BattlegroundAV() { }
|
||||
|
||||
uint16 BattlegroundAV::GetBonusHonor(uint8 kills) /// @todo move this function to Battleground.cpp (needs to find a way to get m_MaxLevel)
|
||||
{
|
||||
|
||||
@@ -50,9 +50,7 @@ BattlegroundEY::BattlegroundEY()
|
||||
StartMessageIds[BG_STARTING_EVENT_FOURTH] = LANG_BG_EY_HAS_BEGUN;
|
||||
}
|
||||
|
||||
BattlegroundEY::~BattlegroundEY()
|
||||
{
|
||||
}
|
||||
BattlegroundEY::~BattlegroundEY() { }
|
||||
|
||||
void BattlegroundEY::PostUpdateImpl(uint32 diff)
|
||||
{
|
||||
|
||||
@@ -57,9 +57,7 @@ BattlegroundIC::BattlegroundIC()
|
||||
gunshipAlliance = NULL;
|
||||
}
|
||||
|
||||
BattlegroundIC::~BattlegroundIC()
|
||||
{
|
||||
}
|
||||
BattlegroundIC::~BattlegroundIC() { }
|
||||
|
||||
void BattlegroundIC::HandlePlayerResurrect(Player* player)
|
||||
{
|
||||
@@ -842,9 +840,7 @@ void BattlegroundIC::DestroyGate(Player* player, GameObject* go)
|
||||
SendMessage2ToAll(lang_entry, CHAT_MSG_BG_SYSTEM_NEUTRAL, NULL, (player->GetTeamId() == TEAM_ALLIANCE ? LANG_BG_IC_HORDE_KEEP : LANG_BG_IC_ALLIANCE_KEEP));
|
||||
}
|
||||
|
||||
void BattlegroundIC::EventPlayerDamagedGO(Player* /*player*/, GameObject* /*go*/, uint32 /*eventType*/)
|
||||
{
|
||||
}
|
||||
void BattlegroundIC::EventPlayerDamagedGO(Player* /*player*/, GameObject* /*go*/, uint32 /*eventType*/) { }
|
||||
|
||||
WorldSafeLocsEntry const* BattlegroundIC::GetClosestGraveYard(Player* player)
|
||||
{
|
||||
|
||||
@@ -73,9 +73,7 @@ void BattlegroundRV::PostUpdateImpl(uint32 diff)
|
||||
setTimer(getTimer() - diff);
|
||||
}
|
||||
|
||||
void BattlegroundRV::StartingEventCloseDoors()
|
||||
{
|
||||
}
|
||||
void BattlegroundRV::StartingEventCloseDoors() { }
|
||||
|
||||
void BattlegroundRV::StartingEventOpenDoors()
|
||||
{
|
||||
|
||||
@@ -44,9 +44,7 @@ BattlegroundSA::BattlegroundSA()
|
||||
memset(&GraveyardStatus, 0, sizeof(GraveyardStatus));
|
||||
}
|
||||
|
||||
BattlegroundSA::~BattlegroundSA()
|
||||
{
|
||||
}
|
||||
BattlegroundSA::~BattlegroundSA() { }
|
||||
|
||||
void BattlegroundSA::Reset()
|
||||
{
|
||||
@@ -392,13 +390,9 @@ void BattlegroundSA::PostUpdateImpl(uint32 diff)
|
||||
}
|
||||
}
|
||||
|
||||
void BattlegroundSA::StartingEventCloseDoors()
|
||||
{
|
||||
}
|
||||
void BattlegroundSA::StartingEventCloseDoors() { }
|
||||
|
||||
void BattlegroundSA::StartingEventOpenDoors()
|
||||
{
|
||||
}
|
||||
void BattlegroundSA::StartingEventOpenDoors() { }
|
||||
|
||||
void BattlegroundSA::FillInitialWorldStates(WorldPacket& data)
|
||||
{
|
||||
@@ -472,9 +466,7 @@ void BattlegroundSA::AddPlayer(Player* player)
|
||||
PlayerScores[player->GetGUID()] = sc;
|
||||
}
|
||||
|
||||
void BattlegroundSA::RemovePlayer(Player* /*player*/, uint64 /*guid*/, uint32 /*team*/)
|
||||
{
|
||||
}
|
||||
void BattlegroundSA::RemovePlayer(Player* /*player*/, uint64 /*guid*/, uint32 /*team*/) { }
|
||||
|
||||
void BattlegroundSA::HandleAreaTrigger(Player* /*Source*/, uint32 /*Trigger*/)
|
||||
{
|
||||
|
||||
@@ -56,9 +56,7 @@ BattlegroundWS::BattlegroundWS()
|
||||
_flagDebuffState = 0;
|
||||
}
|
||||
|
||||
BattlegroundWS::~BattlegroundWS()
|
||||
{
|
||||
}
|
||||
BattlegroundWS::~BattlegroundWS() { }
|
||||
|
||||
void BattlegroundWS::PostUpdateImpl(uint32 diff)
|
||||
{
|
||||
|
||||
@@ -34,9 +34,7 @@ CalendarEvent::~CalendarEvent()
|
||||
sCalendarMgr->FreeEventId(_eventId);
|
||||
}
|
||||
|
||||
CalendarMgr::CalendarMgr()
|
||||
{
|
||||
}
|
||||
CalendarMgr::CalendarMgr() { }
|
||||
|
||||
CalendarMgr::~CalendarMgr()
|
||||
{
|
||||
|
||||
@@ -536,9 +536,7 @@ bool GlyphChatLink::Initialize(std::istringstream& iss)
|
||||
return true;
|
||||
}
|
||||
|
||||
LinkExtractor::LinkExtractor(const char* msg) : _iss(msg)
|
||||
{
|
||||
}
|
||||
LinkExtractor::LinkExtractor(const char* msg) : _iss(msg) { }
|
||||
|
||||
LinkExtractor::~LinkExtractor()
|
||||
{
|
||||
|
||||
@@ -390,9 +390,7 @@ HostileReference* ThreatContainer::selectNextVictim(Creature* attacker, HostileR
|
||||
//=================== ThreatManager ==========================
|
||||
//============================================================
|
||||
|
||||
ThreatManager::ThreatManager(Unit* owner) : iCurrentVictim(NULL), iOwner(owner), iUpdateTimer(THREAT_UPDATE_INTERVAL)
|
||||
{
|
||||
}
|
||||
ThreatManager::ThreatManager(Unit* owner) : iCurrentVictim(NULL), iOwner(owner), iUpdateTimer(THREAT_UPDATE_INTERVAL) { }
|
||||
|
||||
//============================================================
|
||||
|
||||
|
||||
@@ -515,9 +515,7 @@ uint32 Condition::GetMaxAvailableConditionTargets()
|
||||
}
|
||||
}
|
||||
|
||||
ConditionMgr::ConditionMgr()
|
||||
{
|
||||
}
|
||||
ConditionMgr::ConditionMgr() { }
|
||||
|
||||
ConditionMgr::~ConditionMgr()
|
||||
{
|
||||
|
||||
@@ -24,9 +24,7 @@ LfgPlayerData::LfgPlayerData(): m_State(LFG_STATE_NONE), m_OldState(LFG_STATE_NO
|
||||
m_Team(0), m_Group(0), m_Roles(0), m_Comment("")
|
||||
{ }
|
||||
|
||||
LfgPlayerData::~LfgPlayerData()
|
||||
{
|
||||
}
|
||||
LfgPlayerData::~LfgPlayerData() { }
|
||||
|
||||
void LfgPlayerData::SetState(LfgState state)
|
||||
{
|
||||
|
||||
@@ -32,9 +32,7 @@
|
||||
namespace lfg
|
||||
{
|
||||
|
||||
LFGPlayerScript::LFGPlayerScript() : PlayerScript("LFGPlayerScript")
|
||||
{
|
||||
}
|
||||
LFGPlayerScript::LFGPlayerScript() : PlayerScript("LFGPlayerScript") { }
|
||||
|
||||
void LFGPlayerScript::OnLevelChanged(Player* player, uint8 /*oldLevel*/)
|
||||
{
|
||||
@@ -120,9 +118,7 @@ void LFGPlayerScript::OnMapChanged(Player* player)
|
||||
player->RemoveAurasDueToSpell(LFG_SPELL_LUCK_OF_THE_DRAW);
|
||||
}
|
||||
|
||||
LFGGroupScript::LFGGroupScript() : GroupScript("LFGGroupScript")
|
||||
{
|
||||
}
|
||||
LFGGroupScript::LFGGroupScript() : GroupScript("LFGGroupScript") { }
|
||||
|
||||
void LFGGroupScript::OnAddMember(Group* group, uint64 guid)
|
||||
{
|
||||
|
||||
@@ -41,9 +41,7 @@ Corpse::Corpse(CorpseType type) : WorldObject(type != CORPSE_BONES), m_type(type
|
||||
lootRecipient = NULL;
|
||||
}
|
||||
|
||||
Corpse::~Corpse()
|
||||
{
|
||||
}
|
||||
Corpse::~Corpse() { }
|
||||
|
||||
void Corpse::AddToWorld()
|
||||
{
|
||||
|
||||
@@ -25,9 +25,7 @@
|
||||
#include "World.h"
|
||||
#include "zlib.h"
|
||||
|
||||
UpdateData::UpdateData() : m_blockCount(0)
|
||||
{
|
||||
}
|
||||
UpdateData::UpdateData() : m_blockCount(0) { }
|
||||
|
||||
void UpdateData::AddOutOfRangeGUID(std::set<uint64>& guids)
|
||||
{
|
||||
|
||||
@@ -22193,9 +22193,7 @@ inline void UpdateVisibilityOf_helper(std::set<uint64>& s64, Player* target, std
|
||||
}
|
||||
|
||||
template<class T>
|
||||
inline void BeforeVisibilityDestroy(T* /*t*/, Player* /*p*/)
|
||||
{
|
||||
}
|
||||
inline void BeforeVisibilityDestroy(T* /*t*/, Player* /*p*/) { }
|
||||
|
||||
template<>
|
||||
inline void BeforeVisibilityDestroy<Creature>(Creature* t, Player* p)
|
||||
|
||||
@@ -191,13 +191,9 @@ bool PlayerSocial::HasIgnore(uint32 ignore_guid)
|
||||
return false;
|
||||
}
|
||||
|
||||
SocialMgr::SocialMgr()
|
||||
{
|
||||
}
|
||||
SocialMgr::SocialMgr() { }
|
||||
|
||||
SocialMgr::~SocialMgr()
|
||||
{
|
||||
}
|
||||
SocialMgr::~SocialMgr() { }
|
||||
|
||||
void SocialMgr::GetFriendInfo(Player* player, uint32 friendGUID, FriendInfo &friendInfo)
|
||||
{
|
||||
|
||||
@@ -13570,9 +13570,7 @@ CharmInfo::CharmInfo(Unit* unit)
|
||||
}
|
||||
}
|
||||
|
||||
CharmInfo::~CharmInfo()
|
||||
{
|
||||
}
|
||||
CharmInfo::~CharmInfo() { }
|
||||
|
||||
void CharmInfo::RestoreState()
|
||||
{
|
||||
|
||||
@@ -1493,9 +1493,7 @@ void GameEventMgr::UpdateWorldStates(uint16 event_id, bool Activate)
|
||||
}
|
||||
}
|
||||
|
||||
GameEventMgr::GameEventMgr() : isSystemInit(false)
|
||||
{
|
||||
}
|
||||
GameEventMgr::GameEventMgr() : isSystemInit(false) { }
|
||||
|
||||
void GameEventMgr::HandleQuestComplete(uint32 quest_id)
|
||||
{
|
||||
|
||||
@@ -39,13 +39,9 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
ObjectAccessor::ObjectAccessor()
|
||||
{
|
||||
}
|
||||
ObjectAccessor::ObjectAccessor() { }
|
||||
|
||||
ObjectAccessor::~ObjectAccessor()
|
||||
{
|
||||
}
|
||||
ObjectAccessor::~ObjectAccessor() { }
|
||||
|
||||
template<class T> T* ObjectAccessor::GetObjectInWorld(uint32 mapid, float x, float y, uint64 guid, T* /*fake*/)
|
||||
{
|
||||
|
||||
@@ -77,9 +77,7 @@ class ObjectWorldLoader
|
||||
uint32 i_corpses;
|
||||
};
|
||||
|
||||
template<class T> void ObjectGridLoader::SetObjectCell(T* /*obj*/, CellCoord const& /*cellCoord*/)
|
||||
{
|
||||
}
|
||||
template<class T> void ObjectGridLoader::SetObjectCell(T* /*obj*/, CellCoord const& /*cellCoord*/) { }
|
||||
|
||||
template<> void ObjectGridLoader::SetObjectCell(Creature* obj, CellCoord const& cellCoord)
|
||||
{
|
||||
|
||||
@@ -39,13 +39,9 @@
|
||||
Roll::Roll(uint64 _guid, LootItem const& li) : itemGUID(_guid), itemid(li.itemid),
|
||||
itemRandomPropId(li.randomPropertyId), itemRandomSuffix(li.randomSuffix), itemCount(li.count),
|
||||
totalPlayersRolling(0), totalNeed(0), totalGreed(0), totalPass(0), itemSlot(0),
|
||||
rollVoteMask(ROLL_ALL_TYPE_NO_DISENCHANT)
|
||||
{
|
||||
}
|
||||
rollVoteMask(ROLL_ALL_TYPE_NO_DISENCHANT) { }
|
||||
|
||||
Roll::~Roll()
|
||||
{
|
||||
}
|
||||
Roll::~Roll() { }
|
||||
|
||||
void Roll::setLoot(Loot* pLoot)
|
||||
{
|
||||
|
||||
@@ -22,13 +22,9 @@
|
||||
#include "Opcodes.h"
|
||||
#include "Log.h"
|
||||
|
||||
AddonHandler::AddonHandler()
|
||||
{
|
||||
}
|
||||
AddonHandler::AddonHandler() { }
|
||||
|
||||
AddonHandler::~AddonHandler()
|
||||
{
|
||||
}
|
||||
AddonHandler::~AddonHandler() { }
|
||||
|
||||
bool AddonHandler::BuildAddonPacket(WorldPacket* source, WorldPacket* target)
|
||||
{
|
||||
|
||||
@@ -476,9 +476,7 @@ void WorldSession::HandlePetCancelAuraOpcode(WorldPacket& recvPacket)
|
||||
pet->AddCreatureSpellCooldown(spellId);
|
||||
}
|
||||
|
||||
void WorldSession::HandleCancelGrowthAuraOpcode(WorldPacket& /*recvPacket*/)
|
||||
{
|
||||
}
|
||||
void WorldSession::HandleCancelGrowthAuraOpcode(WorldPacket& /*recvPacket*/) { }
|
||||
|
||||
void WorldSession::HandleCancelAutoRepeatSpellOpcode(WorldPacket& /*recvPacket*/)
|
||||
{
|
||||
|
||||
@@ -163,9 +163,7 @@ void InstanceSaveManager::RemoveInstanceSave(uint32 InstanceId)
|
||||
|
||||
InstanceSave::InstanceSave(uint16 MapId, uint32 InstanceId, Difficulty difficulty, time_t resetTime, bool canReset)
|
||||
: m_resetTime(resetTime), m_instanceid(InstanceId), m_mapid(MapId),
|
||||
m_difficulty(difficulty), m_canReset(canReset), m_toDelete(false)
|
||||
{
|
||||
}
|
||||
m_difficulty(difficulty), m_canReset(canReset), m_toDelete(false) { }
|
||||
|
||||
InstanceSave::~InstanceSave()
|
||||
{
|
||||
|
||||
@@ -62,9 +62,7 @@ MailSender::MailSender(CalendarEvent* sender)
|
||||
}
|
||||
|
||||
MailSender::MailSender(AuctionEntry* sender)
|
||||
: m_messageType(MAIL_AUCTION), m_senderId(sender->GetHouseId()), m_stationery(MAIL_STATIONERY_AUCTION)
|
||||
{
|
||||
}
|
||||
: m_messageType(MAIL_AUCTION), m_senderId(sender->GetHouseId()), m_stationery(MAIL_STATIONERY_AUCTION) { }
|
||||
|
||||
MailSender::MailSender(Player* sender)
|
||||
{
|
||||
@@ -73,9 +71,7 @@ MailSender::MailSender(Player* sender)
|
||||
m_senderId = sender->GetGUIDLow();
|
||||
}
|
||||
|
||||
MailReceiver::MailReceiver(Player* receiver) : m_receiver(receiver), m_receiver_lowguid(receiver->GetGUIDLow())
|
||||
{
|
||||
}
|
||||
MailReceiver::MailReceiver(Player* receiver) : m_receiver(receiver), m_receiver_lowguid(receiver->GetGUIDLow()) { }
|
||||
|
||||
MailReceiver::MailReceiver(Player* receiver, uint32 receiver_lowguid) : m_receiver(receiver), m_receiver_lowguid(receiver_lowguid)
|
||||
{
|
||||
|
||||
@@ -295,9 +295,7 @@ void Map::AddToGrid(GameObject* obj, Cell const& cell)
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void Map::SwitchGridContainers(T* /*obj*/, bool /*on*/)
|
||||
{
|
||||
}
|
||||
void Map::SwitchGridContainers(T* /*obj*/, bool /*on*/) { }
|
||||
|
||||
template<>
|
||||
void Map::SwitchGridContainers(Creature* obj, bool on)
|
||||
@@ -492,9 +490,7 @@ bool Map::AddPlayerToMap(Player* player)
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void Map::InitializeObject(T* /*obj*/)
|
||||
{
|
||||
}
|
||||
void Map::InitializeObject(T* /*obj*/) { }
|
||||
|
||||
template<>
|
||||
void Map::InitializeObject(Creature* obj)
|
||||
@@ -2561,9 +2557,7 @@ void Map::AddToActive(DynamicObject* d)
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void Map::RemoveFromActive(T* /*obj*/)
|
||||
{
|
||||
}
|
||||
void Map::RemoveFromActive(T* /*obj*/) { }
|
||||
|
||||
template <>
|
||||
void Map::RemoveFromActive(Creature* c)
|
||||
|
||||
@@ -45,9 +45,7 @@ MapManager::MapManager()
|
||||
i_timer.SetInterval(sWorld->getIntConfig(CONFIG_INTERVAL_MAPUPDATE));
|
||||
}
|
||||
|
||||
MapManager::~MapManager()
|
||||
{
|
||||
}
|
||||
MapManager::~MapManager() { }
|
||||
|
||||
void MapManager::Initialize()
|
||||
{
|
||||
@@ -296,9 +294,7 @@ void MapManager::Update(uint32 diff)
|
||||
i_timer.SetCurrent(0);
|
||||
}
|
||||
|
||||
void MapManager::DoDelayedMovesAndRemoves()
|
||||
{
|
||||
}
|
||||
void MapManager::DoDelayedMovesAndRemoves() { }
|
||||
|
||||
bool MapManager::ExistMapAndVMap(uint32 mapid, float x, float y)
|
||||
{
|
||||
|
||||
@@ -58,9 +58,7 @@ class MapUpdateRequest : public ACE_Method_Request
|
||||
};
|
||||
|
||||
MapUpdater::MapUpdater():
|
||||
m_executor(), m_mutex(), m_condition(m_mutex), pending_requests(0)
|
||||
{
|
||||
}
|
||||
m_executor(), m_mutex(), m_condition(m_mutex), pending_requests(0) { }
|
||||
|
||||
MapUpdater::~MapUpdater()
|
||||
{
|
||||
|
||||
@@ -32,13 +32,9 @@ TransportTemplate::~TransportTemplate()
|
||||
delete *itr;
|
||||
}
|
||||
|
||||
TransportMgr::TransportMgr()
|
||||
{
|
||||
}
|
||||
TransportMgr::TransportMgr() { }
|
||||
|
||||
TransportMgr::~TransportMgr()
|
||||
{
|
||||
}
|
||||
TransportMgr::~TransportMgr() { }
|
||||
|
||||
void TransportMgr::Unload()
|
||||
{
|
||||
|
||||
@@ -18,6 +18,4 @@
|
||||
|
||||
#include "MovementGenerator.h"
|
||||
|
||||
MovementGenerator::~MovementGenerator()
|
||||
{
|
||||
}
|
||||
MovementGenerator::~MovementGenerator() { }
|
||||
|
||||
@@ -39,9 +39,7 @@ void HomeMovementGenerator<Creature>::DoFinalize(Creature* owner)
|
||||
}
|
||||
}
|
||||
|
||||
void HomeMovementGenerator<Creature>::DoReset(Creature*)
|
||||
{
|
||||
}
|
||||
void HomeMovementGenerator<Creature>::DoReset(Creature*) { }
|
||||
|
||||
void HomeMovementGenerator<Creature>::_setTargetLocation(Creature* owner)
|
||||
{
|
||||
|
||||
@@ -102,9 +102,7 @@ void PointMovementGenerator<T>::DoReset(T* unit)
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void PointMovementGenerator<T>::MovementInform(T* /*unit*/)
|
||||
{
|
||||
}
|
||||
void PointMovementGenerator<T>::MovementInform(T* /*unit*/) { }
|
||||
|
||||
template <> void PointMovementGenerator<Creature>::MovementInform(Creature* unit)
|
||||
{
|
||||
|
||||
@@ -216,9 +216,7 @@ void ChaseMovementGenerator<T>::DoReset(T* owner)
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void ChaseMovementGenerator<T>::MovementInform(T* /*unit*/)
|
||||
{
|
||||
}
|
||||
void ChaseMovementGenerator<T>::MovementInform(T* /*unit*/) { }
|
||||
|
||||
template<>
|
||||
void ChaseMovementGenerator<Creature>::MovementInform(Creature* unit)
|
||||
@@ -290,9 +288,7 @@ void FollowMovementGenerator<T>::DoReset(T* owner)
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void FollowMovementGenerator<T>::MovementInform(T* /*unit*/)
|
||||
{
|
||||
}
|
||||
void FollowMovementGenerator<T>::MovementInform(T* /*unit*/) { }
|
||||
|
||||
template<>
|
||||
void FollowMovementGenerator<Creature>::MovementInform(Creature* unit)
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
#include "MapManager.h"
|
||||
#include "Log.h"
|
||||
|
||||
WaypointMgr::WaypointMgr()
|
||||
{
|
||||
}
|
||||
WaypointMgr::WaypointMgr() { }
|
||||
|
||||
WaypointMgr::~WaypointMgr()
|
||||
{
|
||||
|
||||
@@ -231,9 +231,7 @@ void OutdoorPvP::DeleteSpawns()
|
||||
m_capturePoints.clear();
|
||||
}
|
||||
|
||||
OutdoorPvP::OutdoorPvP() : m_sendUpdate(true)
|
||||
{
|
||||
}
|
||||
OutdoorPvP::OutdoorPvP() : m_sendUpdate(true) { }
|
||||
|
||||
OutdoorPvP::~OutdoorPvP()
|
||||
{
|
||||
@@ -257,9 +255,7 @@ void OutdoorPvP::HandlePlayerLeaveZone(Player* player, uint32 /*zone*/)
|
||||
TC_LOG_DEBUG(LOG_FILTER_OUTDOORPVP, "Player %s left an outdoorpvp zone", player->GetName().c_str());
|
||||
}
|
||||
|
||||
void OutdoorPvP::HandlePlayerResurrects(Player* /*player*/, uint32 /*zone*/)
|
||||
{
|
||||
}
|
||||
void OutdoorPvP::HandlePlayerResurrects(Player* /*player*/, uint32 /*zone*/) { }
|
||||
|
||||
bool OutdoorPvP::Update(uint32 diff)
|
||||
{
|
||||
|
||||
@@ -525,22 +525,16 @@ void PoolGroup<GameObject>::ReSpawn1Object(PoolObject* obj)
|
||||
|
||||
// Nothing to do for a child Pool
|
||||
template <>
|
||||
void PoolGroup<Pool>::ReSpawn1Object(PoolObject* /*obj*/)
|
||||
{
|
||||
}
|
||||
void PoolGroup<Pool>::ReSpawn1Object(PoolObject* /*obj*/) { }
|
||||
|
||||
// Nothing to do for a quest
|
||||
template <>
|
||||
void PoolGroup<Quest>::ReSpawn1Object(PoolObject* /*obj*/)
|
||||
{
|
||||
}
|
||||
void PoolGroup<Quest>::ReSpawn1Object(PoolObject* /*obj*/) { }
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Methods of class PoolMgr
|
||||
|
||||
PoolMgr::PoolMgr() : max_pool_id(0)
|
||||
{
|
||||
}
|
||||
PoolMgr::PoolMgr() : max_pool_id(0) { }
|
||||
|
||||
void PoolMgr::Initialize()
|
||||
{
|
||||
|
||||
@@ -176,13 +176,9 @@ struct TSpellSummary
|
||||
} *SpellSummary;
|
||||
|
||||
ScriptMgr::ScriptMgr()
|
||||
: _scriptCount(0), _scheduledScripts(0)
|
||||
{
|
||||
}
|
||||
: _scriptCount(0), _scheduledScripts(0) { }
|
||||
|
||||
ScriptMgr::~ScriptMgr()
|
||||
{
|
||||
}
|
||||
ScriptMgr::~ScriptMgr() { }
|
||||
|
||||
void ScriptMgr::Initialize()
|
||||
{
|
||||
|
||||
@@ -217,9 +217,7 @@ WorldSocketMgr::WorldSocketMgr() :
|
||||
m_SockOutKBuff(-1),
|
||||
m_SockOutUBuff(65536),
|
||||
m_UseNoDelay(true),
|
||||
m_Acceptor (0)
|
||||
{
|
||||
}
|
||||
m_Acceptor (0) { }
|
||||
|
||||
WorldSocketMgr::~WorldSocketMgr()
|
||||
{
|
||||
|
||||
@@ -99,9 +99,7 @@ SpellCastTargets::SpellCastTargets() : m_elevation(0), m_speed(0), m_strTarget()
|
||||
m_targetMask = 0;
|
||||
}
|
||||
|
||||
SpellCastTargets::~SpellCastTargets()
|
||||
{
|
||||
}
|
||||
SpellCastTargets::~SpellCastTargets() { }
|
||||
|
||||
void SpellCastTargets::Read(ByteBuffer& data, Unit* caster)
|
||||
{
|
||||
@@ -7375,9 +7373,7 @@ bool WorldObjectSpellTargetCheck::operator()(WorldObject* target)
|
||||
|
||||
WorldObjectSpellNearbyTargetCheck::WorldObjectSpellNearbyTargetCheck(float range, Unit* caster, SpellInfo const* spellInfo,
|
||||
SpellTargetCheckTypes selectionType, ConditionList* condList)
|
||||
: WorldObjectSpellTargetCheck(caster, caster, spellInfo, selectionType, condList), _range(range), _position(caster)
|
||||
{
|
||||
}
|
||||
: WorldObjectSpellTargetCheck(caster, caster, spellInfo, selectionType, condList), _range(range), _position(caster) { }
|
||||
|
||||
bool WorldObjectSpellNearbyTargetCheck::operator()(WorldObject* target)
|
||||
{
|
||||
@@ -7392,9 +7388,7 @@ bool WorldObjectSpellNearbyTargetCheck::operator()(WorldObject* target)
|
||||
|
||||
WorldObjectSpellAreaTargetCheck::WorldObjectSpellAreaTargetCheck(float range, Position const* position, Unit* caster,
|
||||
Unit* referer, SpellInfo const* spellInfo, SpellTargetCheckTypes selectionType, ConditionList* condList)
|
||||
: WorldObjectSpellTargetCheck(caster, referer, spellInfo, selectionType, condList), _range(range), _position(position)
|
||||
{
|
||||
}
|
||||
: WorldObjectSpellTargetCheck(caster, referer, spellInfo, selectionType, condList), _range(range), _position(position) { }
|
||||
|
||||
bool WorldObjectSpellAreaTargetCheck::operator()(WorldObject* target)
|
||||
{
|
||||
@@ -7405,9 +7399,7 @@ bool WorldObjectSpellAreaTargetCheck::operator()(WorldObject* target)
|
||||
|
||||
WorldObjectSpellConeTargetCheck::WorldObjectSpellConeTargetCheck(float coneAngle, float range, Unit* caster,
|
||||
SpellInfo const* spellInfo, SpellTargetCheckTypes selectionType, ConditionList* condList)
|
||||
: WorldObjectSpellAreaTargetCheck(range, caster, caster, caster, spellInfo, selectionType, condList), _coneAngle(coneAngle)
|
||||
{
|
||||
}
|
||||
: WorldObjectSpellAreaTargetCheck(range, caster, caster, caster, spellInfo, selectionType, condList), _coneAngle(coneAngle) { }
|
||||
|
||||
bool WorldObjectSpellConeTargetCheck::operator()(WorldObject* target)
|
||||
{
|
||||
@@ -7430,9 +7422,7 @@ bool WorldObjectSpellConeTargetCheck::operator()(WorldObject* target)
|
||||
}
|
||||
|
||||
WorldObjectSpellTrajTargetCheck::WorldObjectSpellTrajTargetCheck(float range, Position const* position, Unit* caster, SpellInfo const* spellInfo)
|
||||
: WorldObjectSpellAreaTargetCheck(range, position, caster, caster, spellInfo, TARGET_CHECK_DEFAULT, NULL)
|
||||
{
|
||||
}
|
||||
: WorldObjectSpellAreaTargetCheck(range, position, caster, caster, spellInfo, TARGET_CHECK_DEFAULT, NULL) { }
|
||||
|
||||
bool WorldObjectSpellTrajTargetCheck::operator()(WorldObject* target)
|
||||
{
|
||||
|
||||
@@ -347,9 +347,7 @@ bool IsDiminishingReturnsGroupDurationLimited(DiminishingGroup group)
|
||||
}
|
||||
}
|
||||
|
||||
SpellMgr::SpellMgr()
|
||||
{
|
||||
}
|
||||
SpellMgr::SpellMgr() { }
|
||||
|
||||
SpellMgr::~SpellMgr()
|
||||
{
|
||||
|
||||
@@ -204,9 +204,7 @@ void SpellScript::HitHandler::Call(SpellScript* spellScript)
|
||||
}
|
||||
|
||||
SpellScript::TargetHook::TargetHook(uint8 _effectIndex, uint16 _targetType, bool _area)
|
||||
: _SpellScript::EffectHook(_effectIndex), targetType(_targetType), area(_area)
|
||||
{
|
||||
}
|
||||
: _SpellScript::EffectHook(_effectIndex), targetType(_targetType), area(_area) { }
|
||||
|
||||
std::string SpellScript::TargetHook::ToString()
|
||||
{
|
||||
@@ -727,9 +725,7 @@ void AuraScript::AuraDispelHandler::Call(AuraScript* auraScript, DispelInfo* _di
|
||||
}
|
||||
|
||||
AuraScript::EffectBase::EffectBase(uint8 _effIndex, uint16 _effName)
|
||||
: _SpellScript::EffectAuraNameCheck(_effName), _SpellScript::EffectHook(_effIndex)
|
||||
{
|
||||
}
|
||||
: _SpellScript::EffectAuraNameCheck(_effName), _SpellScript::EffectHook(_effIndex) { }
|
||||
|
||||
bool AuraScript::EffectBase::CheckEffect(SpellInfo const* spellEntry, uint8 effIndex)
|
||||
{
|
||||
|
||||
@@ -240,9 +240,7 @@ void GmTicket::SetChatLog(std::list<uint32> time, std::string const& log)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Ticket manager
|
||||
TicketMgr::TicketMgr() : _status(true), _lastTicketId(0), _lastSurveyId(0), _openTicketCount(0),
|
||||
_lastChange(time(NULL))
|
||||
{
|
||||
}
|
||||
_lastChange(time(NULL)) { }
|
||||
|
||||
TicketMgr::~TicketMgr()
|
||||
{
|
||||
|
||||
@@ -30,9 +30,7 @@
|
||||
#include "Warden.h"
|
||||
#include "AccountMgr.h"
|
||||
|
||||
Warden::Warden() : _inputCrypto(16), _outputCrypto(16), _checkTimer(10000/*10 sec*/), _clientResponseTimer(0), _dataSent(false), _initialized(false)
|
||||
{
|
||||
}
|
||||
Warden::Warden() : _inputCrypto(16), _outputCrypto(16), _checkTimer(10000/*10 sec*/), _clientResponseTimer(0), _dataSent(false), _initialized(false) { }
|
||||
|
||||
Warden::~Warden()
|
||||
{
|
||||
|
||||
@@ -25,9 +25,7 @@
|
||||
#include "WardenCheckMgr.h"
|
||||
#include "Warden.h"
|
||||
|
||||
WardenCheckMgr::WardenCheckMgr()
|
||||
{
|
||||
}
|
||||
WardenCheckMgr::WardenCheckMgr() { }
|
||||
|
||||
WardenCheckMgr::~WardenCheckMgr()
|
||||
{
|
||||
|
||||
@@ -30,13 +30,9 @@
|
||||
#include "WardenMac.h"
|
||||
#include "WardenModuleMac.h"
|
||||
|
||||
WardenMac::WardenMac() : Warden()
|
||||
{
|
||||
}
|
||||
WardenMac::WardenMac() : Warden() { }
|
||||
|
||||
WardenMac::~WardenMac()
|
||||
{
|
||||
}
|
||||
WardenMac::~WardenMac() { }
|
||||
|
||||
void WardenMac::Init(WorldSession* pClient, BigNumber* K)
|
||||
{
|
||||
|
||||
@@ -34,13 +34,9 @@
|
||||
#include "WardenCheckMgr.h"
|
||||
#include "AccountMgr.h"
|
||||
|
||||
WardenWin::WardenWin() : Warden()
|
||||
{
|
||||
}
|
||||
WardenWin::WardenWin() : Warden() { }
|
||||
|
||||
WardenWin::~WardenWin()
|
||||
{
|
||||
}
|
||||
WardenWin::~WardenWin() { }
|
||||
|
||||
void WardenWin::Init(WorldSession* session, BigNumber* k)
|
||||
{
|
||||
|
||||
@@ -62,6 +62,4 @@ enum LiadrinnSpeeches
|
||||
#define CS_GOSSIP3 "Why did they stop?"
|
||||
#define CS_GOSSIP4 "Your insight is appreciated."
|
||||
|
||||
void AddSC_sunwell_plateau()
|
||||
{
|
||||
}
|
||||
void AddSC_sunwell_plateau() { }
|
||||
|
||||
@@ -23,9 +23,7 @@
|
||||
#include "DBCFileLoader.h"
|
||||
#include "Errors.h"
|
||||
|
||||
DBCFileLoader::DBCFileLoader() : fieldsOffset(NULL), data(NULL), stringTable(NULL)
|
||||
{
|
||||
}
|
||||
DBCFileLoader::DBCFileLoader() : fieldsOffset(NULL), data(NULL), stringTable(NULL) { }
|
||||
|
||||
bool DBCFileLoader::Load(const char* filename, const char* fmt)
|
||||
{
|
||||
|
||||
@@ -41,9 +41,7 @@ m_queue(NULL),
|
||||
m_worker(NULL),
|
||||
m_Mysql(NULL),
|
||||
m_connectionInfo(connInfo),
|
||||
m_connectionFlags(CONNECTION_SYNCH)
|
||||
{
|
||||
}
|
||||
m_connectionFlags(CONNECTION_SYNCH) { }
|
||||
|
||||
MySQLConnection::MySQLConnection(ACE_Activation_Queue* queue, MySQLConnectionInfo& connInfo) :
|
||||
m_reconnecting(false),
|
||||
|
||||
@@ -21,13 +21,9 @@
|
||||
|
||||
PreparedStatement::PreparedStatement(uint32 index) :
|
||||
m_stmt(NULL),
|
||||
m_index(index)
|
||||
{
|
||||
}
|
||||
m_index(index) { }
|
||||
|
||||
PreparedStatement::~PreparedStatement()
|
||||
{
|
||||
}
|
||||
PreparedStatement::~PreparedStatement() { }
|
||||
|
||||
void PreparedStatement::BindParameters()
|
||||
{
|
||||
@@ -451,16 +447,12 @@ std::string MySQLPreparedStatement::getQueryString(std::string const& sqlPattern
|
||||
//- Execution
|
||||
PreparedStatementTask::PreparedStatementTask(PreparedStatement* stmt) :
|
||||
m_stmt(stmt),
|
||||
m_has_result(false)
|
||||
{
|
||||
}
|
||||
m_has_result(false) { }
|
||||
|
||||
PreparedStatementTask::PreparedStatementTask(PreparedStatement* stmt, PreparedQueryResultFuture result) :
|
||||
m_stmt(stmt),
|
||||
m_has_result(true),
|
||||
m_result(result)
|
||||
{
|
||||
}
|
||||
m_result(result) { }
|
||||
|
||||
|
||||
PreparedStatementTask::~PreparedStatementTask()
|
||||
|
||||
@@ -38,9 +38,7 @@ template<class VISITOR, class TYPE_CONTAINER> void VisitorHelper(VISITOR &v, TYP
|
||||
}
|
||||
|
||||
// terminate condition for container list
|
||||
template<class VISITOR> void VisitorHelper(VISITOR &/*v*/, ContainerList<TypeNull> &/*c*/)
|
||||
{
|
||||
}
|
||||
template<class VISITOR> void VisitorHelper(VISITOR &/*v*/, ContainerList<TypeNull> &/*c*/) { }
|
||||
|
||||
template<class VISITOR, class T> void VisitorHelper(VISITOR &v, ContainerList<T> &c)
|
||||
{
|
||||
@@ -55,9 +53,7 @@ template<class VISITOR, class H, class T> void VisitorHelper(VISITOR &v, Contain
|
||||
}
|
||||
|
||||
// terminate condition container map list
|
||||
template<class VISITOR> void VisitorHelper(VISITOR &/*v*/, ContainerMapList<TypeNull> &/*c*/)
|
||||
{
|
||||
}
|
||||
template<class VISITOR> void VisitorHelper(VISITOR &/*v*/, ContainerMapList<TypeNull> &/*c*/) { }
|
||||
|
||||
template<class VISITOR, class T> void VisitorHelper(VISITOR &v, ContainerMapList<T> &c)
|
||||
{
|
||||
@@ -77,9 +73,7 @@ template<class VISITOR, class T> void VisitorHelper(VISITOR &v, ContainerArrayLi
|
||||
v.Visit(c._element);
|
||||
}
|
||||
|
||||
template<class VISITOR> void VisitorHelper(VISITOR &/*v*/, ContainerArrayList<TypeNull> &/*c*/)
|
||||
{
|
||||
}
|
||||
template<class VISITOR> void VisitorHelper(VISITOR &/*v*/, ContainerArrayList<TypeNull> &/*c*/) { }
|
||||
|
||||
// recursion
|
||||
template<class VISITOR, class H, class T> void VisitorHelper(VISITOR &v, ContainerArrayList<TypeList<H, T> > &c)
|
||||
|
||||
@@ -33,13 +33,9 @@ std::string LogMessage::getTimeStr()
|
||||
}
|
||||
|
||||
Appender::Appender(uint8 _id, std::string const& _name, AppenderType _type /* = APPENDER_NONE*/, LogLevel _level /* = LOG_LEVEL_DISABLED */, AppenderFlags _flags /* = APPENDER_FLAGS_NONE */):
|
||||
id(_id), name(_name), type(_type), level(_level), flags(_flags)
|
||||
{
|
||||
}
|
||||
id(_id), name(_name), type(_type), level(_level), flags(_flags) { }
|
||||
|
||||
Appender::~Appender()
|
||||
{
|
||||
}
|
||||
Appender::~Appender() { }
|
||||
|
||||
uint8 Appender::getId() const
|
||||
{
|
||||
|
||||
@@ -19,13 +19,9 @@
|
||||
#include "Database/DatabaseEnv.h"
|
||||
|
||||
AppenderDB::AppenderDB(uint8 id, std::string const& name, LogLevel level)
|
||||
: Appender(id, name, APPENDER_DB, level), realmId(0), enabled(false)
|
||||
{
|
||||
}
|
||||
: Appender(id, name, APPENDER_DB, level), realmId(0), enabled(false) { }
|
||||
|
||||
AppenderDB::~AppenderDB()
|
||||
{
|
||||
}
|
||||
AppenderDB::~AppenderDB() { }
|
||||
|
||||
void AppenderDB::_write(LogMessage const& message)
|
||||
{
|
||||
|
||||
@@ -17,9 +17,7 @@
|
||||
|
||||
#include "Logger.h"
|
||||
|
||||
Logger::Logger(): name(""), type(LOG_FILTER_GENERAL), level(LOG_LEVEL_DISABLED)
|
||||
{
|
||||
}
|
||||
Logger::Logger(): name(""), type(LOG_FILTER_GENERAL), level(LOG_LEVEL_DISABLED) { }
|
||||
|
||||
void Logger::Create(std::string const& _name, LogFilterType _type, LogLevel _level)
|
||||
{
|
||||
|
||||
@@ -10,9 +10,7 @@ DelayExecutor* DelayExecutor::instance()
|
||||
}
|
||||
|
||||
DelayExecutor::DelayExecutor()
|
||||
: pre_svc_hook_(0), post_svc_hook_(0), activated_(false)
|
||||
{
|
||||
}
|
||||
: pre_svc_hook_(0), post_svc_hook_(0), activated_(false) { }
|
||||
|
||||
DelayExecutor::~DelayExecutor()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user