summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-20 15:04:03 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-20 15:06:48 +0100
commit11878c68c6e22373c95d4b7707aaf2c91e6a1fa1 (patch)
tree353fe5ba6643241dec5bf9c191a145b3851e2728 /ucb
parent4ea575298464faf3e02d519b4fc6ea6e1d59beb1 (diff)
Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength)
Now all should be gone. Change-Id: Iaaaebfbb85535d95eab6a2043e7d5e2e845d9782
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav/DAVProperties.cxx20
1 files changed, 7 insertions, 13 deletions
diff --git a/ucb/source/ucp/webdav/DAVProperties.cxx b/ucb/source/ucp/webdav/DAVProperties.cxx
index 2c1b7819753b..5b018b6e6344 100644
--- a/ucb/source/ucp/webdav/DAVProperties.cxx
+++ b/ucb/source/ucp/webdav/DAVProperties.cxx
@@ -52,7 +52,7 @@ const ::rtl::OUString DAVProperties::EXECUTABLE =
void DAVProperties::createSerfPropName( const rtl::OUString & rFullName,
SerfPropName & rName )
{
- if ( rFullName.compareToAscii( RTL_CONSTASCII_STRINGPARAM( "DAV:" ) ) == 0 )
+ if ( rFullName.startsWith( "DAV:" ) )
{
rName.nspace = "DAV:";
rName.name
@@ -60,8 +60,7 @@ void DAVProperties::createSerfPropName( const rtl::OUString & rFullName,
rFullName.copy( RTL_CONSTASCII_LENGTH( "DAV:" ) ),
RTL_TEXTENCODING_UTF8 ) );
}
- else if ( rFullName.compareToAscii( RTL_CONSTASCII_STRINGPARAM(
- "http://apache.org/dav/props/" ) ) == 0 )
+ else if ( rFullName.startsWith( "http://apache.org/dav/props/" ) )
{
rName.nspace = "http://apache.org/dav/props/";
rName.name
@@ -71,8 +70,7 @@ void DAVProperties::createSerfPropName( const rtl::OUString & rFullName,
"http://apache.org/dav/props/" ) ),
RTL_TEXTENCODING_UTF8 ) );
}
- else if ( rFullName.compareToAscii( RTL_CONSTASCII_STRINGPARAM(
- "http://ucb.openoffice.org/dav/props/" ) ) == 0 )
+ else if ( rFullName.startsWith( "http://ucb.openoffice.org/dav/props/" ) )
{
rName.nspace = "http://ucb.openoffice.org/dav/props/";
rName.name
@@ -82,8 +80,7 @@ void DAVProperties::createSerfPropName( const rtl::OUString & rFullName,
"http://ucb.openoffice.org/dav/props/" ) ),
RTL_TEXTENCODING_UTF8 ) );
}
- else if ( rFullName.compareToAscii( RTL_CONSTASCII_STRINGPARAM(
- "<prop:" ) ) == 0 )
+ else if ( rFullName.startsWith( "<prop:" ) )
{
// Support for 3rd party namespaces/props
@@ -147,18 +144,15 @@ void DAVProperties::createUCBPropName( const char * nspace,
rFullName = aNameSpace;
rFullName += aName;
- if ( rFullName.compareToAscii( RTL_CONSTASCII_STRINGPARAM(
- "DAV:" ) ) == 0 )
+ if ( rFullName.startsWith( "DAV:" ) )
{
// Okay, Just concat strings.
}
- else if ( rFullName.compareToAscii( RTL_CONSTASCII_STRINGPARAM(
- "http://apache.org/dav/props/" ) ) == 0 )
+ else if ( rFullName.startsWith( "http://apache.org/dav/props/" ) )
{
// Okay, Just concat strings.
}
- else if ( rFullName.compareToAscii( RTL_CONSTASCII_STRINGPARAM(
- "http://ucb.openoffice.org/dav/props/" ) ) == 0 )
+ else if ( rFullName.startsWith( "http://ucb.openoffice.org/dav/props/" ) )
{
// Remove namespace from our own properties.
rFullName = rFullName.copy(