From 38187ec15b6cbaedcadcbd8f3bcb632a5c6be88f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Dec 2018 11:37:51 +0200 Subject: loplugin:singlevalfields extend to all static vars Change-Id: Ic238bb5291539fd1b7e98cb4afc9b25f37e7d528 Reviewed-on: https://gerrit.libreoffice.org/64710 Tested-by: Jenkins Reviewed-by: Noel Grandin --- scripting/source/stringresource/stringresource.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripting') diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index bf7ac6744695..bb700290ff25 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -1984,7 +1984,7 @@ static void implWriteCharToBuffer( OUStringBuffer& aBuf, sal_Unicode cu, bool bK static void implWriteStringWithEncoding( const OUString& aStr, Reference< io::XTextOutputStream2 > const & xTextOutputStream, bool bKey ) { - static sal_Unicode cLineFeed = 0xa; + static const sal_Unicode cLineFeed = 0xa; OUStringBuffer aBuf; sal_Int32 nLen = aStr.getLength(); -- cgit