mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 06:37:19 +00:00
[Performance] Change to use Pass by reference where valid. (#3163)
* [Performance] Change to use Pass by reference where valid. * typo
This commit is contained in:
1 parent
7f7ba2e6c2
commit
1ffdd4cb34
31 files changed
+66
-66
No files matched your search
@@ -174,7 +174,7 @@ ZoneRepository::Zone *ZoneStore::GetZone(const char *in_zone_name)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ZoneRepository::Zone *ZoneStore::GetZone(std::string in_zone_name)
|
||||
ZoneRepository::Zone *ZoneStore::GetZone(const std::string& in_zone_name)
|
||||
{
|
||||
for (auto &z: m_zones) {
|
||||
if (z.short_name == in_zone_name) {
|
||||
|
||||
Reference in new issue
Block a user