1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 13:09:15 +00:00

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

@@ -1061,7 +1061,7 @@ void EnginesMonthlyLoop()
* @param name New name of an engine.
* @return \c false if the name is being used already, else \c true.
*/
static bool IsUniqueEngineName(const char *name)
static bool IsUniqueEngineName(const std::string &name)
{
for (const Engine *e : Engine::Iterate()) {
if (!e->name.empty() && e->name == name) return false;