[Cleanup] Reference type in GetRaidLeaderName (#4218)

Minor cleanup from #4054
This commit is contained in:
JJ authored and GitHub committed 2024-03-28 19:15:16 -04:00
1 parent ab8ac81df6
commit b946b800fb
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1333,7 +1333,7 @@ uint32 Database::GetRaidID(const std::string& name)
return e.raidid;
}
const std::string& Database::GetRaidLeaderName(uint32 raid_id)
const std::string Database::GetRaidLeaderName(uint32 raid_id)
{
const auto& l = RaidMembersRepository::GetWhere(
*this,
@@ -1348,7 +1348,7 @@ const std::string& Database::GetRaidLeaderName(uint32 raid_id)
return "UNKNOWN";
}
auto e = l.front();
auto& e = l.front();
return e.name;
}