From 441af1f1ca53ca03736e0417414bbcf067aaaefa Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 2 Jul 2020 13:17:47 +0200 Subject: Upcoming improved loplugin:staticanonymous -> redundantstatic: vcl Change-Id: I7559ab5c98a22e315549b5dfc651e937697cac22 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97742 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- vcl/source/edit/texteng.cxx | 6 +++--- vcl/source/edit/xtextedt.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl/source/edit') diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 8e0f7a1616b9..e5465c52c402 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -223,9 +223,9 @@ void TextEngine::SetMaxTextWidth( long nMaxWidth ) } } -static const sal_Unicode static_aLFText[] = { '\n', 0 }; -static const sal_Unicode static_aCRText[] = { '\r', 0 }; -static const sal_Unicode static_aCRLFText[] = { '\r', '\n', 0 }; +const sal_Unicode static_aLFText[] = { '\n', 0 }; +const sal_Unicode static_aCRText[] = { '\r', 0 }; +const sal_Unicode static_aCRLFText[] = { '\r', '\n', 0 }; static const sal_Unicode* static_getLineEndText( LineEnd aLineEnd ) { diff --git a/vcl/source/edit/xtextedt.cxx b/vcl/source/edit/xtextedt.cxx index 4d11f275b361..ae9335232679 100644 --- a/vcl/source/edit/xtextedt.cxx +++ b/vcl/source/edit/xtextedt.cxx @@ -28,7 +28,7 @@ using namespace ::com::sun::star; -static const std::wstring gaGroupChars = L"(){}[]"; +const std::wstring gaGroupChars = L"(){}[]"; ExtTextEngine::ExtTextEngine() { -- cgit