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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 1 17:51:53 UTC 2020


 reportdesign/source/core/misc/reportformula.cxx   |    4 ++--
 reportdesign/source/filter/xml/xmlStyleImport.cxx |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 70246cf9c6fc36ae2f669eb349b795de2543968a
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Jul 1 16:44:40 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jul 1 19:51:12 2020 +0200

    Upcoming improved loplugin:staticanonymous -> redundantstatic: reportdesign
    
    Change-Id: Ia5047d90b14e886f5ba8de805462ca9b946ad65a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97635
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/reportdesign/source/core/misc/reportformula.cxx b/reportdesign/source/core/misc/reportformula.cxx
index b035493e6e42..5cd19dc4d55c 100644
--- a/reportdesign/source/core/misc/reportformula.cxx
+++ b/reportdesign/source/core/misc/reportformula.cxx
@@ -27,8 +27,8 @@ namespace rptui
     namespace
     {
 
-        static const char sExpressionPrefix[] = "rpt:";
-        static const char sFieldPrefix[] =  "field:";
+        const char sExpressionPrefix[] = "rpt:";
+        const char sFieldPrefix[] =  "field:";
     }
 
 
diff --git a/reportdesign/source/filter/xml/xmlStyleImport.cxx b/reportdesign/source/filter/xml/xmlStyleImport.cxx
index edb20e072bfc..6d8148311ccc 100644
--- a/reportdesign/source/filter/xml/xmlStyleImport.cxx
+++ b/reportdesign/source/filter/xml/xmlStyleImport.cxx
@@ -143,10 +143,10 @@ void OControlStyleContext::SetAttribute( sal_uInt16 nPrefixKey,
 }
 
 
-static const OUStringLiteral g_sTableStyleFamilyName( XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME );
-static const OUStringLiteral g_sColumnStyleFamilyName( XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME );
-static const OUStringLiteral g_sRowStyleFamilyName( XML_STYLE_FAMILY_TABLE_ROW_STYLES_NAME );
-static const OUStringLiteral g_sCellStyleFamilyName( XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME );
+const OUStringLiteral g_sTableStyleFamilyName( XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME );
+const OUStringLiteral g_sColumnStyleFamilyName( XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME );
+const OUStringLiteral g_sRowStyleFamilyName( XML_STYLE_FAMILY_TABLE_ROW_STYLES_NAME );
+const OUStringLiteral g_sCellStyleFamilyName( XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME );
 
 OReportStylesContext::OReportStylesContext( ORptFilter& rImport,
         const bool bTempAutoStyles ) :


More information about the Libreoffice-commits mailing list