summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glib/src/variant.ccg4
-rw-r--r--glib/src/variant.hg4
2 files changed, 4 insertions, 4 deletions
diff --git a/glib/src/variant.ccg b/glib/src/variant.ccg
index a95e390b..d70af542 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 7927a4d5..7ecc0eb3 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.
*