fix hiding a local variable by another one in the inner scope
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b80388aab6
commit
f1afd2e066
@ -2215,10 +2215,10 @@ void wxFileHistory::RemoveFileFromHistory(size_t i)
|
||||
// delete the last separator too if no more files are left
|
||||
if ( m_fileHistoryN == 1 )
|
||||
{
|
||||
wxMenuItemList::compatibility_iterator node = menu->GetMenuItems().GetLast();
|
||||
if ( node )
|
||||
wxMenuItemList::compatibility_iterator nodeLast = menu->GetMenuItems().GetLast();
|
||||
if ( nodeLast )
|
||||
{
|
||||
wxMenuItem *menuItem = node->GetData();
|
||||
wxMenuItem *menuItem = nodeLast->GetData();
|
||||
if ( menuItem->IsSeparator() )
|
||||
{
|
||||
menu->Delete(menuItem);
|
||||
|
Loading…
Reference in New Issue
Block a user