diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-06-27 14:45:39 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-06-28 04:38:48 +0200 |
commit | ae5cb9b75984d9a63b392d8bfc5b3d224f00c741 (patch) | |
tree | ee7f5914b8c5bc6a152a61a32f8cc8d75542f017 /ucb | |
parent | 3551d18404cb19cdaa8edb170a549f5c5405d0cb (diff) |
Simplify a bit
Change-Id: Iad2564853a2a0d74cd526b1574e421e121fd6986
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153644
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/core/ucbstore.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx index 52b3a8b4a341..7f04a9a534ab 100644 --- a/ucb/source/core/ucbstore.cxx +++ b/ucb/source/core/ucbstore.cxx @@ -681,11 +681,6 @@ void PropertySetRegistry::renamePropertySet( const OUString& rOldKey, aOldValuesKey += "/"; - 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 ) { // Create new item. @@ -705,28 +700,28 @@ void PropertySetRegistry::renamePropertySet( const OUString& rOldKey, OUString aKey = aOldValuesKey + makeHierarchalNameSegment( rPropName ); // ... handle - OUString aNewKey1 = aKey + aHandleKey; + OUString aNewKey1 = aKey + "/Handle"; Any aAny = xRootHierNameAccess->getByHierarchicalName( aNewKey1 ); xNewPropNameReplace->replaceByName( "Handle", aAny ); // ... value - aNewKey1 = aKey + aValueKey; + aNewKey1 = aKey + "/Value"; aAny = xRootHierNameAccess->getByHierarchicalName( aNewKey1 ); xNewPropNameReplace->replaceByName( "Value", aAny ); // ... state - aNewKey1 = aKey + aStateKey; + aNewKey1 = aKey + "/State"; aAny = xRootHierNameAccess->getByHierarchicalName( aNewKey1 ); xNewPropNameReplace->replaceByName( "State", aAny ); // ... attributes - aNewKey1 = aKey + aAttrKey; + aNewKey1 = aKey + "/Attributes"; aAny = xRootHierNameAccess->getByHierarchicalName( aNewKey1 ); |