diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-04-10 16:09:26 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-04-10 16:09:26 +0200 |
commit | fe8c150153e64a29b09d068a478edbeafdc59524 (patch) | |
tree | 2eb90c472ed78ccc720234997f65f1e7066a9d66 | |
parent | 35af42466f6b36fe222b2e7a80589ff12004b1f8 (diff) | |
download | glibmm-fe8c150153e64a29b09d068a478edbeafdc59524.tar.gz |
Use _DEPRECATE_IFDEF_START/END in .hg/ccg files.
-rw-r--r-- | glib/src/variant.ccg | 4 | ||||
-rw-r--r-- | 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 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. * |