Use const wherever you can
authorJohannes Mueller <github@johannes-mueller.org>
Sat, 19 Aug 2017 12:52:14 +0000 (14:52 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 20 Aug 2017 19:09:30 +0000 (21:09 +0200)
gtk2_ardour/route_ui.cc

index f059a0adf03f13b46020699b85c6adf55a93e2d8..85124ce45caf42aa003538a492b6b09a94e3df2e 100644 (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;