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

@@ -748,7 +748,7 @@ CommandCost CmdDepotMassAutoReplace(TileIndex tile, DoCommandFlag flags, uint32
* @param name Name to test.
* @return True ifffffff the name is unique.
*/
static bool IsUniqueVehicleName(const char *name)
static bool IsUniqueVehicleName(const std::string &name)
{
for (const Vehicle *v : Vehicle::Iterate()) {
if (!v->name.empty() && v->name == name) return false;