[glom/gtkmm4v4: 34/37] gtkmm4: Dialog_Layout_Report: Use TreeModel::const_iterator.



commit c6bcdf60f0ad7e5f80a6a781888ed1614cd1a990
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 15 12:29:06 2017 +0100

    gtkmm4: Dialog_Layout_Report: Use TreeModel::const_iterator.

 .../report_layout/dialog_layout_report.cc          |    4 ++--
 .../report_layout/dialog_layout_report.h           |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glom/mode_design/report_layout/dialog_layout_report.cc 
b/glom/mode_design/report_layout/dialog_layout_report.cc
index e325745..95f5066 100644
--- a/glom/mode_design/report_layout/dialog_layout_report.cc
+++ b/glom/mode_design/report_layout/dialog_layout_report.cc
@@ -230,7 +230,7 @@ void Dialog_Layout_Report::setup_model(Gtk::TreeView& treeview, Glib::RefPtr<typ
   //m_model_parts_main->signal_row_changed().connect( sigc::mem_fun(*this, 
&Dialog_Layout_Report::on_treemodel_row_changed) );
 }
 
-std::shared_ptr<LayoutGroup> Dialog_Layout_Report::fill_group(const Gtk::TreeModel::iterator& iter, const 
Glib::RefPtr<const type_model> model)
+std::shared_ptr<LayoutGroup> Dialog_Layout_Report::fill_group(const Gtk::TreeModel::const_iterator& iter, 
const Glib::RefPtr<const type_model> model)
 {
   if(iter)
   {
@@ -250,7 +250,7 @@ std::shared_ptr<LayoutGroup> Dialog_Layout_Report::fill_group(const Gtk::TreeMod
   return  std::shared_ptr<LayoutGroup>();
 }
 
-void Dialog_Layout_Report::fill_group_children(const std::shared_ptr<LayoutGroup>& group, const 
Gtk::TreeModel::iterator& iter, const Glib::RefPtr<const type_model> model)
+void Dialog_Layout_Report::fill_group_children(const std::shared_ptr<LayoutGroup>& group, const 
Gtk::TreeModel::const_iterator& iter, const Glib::RefPtr<const type_model> model)
 {
   if(iter)
   {
diff --git a/glom/mode_design/report_layout/dialog_layout_report.h 
b/glom/mode_design/report_layout/dialog_layout_report.h
index e27a17d..97cbdb1 100644
--- a/glom/mode_design/report_layout/dialog_layout_report.h
+++ b/glom/mode_design/report_layout/dialog_layout_report.h
@@ -57,8 +57,8 @@ private:
 
   void add_group_children(const Glib::RefPtr<type_model>& model_parts, const Gtk::TreeModel::iterator& 
parent, const std::shared_ptr<const LayoutGroup>& group);
 
-  void fill_group_children(const std::shared_ptr<LayoutGroup>& group, const Gtk::TreeModel::iterator& iter, 
const Glib::RefPtr<const type_model> model);
-  std::shared_ptr<LayoutGroup> fill_group(const Gtk::TreeModel::iterator& iter, const Glib::RefPtr<const 
type_model> model);
+  void fill_group_children(const std::shared_ptr<LayoutGroup>& group, const Gtk::TreeModel::const_iterator& 
iter, const Glib::RefPtr<const type_model> model);
+  std::shared_ptr<LayoutGroup> fill_group(const Gtk::TreeModel::const_iterator& iter, const 
Glib::RefPtr<const type_model> model);
 
   //Enable/disable buttons, depending on treeview selection:
   void enable_buttons() override;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]