refactor: use references where possible
This commit is contained in:
@@ -14,7 +14,7 @@ public:
|
|||||||
return std::string(name);
|
return std::string(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<int32_t> GetSkillInfo() const
|
const std::vector<int32_t>& GetSkillInfo() const
|
||||||
{
|
{
|
||||||
return m_SkillInfo;
|
return m_SkillInfo;
|
||||||
}
|
}
|
||||||
|
@@ -14,7 +14,7 @@ public:
|
|||||||
return std::string(name);
|
return std::string(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<int32_t> GetSkillInfo() const
|
const std::vector<int32_t>& GetSkillInfo() const
|
||||||
{
|
{
|
||||||
return m_SkillInfo;
|
return m_SkillInfo;
|
||||||
}
|
}
|
||||||
|
@@ -14,7 +14,7 @@ public:
|
|||||||
return std::string(name);
|
return std::string(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<int32_t> GetSkillInfo() const
|
const std::vector<int32_t>& GetSkillInfo() const
|
||||||
{
|
{
|
||||||
return m_SkillInfo;
|
return m_SkillInfo;
|
||||||
}
|
}
|
||||||
|
@@ -12,7 +12,7 @@ class EntityHandler
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
template<typename T>
|
template<typename T>
|
||||||
const std::map<uint32_t, std::shared_ptr<DTO::EntityState>> GetEntities(const std::map<uint32_t, T> items, std::function<std::unique_ptr<Entities::EntityInterface>(T)> callback)
|
const std::map<uint32_t, std::shared_ptr<DTO::EntityState>>& GetEntities(const std::map<uint32_t, T> items, std::function<std::unique_ptr<Entities::EntityInterface>(T)> callback)
|
||||||
{
|
{
|
||||||
RemoveOutdatedStates();
|
RemoveOutdatedStates();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user