]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for deprecated constructor issues, setting a function without a body as inline...
authorKevin Ollivier <kevino@theolliviers.com>
Tue, 24 Feb 2009 22:19:10 +0000 (22:19 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Tue, 24 Feb 2009 22:19:10 +0000 (22:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h
include/wx/generic/grid.h

index 835eeae759ea64cca77dd19befe74b311ab5f36e..51c395bb7ad115896aae067435b1129868a4d0d8 100644 (file)
@@ -503,7 +503,7 @@ typedef short int WXTYPE;
     handle the deprecation attribute even in the constructor.
     doesn't seem to work on Apple's gcc 4.0.1 unless using -O0
 */
-#if defined( __DARWIN__ ) && !defined(__WXDEBUG__)
+#if wxCHECK_GCC_VERSION(3, 4) || defined( __DARWIN__ )
     #define  wxDEPRECATED_CONSTRUCTOR(x) x
 #else
     #define  wxDEPRECATED_CONSTRUCTOR(x) wxDEPRECATED( inline x)
index cc23938ef4650efc7416709a2cf1a7305cc488ff..ab8e9e3ba2bb8ec296a3c4848a9f40b3dbb16ef1 100644 (file)
@@ -2113,7 +2113,7 @@ public:
 
     // explicitly specifying inline allows gcc < 3.4 to
     // handle the deprecation attribute even in the constructor.
-    wxDEPRECATED( inline
+    wxDEPRECATED_CONSTRUCTOR(
     wxGridEvent(int id,
                 wxEventType type,
                 wxObject* obj,
@@ -2174,7 +2174,7 @@ public:
         SetEventObject(obj);
     }
 
-    wxDEPRECATED( inline
+    wxDEPRECATED_CONSTRUCTOR(
     wxGridSizeEvent(int id,
                     wxEventType type,
                     wxObject* obj,
@@ -2232,7 +2232,7 @@ public:
         SetEventObject(obj);
     }
 
-    wxDEPRECATED( inline
+    wxDEPRECATED_CONSTRUCTOR(
     wxGridRangeSelectEvent(int id,
                            wxEventType type,
                            wxObject* obj,