From 4a4f5692cc335f3cd60ccf1392ceabd1456331e3 Mon Sep 17 00:00:00 2001 From: ratkosrb Date: Mon, 10 Feb 2020 22:17:36 +0200 Subject: [PATCH] Remove MANGOS_DLL_DECL and its use. Credit to cmangos https://github.com/cmangos/mangos-classic/commit/61837298b7ba4bd81fdfbda3d7456d10f296e7cd --- src/framework/Dynamic/FactoryHolder.h | 2 +- src/framework/Dynamic/ObjectRegistry.h | 2 +- src/framework/GameSystem/Grid.h | 2 +- src/framework/GameSystem/GridLoader.h | 2 +- src/framework/GameSystem/NGrid.h | 2 +- src/framework/GameSystem/TypeContainer.h | 2 +- .../GameSystem/TypeContainerVisitor.h | 2 +- src/framework/Platform/Define.h | 14 ----- src/framework/Policies/CreationPolicy.h | 8 +-- src/framework/Policies/ObjectLifeTime.h | 2 +- src/framework/Policies/Singleton.h | 2 +- src/framework/Policies/SingletonImp.h | 2 +- src/framework/Policies/ThreadingModel.h | 10 ++-- src/game/AI/AggressorAI.h | 2 +- src/game/AI/CritterAI.h | 2 +- src/game/AI/GenericSpellAI.cpp | 2 +- src/game/AI/GuardAI.h | 2 +- src/game/AI/NullCreatureAI.h | 2 +- src/game/AI/PetAI.h | 2 +- src/game/AI/ReactorAI.h | 2 +- src/game/AI/ScriptedAI.h | 4 +- src/game/AI/ScriptedEscortAI.h | 2 +- src/game/AI/ScriptedFollowerAI.h | 2 +- src/game/AI/ScriptedInstance.h | 4 +- src/game/AI/TotemAI.h | 2 +- src/game/Maps/Cell.h | 4 +- src/game/Maps/GridDefines.h | 2 +- src/game/Maps/GridMap.h | 2 +- src/game/Maps/GridNotifiers.h | 60 +++++++++---------- src/game/Maps/GridStates.h | 10 ++-- src/game/Maps/MapManager.h | 4 +- src/game/Maps/MapPersistentStateMgr.h | 2 +- src/game/ObjectAccessor.h | 2 +- src/game/ObjectGridLoader.cpp | 2 +- src/game/ObjectGridLoader.h | 6 +- src/game/Objects/Object.cpp | 4 +- src/game/Spells/Spell.h | 2 +- 37 files changed, 83 insertions(+), 97 deletions(-) diff --git a/src/framework/Dynamic/FactoryHolder.h b/src/framework/Dynamic/FactoryHolder.h index bdc2b9f45..8d452f9d7 100644 --- a/src/framework/Dynamic/FactoryHolder.h +++ b/src/framework/Dynamic/FactoryHolder.h @@ -30,7 +30,7 @@ /** FactoryHolder holds a factory object of a specific type */ template -class MANGOS_DLL_DECL FactoryHolder +class FactoryHolder { public: typedef ObjectRegistry, Key > FactoryHolderRegistry; diff --git a/src/framework/Dynamic/ObjectRegistry.h b/src/framework/Dynamic/ObjectRegistry.h index 5ac1f3a3d..230fb7cbe 100644 --- a/src/framework/Dynamic/ObjectRegistry.h +++ b/src/framework/Dynamic/ObjectRegistry.h @@ -33,7 +33,7 @@ /** ObjectRegistry holds all registry item of the same type */ template -class MANGOS_DLL_DECL ObjectRegistry +class ObjectRegistry { public: typedef std::map RegistryMapType; diff --git a/src/framework/GameSystem/Grid.h b/src/framework/GameSystem/Grid.h index 45f11fd43..f468457d1 100644 --- a/src/framework/GameSystem/Grid.h +++ b/src/framework/GameSystem/Grid.h @@ -47,7 +47,7 @@ class ACTIVE_OBJECT, class WORLD_OBJECT_TYPES, class GRID_OBJECT_TYPES > -class MANGOS_DLL_DECL Grid +class Grid { // allows the GridLoader to access its internals template friend class GridLoader; diff --git a/src/framework/GameSystem/GridLoader.h b/src/framework/GameSystem/GridLoader.h index 028b125c2..4a49353d9 100644 --- a/src/framework/GameSystem/GridLoader.h +++ b/src/framework/GameSystem/GridLoader.h @@ -43,7 +43,7 @@ class ACTIVE_OBJECT, class WORLD_OBJECT_TYPES, class GRID_OBJECT_TYPES > -class MANGOS_DLL_DECL GridLoader +class GridLoader { public: diff --git a/src/framework/GameSystem/NGrid.h b/src/framework/GameSystem/NGrid.h index 1d347c368..d1ccaae4c 100644 --- a/src/framework/GameSystem/NGrid.h +++ b/src/framework/GameSystem/NGrid.h @@ -83,7 +83,7 @@ class ACTIVE_OBJECT, class WORLD_OBJECT_TYPES, class GRID_OBJECT_TYPES > -class MANGOS_DLL_DECL NGrid +class NGrid { public: diff --git a/src/framework/GameSystem/TypeContainer.h b/src/framework/GameSystem/TypeContainer.h index 42e84fb1e..654c298a6 100644 --- a/src/framework/GameSystem/TypeContainer.h +++ b/src/framework/GameSystem/TypeContainer.h @@ -209,7 +209,7 @@ struct ContainerMapList > */ template -class MANGOS_DLL_DECL TypeMapContainer +class TypeMapContainer { public: diff --git a/src/framework/GameSystem/TypeContainerVisitor.h b/src/framework/GameSystem/TypeContainerVisitor.h index 9bf33a579..806ec9ab1 100644 --- a/src/framework/GameSystem/TypeContainerVisitor.h +++ b/src/framework/GameSystem/TypeContainerVisitor.h @@ -69,7 +69,7 @@ void VisitorHelper(VISITOR &v, TypeMapContainer &c) } template -class MANGOS_DLL_DECL TypeContainerVisitor +class TypeContainerVisitor { public: diff --git a/src/framework/Platform/Define.h b/src/framework/Platform/Define.h index 62ef41a18..de5414862 100644 --- a/src/framework/Platform/Define.h +++ b/src/framework/Platform/Define.h @@ -67,20 +67,6 @@ typedef ACE_SHLIB_HANDLE MANGOS_LIBRARY_HANDLE; # endif //__APPLE_CC__ && BIG_ENDIAN #endif //PLATFORM -#if PLATFORM == PLATFORM_WINDOWS -# ifdef MANGOS_WIN32_DLL_IMPORT -# define MANGOS_DLL_DECL __declspec(dllimport) -# else //!MANGOS_WIN32_DLL_IMPORT -# ifdef MANGOS_WIND_DLL_EXPORT -# define MANGOS_DLL_DECL __declspec(dllexport) -# else //!MANGOS_WIND_DLL_EXPORT -# define MANGOS_DLL_DECL -# endif //MANGOS_WIND_DLL_EXPORT -# endif //MANGOS_WIN32_DLL_IMPORT -#else //PLATFORM != PLATFORM_WINDOWS -# define MANGOS_DLL_DECL -#endif //PLATFORM - #if PLATFORM == PLATFORM_WINDOWS # define MANGOS_DLL_SPEC __declspec(dllexport) # ifndef DECLSPEC_NORETURN diff --git a/src/framework/Policies/CreationPolicy.h b/src/framework/Policies/CreationPolicy.h index 98ec2bd56..98519b551 100644 --- a/src/framework/Policies/CreationPolicy.h +++ b/src/framework/Policies/CreationPolicy.h @@ -31,7 +31,7 @@ namespace MaNGOS * OperatorNew policy creates an object on the heap using new. */ template - class MANGOS_DLL_DECL OperatorNew + class OperatorNew { public: @@ -51,7 +51,7 @@ namespace MaNGOS * the first time call Create. */ template - class MANGOS_DLL_DECL LocalStaticCreation + class LocalStaticCreation { union MaxAlign { @@ -85,7 +85,7 @@ namespace MaNGOS * CreateUsingMalloc by pass the memory manger. */ template - class MANGOS_DLL_DECL CreateUsingMalloc + class CreateUsingMalloc { public: @@ -110,7 +110,7 @@ namespace MaNGOS * CreateOnCallBack creates the object base on the call back. */ template - class MANGOS_DLL_DECL CreateOnCallBack + class CreateOnCallBack { public: static T* Create() diff --git a/src/framework/Policies/ObjectLifeTime.h b/src/framework/Policies/ObjectLifeTime.h index 51e3a432a..c4160c851 100644 --- a/src/framework/Policies/ObjectLifeTime.h +++ b/src/framework/Policies/ObjectLifeTime.h @@ -32,7 +32,7 @@ namespace MaNGOS void MANGOS_DLL_SPEC at_exit(void (*func)()); template - class MANGOS_DLL_DECL ObjectLifeTime + class ObjectLifeTime { public: diff --git a/src/framework/Policies/Singleton.h b/src/framework/Policies/Singleton.h index 244050caa..7d8274c06 100644 --- a/src/framework/Policies/Singleton.h +++ b/src/framework/Policies/Singleton.h @@ -39,7 +39,7 @@ namespace MaNGOS class CreatePolicy = MaNGOS::OperatorNew, class LifeTimePolicy = MaNGOS::ObjectLifeTime > - class MANGOS_DLL_DECL Singleton + class Singleton { public: diff --git a/src/framework/Policies/SingletonImp.h b/src/framework/Policies/SingletonImp.h index 700b255f6..2308cffe7 100644 --- a/src/framework/Policies/SingletonImp.h +++ b/src/framework/Policies/SingletonImp.h @@ -74,7 +74,7 @@ void MaNGOS::Singleton::Destroy #define INSTANTIATE_SINGLETON_4(TYPE, THREADINGMODEL, CREATIONPOLICY, OBJECTLIFETIME) \ template <> TYPE* MaNGOS::Singleton::si_instance = 0; \ template <> bool MaNGOS::Singleton::si_destroyed = false; \ - template class MANGOS_DLL_DECL MaNGOS::Singleton; + template class MaNGOS::Singleton; #define INSTANTIATE_SINGLETON_3(TYPE, THREADINGMODEL, CREATIONPOLICY) \ INSTANTIATE_SINGLETON_4(TYPE, THREADINGMODEL, CREATIONPOLICY, MaNGOS::ObjectLifeTime) diff --git a/src/framework/Policies/ThreadingModel.h b/src/framework/Policies/ThreadingModel.h index 62b374786..da6f43dbf 100644 --- a/src/framework/Policies/ThreadingModel.h +++ b/src/framework/Policies/ThreadingModel.h @@ -32,7 +32,7 @@ namespace MaNGOS { template - class MANGOS_DLL_DECL GeneralLock + class GeneralLock { public: @@ -55,7 +55,7 @@ namespace MaNGOS }; template - class MANGOS_DLL_DECL SingleThreaded + class SingleThreaded { public: @@ -75,7 +75,7 @@ namespace MaNGOS }; template - class MANGOS_DLL_DECL ObjectLevelLockable + class ObjectLevelLockable { public: @@ -110,7 +110,7 @@ namespace MaNGOS }; template - class MANGOS_DLL_DECL ClassLevelLockable + class ClassLevelLockable { public: @@ -155,6 +155,6 @@ namespace MaNGOS template MUTEX MaNGOS::ClassLevelLockable::si_mtx; #define INSTANTIATE_CLASS_MUTEX(CTYPE, MUTEX) \ - template class MANGOS_DLL_DECL MaNGOS::ClassLevelLockable + template class MaNGOS::ClassLevelLockable #endif diff --git a/src/game/AI/AggressorAI.h b/src/game/AI/AggressorAI.h index dcd7fe5b1..9131affd5 100644 --- a/src/game/AI/AggressorAI.h +++ b/src/game/AI/AggressorAI.h @@ -24,7 +24,7 @@ #include "CreatureAI.h" -class MANGOS_DLL_DECL AggressorAI : public CreatureAI +class AggressorAI : public CreatureAI { public: diff --git a/src/game/AI/CritterAI.h b/src/game/AI/CritterAI.h index bd976b6ac..70bdd1acc 100644 --- a/src/game/AI/CritterAI.h +++ b/src/game/AI/CritterAI.h @@ -19,7 +19,7 @@ #include "CreatureAI.h" -class MANGOS_DLL_DECL CritterAI : public CreatureAI +class CritterAI : public CreatureAI { public: explicit CritterAI(Creature* c) : CreatureAI(c) {} diff --git a/src/game/AI/GenericSpellAI.cpp b/src/game/AI/GenericSpellAI.cpp index ebdc300b6..5542cb14c 100644 --- a/src/game/AI/GenericSpellAI.cpp +++ b/src/game/AI/GenericSpellAI.cpp @@ -70,7 +70,7 @@ GenericAISpell BuildGenericAISpell(uint32 spellId, uint32 minCD, uint32 maxCD, u void LoadSpellCacheData(GenericAISpell* spellToModify, SpellEntry const* spellInfos); //void LoadGenericAISpellsData(); -struct MANGOS_DLL_DECL GenericSpellMob : public ScriptedAI +struct GenericSpellMob : public ScriptedAI { GenericSpellMob(Creature* pCreature) : ScriptedAI(pCreature) { diff --git a/src/game/AI/GuardAI.h b/src/game/AI/GuardAI.h index 5144482d6..6d035c638 100644 --- a/src/game/AI/GuardAI.h +++ b/src/game/AI/GuardAI.h @@ -26,7 +26,7 @@ class Creature; -class MANGOS_DLL_DECL GuardAI : public CreatureAI +class GuardAI : public CreatureAI { public: explicit GuardAI(Creature* c); diff --git a/src/game/AI/NullCreatureAI.h b/src/game/AI/NullCreatureAI.h index 5e3042f06..db9adb419 100644 --- a/src/game/AI/NullCreatureAI.h +++ b/src/game/AI/NullCreatureAI.h @@ -25,7 +25,7 @@ #include "CreatureAI.h" #include "Creature.h" -class MANGOS_DLL_DECL NullCreatureAI : public CreatureAI +class NullCreatureAI : public CreatureAI { public: explicit NullCreatureAI(Creature* c) : CreatureAI(c) diff --git a/src/game/AI/PetAI.h b/src/game/AI/PetAI.h index 37e3d828f..b80f30e02 100644 --- a/src/game/AI/PetAI.h +++ b/src/game/AI/PetAI.h @@ -40,7 +40,7 @@ enum ePetSelectTargetReason : uint8 PSTR_SUCCESS_AGGRO_RANGE, }; -class MANGOS_DLL_DECL PetAI : public CreatureAI +class PetAI : public CreatureAI { public: diff --git a/src/game/AI/ReactorAI.h b/src/game/AI/ReactorAI.h index 861c6860d..2126b01d6 100644 --- a/src/game/AI/ReactorAI.h +++ b/src/game/AI/ReactorAI.h @@ -24,7 +24,7 @@ #include "CreatureAI.h" -class MANGOS_DLL_DECL ReactorAI : public CreatureAI +class ReactorAI : public CreatureAI { public: diff --git a/src/game/AI/ScriptedAI.h b/src/game/AI/ScriptedAI.h index 47fabb74f..52b5fc3bf 100644 --- a/src/game/AI/ScriptedAI.h +++ b/src/game/AI/ScriptedAI.h @@ -17,7 +17,7 @@ enum SCEquip EQUIP_UNEQUIP = 0 }; -struct MANGOS_DLL_DECL ScriptedAI : CreatureAI +struct ScriptedAI : CreatureAI { explicit ScriptedAI(Creature* pCreature); ~ScriptedAI() override {} @@ -158,7 +158,7 @@ struct MANGOS_DLL_DECL ScriptedAI : CreatureAI uint32 m_uiHomeArea; }; -struct MANGOS_DLL_DECL Scripted_NoMovementAI : ScriptedAI +struct Scripted_NoMovementAI : ScriptedAI { explicit Scripted_NoMovementAI(Creature* pCreature) : ScriptedAI(pCreature) {} diff --git a/src/game/AI/ScriptedEscortAI.h b/src/game/AI/ScriptedEscortAI.h index a7d37c863..ce14bc1d7 100644 --- a/src/game/AI/ScriptedEscortAI.h +++ b/src/game/AI/ScriptedEscortAI.h @@ -37,7 +37,7 @@ enum eEscortState class ChatHandler; -struct MANGOS_DLL_DECL npc_escortAI : ScriptedAI +struct npc_escortAI : ScriptedAI { explicit npc_escortAI(Creature* pCreature); ~npc_escortAI() override {} diff --git a/src/game/AI/ScriptedFollowerAI.h b/src/game/AI/ScriptedFollowerAI.h index ac4f6a5f1..a0d2d8b03 100644 --- a/src/game/AI/ScriptedFollowerAI.h +++ b/src/game/AI/ScriptedFollowerAI.h @@ -20,7 +20,7 @@ enum eFollowState STATE_FOLLOW_POSTEVENT = 0x020 //can be set at complete and allow post event to run }; -class MANGOS_DLL_DECL FollowerAI : public ScriptedAI +class FollowerAI : public ScriptedAI { public: explicit FollowerAI(Creature* pCreature); diff --git a/src/game/AI/ScriptedInstance.h b/src/game/AI/ScriptedInstance.h index 0b6c62537..274208f71 100644 --- a/src/game/AI/ScriptedInstance.h +++ b/src/game/AI/ScriptedInstance.h @@ -25,7 +25,7 @@ enum EncounterState #define OUT_LOAD_INST_DATA_COMPLETE sLog.outDebug("Instance Data Load for Instance %s (Map %d, Instance Id: %d) is complete.",instance->GetMapName(), instance->GetId(), instance->GetInstanceId()) #define OUT_LOAD_INST_DATA_FAIL sLog.outError("Unable to load Instance Data for Instance %s (Map %d, Instance Id: %d).",instance->GetMapName(), instance->GetId(), instance->GetInstanceId()) -class MANGOS_DLL_DECL ScriptedInstance : public InstanceData +class ScriptedInstance : public InstanceData { public: @@ -66,7 +66,7 @@ class MANGOS_DLL_DECL ScriptedInstance : public InstanceData EntryGuidMap m_mNpcEntryGuidStore; ///< Store unique NPC-Guids by entry }; -class MANGOS_DLL_DECL ScriptedInstance_PTR : public ScriptedInstance +class ScriptedInstance_PTR : public ScriptedInstance { public: explicit ScriptedInstance_PTR(Map* pMap) : ScriptedInstance(pMap) {} diff --git a/src/game/AI/TotemAI.h b/src/game/AI/TotemAI.h index f624d14ad..ca251b3d3 100644 --- a/src/game/AI/TotemAI.h +++ b/src/game/AI/TotemAI.h @@ -35,7 +35,7 @@ enum NPC_TOTEM_GLEBE = 5925, }; -class MANGOS_DLL_DECL TotemAI : public CreatureAI +class TotemAI : public CreatureAI { public: diff --git a/src/game/Maps/Cell.h b/src/game/Maps/Cell.h index e75a41f2e..40de0d0db 100644 --- a/src/game/Maps/Cell.h +++ b/src/game/Maps/Cell.h @@ -30,7 +30,7 @@ class Map; class WorldObject; -struct MANGOS_DLL_DECL CellArea +struct CellArea { CellArea() {} CellArea(CellPair low, CellPair high) : low_bound(low), high_bound(high) {} @@ -47,7 +47,7 @@ struct MANGOS_DLL_DECL CellArea CellPair high_bound; }; -struct MANGOS_DLL_DECL Cell +struct Cell { Cell() { data.All = 0; } Cell(Cell const& cell) { data.All = cell.data.All; } diff --git a/src/game/Maps/GridDefines.h b/src/game/Maps/GridDefines.h index 075dfbeb7..6577e1a5c 100644 --- a/src/game/Maps/GridDefines.h +++ b/src/game/Maps/GridDefines.h @@ -78,7 +78,7 @@ typedef TypeMapContainer GridTypeMapContainer; typedef TypeMapContainer WorldTypeMapContainer; template -struct MANGOS_DLL_DECL CoordPair +struct CoordPair { CoordPair(int32 x=0, int32 y=0) : x_coord(x), y_coord(y) { diff --git a/src/game/Maps/GridMap.h b/src/game/Maps/GridMap.h index ba45e8973..4e836b239 100644 --- a/src/game/Maps/GridMap.h +++ b/src/game/Maps/GridMap.h @@ -203,7 +203,7 @@ class MANGOS_DLL_SPEC TerrainInfo : public Referencable }; // class for managing TerrainData object and all sort of geometry querying operations -class MANGOS_DLL_DECL TerrainManager : public MaNGOS::Singleton > +class TerrainManager : public MaNGOS::Singleton > { typedef std::unordered_map TerrainDataMap; friend class MaNGOS::OperatorNew; diff --git a/src/game/Maps/GridNotifiers.h b/src/game/Maps/GridNotifiers.h index 85209c9c0..815e4522f 100644 --- a/src/game/Maps/GridNotifiers.h +++ b/src/game/Maps/GridNotifiers.h @@ -40,7 +40,7 @@ class Player; namespace MaNGOS { - struct MANGOS_DLL_DECL VisibleNotifier + struct VisibleNotifier { Camera& i_camera; UpdateData i_data; @@ -53,7 +53,7 @@ namespace MaNGOS void Notify(void); }; - struct MANGOS_DLL_DECL VisibleChangesNotifier + struct VisibleChangesNotifier { WorldObject &i_object; @@ -62,7 +62,7 @@ namespace MaNGOS void Visit(CameraMapType&); }; - struct MANGOS_DLL_DECL MessageDeliverer + struct MessageDeliverer { Player const& i_player; WorldPacket* i_message; @@ -84,7 +84,7 @@ namespace MaNGOS template void Visit(GridRefManager&) {} }; - struct MANGOS_DLL_DECL ObjectMessageDeliverer + struct ObjectMessageDeliverer { WorldPacket* i_message; explicit ObjectMessageDeliverer(WorldPacket* msg) : i_message(msg) {} @@ -92,7 +92,7 @@ namespace MaNGOS template void Visit(GridRefManager&) {} }; - struct MANGOS_DLL_DECL MessageDistDeliverer + struct MessageDistDeliverer { Player const& i_player; WorldPacket* i_message; @@ -106,7 +106,7 @@ namespace MaNGOS template void Visit(GridRefManager&) {} }; - struct MANGOS_DLL_DECL ObjectMessageDistDeliverer + struct ObjectMessageDistDeliverer { WorldObject const& i_object; WorldPacket* i_message; @@ -116,7 +116,7 @@ namespace MaNGOS template void Visit(GridRefManager&) {} }; - struct MANGOS_DLL_DECL ObjectUpdater + struct ObjectUpdater { uint32 i_timeDiff; uint32 i_now; @@ -128,7 +128,7 @@ namespace MaNGOS void Visit(CreatureMapType&); }; - struct MANGOS_DLL_DECL PlayerRelocationNotifier + struct PlayerRelocationNotifier { Player &i_player; PlayerRelocationNotifier(Player &pl) : i_player(pl) {} @@ -136,7 +136,7 @@ namespace MaNGOS void Visit(CreatureMapType&); }; - struct MANGOS_DLL_DECL CreatureRelocationNotifier + struct CreatureRelocationNotifier { Creature &i_creature; CreatureRelocationNotifier(Creature &c) : i_creature(c) {} @@ -146,7 +146,7 @@ namespace MaNGOS #endif }; - struct MANGOS_DLL_DECL DynamicObjectUpdater + struct DynamicObjectUpdater { DynamicObject &i_dynobject; WorldObject* i_check; @@ -172,7 +172,7 @@ namespace MaNGOS /* Model Searcher class: template - struct MANGOS_DLL_DECL SomeSearcher + struct SomeSearcher { ResultType& i_result; Check & i_check; @@ -203,7 +203,7 @@ namespace MaNGOS // WorldObject searchers & workers template - struct MANGOS_DLL_DECL WorldObjectSearcher + struct WorldObjectSearcher { WorldObject* &i_object; Check &i_check; @@ -220,7 +220,7 @@ namespace MaNGOS }; template - struct MANGOS_DLL_DECL WorldObjectListSearcher + struct WorldObjectListSearcher { std::list& i_objects; Check& i_check; @@ -237,7 +237,7 @@ namespace MaNGOS }; template - struct MANGOS_DLL_DECL WorldObjectWorker + struct WorldObjectWorker { Do const& i_do; @@ -278,7 +278,7 @@ namespace MaNGOS // Gameobject searchers template - struct MANGOS_DLL_DECL GameObjectSearcher + struct GameObjectSearcher { GameObject* &i_object; Check &i_check; @@ -292,7 +292,7 @@ namespace MaNGOS // Last accepted by Check GO if any (Check can change requirements at each call) template - struct MANGOS_DLL_DECL GameObjectLastSearcher + struct GameObjectLastSearcher { GameObject* &i_object; Check& i_check; @@ -305,7 +305,7 @@ namespace MaNGOS }; template - struct MANGOS_DLL_DECL GameObjectListSearcher + struct GameObjectListSearcher { std::list& i_objects; Check& i_check; @@ -321,7 +321,7 @@ namespace MaNGOS // First accepted by Check Unit if any template - struct MANGOS_DLL_DECL UnitSearcher + struct UnitSearcher { Unit* &i_object; Check & i_check; @@ -335,7 +335,7 @@ namespace MaNGOS }; template - struct MANGOS_DLL_DECL UnitWorker + struct UnitWorker { Do& i_do; @@ -358,7 +358,7 @@ namespace MaNGOS // Last accepted by Check Unit if any (Check can change requirements at each call) template - struct MANGOS_DLL_DECL UnitLastSearcher + struct UnitLastSearcher { Unit* &i_object; Check & i_check; @@ -373,7 +373,7 @@ namespace MaNGOS // All accepted by Check units if any template - struct MANGOS_DLL_DECL UnitListSearcher + struct UnitListSearcher { std::list& i_objects; Check& i_check; @@ -389,7 +389,7 @@ namespace MaNGOS // Creature searchers template - struct MANGOS_DLL_DECL CreatureSearcher + struct CreatureSearcher { Creature* &i_object; Check & i_check; @@ -403,7 +403,7 @@ namespace MaNGOS // Last accepted by Check Creature if any (Check can change requirements at each call) template - struct MANGOS_DLL_DECL CreatureLastSearcher + struct CreatureLastSearcher { Creature* &i_object; Check & i_check; @@ -416,7 +416,7 @@ namespace MaNGOS }; template - struct MANGOS_DLL_DECL CreatureListSearcher + struct CreatureListSearcher { std::list& i_objects; Check& i_check; @@ -429,7 +429,7 @@ namespace MaNGOS }; template - struct MANGOS_DLL_DECL CreatureWorker + struct CreatureWorker { Do& i_do; @@ -447,7 +447,7 @@ namespace MaNGOS // Player searchers template - struct MANGOS_DLL_DECL PlayerSearcher + struct PlayerSearcher { Player* &i_object; Check & i_check; @@ -460,7 +460,7 @@ namespace MaNGOS }; template - struct MANGOS_DLL_DECL PlayerLastSearcher + struct PlayerLastSearcher { Player* &i_object; Check & i_check; @@ -473,7 +473,7 @@ namespace MaNGOS }; template - struct MANGOS_DLL_DECL PlayerListSearcher + struct PlayerListSearcher { std::list& i_objects; Check& i_check; @@ -487,7 +487,7 @@ namespace MaNGOS }; template - struct MANGOS_DLL_DECL PlayerWorker + struct PlayerWorker { Do& i_do; @@ -503,7 +503,7 @@ namespace MaNGOS }; template - struct MANGOS_DLL_DECL CameraDistWorker + struct CameraDistWorker { WorldObject const* i_searcher; float i_dist; diff --git a/src/game/Maps/GridStates.h b/src/game/Maps/GridStates.h index bfe6e6286..5277e8c04 100644 --- a/src/game/Maps/GridStates.h +++ b/src/game/Maps/GridStates.h @@ -24,35 +24,35 @@ #include "Map.h" -class MANGOS_DLL_DECL GridState +class GridState { public: virtual ~GridState() {} virtual void Update(Map&, NGridType&, GridInfo&, uint32 const& x, uint32 const& y, uint32 const& t_diff) const = 0; }; -class MANGOS_DLL_DECL InvalidState : public GridState +class InvalidState : public GridState { public: ~InvalidState() override {} void Update(Map&, NGridType&, GridInfo&, uint32 const& x, uint32 const& y, uint32 const& t_diff) const override; }; -class MANGOS_DLL_DECL ActiveState : public GridState +class ActiveState : public GridState { public: ~ActiveState() override {} void Update(Map&, NGridType&, GridInfo&, uint32 const& x, uint32 const& y, uint32 const& t_diff) const override; }; -class MANGOS_DLL_DECL IdleState : public GridState +class IdleState : public GridState { public: ~IdleState() override {} void Update(Map&, NGridType&, GridInfo&, uint32 const& x, uint32 const& y, uint32 const& t_diff) const override; }; -class MANGOS_DLL_DECL RemovalState : public GridState +class RemovalState : public GridState { public: ~RemovalState() override {} diff --git a/src/game/Maps/MapManager.h b/src/game/Maps/MapManager.h index 399c7bcb1..d97409bbb 100644 --- a/src/game/Maps/MapManager.h +++ b/src/game/Maps/MapManager.h @@ -55,7 +55,7 @@ enum MAP1_LAST = 20, }; -struct MANGOS_DLL_DECL MapID +struct MapID { explicit MapID(uint32 id) : nMapId(id), nInstanceId(0) {} MapID(uint32 id, uint32 instid) : nMapId(id), nInstanceId(instid) {} @@ -76,7 +76,7 @@ struct MANGOS_DLL_DECL MapID struct ScheduledTeleportData; -class MANGOS_DLL_DECL MapManager : public MaNGOS::Singleton > +class MapManager : public MaNGOS::Singleton > { friend class MaNGOS::OperatorNew; diff --git a/src/game/Maps/MapPersistentStateMgr.h b/src/game/Maps/MapPersistentStateMgr.h index 9dcb32294..1c0364502 100644 --- a/src/game/Maps/MapPersistentStateMgr.h +++ b/src/game/Maps/MapPersistentStateMgr.h @@ -317,7 +317,7 @@ class DungeonResetScheduler ResetTimeQueue m_resetTimeQueue; }; -class MANGOS_DLL_DECL MapPersistentStateManager : public MaNGOS::Singleton > +class MapPersistentStateManager : public MaNGOS::Singleton > { friend class DungeonResetScheduler; public: // constructors diff --git a/src/game/ObjectAccessor.h b/src/game/ObjectAccessor.h index e4db32de0..bebe282f1 100644 --- a/src/game/ObjectAccessor.h +++ b/src/game/ObjectAccessor.h @@ -88,7 +88,7 @@ class HashMapHolder static MapType m_objectMap; }; -class MANGOS_DLL_DECL ObjectAccessor : public MaNGOS::Singleton > +class ObjectAccessor : public MaNGOS::Singleton > { friend class MaNGOS::OperatorNew; diff --git a/src/game/ObjectGridLoader.cpp b/src/game/ObjectGridLoader.cpp index 0419766f6..8237d8d09 100644 --- a/src/game/ObjectGridLoader.cpp +++ b/src/game/ObjectGridLoader.cpp @@ -32,7 +32,7 @@ #include "CellImpl.h" #include "BattleGround.h" -class MANGOS_DLL_DECL ObjectGridRespawnMover +class ObjectGridRespawnMover { public: ObjectGridRespawnMover() {} diff --git a/src/game/ObjectGridLoader.h b/src/game/ObjectGridLoader.h index 986b1dcae..96a55584d 100644 --- a/src/game/ObjectGridLoader.h +++ b/src/game/ObjectGridLoader.h @@ -31,7 +31,7 @@ class ObjectWorldLoader; -class MANGOS_DLL_DECL ObjectGridLoader +class ObjectGridLoader { friend class ObjectWorldLoader; @@ -58,7 +58,7 @@ class MANGOS_DLL_DECL ObjectGridLoader uint32 i_corpses; }; -class MANGOS_DLL_DECL ObjectGridUnloader +class ObjectGridUnloader { public: ObjectGridUnloader(NGridType& grid) : i_grid(grid) {} @@ -82,7 +82,7 @@ class MANGOS_DLL_DECL ObjectGridUnloader NGridType& i_grid; }; -class MANGOS_DLL_DECL ObjectGridStoper +class ObjectGridStoper { public: ObjectGridStoper(NGridType& grid) : i_grid(grid) {} diff --git a/src/game/Objects/Object.cpp b/src/game/Objects/Object.cpp index b18d45fc2..720901194 100644 --- a/src/game/Objects/Object.cpp +++ b/src/game/Objects/Object.cpp @@ -1890,7 +1890,7 @@ void WorldObject::SendMessageToSet(WorldPacket* data, bool /*bToSelf*/) const GetMap()->MessageBroadcast(this, data); } -struct MANGOS_DLL_DECL ObjectViewersDeliverer +struct ObjectViewersDeliverer { WorldPacket* i_message; WorldObject const* i_sender; @@ -3039,7 +3039,7 @@ void WorldObject::Update(uint32 update_diff, uint32 /*time_diff*/) ExecuteDelayedActions(); } -class MANGOS_DLL_DECL NULLNotifier +class NULLNotifier { public: template void Visit(GridRefManager& m) {} diff --git a/src/game/Spells/Spell.h b/src/game/Spells/Spell.h index 678248f69..f24bf0e42 100644 --- a/src/game/Spells/Spell.h +++ b/src/game/Spells/Spell.h @@ -740,7 +740,7 @@ enum ReplenishType namespace MaNGOS { - struct MANGOS_DLL_DECL SpellNotifierPlayer + struct SpellNotifierPlayer { Spell::UnitList &i_data; Spell &i_spell;