From d902e04bafcf7436c4c05140e82e677cd6bc826f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 30 Jun 2020 15:25:15 +0200 Subject: Upcoming improved loplugin:staticanonymous -> redundantstatic: basic Change-Id: I1046ee1ea28e19afa51b0e20ee573105ced77535 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97522 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- basic/source/classes/image.cxx | 2 +- basic/source/classes/sb.cxx | 8 ++++---- basic/source/classes/sbunoobj.cxx | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'basic/source/classes') diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx index 84878136a756..bb4d8409573f 100644 --- a/basic/source/classes/image.cxx +++ b/basic/source/classes/image.cxx @@ -86,7 +86,7 @@ static void SbiCloseRecord( SvStream& r, sal_uInt64 nOff ) r.Seek( nPos ); } -static constexpr sal_uInt32 nUnicodeDataMagicNumber = 0x556E6920; // "Uni " BE +constexpr sal_uInt32 nUnicodeDataMagicNumber = 0x556E6920; // "Uni " BE static bool GetToUnicodePoolData(SvStream& r, sal_uInt64 nLen, sal_uInt64 nNext) { diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 0377d854359c..1de6c8203426 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1947,10 +1947,10 @@ void StarBASIC::DetachAllDocBasicItems() // #118116 Implementation Collection object -static const char pCountStr[] = "Count"; -static const char pAddStr[] = "Add"; -static const char pItemStr[] = "Item"; -static const char pRemoveStr[] = "Remove"; +const char pCountStr[] = "Count"; +const char pAddStr[] = "Add"; +const char pItemStr[] = "Item"; +const char pRemoveStr[] = "Remove"; static sal_uInt16 nCountHash = 0, nAddHash, nItemHash, nRemoveHash; SbxInfoRef BasicCollection::xAddInfo; diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 3f5da99a6d5f..8ce98b6c3b48 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -98,11 +98,11 @@ using namespace cppu; // Identifiers for creating the strings for dbg_Properties -static char const ID_DBG_SUPPORTEDINTERFACES[] = "Dbg_SupportedInterfaces"; -static char const ID_DBG_PROPERTIES[] = "Dbg_Properties"; -static char const ID_DBG_METHODS[] = "Dbg_Methods"; +char const ID_DBG_SUPPORTEDINTERFACES[] = "Dbg_SupportedInterfaces"; +char const ID_DBG_PROPERTIES[] = "Dbg_Properties"; +char const ID_DBG_METHODS[] = "Dbg_Methods"; -static char const aSeqLevelStr[] = "[]"; +char const aSeqLevelStr[] = "[]"; // Gets the default property for a uno object. Note: There is some // redirection built in. The property name specifies the name -- cgit