[glom] More un-camelCasing.



commit 57b3400281199a7b34a7fbc293fe1806a2c17a76
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 30 15:48:53 2016 +0200

    More un-camelCasing.

 glom/mode_data/db_adddel/db_adddel.cc |   28 ++++++++++++++--------------
 glom/utility_widgets/adddel/adddel.cc |   28 ++++++++++++++--------------
 2 files changed, 28 insertions(+), 28 deletions(-)
---
diff --git a/glom/mode_data/db_adddel/db_adddel.cc b/glom/mode_data/db_adddel/db_adddel.cc
index 2e78daf..df720e1 100644
--- a/glom/mode_data/db_adddel/db_adddel.cc
+++ b/glom/mode_data/db_adddel/db_adddel.cc
@@ -1303,8 +1303,8 @@ void DbAddDel::on_treeview_cell_edited_bool(const Glib::ustring& path_string, in
 
     //Is this an add or a change?:
 
-    bool bIsAdd = false;
-    bool bIsChange = false;
+    bool is_add = false;
+    bool is_change = false;
 
     const auto iCount = m_list_store->children().size();
     if(iCount)
@@ -1325,17 +1325,17 @@ void DbAddDel::on_treeview_cell_edited_bool(const Glib::ustring& path_string, in
             set_prevent_user_signals(bPreventUserSignals);
          */
 
-          bIsAdd = true; //Signal that a new key was added.
+          is_add = true; //Signal that a new key was added.
           //}
         }
       }
 
-      if(!bIsAdd)
-        bIsChange = true;
+      if(!is_add)
+        is_change = true;
     }
 
     //Fire appropriate signal:
-    if(bIsAdd)
+    if(is_add)
     {
       //Change it back, so that we ignore it:
       row.set_value(tree_model_column_index, value_old);
@@ -1344,7 +1344,7 @@ void DbAddDel::on_treeview_cell_edited_bool(const Glib::ustring& path_string, in
       //We will ignore editing of bool values in the blank row. It seems like a bad way to start a new 
record.
       //user_added(row);
     }
-    else if(bIsChange)
+    else if(is_change)
     {
       //Existing item changed:
 
@@ -1416,8 +1416,8 @@ void DbAddDel::on_treeview_cell_edited(const Glib::ustring& path_string, const G
     //row.set_value(treemodel_column_index, new_text);
 
     //Is it an add or a change?:
-    bool bIsAdd = false;
-    bool bIsChange = false;
+    bool is_add = false;
+    bool is_change = false;
     bool do_change = true;
 
     if(get_allow_user_actions()) //If add is possible:
@@ -1437,7 +1437,7 @@ void DbAddDel::on_treeview_cell_edited(const Glib::ustring& path_string, const G
 
         set_prevent_user_signals(bPreventUserSignals);
 
-        bIsAdd = true; //Signal that a new key was added.
+        is_add = true; //Signal that a new key was added.
       }
     }
 
@@ -1504,17 +1504,17 @@ void DbAddDel::on_treeview_cell_edited(const Glib::ustring& path_string, const G
         //std::cout << "debug: after setting value\n";
       }
 
-      if(!bIsAdd)
-        bIsChange = true;
+      if(!is_add)
+        is_change = true;
 
       //Fire appropriate signal:
-      if(bIsAdd)
+      if(is_add)
       {
         //Signal that a new key was added:
         if(m_allow_add)
           user_added(row);
       }
-      else if(bIsChange)
+      else if(is_change)
       {
         //Existing item changed:
         //Check that it has really changed - get the last value.
diff --git a/glom/utility_widgets/adddel/adddel.cc b/glom/utility_widgets/adddel/adddel.cc
index 3ded435..49ad2a1 100644
--- a/glom/utility_widgets/adddel/adddel.cc
+++ b/glom/utility_widgets/adddel/adddel.cc
@@ -1077,8 +1077,8 @@ void AddDel::on_treeview_cell_edited_bool(const Glib::ustring& path_string, int
 
     //Is this an add or a change?:
 
-    bool bIsAdd = false;
-    bool bIsChange = false;
+    bool is_add = false;
+    bool is_change = false;
 
     int iCount = m_list_store->children().size();
     if(iCount)
@@ -1099,17 +1099,17 @@ void AddDel::on_treeview_cell_edited_bool(const Glib::ustring& path_string, int
             set_prevent_user_signals(bPreventUserSignals);
          */
 
-          bIsAdd = true; //Signal that a new key was added.
+          is_add = true; //Signal that a new key was added.
           //}
         }
       }
 
-      if(!bIsAdd)
-        bIsChange = true;
+      if(!is_add)
+        is_change = true;
     }
 
     //Fire appropriate signal:
-    if(bIsAdd)
+    if(is_add)
     {
       //Change it back, so that we ignore it:
       row.set_value(model_column_index, value_old);
@@ -1118,7 +1118,7 @@ void AddDel::on_treeview_cell_edited_bool(const Glib::ustring& path_string, int
       //We will ignore editing of bool values in the blank row. It seems like a bad way to start a new 
record.
       //m_signal_user_added.emit(row);
     }
-    else if(bIsChange)
+    else if(is_change)
     {
       //Existing item changed:
 
@@ -1151,8 +1151,8 @@ void AddDel::on_treeview_cell_edited(const Glib::ustring& path_string, const Gli
       return; //This is not actually an edit.
 
     //Is it an add or a change?:
-    bool bIsAdd = false;
-    bool bIsChange = false;
+    bool is_add = false;
+    bool is_change = false;
 
     if(get_allow_user_actions()) //If add is possible:
     {
@@ -1176,20 +1176,20 @@ void AddDel::on_treeview_cell_edited(const Glib::ustring& path_string, const Gli
         }
         set_prevent_user_signals(bPreventUserSignals);
 
-        bIsAdd = true; //Signal that a new key was added.
+        is_add = true; //Signal that a new key was added.
       }
     }
 
-    if(!bIsAdd)
-      bIsChange = true;
+    if(!is_add)
+      is_change = true;
 
     //Fire appropriate signal:
-    if(bIsAdd)
+    if(is_add)
     {
         //Signal that a new key was added"
         m_signal_user_added.emit(row);
     }
-    else if(bIsChange)
+    else if(is_change)
     {
       //Existing item changed:
       //Check that it has really changed - get the last value.


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