Use const wherever you can

This commit is contained in:
Johannes Mueller 2017-08-19 14:52:14 +02:00 committed by Robin Gareus
parent e5a41084f3
commit c5c3498e98
1 changed files with 1 additions and 3 deletions

View File

@ -1921,9 +1921,7 @@ RouteUI::save_as_template_dialog_response (int response, SaveTemplateDialog* d)
void
RouteUI::save_as_template ()
{
std::string dir;
dir = ARDOUR::user_route_template_directory ();
const std::string dir = ARDOUR::user_route_template_directory ();
if (g_mkdir_with_parents (dir.c_str(), 0755)) {
error << string_compose (_("Cannot create route template directory %1"), dir) << endmsg;