summaryrefslogtreecommitdiffstats
path: root/cppu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-30 19:07:19 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-07-01 08:11:32 +0200
commitcf1d55096a06ff4293046578d83735134a3014d6 (patch)
treef9ccf6308d8aed3d5ad692236b19a82e9b64af21 /cppu
parentavoid costly to-monochrome-bitmap conversion with Skia (tdf#134365) (diff)
downloadcore-cf1d55096a06ff4293046578d83735134a3014d6.tar.gz
core-cf1d55096a06ff4293046578d83735134a3014d6.zip
Upcoming improved loplugin:staticanonymous -> redundantstatic: cppu
Change-Id: Iac1bd5cb1ff1a1786471b2d8b8a3c500a2e15c5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97546 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/typelib/static_types.cxx2
-rw-r--r--cppu/source/typelib/typelib.cxx4
-rw-r--r--cppu/source/uno/check.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/cppu/source/typelib/static_types.cxx b/cppu/source/typelib/static_types.cxx
index 6ff99b1f4ae0..d94f8485f801 100644
--- a/cppu/source/typelib/static_types.cxx
+++ b/cppu/source/typelib/static_types.cxx
@@ -68,7 +68,7 @@ struct AlignSize_Impl
#endif
// the value of the maximal alignment
-static const sal_Int32 nMaxAlignment = static_cast<sal_Int32>( reinterpret_cast<sal_Size>(&reinterpret_cast<AlignSize_Impl *>(16)->dDouble) - 16);
+const sal_Int32 nMaxAlignment = static_cast<sal_Int32>( reinterpret_cast<sal_Size>(&reinterpret_cast<AlignSize_Impl *>(16)->dDouble) - 16);
static sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment )
{
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index e16c2eb90319..d9f445272510 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -75,7 +75,7 @@ struct AlignSize_Impl
#endif
// the value of the maximal alignment
-static const sal_Int32 nMaxAlignment = static_cast<sal_Int32>( reinterpret_cast<sal_Size>(&reinterpret_cast<AlignSize_Impl *>(16)->dDouble) - 16);
+const sal_Int32 nMaxAlignment = static_cast<sal_Int32>( reinterpret_cast<sal_Size>(&reinterpret_cast<AlignSize_Impl *>(16)->dDouble) - 16);
static sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment )
{
@@ -2355,7 +2355,7 @@ extern "C" void SAL_CALL typelib_setCacheSize( sal_Int32 nNewSize )
}
-static const bool s_aAssignableFromTab[11][11] =
+const bool s_aAssignableFromTab[11][11] =
{
/* from CH, BO, BY, SH, US, LO, UL, HY, UH, FL, DO */
/* TypeClass_CHAR */ { true, false, false, false, false, false, false, false, false, false, false },
diff --git a/cppu/source/uno/check.cxx b/cppu/source/uno/check.cxx
index 3dc0fc5aca0c..d1ce9bbc0c6f 100644
--- a/cppu/source/uno/check.cxx
+++ b/cppu/source/uno/check.cxx
@@ -311,7 +311,7 @@ BinaryCompatible_Impl::BinaryCompatible_Impl()
assert(OFFSET_OF(Char4, c) == 3);
}
-static BinaryCompatible_Impl aTest;
+BinaryCompatible_Impl aTest;
#endif