]> git.saurik.com Git - wxWidgets.git/commitdiff
must include typeinfo before using typeid()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 14 Sep 2008 00:03:29 +0000 (00:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 14 Sep 2008 00:03:29 +0000 (00:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgridpagestate.cpp

index 859dff0d519e4083df228885ace02b20d6e0d802..ac1792083f1940336016cf88ce103e886f92a0bf 100644 (file)
@@ -55,6 +55,7 @@
 #include <wx/propgrid/propgrid.h>
 #include <wx/propgrid/editors.h>
 
+#include <typeinfo>
 
 #define wxPG_DEFAULT_SPLITTERX      110
 
@@ -399,7 +400,8 @@ wxPGProperty* wxPropertyGridPageState::GetLastItem( int flags )
     if ( pwc->GetFlags() & itemExMask )
     {
         wxPropertyGridIterator it( this, flags, pwc );
-        for ( ; !it.AtEnd(); it.Prev() );
+        for ( ; !it.AtEnd(); it.Prev() )
+            ;
         pwc = (wxPGProperty*) it.GetProperty();
     }