summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-12 19:22:12 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-12 20:22:15 +0100
commit8fc7b35fb6b2782117d045ffc0142eb5a554ca3e (patch)
tree609fc9be91bf5a7c915e9d3a29f0ae8afa5e961f /vcl
parentad62a2e1bd8644bff714513e7daf018bf755d306 (diff)
vcl: spurious PVS-Studio V595
Change-Id: Ia51995fe16d17d16bfc5ffdcbd1636e5c3f2db7a
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/menubarwindow.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx
index d051bea37b12..553baa472ecb 100644
--- a/vcl/source/window/menubarwindow.cxx
+++ b/vcl/source/window/menubarwindow.cxx
@@ -325,14 +325,11 @@ void MenuBarWindow::ImplCreatePopup( bool bPreSelectFirst )
// when the frame is reactivated later
//GrabFocus();
pActivePopup->ImplExecute( this, Rectangle( aItemTopLeft, aItemBottomRight ), FLOATWIN_POPUPMODE_DOWN | FLOATWIN_POPUPMODE_NOHORZPLACEMENT, pMenu, bPreSelectFirst );
- if ( pActivePopup )
- {
- // does not have a window, if aborted before or if there are no entries
- if ( pActivePopup->ImplGetFloatingWindow() )
- pActivePopup->ImplGetFloatingWindow()->AddPopupModeWindow( this );
- else
- pActivePopup = NULL;
- }
+ // does not have a window, if aborted before or if there are no entries
+ if ( pActivePopup->ImplGetFloatingWindow() )
+ pActivePopup->ImplGetFloatingWindow()->AddPopupModeWindow( this );
+ else
+ pActivePopup = nullptr;
}
}
}