[glom] Avoid an unnecessary comparison to true.



commit 8caae98d4b52eedc43a9dba2281a840394a9aad1
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Aug 5 09:25:34 2016 +0200

    Avoid an unnecessary comparison to true.

 glom/libglom/data_structure/glomconversions.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glom/libglom/data_structure/glomconversions.cc b/glom/libglom/data_structure/glomconversions.cc
index ba5ae37..9621701 100644
--- a/glom/libglom/data_structure/glomconversions.cc
+++ b/glom/libglom/data_structure/glomconversions.cc
@@ -691,7 +691,7 @@ Gnome::Gda::Value Conversions::parse_value(Field::glom_field_type glom_type, con
   else if(glom_type == Field::glom_field_type::BOOLEAN)
   {
     success = true;
-    return Gnome::Gda::Value( (text.uppercase() == "TRUE" ? true : false) ); //TODO: Internationalize this, 
but it should never be used anyway.
+    return Gnome::Gda::Value(text.uppercase() == "TRUE"); //TODO: Internationalize this, but it should never 
be used anyway.
   }
   else if(glom_type == Field::glom_field_type::IMAGE)
   {


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