[glibmm] Use _DEPRECATE_IFDEF_START/END in .hg/ccg files.



commit fe8c150153e64a29b09d068a478edbeafdc59524
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Apr 10 16:09:26 2016 +0200

    Use _DEPRECATE_IFDEF_START/END in .hg/ccg files.

 glib/src/variant.ccg |    4 ++--
 glib/src/variant.hg  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glib/src/variant.ccg b/glib/src/variant.ccg
index a95e390..d70af54 100644
--- a/glib/src/variant.ccg
+++ b/glib/src/variant.ccg
@@ -249,12 +249,12 @@ VariantContainerBase::get_iter(const VariantType& container_variant_type) const
 
 /****************** Specializations ***********************************/
 
-#ifndef GLIBMM_DISABLE_DEPRECATED
+_DEPRECATE_IFDEF_START
 VariantBase::operator const void*() const
 {
   return gobj() ? GINT_TO_POINTER(1) : nullptr;
 }
-#endif // GLIBMM_DISABLE_DEPRECATED
+_DEPRECATE_IFDEF_END
 
 VariantBase::operator bool() const
 {
diff --git a/glib/src/variant.hg b/glib/src/variant.hg
index 7927a4d..7ecc0eb 100644
--- a/glib/src/variant.hg
+++ b/glib/src/variant.hg
@@ -95,7 +95,7 @@ class VariantBase
     g_variant_get, g_variant_get_va)
 public:
 
-#ifndef GLIBMM_DISABLE_DEPRECATED
+_DEPRECATE_IFDEF_START
   /** This typedef is just to make it more obvious that
    * our operator const void* should be used like operator bool().
    *
@@ -116,7 +116,7 @@ public:
    * @newin{2,36}
    */
    operator BoolExpr() const;
-#endif // GLIBMM_DISABLE_DEPRECATED
+_DEPRECATE_IFDEF_END
 
    /** Test whether the Variant has an underlying instance.
     *


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