summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-07-01 16:19:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-07-01 21:14:48 +0200
commit21a30e3f1172bef710ca017558dca670f0790013 (patch)
treef6cd1b511f283bcb4e334f3545c4d7b40fbfd9f9 /registry
parent175eba0d87cc0d4693920341077617ef443809b4 (diff)
Upcoming improved loplugin:staticanonymous -> redundantstatic: registry
Change-Id: Id96932c7944b5136f5fa7b5f698b8bb3b616e9ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97633 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'registry')
-rw-r--r--registry/source/keyimpl.cxx2
-rw-r--r--registry/source/reflread.cxx4
-rw-r--r--registry/source/reflwrit.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/registry/source/keyimpl.cxx b/registry/source/keyimpl.cxx
index e14a88ec2576..f3cb2d00b34e 100644
--- a/registry/source/keyimpl.cxx
+++ b/registry/source/keyimpl.cxx
@@ -32,7 +32,7 @@
using namespace store;
-namespace { static char const VALUE_PREFIX[] = "$VL_"; }
+namespace { char const VALUE_PREFIX[] = "$VL_"; }
// ORegKey()
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx
index 89c9cbf9c35a..57884e110075 100644
--- a/registry/source/reflread.cxx
+++ b/registry/source/reflread.cxx
@@ -37,8 +37,8 @@
#include <cstddef>
-static const char NULL_STRING[1] = { 0 };
-static const sal_Unicode NULL_WSTRING[1] = { 0 };
+const char NULL_STRING[1] = { 0 };
+const sal_Unicode NULL_WSTRING[1] = { 0 };
const sal_uInt32 magic = 0x12345678;
const sal_uInt16 minorVersion = 0x0000;
diff --git a/registry/source/reflwrit.cxx b/registry/source/reflwrit.cxx
index 48d28ab8766b..04be2db6e702 100644
--- a/registry/source/reflwrit.cxx
+++ b/registry/source/reflwrit.cxx
@@ -44,7 +44,7 @@ OString toByteString(rtl_uString const * str) {
}
-static const sal_Unicode NULL_WSTRING[1] = { 0 };
+const sal_Unicode NULL_WSTRING[1] = { 0 };
#define BLOP_OFFSET_MAGIC 0
#define BLOP_OFFSET_SIZE (BLOP_OFFSET_MAGIC + sizeof(sal_uInt32))