refactor: use references where possible
This commit is contained in:
parent
e127d94902
commit
e6e20a1e08
@ -14,7 +14,7 @@ public:
|
||||
return std::string(name);
|
||||
}
|
||||
|
||||
const std::vector<int32_t> GetSkillInfo() const
|
||||
const std::vector<int32_t>& GetSkillInfo() const
|
||||
{
|
||||
return m_SkillInfo;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
return std::string(name);
|
||||
}
|
||||
|
||||
const std::vector<int32_t> GetSkillInfo() const
|
||||
const std::vector<int32_t>& GetSkillInfo() const
|
||||
{
|
||||
return m_SkillInfo;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
return std::string(name);
|
||||
}
|
||||
|
||||
const std::vector<int32_t> GetSkillInfo() const
|
||||
const std::vector<int32_t>& GetSkillInfo() const
|
||||
{
|
||||
return m_SkillInfo;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class EntityHandler
|
||||
{
|
||||
public:
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user