summaryrefslogtreecommitdiff
path: root/src/waypoint_cmd.cpp
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-29 16:07:42 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-29 19:02:18 +0200
commit661728558e9ce2eb8cfdb6afd7182b85e1f19a67 (patch)
tree24f5f4c38e70edd1b6b4adead7253dcf4930642f /src/waypoint_cmd.cpp
parentb4aedef848822649d3f7a045504eb2a9870b4b7e (diff)
downloadopenttd-661728558e9ce2eb8cfdb6afd7182b85e1f19a67.tar.xz
Codechange: let IsUnique.* functions accept std::string
Diffstat (limited to 'src/waypoint_cmd.cpp')
-rw-r--r--src/waypoint_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp
index e8e9e6945..b41e80f97 100644
--- a/src/waypoint_cmd.cpp
+++ b/src/waypoint_cmd.cpp
@@ -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;