From 44e55c501e787329b265876345e770531ed464b8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 30 Jan 2020 23:35:37 +0100 Subject: [PATCH] Add some const'ness --- gtk2_ardour/ardour_ui.cc | 4 ++-- gtk2_ardour/ardour_ui.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 58baa84a59..3fbb1b3e29 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -2314,7 +2314,7 @@ ARDOUR_UI::meta_session_setup (const std::string& script_path) } void -ARDOUR_UI::display_cleanup_results (ARDOUR::CleanupReport& rep, const gchar* list_title, const bool msg_delete) +ARDOUR_UI::display_cleanup_results (ARDOUR::CleanupReport const& rep, const gchar* list_title, const bool msg_delete) { size_t removed; @@ -2421,7 +2421,7 @@ will release an additional %3 %4bytes of disk space.\n", removed), dhbox.pack_start (*dimage, true, false, 5); dhbox.pack_start (txt, true, false, 5); - for (vector::iterator i = rep.paths.begin(); i != rep.paths.end(); ++i) { + for (vector::const_iterator i = rep.paths.begin(); i != rep.paths.end(); ++i) { TreeModel::Row row = *(results_model->append()); row[results_columns.visible_name] = *i; row[results_columns.fullpath] = *i; diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index cab60c78a2..58a216a93b 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -765,7 +765,7 @@ private: Gtk::MenuItem *cleanup_item; - void display_cleanup_results (ARDOUR::CleanupReport& rep, const gchar* list_title, const bool msg_delete); + void display_cleanup_results (ARDOUR::CleanupReport const& rep, const gchar* list_title, const bool msg_delete); void cleanup (); void cleanup_peakfiles (); void flush_trash ();