[glibmm] MenuAttributeIter: get_value(): Const correction.



commit fa36b18cb435cda0edd7bba95366f30ca7129337
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Dec 2 12:04:50 2016 +0100

    MenuAttributeIter: get_value(): Const correction.
    
    We can fix this now that we can break ABI.

 gio/src/menuattributeiter.hg |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gio/src/menuattributeiter.hg b/gio/src/menuattributeiter.hg
index c66b45e..0e2c941 100644
--- a/gio/src/menuattributeiter.hg
+++ b/gio/src/menuattributeiter.hg
@@ -39,10 +39,7 @@ public:
 
   _WRAP_METHOD(Glib::ustring get_name() const, g_menu_attribute_iter_get_name)
 
-  //TODO: When we can break ABI, remove the method overload and just make it const.
-  //It makes no sense to return const by value.
-  _WRAP_METHOD(Glib::VariantBase get_value(), g_menu_attribute_iter_get_value)
-  _WRAP_METHOD(const Glib::VariantBase get_value() const, g_menu_attribute_iter_get_value, constversion)
+  _WRAP_METHOD(Glib::VariantBase get_value() const, g_menu_attribute_iter_get_value)
 
   _WRAP_METHOD(bool next(), g_menu_attribute_iter_next)
 };


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