summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav/webdavcontent.cxx
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 14:28:18 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 14:30:05 +0200
commit8a01ee624318ac08800af89d988971114637a04e (patch)
treee4acf35e42ab0c1d0b593bd8970fa2c435f90c95 /ucb/source/ucp/webdav/webdavcontent.cxx
parent6cf547f02c79278430ee75483a3128076cfc609e (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
Diffstat (limited to 'ucb/source/ucp/webdav/webdavcontent.cxx')
-rw-r--r--ucb/source/ucp/webdav/webdavcontent.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index fab721ef35a8..f5636225fa73 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -1552,7 +1552,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
// Mandatory props.
//////////////////////////////////////////////////////////////////
- if ( rName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ContentType" ) ) )
+ if ( rName == "ContentType" )
{
// Read-only property!
aRet[ n ] <<= lang::IllegalAccessException(
@@ -1578,7 +1578,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
"Property is read-only!" )),
static_cast< cppu::OWeakObject * >( this ) );
}
- else if ( rName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Title" ) ) )
+ else if ( rName == "Title" )
{
rtl::OUString aNewValue;
if ( rValue.Value >>= aNewValue )
@@ -1653,7 +1653,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
continue;
}
- if ( rName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Size" ) ) )
+ if ( rName == "Size" )
{
// Read-only property!
aRet[ n ] <<= lang::IllegalAccessException(
@@ -2581,7 +2581,7 @@ void Content::transfer(
if ( aTitle.isEmpty() )
aTitle = sourceURI.GetPathBaseNameUnescaped();
- if ( aTitle.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "/" ) ) )
+ if ( aTitle == "/" )
{
// kso: ???
aTitle = rtl::OUString();