Codechange: remove a number of unneeded c_str() calls

This commit is contained in:
Rubidium
2023-06-15 19:15:08 +02:00
committed by rubidium42
parent aae8f40b9f
commit d4c2043294
12 changed files with 19 additions and 20 deletions

View File

@@ -96,7 +96,7 @@ void DriverFactoryBase::SelectDriver(const std::string &name, Driver::Type type)
if (!DriverFactoryBase::SelectDriverImpl(name, type)) {
name.empty() ?
UserError("Failed to autoprobe {} driver", GetDriverTypeName(type)) :
UserError("Failed to select requested {} driver '{}'", GetDriverTypeName(type), name.c_str());
UserError("Failed to select requested {} driver '{}'", GetDriverTypeName(type), name);
}
}