[glom] Notebook_Find: Avoid an unused value assignment.



commit 1fa1fa804843a4f03f9005ddce543993bb59134b
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 30 11:57:49 2016 +0200

    Notebook_Find: Avoid an unused value assignment.
    
    Found by cppcheck.

 glom/mode_find/notebook_find.cc |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/glom/mode_find/notebook_find.cc b/glom/mode_find/notebook_find.cc
index e7b12cd..4c70d02 100644
--- a/glom/mode_find/notebook_find.cc
+++ b/glom/mode_find/notebook_find.cc
@@ -61,9 +61,7 @@ Notebook_Find::~Notebook_Find()
 
 bool Notebook_Find::init_db_details(const Glib::ustring& table_name, const Glib::ustring& layout_platform)
 {
-  bool result = true;
-
-  result = m_Box_List.init_db_details(table_name, layout_platform);
+  const auto result = m_Box_List.init_db_details(table_name, layout_platform);
 
   m_Box_Details.init_db_details(table_name, layout_platform);
 


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