aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Loot
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Loot')
-rw-r--r--src/server/game/Loot/LootItemStorage.h9
-rw-r--r--src/server/game/Loot/LootMgr.cpp5
-rw-r--r--src/server/game/Loot/LootMgr.h3
3 files changed, 13 insertions, 4 deletions
diff --git a/src/server/game/Loot/LootItemStorage.h b/src/server/game/Loot/LootItemStorage.h
index 8df0a0c6a34..dea2dca4a03 100644
--- a/src/server/game/Loot/LootItemStorage.h
+++ b/src/server/game/Loot/LootItemStorage.h
@@ -77,6 +77,11 @@ class StoredLootContainer
class LootItemStorage
{
public:
+ LootItemStorage(LootItemStorage const&) = delete;
+ LootItemStorage(LootItemStorage&&) = delete;
+ LootItemStorage& operator=(LootItemStorage const&) = delete;
+ LootItemStorage& operator=(LootItemStorage&&) = delete;
+
static LootItemStorage* instance();
static std::shared_mutex* GetLock();
@@ -88,8 +93,8 @@ class LootItemStorage
void AddNewStoredLoot(uint64 containerId, Loot* loot, Player* player);
private:
- LootItemStorage() { }
- ~LootItemStorage() { }
+ LootItemStorage() = default;
+ ~LootItemStorage() = default;
};
#define sLootItemStorage LootItemStorage::instance()
diff --git a/src/server/game/Loot/LootMgr.cpp b/src/server/game/Loot/LootMgr.cpp
index d0b4a386cb0..5c8999b99e7 100644
--- a/src/server/game/Loot/LootMgr.cpp
+++ b/src/server/game/Loot/LootMgr.cpp
@@ -110,6 +110,11 @@ class LootTemplate::LootGroup // A set of loot def
LootStoreItem const* Roll(uint16 lootMode, Player const* personalLooter = nullptr) const;
};
+LootStore::LootStore(char const* name, char const* entryName, bool ratesAllowed)
+ : m_name(name), m_entryName(entryName), m_ratesAllowed(ratesAllowed)
+{
+}
+
LootStore::LootStore(LootStore&&) noexcept = default;
LootStore& LootStore::operator=(LootStore&&) noexcept = default;
LootStore::~LootStore() = default;
diff --git a/src/server/game/Loot/LootMgr.h b/src/server/game/Loot/LootMgr.h
index fea1155ac63..808cf529201 100644
--- a/src/server/game/Loot/LootMgr.h
+++ b/src/server/game/Loot/LootMgr.h
@@ -73,8 +73,7 @@ typedef std::set<uint32> LootIdSet;
class TC_GAME_API LootStore
{
public:
- explicit LootStore(char const* name, char const* entryName, bool ratesAllowed)
- : m_name(name), m_entryName(entryName), m_ratesAllowed(ratesAllowed) { }
+ explicit LootStore(char const* name, char const* entryName, bool ratesAllowed);
LootStore(LootStore const&) = delete;
LootStore(LootStore&&) noexcept;