[glom/gtkmm4v4: 23/37] gtkmm4: AddDel: get_last_row() const: Use the new const_iterator.



commit 5b2ece70eaab4f0f8a83c944c88031058f6ea5bd
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 15 09:39:35 2017 +0100

    gtkmm4: AddDel: get_last_row() const: Use the new const_iterator.

 glom/utility_widgets/adddel/adddel.cc |    2 +-
 glom/utility_widgets/adddel/adddel.h  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glom/utility_widgets/adddel/adddel.cc b/glom/utility_widgets/adddel/adddel.cc
index d4af425..a60a7bb 100644
--- a/glom/utility_widgets/adddel/adddel.cc
+++ b/glom/utility_widgets/adddel/adddel.cc
@@ -1384,7 +1384,7 @@ Gtk::TreeModel::iterator AddDel::get_next_available_row_with_add_if_necessary()
   return result;
 }
 
-Gtk::TreeModel::iterator AddDel::get_last_row() const
+Gtk::TreeModel::const_iterator AddDel::get_last_row() const
 {
   //TODO_performance: Hopefully there is a better way to do this.
   auto iter = get_model()->children().begin();
diff --git a/glom/utility_widgets/adddel/adddel.h b/glom/utility_widgets/adddel/adddel.h
index 3844c14..2465f61 100644
--- a/glom/utility_widgets/adddel/adddel.h
+++ b/glom/utility_widgets/adddel/adddel.h
@@ -221,7 +221,7 @@ public:
 
   /** Get the last row. This will generally be the placeholder row.
    */
-  Gtk::TreeModel::iterator get_last_row() const;
+  Gtk::TreeModel::const_iterator get_last_row() const;
 
 
 protected:


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