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

@@ -395,7 +395,7 @@ CommandCost RemoveBuoy(TileIndex tile, DoCommandFlag flags)
* @param name The name to check.
* @return True iff the name is unique.
*/
static bool IsUniqueWaypointName(const char *name)
static bool IsUniqueWaypointName(const std::string &name)
{
for (const Waypoint *wp : Waypoint::Iterate()) {
if (!wp->name.empty() && wp->name == name) return false;