From 6008cfd6cd661e5fe0b73a43e908d6cac5ffc2d1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 1 Aug 2018 16:13:41 +0200 Subject: loplugin:returnconstant in filter Change-Id: I0ebbd835ddc50e984920950e1559faf163c2c30f Reviewed-on: https://gerrit.libreoffice.org/58429 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/filter/excel/xltoolbar.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sc/source') diff --git a/sc/source/filter/excel/xltoolbar.cxx b/sc/source/filter/excel/xltoolbar.cxx index b3658661485c..cc19634a376d 100644 --- a/sc/source/filter/excel/xltoolbar.cxx +++ b/sc/source/filter/excel/xltoolbar.cxx @@ -264,8 +264,7 @@ bool ScTBC::ImportToolBarControl( ScCTBWrapper& rWrapper, const css::uno::Refere { std::vector< css::beans::PropertyValue > props; bool bBeginGroup = false; - if ( ! tbcd->ImportToolBarControl( helper, props, bBeginGroup, bIsMenuToolbar ) ) - return false; + tbcd->ImportToolBarControl( helper, props, bBeginGroup, bIsMenuToolbar ); TBCMenuSpecific* pMenu = tbcd->getMenuSpecific(); if ( pMenu ) { -- cgit