[Libreoffice-commits] core.git: scaddins/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 1 20:37:47 UTC 2020


 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(-)

New commits:
commit 93ef2735b847b1277793b267373878ccef1b581c
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Jul 1 21:16:41 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jul 1 22:37:08 2020 +0200

    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 <sbergman at redhat.com>

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()
 {


More information about the Libreoffice-commits mailing list