[glom/glom-1-26] Dialog_InvalidData: Avoid an ambiguous Gda::Value() constructor.



commit 929894ac5e0f0693946b1e0e1f35b9e8a7e6b032
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Apr 25 12:30:24 2014 +0200

    Dialog_InvalidData: Avoid an ambiguous Gda::Value() constructor.

 glom/dialog_invalid_data.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/glom/dialog_invalid_data.cc b/glom/dialog_invalid_data.cc
index d9fe90d..a1a5d9d 100644
--- a/glom/dialog_invalid_data.cc
+++ b/glom/dialog_invalid_data.cc
@@ -80,7 +80,8 @@ void Dialog_InvalidData::set_example_data(Field::glom_field_type glom_type)
     }
     case(Field::TYPE_NUMERIC):
     {
-      Gnome::Gda::Value gda_value(12345678.91);
+      Gnome::Gda::Value gda_value;
+      gda_value.set_double(12345678.91L);
       example_text = Conversions::get_text_for_gda_value(glom_type, gda_value);
       break;
     }


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