diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 15:53:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-21 15:54:52 +0100 |
commit | a3f32769fc4bb23c64168b412dd10ec769a3854d (patch) | |
tree | 92bb435946dcfc422c9816bc05c150069a2da3c3 /ucb | |
parent | 35539318cecddc9ccb2904573a894ea05adc432c (diff) |
Fix bogus mass-conversion equalsAsciiL -> startsWith
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to
startsWith calls" should rather have converted to oprator ==.
Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/webdavcontent.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx index 52fdc1fd64d6..aea2a5a49c51 100644 --- a/ucb/source/ucp/webdav/webdavcontent.cxx +++ b/ucb/source/ucp/webdav/webdavcontent.cxx @@ -97,7 +97,7 @@ static void lcl_sendPartialGETRequest( bool &bError, for ( std::vector< rtl::OUString >::const_iterator it = aHeaderNames.begin(); it != aHeaderNames.end(); ++it ) { - if ( it->startsWith( "Content-Length" ) ) + if ( *it == "Content-Length" ) { bIsRequestSize = true; break; @@ -129,11 +129,11 @@ static void lcl_sendPartialGETRequest( bool &bError, for ( std::vector< DAVPropertyValue >::const_iterator it = aResponseProps.begin(); it != aResponseProps.end(); ++it ) { - if ( it->Name.startsWith( "Accept-Ranges" ) ) + if ( it->Name == "Accept-Ranges" ) it->Value >>= aAcceptRanges; - else if ( it->Name.startsWith( "Content-Range" ) ) + else if ( it->Name == "Content-Range" ) it->Value >>= aContentRange; - else if ( it->Name.startsWith( "Content-Length" ) ) + else if ( it->Name == "Content-Length" ) it->Value >>= aContentLength; } @@ -148,7 +148,7 @@ static void lcl_sendPartialGETRequest( bool &bError, // MAY ignore ranges specified using other units. if ( nSize == 1 && aContentRange.getLength() && - aAcceptRanges.startsWith( "bytes" ) ) + aAcceptRanges == "bytes" ) { // Parse the Content-Range to get the size // vid. http://tools.ietf.org/html/rfc2616#section-14.16 @@ -158,12 +158,12 @@ static void lcl_sendPartialGETRequest( bool &bError, { rtl::OUString aSize = aContentRange.copy( nSlash + 1 ); // "*" means that the instance-length is unknown at the time when the response was generated - if ( !aSize.startsWith( "*" )) + if ( aSize != "*" ) { for ( std::vector< DAVPropertyValue >::iterator it = aResponseProps.begin(); it != aResponseProps.end(); ++it ) { - if ( it->Name.startsWith( "Content-Length" ) ) + if ( it->Name != "Content-Length" ) { it->Value <<= aSize; break; @@ -734,7 +734,7 @@ uno::Any SAL_CALL Content::execute( aRet = uno::makeAny( createNewContent( aArg ) ); } - else if ( aCommand.Name.startsWith( "addProperty" )) + else if ( aCommand.Name == "addProperty" ) { ucb::PropertyCommandArgument aPropArg; if ( !( aCommand.Argument >>= aPropArg )) @@ -766,7 +766,7 @@ uno::Any SAL_CALL Content::execute( ucbhelper::cancelCommandExecution( uno::makeAny( e ), Environment ); } } - else if ( aCommand.Name.startsWith( "removeProperty" )) + else if ( aCommand.Name == "removeProperty" ) { rtl::OUString sPropName; if ( !( aCommand.Argument >>= sPropName ) ) @@ -1870,7 +1870,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( OUString( "Property is read-only!" ), static_cast< cppu::OWeakObject * >( this ) ); } - if ( rName.startsWith( "CreatableContentsInfo" ) ) + if ( rName == "CreatableContentsInfo" ) { // Read-only property! aRet[ n ] <<= lang::IllegalAccessException( |