From 6d1aafca5d13fa08371a3ff161d12c0f1213555c Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 4 Nov 2018 20:17:29 +0300 Subject: tdf#120703 PVS: V547 Expression is always true/false Change-Id: If748a205b328a23473152872c6d0ed87d0570cc1 Reviewed-on: https://gerrit.libreoffice.org/62857 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sfx2/source/appl/newhelp.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index 7f52b252ea8a..d372b47298e5 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -3065,10 +3065,8 @@ void SfxHelpWindow_Impl::DoAction( sal_uInt16 nActionId ) aURL.Complete = ".uno:SourceView"; else if ( TBI_COPY == nActionId ) aURL.Complete = ".uno:Copy"; - else if ( TBI_SELECTIONMODE == nActionId ) + else // TBI_SELECTIONMODE == nActionId aURL.Complete = ".uno:SelectTextMode"; - else - aURL.Complete = ".uno:SearchDialog"; Reference< util::XURLTransformer > xTrans( util::URLTransformer::create( ::comphelper::getProcessComponentContext() ) ); xTrans->parseStrict(aURL); Reference < XDispatch > xDisp = xProv->queryDispatch( aURL, OUString(), 0 ); -- cgit