diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-06-26 16:16:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-06-27 13:10:44 +0200 |
commit | e266d448f45348f27f8291ea5d0542747d7c8168 (patch) | |
tree | 0d6d14e94d9bf25aeeb4ef21630ee72c10681645 /ucb/source | |
parent | 05c6cdb144d1732ca51d463845fa6ddef7c08265 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/core/ucbstore.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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 ) { |