From: Robin Dunn Date: Fri, 13 Jan 2006 05:22:16 +0000 (+0000) Subject: Fix for MSVC 6 compile error X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6b6e73390c1e2ad47afd3f196e19cb2c67a78564 Fix for MSVC 6 compile error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/contrib/activex/wxie/wxactivex.cpp b/wxPython/contrib/activex/wxie/wxactivex.cpp index 39b178e441..2e13d8d5de 100644 --- a/wxPython/contrib/activex/wxie/wxactivex.cpp +++ b/wxPython/contrib/activex/wxie/wxactivex.cpp @@ -1172,7 +1172,8 @@ void wxActiveX::GetTypeInfo(ITypeInfo *ti, bool defInterface, bool defEventSink) // Get properties // See bug #1280715 in the wxActiveX SF project - for (int i = 0; i < ta->cVars; i++) { + int i; + for (i = 0; i < ta->cVars; i++) { VARDESC FAR *vd = NULL; typeInfo->GetVarDesc(i, &vd) ; @@ -1197,7 +1198,7 @@ void wxActiveX::GetTypeInfo(ITypeInfo *ti, bool defInterface, bool defEventSink) } // Get Function Names - for (int i = 0; i < ta->cFuncs; i++) + for (i = 0; i < ta->cFuncs; i++) { FUNCDESC FAR *fd = NULL;