From ec2ee430e78cf768bbe48d4b7e7b32aaa6410b54 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 2 Jul 2020 13:48:59 +0200 Subject: Upcoming improved loplugin:staticanonymous -> redundantstatic: writerperfect Change-Id: I13fcde3b0c847a622be0305c6d2bd21057d3402c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97758 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- writerperfect/qa/unit/DirectoryStreamTest.cxx | 6 +++--- writerperfect/qa/unit/WPXSvStreamTest.cxx | 6 +++--- writerperfect/source/common/DocumentHandler.cxx | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'writerperfect') diff --git a/writerperfect/qa/unit/DirectoryStreamTest.cxx b/writerperfect/qa/unit/DirectoryStreamTest.cxx index 8d8388dc3c0d..fcf77743c0c5 100644 --- a/writerperfect/qa/unit/DirectoryStreamTest.cxx +++ b/writerperfect/qa/unit/DirectoryStreamTest.cxx @@ -56,9 +56,9 @@ private: uno::Reference m_xNonexistent; }; -static const char g_aDirPath[] = "/writerperfect/qa/unit/data/stream/test.dir"; -static const char g_aNondirPath[] = "/writerperfect/qa/unit/data/stream/test.dir/mimetype"; -static const char g_aNonexistentPath[] = "/writerperfect/qa/unit/data/stream/foo/bar"; +const char g_aDirPath[] = "/writerperfect/qa/unit/data/stream/test.dir"; +const char g_aNondirPath[] = "/writerperfect/qa/unit/data/stream/test.dir/mimetype"; +const char g_aNonexistentPath[] = "/writerperfect/qa/unit/data/stream/foo/bar"; DirectoryStreamTest::DirectoryStreamTest() { diff --git a/writerperfect/qa/unit/WPXSvStreamTest.cxx b/writerperfect/qa/unit/WPXSvStreamTest.cxx index e9680510b43a..21715229e299 100644 --- a/writerperfect/qa/unit/WPXSvStreamTest.cxx +++ b/writerperfect/qa/unit/WPXSvStreamTest.cxx @@ -63,9 +63,9 @@ private: void testStructured(); }; -static const char aText[] = "hello world"; -static const char aOLEFile[] = "/writerperfect/qa/unit/data/stream/fdo40686-1.doc"; -static const char aZipFile[] = "/writerperfect/qa/unit/data/stream/test.odt"; +const char aText[] = "hello world"; +const char aOLEFile[] = "/writerperfect/qa/unit/data/stream/fdo40686-1.doc"; +const char aZipFile[] = "/writerperfect/qa/unit/data/stream/test.odt"; shared_ptr lcl_createStream() { diff --git a/writerperfect/source/common/DocumentHandler.cxx b/writerperfect/source/common/DocumentHandler.cxx index 35aa49181313..181415033909 100644 --- a/writerperfect/source/common/DocumentHandler.cxx +++ b/writerperfect/source/common/DocumentHandler.cxx @@ -20,7 +20,7 @@ namespace writerperfect { -static const unsigned char librvng_utf8_skip_data[256] +const unsigned char librvng_utf8_skip_data[256] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -- cgit