From e266d448f45348f27f8291ea5d0542747d7c8168 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 26 Jun 2023 16:16:19 +0200 Subject: loplugin:stringstatic look for more strings that can be initialised at compile-time instead of runtime Change-Id: I08d516fdc13a3a79f93c079f89ac44cbc7a1ed71 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153620 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucb/source/core/ucbstore.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ucb/source') diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx index a06e430c3586..52b3a8b4a341 100644 --- a/ucb/source/core/ucbstore.cxx +++ b/ucb/source/core/ucbstore.cxx @@ -681,10 +681,10 @@ void PropertySetRegistry::renamePropertySet( const OUString& rOldKey, aOldValuesKey += "/"; - OUString const aHandleKey("/Handle"); - OUString const aValueKey("/Value"); - OUString const aStateKey("/State"); - OUString const aAttrKey("/Attributes"); + static constexpr OUStringLiteral aHandleKey(u"/Handle"); + static constexpr OUStringLiteral aValueKey(u"/Value"); + static constexpr OUStringLiteral aStateKey(u"/State"); + static constexpr OUStringLiteral aAttrKey(u"/Attributes"); for ( const OUString& rPropName : aElems ) { -- cgit