[glibmm] Variant<std::string>::get(): Correct my custom implementation.



commit 07981769f4b9795b156b8f2bfddd916b4de6d6c3
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Mar 29 10:32:47 2011 +0200

    Variant<std::string>::get(): Correct my custom implementation.
    
    * glib/src/variant.ccg: Really call g_variant_get_bytestring().

 ChangeLog            |    6 ++++++
 glib/src/variant.ccg |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e593074..6d592aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-03-29  Murray Cumming  <murrayc murrayc com>
 
+	Variant<std::string>::get(): Correct my custom implementation.
+
+	* glib/src/variant.ccg: Really call g_variant_get_bytestring().
+
+2011-03-29  Murray Cumming  <murrayc murrayc com>
+
 	Variant: Move constructor definitions into the .cc file.
 
 	* glib/src/variant.[hg|ccg]: The implementations of constructors for
diff --git a/glib/src/variant.ccg b/glib/src/variant.ccg
index 426cd73..39509f0 100644
--- a/glib/src/variant.ccg
+++ b/glib/src/variant.ccg
@@ -311,7 +311,7 @@ std::string Variant<std::string>::get() const
 
   const char* pch = 0;
   if(vtype.equal(VARIANT_TYPE_BYTESTRING))
-    pch = g_variant_get_string(gobject_, 0);
+    pch = g_variant_get_bytestring(gobject_);
   else //g_variant_get_string() cna handle strings, object paths, and signatures.
     pch = g_variant_get_string(gobject_, 0);
 



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