From 0a1bce698f68b0fe06178128895c54275dd3e5bb Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Sun, 9 Nov 2008 16:49:52 +0000 Subject: [PATCH] fix VC6 broken for variable scope handling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/ifacecheck/src/ifacecheck.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/utils/ifacecheck/src/ifacecheck.cpp b/utils/ifacecheck/src/ifacecheck.cpp index 3abe8356af..78abbe78ec 100644 --- a/utils/ifacecheck/src/ifacecheck.cpp +++ b/utils/ifacecheck/src/ifacecheck.cpp @@ -434,6 +434,7 @@ bool IfaceCheckApp::StringContainsMethodName(const wxString& str, const wxMethod bool IfaceCheckApp::FixMethod(const wxString& header, const wxMethod* iface, const wxMethod* api) { + unsigned int i,j; wxASSERT(iface && api); wxTextFile file; @@ -521,7 +522,7 @@ bool IfaceCheckApp::FixMethod(const wxString& header, const wxMethod* iface, con const wxArgumentTypeArray& realargs = api->GetArgumentTypes(); if (realargs.GetCount() == doxygenargs.GetCount()) { - for (unsigned int j=0; j WRAP_COLUMN) @@ -563,7 +564,7 @@ bool IfaceCheckApp::FixMethod(const wxString& header, const wxMethod* iface, con } // insert the new lines - for (unsigned int i=0; iGetMethodCount(); j++) + for (j=0; j < cToUpdate[i]->GetMethodCount(); j++) { wxMethod& m = cToUpdate[i]->GetMethod(j); if (m.GetLocation() > iface->GetLocation()) -- 2.45.2