warning under gcc removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -982,7 +982,8 @@ bool wxFileConfig::ConfigGroup::DeleteSubgroup(const char *szName)
|
|||||||
// go back until we find a subgroup or reach the group's line
|
// go back until we find a subgroup or reach the group's line
|
||||||
ConfigGroup *pNewLast = NULL;
|
ConfigGroup *pNewLast = NULL;
|
||||||
uint n, nSubgroups = m_aSubgroups.Count();
|
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?
|
// is it our subgroup?
|
||||||
for ( n = 0; (pNewLast == NULL) && (n < nSubgroups); n++ ) {
|
for ( n = 0; (pNewLast == NULL) && (n < nSubgroups); n++ ) {
|
||||||
// do _not_ call GetGroupLine! we don't want to add it to the local
|
// 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
|
// go back until we find another entry or reach the group's line
|
||||||
ConfigEntry *pNewLast = NULL;
|
ConfigEntry *pNewLast = NULL;
|
||||||
uint n, nEntries = m_aEntries.Count();
|
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?
|
// is it our subgroup?
|
||||||
for ( n = 0; (pNewLast == NULL) && (n < nEntries); n++ ) {
|
for ( n = 0; (pNewLast == NULL) && (n < nEntries); n++ ) {
|
||||||
if ( m_aEntries[n]->GetLine() == m_pLine )
|
if ( m_aEntries[n]->GetLine() == m_pLine )
|
||||||
|
Reference in New Issue
Block a user