X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c3b0ff9c7a62d837fcd673114aabc9989bfc2a0d..7ec1983bfaad5d89027165e90b8431859d0a9c83:/src/common/fileconf.cpp diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index d0c6ac8062..5ae5d75b8a 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -982,7 +982,8 @@ bool wxFileConfig::ConfigGroup::DeleteSubgroup(const char *szName) // go back until we find a subgroup or reach the group's line ConfigGroup *pNewLast = NULL; uint n, nSubgroups = m_aSubgroups.Count(); - for ( LineList *pl = pLine->Prev(); pl != m_pLine; pl = pl->Prev() ) { + LineList *pl; + for ( pl = pLine->Prev(); pl != m_pLine; pl = pl->Prev() ) { // is it our subgroup? for ( n = 0; (pNewLast == NULL) && (n < nSubgroups); n++ ) { // do _not_ call GetGroupLine! we don't want to add it to the local @@ -1032,7 +1033,8 @@ bool wxFileConfig::ConfigGroup::DeleteEntry(const char *szName) // go back until we find another entry or reach the group's line ConfigEntry *pNewLast = NULL; uint n, nEntries = m_aEntries.Count(); - for ( LineList *pl = pLine->Prev(); pl != m_pLine; pl = pl->Prev() ) { + LineList *pl; + for ( pl = pLine->Prev(); pl != m_pLine; pl = pl->Prev() ) { // is it our subgroup? for ( n = 0; (pNewLast == NULL) && (n < nEntries); n++ ) { if ( m_aEntries[n]->GetLine() == m_pLine )