summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_ui.cc
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2017-08-19 14:52:14 +0200
committerRobin Gareus <robin@gareus.org>2017-08-20 21:09:30 +0200
commitc5c3498e98930b863ad205bda0c3ebb1ddfdfe21 (patch)
treebf0376d5f7aa7d6a6d1f56c6d0cd7c4631838010 /gtk2_ardour/route_ui.cc
parente5a41084f31d83cbf80cb68de6009a8c43524f44 (diff)
Use const wherever you can
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r--gtk2_ardour/route_ui.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc
index f059a0adf0..85124ce45c 100644
--- a/gtk2_ardour/route_ui.cc
+++ b/gtk2_ardour/route_ui.cc
@@ -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;