[glom/gtkmm4v4: 37/37] gtkmm4: Some more use of TreeModel::const_iterator.



commit 1ca7a9088ad155f433bc22bf23f248a986c5e095
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 15 15:44:33 2017 +0100

    gtkmm4: Some more use of TreeModel::const_iterator.

 glom/mode_design/fields/box_db_table_definition.cc |    2 +-
 glom/mode_design/fields/box_db_table_definition.h  |    2 +-
 glom/mode_design/layout/dialog_layout_details.cc   |    2 +-
 glom/mode_design/layout/dialog_layout_details.h    |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glom/mode_design/fields/box_db_table_definition.cc 
b/glom/mode_design/fields/box_db_table_definition.cc
index 410eace..bc07202 100644
--- a/glom/mode_design/fields/box_db_table_definition.cc
+++ b/glom/mode_design/fields/box_db_table_definition.cc
@@ -442,7 +442,7 @@ void Box_DB_Table_Definition::on_adddel_extra(const Gtk::TreeModel::iterator& ro
   m_dialog_default_formatting->show();
 }
 
-std::shared_ptr<Field> Box_DB_Table_Definition::get_field_definition(const Gtk::TreeModel::iterator& row)
+std::shared_ptr<Field> Box_DB_Table_Definition::get_field_definition(const Gtk::TreeModel::const_iterator& 
row)
 {
   std::shared_ptr<Field> fieldResult;
 
diff --git a/glom/mode_design/fields/box_db_table_definition.h 
b/glom/mode_design/fields/box_db_table_definition.h
index 08882a2..5cc6ac7 100644
--- a/glom/mode_design/fields/box_db_table_definition.h
+++ b/glom/mode_design/fields/box_db_table_definition.h
@@ -42,7 +42,7 @@ private:
 
   void fill_field_row(const Gtk::TreeModel::iterator& iter, const std::shared_ptr<const Field>& field);
 
-  std::shared_ptr<Field> get_field_definition(const Gtk::TreeModel::iterator& row);
+  std::shared_ptr<Field> get_field_definition(const Gtk::TreeModel::const_iterator& row);
 
   std::shared_ptr<Field> change_definition(const std::shared_ptr<const Field>& fieldOld, const 
std::shared_ptr<const Field>& field);
 
diff --git a/glom/mode_design/layout/dialog_layout_details.cc 
b/glom/mode_design/layout/dialog_layout_details.cc
index d9cabb8..23a8a71 100644
--- a/glom/mode_design/layout/dialog_layout_details.cc
+++ b/glom/mode_design/layout/dialog_layout_details.cc
@@ -205,7 +205,7 @@ Dialog_Layout_Details::Dialog_Layout_Details(BaseObjectType* cobject, const Glib
   m_button_edit->signal_clicked().connect( sigc::mem_fun(*this, &Dialog_Layout_Details::on_button_edit) );
 }
 
-void Dialog_Layout_Details::fill_group(const Gtk::TreeModel::iterator& iter, std::shared_ptr<LayoutGroup>& 
group)
+void Dialog_Layout_Details::fill_group(const Gtk::TreeModel::const_iterator& iter, 
std::shared_ptr<LayoutGroup>& group)
 {
   auto portal = std::dynamic_pointer_cast<LayoutItem_Portal>(group);
   if(portal)
diff --git a/glom/mode_design/layout/dialog_layout_details.h b/glom/mode_design/layout/dialog_layout_details.h
index 77f85b1..8e7bb65 100644
--- a/glom/mode_design/layout/dialog_layout_details.h
+++ b/glom/mode_design/layout/dialog_layout_details.h
@@ -49,7 +49,7 @@ public:
 protected:
 
   void add_group(const Gtk::TreeModel::iterator& parent, const std::shared_ptr<const LayoutGroup>& group);
-  void fill_group(const Gtk::TreeModel::iterator& iter, std::shared_ptr<LayoutGroup>& group);
+  void fill_group(const Gtk::TreeModel::const_iterator& iter, std::shared_ptr<LayoutGroup>& group);
 
   //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]