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

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


 extensions/source/abpilot/fieldmappingimpl.cxx       |    4 ++--
 extensions/source/bibliography/bibconfig.cxx         |    2 +-
 extensions/source/bibliography/framectr.cxx          |    2 +-
 extensions/source/config/ldap/componentdef.cxx       |    2 +-
 extensions/source/propctrlr/controltype.hxx          |    6 +++---
 extensions/source/propctrlr/formcomponenthandler.cxx |    2 +-
 extensions/source/propctrlr/pushbuttonnavigation.cxx |    4 ++--
 extensions/source/update/feed/updatefeed.cxx         |    2 +-
 8 files changed, 12 insertions(+), 12 deletions(-)

New commits:
commit 2469ef45f1701f00b76f19666aa75fc8b6addcac
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Jul 1 07:14:41 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jul 1 08:17:13 2020 +0200

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

diff --git a/extensions/source/abpilot/fieldmappingimpl.cxx b/extensions/source/abpilot/fieldmappingimpl.cxx
index 602ffed7f983..76e8e4992c49 100644
--- a/extensions/source/abpilot/fieldmappingimpl.cxx
+++ b/extensions/source/abpilot/fieldmappingimpl.cxx
@@ -49,8 +49,8 @@ namespace abp
     using namespace ::com::sun::star::ui::dialogs;
 
 
-    static const char sDriverSettingsNodeName[] = "/org.openoffice.Office.DataAccess/DriverSettings/com.sun.star.comp.sdbc.MozabDriver";
-    static const char sAddressBookNodeName[] = "/org.openoffice.Office.DataAccess/AddressBook";
+    const char sDriverSettingsNodeName[] = "/org.openoffice.Office.DataAccess/DriverSettings/com.sun.star.comp.sdbc.MozabDriver";
+    const char sAddressBookNodeName[] = "/org.openoffice.Office.DataAccess/AddressBook";
 
     namespace fieldmapping
     {
diff --git a/extensions/source/bibliography/bibconfig.cxx b/extensions/source/bibliography/bibconfig.cxx
index a9c2d74f2b4a..131a8bc1abdf 100644
--- a/extensions/source/bibliography/bibconfig.cxx
+++ b/extensions/source/bibliography/bibconfig.cxx
@@ -33,7 +33,7 @@ using namespace ::com::sun::star::lang;
 using namespace ::com::sun::star::sdb;
 
 
-static const char cDataSourceHistory[] = "DataSourceHistory";
+const char cDataSourceHistory[] = "DataSourceHistory";
 
 Sequence<OUString> const & BibConfig::GetPropertyNames()
 {
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx
index 9aa912a93b08..aa1b91e85a1f 100644
--- a/extensions/source/bibliography/framectr.cxx
+++ b/extensions/source/bibliography/framectr.cxx
@@ -74,7 +74,7 @@ struct CacheDispatchInfo
 
 // Attention: commands must be sorted by command groups. Implementation is dependent
 // on this!!
-static const DispatchInfo SupportedCommandsArray[] =
+const DispatchInfo SupportedCommandsArray[] =
 {
     { ".uno:Undo"               ,   frame::CommandGroup::EDIT       , false },
     { ".uno:Cut"                ,   frame::CommandGroup::EDIT       , false },
diff --git a/extensions/source/config/ldap/componentdef.cxx b/extensions/source/config/ldap/componentdef.cxx
index 02320f7cbb30..4767e09727bb 100644
--- a/extensions/source/config/ldap/componentdef.cxx
+++ b/extensions/source/config/ldap/componentdef.cxx
@@ -30,7 +30,7 @@ static uno::Reference<uno::XInterface> createLdapUserProfileBe(
 }
 
 
-static const cppu::ImplementationEntry kImplementations_entries[] =
+const cppu::ImplementationEntry kImplementations_entries[] =
 {
     {
         createLdapUserProfileBe,
diff --git a/extensions/source/propctrlr/controltype.hxx b/extensions/source/propctrlr/controltype.hxx
index 6039e13b28a3..721de7b8c024 100644
--- a/extensions/source/propctrlr/controltype.hxx
+++ b/extensions/source/propctrlr/controltype.hxx
@@ -27,9 +27,9 @@ namespace pcr
 
     namespace ControlType
     {
-        static const sal_Int16 FIXEDLINE      = sal_Int16(100);
-        static const sal_Int16 FORMATTEDFIELD = sal_Int16(101);
-        static const sal_Int16 PROGRESSBAR    = sal_Int16(102);
+        const sal_Int16 FIXEDLINE      = sal_Int16(100);
+        const sal_Int16 FORMATTEDFIELD = sal_Int16(101);
+        const sal_Int16 PROGRESSBAR    = sal_Int16(102);
 
         // need only those which are not already covered as FormComponentType
     }
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 8487df2e39a0..8094deb95af3 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -184,7 +184,7 @@ namespace pcr
 
     }
 
-    static const LanguageDependentProp aLanguageDependentProp[] =
+    const LanguageDependentProp aLanguageDependentProp[] =
     {
         { "Text",            4 },
         { "Label",           5 },
diff --git a/extensions/source/propctrlr/pushbuttonnavigation.cxx b/extensions/source/propctrlr/pushbuttonnavigation.cxx
index 9d6d63495ee0..3d1bf748c712 100644
--- a/extensions/source/propctrlr/pushbuttonnavigation.cxx
+++ b/extensions/source/propctrlr/pushbuttonnavigation.cxx
@@ -37,9 +37,9 @@ namespace pcr
 
     namespace
     {
-        static const sal_Int32 s_nFirstVirtualButtonType = 1 + sal_Int32(FormButtonType_URL);
+        const sal_Int32 s_nFirstVirtualButtonType = 1 + sal_Int32(FormButtonType_URL);
 
-        static const char* pNavigationURLs[] =
+        const char* pNavigationURLs[] =
         {
             ".uno:FormController/moveToFirst",
             ".uno:FormController/moveToPrev",
diff --git a/extensions/source/update/feed/updatefeed.cxx b/extensions/source/update/feed/updatefeed.cxx
index e6762d635410..182c3ffa5483 100644
--- a/extensions/source/update/feed/updatefeed.cxx
+++ b/extensions/source/update/feed/updatefeed.cxx
@@ -773,7 +773,7 @@ createInstance(uno::Reference<uno::XComponentContext> const & xContext)
 }
 
 
-static const cppu::ImplementationEntry kImplementations_entries[] =
+const cppu::ImplementationEntry kImplementations_entries[] =
 {
     {
         createInstance,


More information about the Libreoffice-commits mailing list