diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-07-01 14:18:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-07-01 16:43:14 +0200 |
commit | 71999016feeb371b5f3eb1d2f71385176039db06 (patch) | |
tree | dac7f89516376d820fdaf5de588e3a0bb6a0142a /pyuno | |
parent | eac284aa0067d7c209f4acac891185f1cc271265 (diff) |
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@redhat.com>
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/loader/pyuno_loader.cxx | 2 | ||||
-rw-r--r-- | pyuno/source/module/pyuno_impl.hxx | 10 | ||||
-rw-r--r-- | pyuno/source/module/pyuno_module.cxx | 2 |
3 files changed, 7 insertions, 7 deletions
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*) |