diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-06 14:49:13 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-04-04 10:40:08 +0200 |
commit | 6ac538d2d417d11841c6c7c639e4a6e32d7b4455 (patch) | |
tree | 29123777e238a9ccba0c6d79a939b95056b4a0ba | |
parent | 5ce76a58c765ab0ff3420b82d81a6d5c1dbf1804 (diff) |
webdav: fix remaining build issues
(cherry picked from commit d60301d03b098e1d45b8de6b169e9fb54600c3f1)
Conflicts:
ucb/source/ucp/webdav/DAVProperties.cxx
Conflicts:
ucb/source/ucp/webdav/DAVProperties.cxx
ucb/source/ucp/webdav/SerfSession.cxx
Change-Id: I9416551ba78a6a27071fdf92a6c36c271a1032b7
-rw-r--r-- | ucb/source/ucp/webdav/ContentProperties.cxx | 8 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/SerfPropPatchReqProcImpl.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/SerfSession.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/webdavcontent.cxx | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx index 0ca32557aeec..0deb3d7a61a4 100644 --- a/ucb/source/ucp/webdav/ContentProperties.cxx +++ b/ucb/source/ucp/webdav/ContentProperties.cxx @@ -428,7 +428,7 @@ void ContentProperties::addProperty( const OUString & rName, const com::sun::star::uno::Any & rValue, bool bIsCaseSensitive ) { - if ( rName == DAVProperties::CREATIONDATE ) ) + if ( rName == DAVProperties::CREATIONDATE ) { // Map DAV:creationdate to UCP:DateCreated OUString aValue; @@ -445,7 +445,7 @@ void ContentProperties::addProperty( const OUString & rName, // else if ( rName.equals( DAVProperties::GETCONTENTLANGUAGE ) ) // { // } - else if ( rName == DAVProperties::GETCONTENTLENGTH ) ) + else if ( rName == DAVProperties::GETCONTENTLENGTH ) { // Map DAV:getcontentlength to UCP:Size OUString aValue; @@ -466,7 +466,7 @@ void ContentProperties::addProperty( const OUString & rName, (*m_xProps)[ OUString::createFromAscii( "Size" ) ] = PropertyValue( uno::makeAny( aValue.toInt64() ), true ); } - else if ( rName == DAVProperties::GETCONTENTTYPE ) ) + else if ( rName == DAVProperties::GETCONTENTTYPE ) { // Map DAV:getcontenttype to UCP:MediaType (1:1) (*m_xProps)[ OUString::createFromAscii( "MediaType" ) ] @@ -512,7 +512,7 @@ void ContentProperties::addProperty( const OUString & rName, // else if ( rName.equals( DAVProperties::LOCKDISCOVERY ) ) // { // } - else if ( rName == DAVProperties::RESOURCETYPE ) ) + else if ( rName == DAVProperties::RESOURCETYPE ) { OUString aValue; rValue >>= aValue; diff --git a/ucb/source/ucp/webdav/SerfPropPatchReqProcImpl.cxx b/ucb/source/ucp/webdav/SerfPropPatchReqProcImpl.cxx index e8c648ddd01f..48c7b84523db 100644 --- a/ucb/source/ucp/webdav/SerfPropPatchReqProcImpl.cxx +++ b/ucb/source/ucp/webdav/SerfPropPatchReqProcImpl.cxx @@ -128,7 +128,7 @@ serf_bucket_t * SerfPropPatchReqProcImpl::createSerfRequestBucket( serf_request_ // add PropPatch xml trailer at end aBodyText += OUString::createFromAscii( PROPPATCH_TRAILER ); - body_bkt = SERF_BUCKET_SIMPLE_STRING( OUStringToOString( aBodyText, RTL_TEXTENCODING_UTF8 ), + body_bkt = SERF_BUCKET_SIMPLE_STRING( OUStringToOString( aBodyText, RTL_TEXTENCODING_UTF8 ).getStr(), pSerfBucketAlloc ); if ( useChunkedEncoding() ) { diff --git a/ucb/source/ucp/webdav/SerfSession.cxx b/ucb/source/ucp/webdav/SerfSession.cxx index 6c8534f95dd2..fbfd873a4677 100644 --- a/ucb/source/ucp/webdav/SerfSession.cxx +++ b/ucb/source/ucp/webdav/SerfSession.cxx @@ -1557,7 +1557,7 @@ SerfSession::isDomainMatch( OUString certHostName ) if (hostName.equalsIgnoreAsciiCase( certHostName ) ) return sal_True; - if ( 0 == certHostName.indexOf( OUString::createFromAscii( "*" ) ) && + if ( certHostName.startsWith( "*" ) && hostName.getLength() >= certHostName.getLength() ) { OUString cmpStr = certHostName.copy( 1 ); diff --git a/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx b/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx index 3a953d2e55ef..32eb95cbb1d8 100644 --- a/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx +++ b/ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx @@ -194,7 +194,7 @@ static OUString encodeValue( const OUString & rValue ) else aResult.append( c ); } - return OUString( aResult ); + return aResult.makeStringAndClear(); } /* diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx index 8a18aeb562f3..e93ece48f0d1 100644 --- a/ucb/source/ucp/webdav/webdavcontent.cxx +++ b/ucb/source/ucp/webdav/webdavcontent.cxx @@ -465,7 +465,7 @@ uno::Any SAL_CALL Content::execute( // Note: Implemented by base class. aRet <<= getCommandInfo( Environment, sal_False ); } - else if ( aCommand.Name "open" ) + else if ( aCommand.Name == "open" ) { ////////////////////////////////////////////////////////////////// // open |