[glibmm] Put deprecation ifdefs around GLIBMM_INITIALIZE_STRUCT.



commit 26efc8099c995c922acee05ed7223da1787ce2ad
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Jan 7 09:06:04 2016 +0100

    Put deprecation ifdefs around GLIBMM_INITIALIZE_STRUCT.
    
    It is already deprecated.

 glib/glibmm/utility.h |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/glib/glibmm/utility.h b/glib/glibmm/utility.h
index fcec8ec..379b524 100644
--- a/glib/glibmm/utility.h
+++ b/glib/glibmm/utility.h
@@ -24,12 +24,13 @@
 
 #ifndef DOXYGEN_SHOULD_SKIP_THIS
 
+#ifndef GLIBMM_DISABLE_DEPRECATED
 /* Occasionally, a struct variable has to be initialized after its definition,
  * i.e. when using structs as class member data.  For convenience, the macro
  * GLIBMM_INITIALIZE_STRUCT(Var, Type) is provided.  It even avoids creating
  * a temporary if the compiler is GCC.
  *
- * Deprecated: Use e.g. std::memset() instead.
+ * @deprecated Use e.g. std::memset() instead.
  * It's not used any more in the code generated by _CLASS_BOXEDTYPE_STATIC.
  * It generates compiler warnings if __STRICT_ANSI__ is defined.
  */
@@ -48,6 +49,7 @@
     }G_STMT_END
 
 #endif
+#endif //GLIBMM_DISABLE_DEPRECATED
 
 
 namespace Glib
@@ -74,7 +76,10 @@ public:
   T** addr()                  { return &ptr_; }
 };
 
-// Removes the const nature of a ptr
+//TODO: Deprecate this? We don't use it ourselves.
+/** Removes the const nature of a ptr
+ *
+ */
 template <class T>
 inline T* unconst(const T* t)
   { return const_cast<T*>(t); }


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