Codechange: let IsUnique.* functions accept std::string

This commit is contained in:
rubidium42
2021-05-29 16:07:42 +02:00
committed by rubidium42
parent b4aedef848
commit 661728558e
7 changed files with 8 additions and 8 deletions

View File

@@ -1907,7 +1907,7 @@ static CommandCost TownCanBePlacedHere(TileIndex tile)
* @param name name to check
* @return is this name unique?
*/
static bool IsUniqueTownName(const char *name)
static bool IsUniqueTownName(const std::string &name)
{
for (const Town *t : Town::Iterate()) {
if (!t->name.empty() && t->name == name) return false;