mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fix warnings
This commit is contained in:
@@ -251,7 +251,7 @@ std::string AiFactory::GetPlayerSpecName(Player* player)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::move(specName);
|
return specName;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AiFactory::AddDefaultCombatStrategies(Player* player, PlayerbotAI* const facade, Engine* engine)
|
void AiFactory::AddDefaultCombatStrategies(Player* player, PlayerbotAI* const facade, Engine* engine)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ struct BotTextEntry
|
|||||||
|
|
||||||
struct ChatReplyData
|
struct ChatReplyData
|
||||||
{
|
{
|
||||||
ChatReplyData(uint32 guid, uint32 type, std::string chat) : m_guid(guid), m_type(type), m_chat(chat) {}
|
ChatReplyData(uint32 guid, uint32 type, std::string chat) : m_type(type), m_guid(guid), m_chat(chat) {}
|
||||||
uint32 m_type, m_guid = 0;
|
uint32 m_type, m_guid = 0;
|
||||||
std::string m_chat = "";
|
std::string m_chat = "";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class NamedObjectFactory
|
|||||||
for (typename std::map<std::string, ActionCreator>::iterator it = creators.begin(); it != creators.end(); it++)
|
for (typename std::map<std::string, ActionCreator>::iterator it = creators.begin(); it != creators.end(); it++)
|
||||||
keys.insert(it->first);
|
keys.insert(it->first);
|
||||||
|
|
||||||
return std::move(keys);
|
return keys;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ class NamedObjectContext : public NamedObjectFactory<T>
|
|||||||
for (typename std::map<std::string, T*>::iterator it = created.begin(); it != created.end(); it++)
|
for (typename std::map<std::string, T*>::iterator it = created.begin(); it != created.end(); it++)
|
||||||
keys.insert(it->first);
|
keys.insert(it->first);
|
||||||
|
|
||||||
return std::move(keys);
|
return keys;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -214,7 +214,7 @@ class NamedObjectContextList
|
|||||||
return supported;
|
return supported;
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::move(std::set<std::string>());
|
return std::set<std::string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::set<std::string> supports()
|
std::set<std::string> supports()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class Unit;
|
|||||||
class RtiTargetValue : public TargetValue
|
class RtiTargetValue : public TargetValue
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RtiTargetValue(PlayerbotAI* botAI, std::string const type = "rti", std::string const name = "rti target") : type(type), TargetValue(botAI, name) { }
|
RtiTargetValue(PlayerbotAI* botAI, std::string const type = "rti", std::string const name = "rti target") : TargetValue(botAI, name), type(type) { }
|
||||||
|
|
||||||
static int32 GetRtiIndex(std::string const rti);
|
static int32 GetRtiIndex(std::string const rti);
|
||||||
Unit* Calculate() override;
|
Unit* Calculate() override;
|
||||||
|
|||||||
Reference in New Issue
Block a user