summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-07 12:14:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-14 12:39:20 +0200
commitdaf177f703081d7afaa9b1701cf187c9a3e93ee5 (patch)
tree32e5bc14b5707777795ac26089c402cc3e93c2e3 /ucb
parent3ef7e85deb7afde6c9453c30be0a7893528a90a1 (diff)
use more OUString::operator== in test..xmlsecurity
Change-Id: If5bdd1532be44a47ff7cc3b769be3ea585aea562 Reviewed-on: https://gerrit.libreoffice.org/39685 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-neon/ContentProperties.cxx12
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx2
-rw-r--r--ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx2
3 files changed, 8 insertions, 8 deletions
diff --git a/ucb/source/ucp/webdav-neon/ContentProperties.cxx b/ucb/source/ucp/webdav-neon/ContentProperties.cxx
index 4557a565674c..551d91080b93 100644
--- a/ucb/source/ucp/webdav-neon/ContentProperties.cxx
+++ b/ucb/source/ucp/webdav-neon/ContentProperties.cxx
@@ -396,7 +396,7 @@ void ContentProperties::addProperty( const OUString & rName,
const css::uno::Any & rValue,
bool bIsCaseSensitive )
{
- if ( rName.equals( DAVProperties::CREATIONDATE ) )
+ if ( rName == DAVProperties::CREATIONDATE )
{
// Map DAV:creationdate to UCP:DateCreated
OUString aValue;
@@ -413,7 +413,7 @@ void ContentProperties::addProperty( const OUString & rName,
// else if ( rName.equals( DAVProperties::GETCONTENTLANGUAGE ) )
// {
// }
- else if ( rName.equals( DAVProperties::GETCONTENTLENGTH ) )
+ else if ( rName == DAVProperties::GETCONTENTLENGTH )
{
// Map DAV:getcontentlength to UCP:Size
OUString aValue;
@@ -434,7 +434,7 @@ void ContentProperties::addProperty( const OUString & rName,
(*m_xProps)[ OUString("Size") ]
= PropertyValue( uno::makeAny( aValue.toInt64() ), true );
}
- else if ( rName.equals( DAVProperties::GETCONTENTTYPE ) )
+ else if ( rName == DAVProperties::GETCONTENTTYPE )
{
// Map DAV:getcontenttype to UCP:MediaType (1:1)
(*m_xProps)[ OUString("MediaType") ]
@@ -452,7 +452,7 @@ void ContentProperties::addProperty( const OUString & rName,
// else if ( rName.equals( DAVProperties::GETETAG ) )
// {
// }
- else if ( rName.equals( DAVProperties::GETLASTMODIFIED ) )
+ else if ( rName == DAVProperties::GETLASTMODIFIED )
{
// Map the DAV:getlastmodified entity header to UCP:DateModified
OUString aValue;
@@ -480,7 +480,7 @@ void ContentProperties::addProperty( const OUString & rName,
// else if ( rName.equals( DAVProperties::LOCKDISCOVERY ) )
// {
// }
- else if ( rName.equals( DAVProperties::RESOURCETYPE ) )
+ else if ( rName == DAVProperties::RESOURCETYPE )
{
OUString aValue;
rValue >>= aValue;
@@ -539,7 +539,7 @@ namespace
{
if ( isCaseSensitive )
{
- if ( rName.equals( rNonCachableProp ) )
+ if ( rName == rNonCachableProp )
return false;
}
else
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index 2ba3c8601d09..74bb47622524 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -1759,7 +1759,7 @@ bool NeonSession::removeExpiredLocktoken( const OUString & inURL,
while ( it != end )
{
- if ( (*it).Name.equals( DAVProperties::LOCKDISCOVERY ) )
+ if ( (*it).Name == DAVProperties::LOCKDISCOVERY )
{
uno::Sequence< ucb::Lock > aLocks;
if ( !( (*it).Value >>= aLocks ) )
diff --git a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
index f86ed585c718..70d380bd1b75 100644
--- a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx
@@ -348,7 +348,7 @@ bool DataSupplier::getData()
while ( it != end )
{
- if ( (*it).equals( DAVProperties::RESOURCETYPE ) )
+ if ( (*it) == DAVProperties::RESOURCETYPE )
break;
++it;