From 547cb22e1a4ad5c39f116eb74b74baf7a729d2e9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 26 Nov 2021 11:23:26 +0200 Subject: loplugin:stringliteraldefine in stoc,svtools Change-Id: Ifd583582fa7bf7366a1f8d482eefd64b30228ca8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125867 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svtools/source/config/slidesorterbaropt.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'svtools/source/config') diff --git a/svtools/source/config/slidesorterbaropt.cxx b/svtools/source/config/slidesorterbaropt.cxx index f2e3c5d108dd..22b5b6b5e768 100644 --- a/svtools/source/config/slidesorterbaropt.cxx +++ b/svtools/source/config/slidesorterbaropt.cxx @@ -308,7 +308,7 @@ void SvtSlideSorterBarOptions_Impl::ImplCommit() Sequence< OUString > SvtSlideSorterBarOptions_Impl::GetPropertyNames() { // Build list of configuration key names. - const OUString pProperties[] = + return { PROPERTYNAME_VISIBLE_IMPRESSVIEW, PROPERTYNAME_VISIBLE_OUTLINEVIEW, @@ -317,9 +317,6 @@ Sequence< OUString > SvtSlideSorterBarOptions_Impl::GetPropertyNames() PROPERTYNAME_VISIBLE_SLIDESORTERVIEW, PROPERTYNAME_VISIBLE_DRAWVIEW, }; - - // Initialize return sequence with these list and run - return Sequence< OUString >( pProperties, SAL_N_ELEMENTS( pProperties ) ); } void SvtSlideSorterBarOptions_Impl::SetVisibleViewImpl( bool& bVisibleView, bool bVisible ) -- cgit