projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4367b51
)
Use std::string::operator+() instead of string_compose template in Route class
author
Tim Mayberry
<mojofunk@gmail.com>
Tue, 27 Sep 2016 06:03:54 +0000
(16:03 +1000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Tue, 18 Apr 2017 23:37:01 +0000
(09:37 +1000)
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
patch
|
blob
|
history
diff --git
a/libs/ardour/route.cc
b/libs/ardour/route.cc
index 0c95161e03c4b2b7ba1930c4818e278b4d23ce6d..ec54f83a9a28a7e26d96acac2ff5ca8d2035f1c1 100644
(file)
--- 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);