From 61778fd20395794d2de3b52d60dcc65083aecd93 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 14 Jan 2019 06:44:26 +0100 Subject: Simplify sd::Window::RequestHelp Change-Id: I0d42c5a3133d97464d105a1ff29772c1b63a3a69 Reviewed-on: https://gerrit.libreoffice.org/66282 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sd/source/ui/view/sdwindow.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index f295d00cf4d1..227291d4de41 100644 --- a/sd/source/ui/view/sdwindow.cxx +++ b/sd/source/ui/view/sdwindow.cxx @@ -280,12 +280,7 @@ bool Window::EventNotify( NotifyEvent& rNEvt ) void Window::RequestHelp(const HelpEvent& rEvt) { - if ( mpViewShell ) - { - if( !mpViewShell->RequestHelp( rEvt ) ) - vcl::Window::RequestHelp( rEvt ); - } - else + if (!mpViewShell || !mpViewShell->RequestHelp(rEvt)) vcl::Window::RequestHelp( rEvt ); } -- cgit