summaryrefslogtreecommitdiff
path: root/ucbhelper/source/provider/providerhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucbhelper/source/provider/providerhelper.cxx')
-rw-r--r--ucbhelper/source/provider/providerhelper.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/ucbhelper/source/provider/providerhelper.cxx b/ucbhelper/source/provider/providerhelper.cxx
index 9547ece9a982..f5e3163b5658 100644
--- a/ucbhelper/source/provider/providerhelper.cxx
+++ b/ucbhelper/source/provider/providerhelper.cxx
@@ -313,9 +313,7 @@ bool ContentProviderImplHelper::renameAdditionalPropertySet(
for ( sal_Int32 n = 0; n < nCount; ++n )
{
const OUString& rKey = pKeys[ n ];
- if ( rKey.compareTo(
- aOldKeyWithSlash,
- aOldKeyWithSlash.getLength() ) == 0
+ if ( rKey.startsWith( aOldKeyWithSlash )
|| rKey.equals( aOldKeyWithoutSlash ) )
{
OUString aNewKey
@@ -397,9 +395,7 @@ bool ContentProviderImplHelper::copyAdditionalPropertySet(
for ( sal_Int32 n = 0; n < nCount; ++n )
{
const OUString& rKey = pKeys[ n ];
- if ( rKey.compareTo(
- aSrcKeyWithSlash,
- aSrcKeyWithSlash.getLength() ) == 0
+ if ( rKey.startsWith(aSrcKeyWithSlash )
|| rKey.equals( aSrcKeyWithoutSlash ) )
{
OUString aNewKey
@@ -533,9 +529,7 @@ bool ContentProviderImplHelper::removeAdditionalPropertySet(
for ( sal_Int32 n = 0; n < nCount; ++n )
{
const OUString& rCurrKey = pKeys[ n ];
- if ( rCurrKey.compareTo(
- aKeyWithSlash,
- aKeyWithSlash.getLength() ) == 0
+ if ( rCurrKey.startsWith(aKeyWithSlash )
|| rCurrKey.equals( aKeyWithoutSlash ) )
{
if ( !removeAdditionalPropertySet(