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