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:
@@ -2215,10 +2215,10 @@ void wxFileHistory::RemoveFileFromHistory(size_t i)
|
|||||||
// delete the last separator too if no more files are left
|
// delete the last separator too if no more files are left
|
||||||
if ( m_fileHistoryN == 1 )
|
if ( m_fileHistoryN == 1 )
|
||||||
{
|
{
|
||||||
wxMenuItemList::compatibility_iterator node = menu->GetMenuItems().GetLast();
|
wxMenuItemList::compatibility_iterator nodeLast = menu->GetMenuItems().GetLast();
|
||||||
if ( node )
|
if ( nodeLast )
|
||||||
{
|
{
|
||||||
wxMenuItem *menuItem = node->GetData();
|
wxMenuItem *menuItem = nodeLast->GetData();
|
||||||
if ( menuItem->IsSeparator() )
|
if ( menuItem->IsSeparator() )
|
||||||
{
|
{
|
||||||
menu->Delete(menuItem);
|
menu->Delete(menuItem);
|
||||||
|
Reference in New Issue
Block a user