From 7a349aa4f338982f99675ad4eed9d7474cab1ff0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 18 Oct 2023 15:24:13 +0200 Subject: Suppress some upcoming loplugin:ostr OUStringLiteral -> OUString rewrites ...which would not work, as calling constexpr SbxVariable::MakeHashCode on those vars would no longer be constant expressions Change-Id: Ib848a6405dc270a1a5b9a92084fa2d063ea37892 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158134 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- basic/source/classes/sb.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'basic/source/classes') diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 9d3a7706189c..94b1becd04a5 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1942,9 +1942,13 @@ void StarBASIC::DetachAllDocBasicItems() // #118116 Implementation Collection object +// [-loplugin:ostr] constexpr OUStringLiteral pCountStr = u"Count"; +// [-loplugin:ostr] constexpr OUStringLiteral pAddStr = u"Add"; +// [-loplugin:ostr] constexpr OUStringLiteral pItemStr = u"Item"; +// [-loplugin:ostr] constexpr OUStringLiteral pRemoveStr = u"Remove"; constexpr sal_uInt16 nCountHash = SbxVariable::MakeHashCode(pCountStr); constexpr sal_uInt16 nAddHash = SbxVariable::MakeHashCode(pAddStr); -- cgit