From 127f70d66ac32b7a4ec818adaf1bdccb71865ee5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 21 Jul 2016 14:23:23 +0200 Subject: new loplugin to check for static OUStrings that are better declared as OUStringLiteral Change-Id: Ifb5d9a12bb31a68641940bec16971a8181a46567 Reviewed-on: https://gerrit.libreoffice.org/27377 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- svtools/source/config/menuoptions.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'svtools') diff --git a/svtools/source/config/menuoptions.cxx b/svtools/source/config/menuoptions.cxx index d947d6ca6dd3..8475b7c1635b 100644 --- a/svtools/source/config/menuoptions.cxx +++ b/svtools/source/config/menuoptions.cxx @@ -51,8 +51,6 @@ using namespace ::com::sun::star::uno ; #define PROPERTYHANDLE_SHOWICONSINMENUES 2 #define PROPERTYHANDLE_SYSTEMICONSINMENUES 3 -#define PROPERTYCOUNT 4 - #include // private declarations! @@ -301,17 +299,12 @@ void SvtMenuOptions_Impl::ImplCommit() Sequence< OUString > const & SvtMenuOptions_Impl::impl_GetPropertyNames() { - // Build static list of configuration key names. - static const OUString pProperties[] = - { + static const Sequence seqPropertyNames { OUString(PROPERTYNAME_DONTHIDEDISABLEDENTRIES) , OUString(PROPERTYNAME_FOLLOWMOUSE) , OUString(PROPERTYNAME_SHOWICONSINMENUES) , OUString(PROPERTYNAME_SYSTEMICONSINMENUES) }; - // Initialize return sequence with these list ... - static const Sequence< OUString > seqPropertyNames( pProperties, PROPERTYCOUNT ); - // ... and return it. return seqPropertyNames; } -- cgit