From af1f4b933b567c934b6523d1f227285f5767f695 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 27 Sep 2016 16:03:54 +1000 Subject: [PATCH] Use std::string::operator+() instead of string_compose template in Route class Using string_compose in this instance doesn't seem necessary, is worse in terms of readability and is no doubt slower. --- libs/ardour/route.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 0c95161e03..ec54f83a9a 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -4090,7 +4090,7 @@ Route::set_name_in_state (XMLNode& node, string const & name, bool rename_playli } else if ((*i)->name() == X_("Diskstream")) { if (rename_playlist) { - (*i)->set_property (X_("playlist"), string_compose ("%1.1", name).c_str()); + (*i)->set_property (X_("playlist"), name + ".1"); } (*i)->set_property (X_("name"), name);