]> git.saurik.com Git - wxWidgets.git/commitdiff
Workaround for bug in gcc-3.1 through gcc-3.3 in handling deprecation.
authorStefan Neis <Stefan.Neis@t-online.de>
Wed, 8 Oct 2008 12:11:07 +0000 (12:11 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Wed, 8 Oct 2008 12:11:07 +0000 (12:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/grid.h

index 546bf7ea26b2603cce1883ff69854f1f86634a13..1cd87af6707074ef7b339def558a99fd55f8d8e9 100644 (file)
@@ -2326,7 +2326,9 @@ public:
         SetEventObject(obj);
     }
 
         SetEventObject(obj);
     }
 
-    wxDEPRECATED(
+    // explicitly specifying inline allows gcc < 3.4 to 
+    // handle the deprecation attribute even in the constructor. 
+    wxDEPRECATED( inline
     wxGridEvent(int id,
                 wxEventType type,
                 wxObject* obj,
     wxGridEvent(int id,
                 wxEventType type,
                 wxObject* obj,
@@ -2387,7 +2389,7 @@ public:
         SetEventObject(obj);
     }
 
         SetEventObject(obj);
     }
 
-    wxDEPRECATED(
+    wxDEPRECATED( inline
     wxGridSizeEvent(int id,
                     wxEventType type,
                     wxObject* obj,
     wxGridSizeEvent(int id,
                     wxEventType type,
                     wxObject* obj,
@@ -2445,7 +2447,7 @@ public:
         SetEventObject(obj);
     }
 
         SetEventObject(obj);
     }
 
-    wxDEPRECATED(
+    wxDEPRECATED( inline
     wxGridRangeSelectEvent(int id,
                            wxEventType type,
                            wxObject* obj,
     wxGridRangeSelectEvent(int id,
                            wxEventType type,
                            wxObject* obj,