summaryrefslogtreecommitdiff
path: root/src/depot_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/depot_cmd.cpp
parentb4aedef848822649d3f7a045504eb2a9870b4b7e (diff)
downloadopenttd-661728558e9ce2eb8cfdb6afd7182b85e1f19a67.tar.xz
Codechange: let IsUnique.* functions accept std::string
Diffstat (limited to 'src/depot_cmd.cpp')
-rw-r--r--src/depot_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_cmd.cpp b/src/depot_cmd.cpp
index 9379afb82..729678072 100644
--- a/src/depot_cmd.cpp
+++ b/src/depot_cmd.cpp
@@ -26,7 +26,7 @@
* @param name The name to check.
* @return True if there is no depot with the given name.
*/
-static bool IsUniqueDepotName(const char *name)
+static bool IsUniqueDepotName(const std::string &name)
{
for (const Depot *d : Depot::Iterate()) {
if (!d->name.empty() && d->name == name) return false;