summaryrefslogtreecommitdiff
path: root/svtools/source/config
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-26 11:23:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-26 13:55:07 +0100
commit547cb22e1a4ad5c39f116eb74b74baf7a729d2e9 (patch)
tree41b3259aa5e487aa27aac1ba72d4e72762d8c844 /svtools/source/config
parent91ce3455cfe1c850dd9780c41e6253cb940af1e9 (diff)
loplugin:stringliteraldefine in stoc,svtools
Change-Id: Ifd583582fa7bf7366a1f8d482eefd64b30228ca8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125867 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/config')
-rw-r--r--svtools/source/config/slidesorterbaropt.cxx5
1 files changed, 1 insertions, 4 deletions
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 )