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

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


 pyuno/source/loader/pyuno_loader.cxx |    2 +-
 pyuno/source/module/pyuno_impl.hxx   |   10 +++++-----
 pyuno/source/module/pyuno_module.cxx |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 71999016feeb371b5f3eb1d2f71385176039db06
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Jul 1 14:18:51 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jul 1 16:43:14 2020 +0200

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

diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx
index 07dc748235f9..9df4ecfb770e 100644
--- a/pyuno/source/loader/pyuno_loader.cxx
+++ b/pyuno/source/loader/pyuno_loader.cxx
@@ -276,7 +276,7 @@ static Reference<XInterface> CreateInstance(const Reference<XComponentContext> &
 }
 
 
-static const struct cppu::ImplementationEntry g_entries[] =
+const struct cppu::ImplementationEntry g_entries[] =
 {
     {
         pyuno_loader::CreateInstance, pyuno_loader::getImplementationName,
diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx
index 05ff32252670..6517884a01ef 100644
--- a/pyuno/source/module/pyuno_impl.hxx
+++ b/pyuno/source/module/pyuno_impl.hxx
@@ -70,9 +70,9 @@ struct RuntimeCargo;
 namespace LogLevel
 {
 // when you add a loglevel, extend the log function !
-static const sal_Int32 NONE = 0;
-static const sal_Int32 CALL = 1;
-static const sal_Int32 ARGS = 2;
+const sal_Int32 NONE = 0;
+const sal_Int32 CALL = 1;
+const sal_Int32 ARGS = 2;
 }
 
 bool isLog( RuntimeCargo const *cargo, sal_Int32 loglevel );
@@ -88,8 +88,8 @@ void logReply( RuntimeCargo *cargo, const char *intro,
 void logException( RuntimeCargo *cargo, const char *intro,
                    void * ptr, const OUString &aFunctionName,
                    const void * data, const css::uno::Type & type );
-static const sal_Int32 VAL2STR_MODE_DEEP = 0;
-static const sal_Int32 VAL2STR_MODE_SHALLOW = 1;
+const sal_Int32 VAL2STR_MODE_DEEP = 0;
+const sal_Int32 VAL2STR_MODE_SHALLOW = 1;
 OUString val2str( const void * pVal, typelib_TypeDescriptionReference * pTypeRef, sal_Int32 mode = VAL2STR_MODE_DEEP );
 
 
diff --git a/pyuno/source/module/pyuno_module.cxx b/pyuno/source/module/pyuno_module.cxx
index 579da0a583a0..cb2824d00005 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -313,7 +313,7 @@ static PyObject* getComponentContext(
 // exactly once near the end of the process, if InitVCL has ever been called via
 // pyuno.private_initTestEnvironment):
 
-static osl::Module * testModule = nullptr;
+osl::Module * testModule = nullptr;
 
 static PyObject* initTestEnvironment(
     SAL_UNUSED_PARAMETER PyObject*, SAL_UNUSED_PARAMETER PyObject*)


More information about the Libreoffice-commits mailing list