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

@@ -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;