[libgdamm] Value: Add missing create_as_int64/uint64() implementations.



commit 809122fa46d8a280648ed8d4c30f9b3bd0d5d037
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Apr 25 13:05:44 2014 +0200

    Value: Add missing create_as_int64/uint64() implementations.

 libgda/libgdamm/value.cc |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/libgda/libgdamm/value.cc b/libgda/libgdamm/value.cc
index 1f4be1a..5829fe0 100644
--- a/libgda/libgdamm/value.cc
+++ b/libgda/libgdamm/value.cc
@@ -45,23 +45,19 @@ namespace Gnome
 namespace Gda
 {
 
-
-
-//static:
-/*
 Value Value::create_as_int64(gint64 val)
 {
-  return Value( gda_value_new_int64(val) );
+  Value result;
+  result.set_int64(val);
+  return result;
 }
 
-
-//static:
 Value Value::create_as_uint64(guint64 val)
 {
-  return Value( gda_value_new_uint64(val) );
+  Value result;
+  result.set_uint64(val);
+  return result;
 }
-*/
-
 
 Value::Value(const guchar* val, long size)
 {


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