[pangomm] AttrString: Let _MEMBER_GET convert from const char*



commit 0346f8f64bf1323563b8811202e8acc5c2a2aef5
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Mon Jun 26 13:07:23 2017 +0200

    AttrString: Let _MEMBER_GET convert from const char*
    
    It's better to invoke a _CONVERSION that converts from a constant character
    array. _MEMBER_GET shall not modify or delete the array. The used _CONVERSION
    from non-const char* will be removed from convert_glib.m4. Bug 783360

 pango/src/attributes.hg |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pango/src/attributes.hg b/pango/src/attributes.hg
index aeb0034..395fe5f 100644
--- a/pango/src/attributes.hg
+++ b/pango/src/attributes.hg
@@ -261,7 +261,7 @@ public:
   /** Gets the string which is the value of the attribute.
    * @return The string value of the attribute.
    */
-  _MEMBER_GET(string, value, Glib::ustring, char*)
+  _MEMBER_GET(string, value, Glib::ustring, const char*)
 
   /** Sets the string which is the value of the attribute.
    * @param string The new string value for the attribute.


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