summaryrefslogtreecommitdiff
path: root/ucbhelper/source/provider
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-14 08:16:35 +0200
committerNoel Grandin <noel@peralex.com>2013-11-14 08:17:32 +0200
commitd366c9b20ec86f3fe521812a0c22def3bfd1f05e (patch)
tree4bd09438c8cd8f0dbcd0881fc923d56a0a721fc5 /ucbhelper/source/provider
parentd2fa59e4025050c9b668ecff379d668f0db52639 (diff)
remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
Diffstat (limited to 'ucbhelper/source/provider')
-rw-r--r--ucbhelper/source/provider/providerhelper.cxx18
1 files changed, 6 insertions, 12 deletions
diff --git a/ucbhelper/source/provider/providerhelper.cxx b/ucbhelper/source/provider/providerhelper.cxx
index 28337b95219a..2949f6473eeb 100644
--- a/ucbhelper/source/provider/providerhelper.cxx
+++ b/ucbhelper/source/provider/providerhelper.cxx
@@ -377,11 +377,9 @@ sal_Bool ContentProviderImplHelper::renameAdditionalPropertySet(
{
OUString aOldKeyWithSlash = rOldKey;
OUString aOldKeyWithoutSlash;
- if ( aOldKeyWithSlash.lastIndexOf(
- sal_Unicode('/')
- != aOldKeyWithSlash.getLength() - 1 ) )
+ if ( !aOldKeyWithSlash.endsWith("/") )
{
- aOldKeyWithSlash += OUString( sal_Unicode('/') );
+ aOldKeyWithSlash += OUString( '/' );
aOldKeyWithoutSlash = rOldKey;
}
else if ( !rOldKey.isEmpty() )
@@ -464,11 +462,9 @@ sal_Bool ContentProviderImplHelper::copyAdditionalPropertySet(
{
OUString aSrcKeyWithSlash = rSourceKey;
OUString aSrcKeyWithoutSlash;
- if ( aSrcKeyWithSlash.lastIndexOf(
- sal_Unicode('/')
- != aSrcKeyWithSlash.getLength() - 1 ) )
+ if ( !aSrcKeyWithSlash.endsWith("/") )
{
- aSrcKeyWithSlash += OUString( sal_Unicode('/') );
+ aSrcKeyWithSlash += OUString( '/' );
aSrcKeyWithoutSlash = rSourceKey;
}
else if ( !rSourceKey.isEmpty() )
@@ -603,11 +599,9 @@ sal_Bool ContentProviderImplHelper::removeAdditionalPropertySet(
{
OUString aKeyWithSlash = rKey;
OUString aKeyWithoutSlash;
- if ( aKeyWithSlash.lastIndexOf(
- sal_Unicode('/')
- != aKeyWithSlash.getLength() - 1 ) )
+ if ( !aKeyWithSlash.endsWith("/") )
{
- aKeyWithSlash += OUString( (sal_Unicode)'/' );
+ aKeyWithSlash += OUString( '/' );
aKeyWithoutSlash = rKey;
}
else if ( !rKey.isEmpty() )