mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Remove an unnecessary null check in CodeWindow.cpp.
The validity of ToolBar is checked at the beginning of the function
This commit is contained in:
parent
75cb8a7452
commit
554207a87c
@ -611,7 +611,8 @@ void CCodeWindow::UpdateButtonStates()
|
||||
wxAuiToolBar* ToolBar = GetToolBar();
|
||||
|
||||
// Toolbar
|
||||
if (!ToolBar) return;
|
||||
if (!ToolBar)
|
||||
return;
|
||||
|
||||
if (!Initialized)
|
||||
{
|
||||
@ -633,8 +634,7 @@ void CCodeWindow::UpdateButtonStates()
|
||||
}
|
||||
|
||||
ToolBar->EnableTool(IDM_STEP, Initialized && Stepping);
|
||||
|
||||
if (ToolBar) ToolBar->Realize();
|
||||
ToolBar->Realize();
|
||||
|
||||
// Menu bar
|
||||
// ------------------
|
||||
|
Loading…
Reference in New Issue
Block a user