Reduce the scope of some local variables

This commit is contained in:
Paul Cornett
2019-04-05 10:44:02 -07:00
parent af1cf0a5f3
commit fe1737d399
63 changed files with 163 additions and 152 deletions

View File

@@ -349,9 +349,9 @@ bool wxExtHelpController::DisplaySection(int sectionNo)
wxBusyCursor b; // display a busy cursor
wxList::compatibility_iterator node = m_MapList->GetFirst();
wxExtHelpMapEntry *entry;
while (node)
{
wxExtHelpMapEntry* entry;
entry = (wxExtHelpMapEntry *)node->GetData();
if (entry->entryid == sectionNo)
return DisplayHelp(entry->url);