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:
parent
7128c9958f
commit
bdb91a434a
@ -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*/
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user