[glom/gtkmm4v4: 33/37] gtkmm4: some TreeModel::Row const correction.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/gtkmm4v4: 33/37] gtkmm4: some TreeModel::Row const correction.
- Date: Wed, 15 Mar 2017 14:56:44 +0000 (UTC)
commit fc663f6f797d61dbeb69a86af532afb5702b54e3
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Mar 15 11:28:25 2017 +0100
gtkmm4: some TreeModel::Row const correction.
glom/mode_design/layout/dialog_layout.cc | 2 +-
glom/mode_design/layout/dialog_layout_details.cc | 4 ++--
.../report_layout/dialog_layout_report.cc | 2 +-
.../mode_design/translation/window_translations.cc | 2 +-
glom/navigation/box_tables.cc | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/glom/mode_design/layout/dialog_layout.cc b/glom/mode_design/layout/dialog_layout.cc
index 5e62bcc..511f174 100644
--- a/glom/mode_design/layout/dialog_layout.cc
+++ b/glom/mode_design/layout/dialog_layout.cc
@@ -147,7 +147,7 @@ void Dialog_Layout::treeview_fill_sequences(const Glib::RefPtr<Gtk::TreeModel> m
//Add sequences to any that don't have a sequence:
//(0 means no sequence)
guint next_sequence = max_sequence+1; //This could leave holes, of course. But we want new groups to be
after the old groups. We can compact it later.
- for(const auto& row : model->children())
+ for(auto& row : model->children())
{
guint sequence = row[sequence_column];
if(sequence == 0)
diff --git a/glom/mode_design/layout/dialog_layout_details.cc
b/glom/mode_design/layout/dialog_layout_details.cc
index 3906b55..1069b7e 100644
--- a/glom/mode_design/layout/dialog_layout_details.cc
+++ b/glom/mode_design/layout/dialog_layout_details.cc
@@ -227,7 +227,7 @@ void Dialog_Layout_Details::fill_group(const Gtk::TreeModel::iterator& iter, std
group->remove_all_items(); //Remove the copied child items, if any, so we can add them.
//Get child layout items:
- for(const auto& rowChild : row.children())
+ for(auto& rowChild : row.children())
{
std::shared_ptr<LayoutItem> layout_item = rowChild[m_model_items->m_columns.m_col_layout_item];
@@ -1046,7 +1046,7 @@ void Dialog_Layout_Details::save_to_document()
Document::type_list_layout_groups list_groups;
//Add the layout items:
- for(const auto& row : m_model_items->children())
+ for(auto& row : m_model_items->children())
{
std::shared_ptr<LayoutItem> layout_item = row[m_model_items->m_columns.m_col_layout_item];
diff --git a/glom/mode_design/report_layout/dialog_layout_report.cc
b/glom/mode_design/report_layout/dialog_layout_report.cc
index ae84502..e325745 100644
--- a/glom/mode_design/report_layout/dialog_layout_report.cc
+++ b/glom/mode_design/report_layout/dialog_layout_report.cc
@@ -257,7 +257,7 @@ void Dialog_Layout_Report::fill_group_children(const std::shared_ptr<LayoutGroup
const auto row = *iter;
group->remove_all_items();
- for(const auto& child_row : row.children())
+ for(auto& child_row : row.children())
{
std::shared_ptr<LayoutItem> item = child_row[model->m_columns.m_col_item];
diff --git a/glom/mode_design/translation/window_translations.cc
b/glom/mode_design/translation/window_translations.cc
index dd41362..9e5c944 100644
--- a/glom/mode_design/translation/window_translations.cc
+++ b/glom/mode_design/translation/window_translations.cc
@@ -302,7 +302,7 @@ void Window_Translations::on_button_copy_translation()
//Save and update:
on_combo_target_locale_changed();
- for(const auto& row : m_model->children())
+ for(auto& row : m_model->children())
{
std::shared_ptr<TranslatableItem> item = row[m_columns.m_col_item];
if(item)
diff --git a/glom/navigation/box_tables.cc b/glom/navigation/box_tables.cc
index 99bd86c..eeb28c9 100644
--- a/glom/navigation/box_tables.cc
+++ b/glom/navigation/box_tables.cc
@@ -387,7 +387,7 @@ void Box_Tables::on_adddel_changed(const Gtk::TreeModel::iterator& row, guint co
{
//Set all the other rows to false:
auto model = m_AddDel.get_model();
- for(const auto& child_row : model->children())
+ for(auto& child_row : model->children())
{
m_AddDel.set_value(child_row.get_iter(), m_col_default, false);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]