Core/Misc: Fix C++17 build errors

(cherry picked from commit 30823f9b79b4ad16f96e90692a900f68a7f63c0a)
This commit is contained in:
jackpoz
2021-12-18 22:51:50 +01:00
committed by Shauren
parent 4a47e1c6be
commit d5d04a6c55
12 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ LootStore LootTemplates_Skinning("skinning_loot_template", "creature s
LootStore LootTemplates_Spell("spell_loot_template", "spell id (random item creating)", false);
// Selects invalid loot items to be removed from group possible entries (before rolling)
struct LootGroupInvalidSelector : public std::unary_function<LootStoreItem*, bool>
struct LootGroupInvalidSelector
{
explicit LootGroupInvalidSelector(Loot const& loot, uint16 lootMode) : _loot(loot), _lootMode(lootMode) { }
@@ -205,7 +205,7 @@ class npc_eyestalk : public CreatureScript
}
};
class FocusedFireTargetSelector : public std::unary_function<Unit *, bool>
class FocusedFireTargetSelector
{
public:
FocusedFireTargetSelector(Creature* me, const Unit* victim) : _me(me), _victim(victim) { }
@@ -548,7 +548,7 @@ class spell_mandokir_spirit_vengeance_cancel : public SpellScriptLoader
}
};
class DevastatingSlamTargetSelector : public std::unary_function<Unit *, bool>
class DevastatingSlamTargetSelector
{
public:
DevastatingSlamTargetSelector(Creature* me, const Unit* victim) : _me(me), _victim(victim) {}
@@ -112,7 +112,7 @@ enum Spells
SPELL_WAKING_NIGHTMARE_H = 67677
};
class OrientationCheck : public std::unary_function<Unit*, bool>
class OrientationCheck
{
public:
explicit OrientationCheck(Unit* _caster) : caster(_caster) { }
@@ -103,7 +103,7 @@ enum Actions
ACTION_TALK_ENTER_ZONE = 2
};
class BoneSpikeTargetSelector : public std::unary_function<Unit*, bool>
class BoneSpikeTargetSelector
{
public:
BoneSpikeTargetSelector(UnitAI* ai) : _ai(ai) { }
@@ -362,7 +362,7 @@ enum Misc
DATA_VILE = 45814622
};
class NecroticPlagueTargetCheck : public std::unary_function<Unit*, bool>
class NecroticPlagueTargetCheck
{
public:
NecroticPlagueTargetCheck(Unit const* obj, uint32 notAura1 = 0, uint32 notAura2 = 0)
@@ -157,7 +157,7 @@ enum Misc
Position const ValithriaSpawnPos = {4210.813f, 2484.443f, 364.9558f, 0.01745329f};
struct ManaVoidSelector : public std::unary_function<Unit*, bool>
struct ManaVoidSelector
{
explicit ManaVoidSelector(WorldObject const* source) : _source(source) { }
@@ -197,7 +197,7 @@ class KelThuzadCharmedPlayerAI : public SimpleCharmedPlayerAI
}
};
struct ManaUserTargetSelector : public std::unary_function<Unit*, bool>
struct ManaUserTargetSelector
{
bool operator()(Unit const* target) const
{
@@ -72,7 +72,7 @@ enum Events
const float WEB_WRAP_MOVE_SPEED = 20.0f;
struct WebTargetSelector : public std::unary_function<Unit*, bool>
struct WebTargetSelector
{
WebTargetSelector(Unit* maexxna) : _maexxna(maexxna) {}
bool operator()(Unit const* target) const
@@ -362,7 +362,7 @@ class spell_ulduar_rubble_summon : public SpellScriptLoader
};
// predicate function to select non main tank target
class StoneGripTargetSelector : public std::unary_function<Unit*, bool>
class StoneGripTargetSelector
{
public:
StoneGripTargetSelector(Creature* me, Unit const* victim) : _me(me), _victim(victim) { }
@@ -450,7 +450,7 @@ private:
Unit* _owner;
};
class ChargeTargetSelector : public std::unary_function<Unit*, bool>
class ChargeTargetSelector
{
public:
ChargeTargetSelector() { }
@@ -295,7 +295,7 @@ private:
uint32 _bossId;
};
class HammerTargetSelector : public std::unary_function<Unit*, bool>
class HammerTargetSelector
{
public:
HammerTargetSelector(Unit const* unit) : _me(unit) { }