13
0

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.
This commit is contained in:
Tim Mayberry 2016-09-27 16:03:54 +10:00
parent 4367b51e56
commit af1f4b933b

View File

@ -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);