summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-09-27 16:03:54 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-04-19 09:37:01 +1000
commitaf1f4b933b567c934b6523d1f227285f5767f695 (patch)
treedf15a20e76c48a336d1c1c6d8e344aa584e8e9a8 /libs/ardour/route.cc
parent4367b51e565e9233a69e86a47ab48c0027091426 (diff)
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.
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc2
1 files changed, 1 insertions, 1 deletions
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);