From 93ef2735b847b1277793b267373878ccef1b581c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 1 Jul 2020 21:16:41 +0200 Subject: Upcoming improved loplugin:staticanonymous -> redundantstatic: scaddins Change-Id: Ib3e2cdac213e59b8906aa42c90a7665b73c10b93 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97653 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- scaddins/source/analysis/analysis.cxx | 4 ++-- scaddins/source/datefunc/datefunc.cxx | 2 +- scaddins/source/pricing/pricing.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'scaddins') diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index 2669a00c2633..36a3012c046a 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -272,7 +272,7 @@ OUString SAL_CALL AnalysisAddIn::getArgumentDescription( const OUString& aName, return aRet; } -static const char pDefCatName[] = "Add-In"; +const char pDefCatName[] = "Add-In"; OUString SAL_CALL AnalysisAddIn::getProgrammaticCategoryName( const OUString& aName ) { @@ -321,7 +321,7 @@ OUString SAL_CALL AnalysisAddIn::getDisplayCategoryName( const OUString& aProgra static const char* pLang[] = { "de", "en" }; static const char* pCoun[] = { "DE", "US" }; -static const sal_uInt32 nNumOfLoc = SAL_N_ELEMENTS(pLang); +const sal_uInt32 nNumOfLoc = SAL_N_ELEMENTS(pLang); void AnalysisAddIn::InitDefLocales() { diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx index f47b9b74a3dd..41e7437b883c 100644 --- a/scaddins/source/datefunc/datefunc.cxx +++ b/scaddins/source/datefunc/datefunc.cxx @@ -126,7 +126,7 @@ ScaDateAddIn::ScaDateAddIn() static const char* pLang[] = { "de", "en" }; static const char* pCoun[] = { "DE", "US" }; -static const sal_uInt32 nNumOfLoc = SAL_N_ELEMENTS( pLang ); +const sal_uInt32 nNumOfLoc = SAL_N_ELEMENTS( pLang ); void ScaDateAddIn::InitDefLocales() { diff --git a/scaddins/source/pricing/pricing.cxx b/scaddins/source/pricing/pricing.cxx index 32f4414dd0a0..4781baa9babe 100644 --- a/scaddins/source/pricing/pricing.cxx +++ b/scaddins/source/pricing/pricing.cxx @@ -132,7 +132,7 @@ ScaPricingAddIn::~ScaPricingAddIn() static const char* pLang[] = { "de", "en" }; static const char* pCoun[] = { "DE", "US" }; -static const sal_uInt32 nNumOfLoc = SAL_N_ELEMENTS( pLang ); +const sal_uInt32 nNumOfLoc = SAL_N_ELEMENTS( pLang ); void ScaPricingAddIn::InitDefLocales() { -- cgit