[glom/gtkmm4v3: 18/21] Make code slightly nicer.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/gtkmm4v3: 18/21] Make code slightly nicer.
- Date: Tue, 14 Mar 2017 09:45:05 +0000 (UTC)
commit dc21ebcc571b133c834b328aa9daeb11cd11b4d8
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Mar 14 10:18:07 2017 +0100
Make code slightly nicer.
glom/dialog_existing_or_new.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/glom/dialog_existing_or_new.cc b/glom/dialog_existing_or_new.cc
index 5d8ece3..3810e9d 100644
--- a/glom/dialog_existing_or_new.cc
+++ b/glom/dialog_existing_or_new.cc
@@ -739,12 +739,13 @@ void Dialog_ExistingOrNew::on_service_removed(const Glib::ustring& name, const G
auto children = m_iter_existing_network->children();
for(auto iter = children.begin(); iter != children.end(); ++ iter)
{
- if((*iter)[m_existing_columns.m_col_service_name] == name)
+ auto& row = *iter;
+ if(row[m_existing_columns.m_col_service_name] == name)
{
const auto was_expanded = m_existing_view->row_expanded(m_existing_model->get_path(iter));
// Remove from store
- epc_service_info_unref((*iter)[m_existing_columns.m_col_service_info]);
+ epc_service_info_unref(row[m_existing_columns.m_col_service_info]);
m_existing_model->erase(iter);
// Reinsert dummy, if necessary
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]