From bdb91a434abed6c8dce1c5c5b2e404d412a3bf7a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 24 Jan 2022 21:24:16 +0100 Subject: [PATCH] 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. --- libs/ardour/session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 4914612ac4..873237a3a8 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -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*/ }