indentation cleanup, unused variables, constant expressions, etc

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2007-07-04 20:54:36 +00:00
parent cde76cf2a9
commit cedd7b22f4
7 changed files with 175 additions and 191 deletions

View File

@@ -179,13 +179,13 @@ void wxAuiMDIParentFrame::SetChildMenuBar(wxAuiMDIChildFrame* pChild)
// No Child, set Our menu bar back.
if (m_pMyMenuBar)
SetMenuBar(m_pMyMenuBar);
else
else
SetMenuBar(GetMenuBar());
// Make sure we know our menu bar is in use
m_pMyMenuBar = NULL;
}
else
else
{
if (pChild->GetMenuBar() == NULL)
return;
@@ -314,7 +314,7 @@ void wxAuiMDIParentFrame::AddWindowMenu(wxMenuBar *pMenuBar)
int pos = pMenuBar->FindMenu(wxGetStockLabel(wxID_HELP,wxSTOCK_NOFLAGS));
if (pos == wxNOT_FOUND)
pMenuBar->Append(m_pWindowMenu, _("&Window"));
else
else
pMenuBar->Insert(pos, m_pWindowMenu, _("&Window"));
}
}
@@ -366,7 +366,7 @@ void wxAuiMDIParentFrame::Tile(wxOrientation orient)
{
client_window->Split(cur_idx, wxLEFT);
}
else if (orient == wxHORIZONTAL)
else if (orient == wxHORIZONTAL)
{
client_window->Split(cur_idx, wxTOP);
}
@@ -446,10 +446,10 @@ bool wxAuiMDIChildFrame::Create(wxAuiMDIParentFrame* parent,
// create the window off-screen to prevent flicker
wxPanel::Create(pClientWindow,
id,
wxPoint(cli_size.x+1, cli_size.y+1),
size,
wxNO_BORDER, name);
id,
wxPoint(cli_size.x+1, cli_size.y+1),
size,
wxNO_BORDER, name);
DoShow(false);