Simplify call to find_route_name()

Use std::string directly. There's no need to create a temporary
std::string from a char* when the API can use it directly.
This commit is contained in:
Robin Gareus 2022-01-24 21:24:16 +01:00
parent 7128c9958f
commit bdb91a434a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 1 additions and 1 deletions

View File

@ -2907,7 +2907,7 @@ Session::new_route_from_template (uint32_t how_many, PresentationInfo::order_t i
string const route_name = node_copy.property(X_("name"))->value ();
/* generate a new name by adding a number to the end of the template name */
if (!find_route_name (route_name.c_str(), ++number, name, true)) {
if (!find_route_name (route_name, ++number, name, true)) {
fatal << _("Session: Failed to generate unique name and ID for track from template.") << endmsg;
abort(); /*NOTREACHED*/
}