From 2dda43ff27ddbdb70c3e2e38d96cdd27c4e50572 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 19 May 2017 17:16:24 +0200 Subject: loplugin:stringcopy: ucb Change-Id: I9ea5e17673ec91fcbb1c7e42df3820c80aa90b93 --- ucb/source/core/ucbcmds.cxx | 2 +- ucb/source/core/ucbstore.cxx | 2 +- ucb/source/ucp/webdav-neon/NeonSession.cxx | 2 +- ucb/source/ucp/webdav-neon/webdavcontent.cxx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'ucb') diff --git a/ucb/source/core/ucbcmds.cxx b/ucb/source/core/ucbcmds.cxx index c317bddc9437..cdd27d491772 100644 --- a/ucb/source/core/ucbcmds.cxx +++ b/ucb/source/core/ucbcmds.cxx @@ -345,7 +345,7 @@ OUString createDesiredName( if ( nPos != -1 ) aName = aName.copy( 0, nPos ); } - return OUString( aName ); + return aName; } OUString createDesiredName( diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx index bbd120d9819d..18f3af60e1c1 100644 --- a/ucb/source/core/ucbstore.cxx +++ b/ucb/source/core/ucbstore.cxx @@ -95,7 +95,7 @@ OUString makeHierarchalNameSegment( const OUString & rIn ) } aBuffer.append( "']" ); - return OUString( aBuffer.makeStringAndClear() ); + return aBuffer.makeStringAndClear(); } #define STORE_CONTENTPROPERTIES_KEY "/org.openoffice.ucb.Store/ContentProperties" diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx index 6e808ebe07d2..2ba3c8601d09 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.cxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx @@ -2316,7 +2316,7 @@ OUString NeonSession::makeAbsoluteURL( OUString const & rURL ) const if ( !rURL.isEmpty() && rURL[ 0 ] != '/' ) { // absolute. - return OUString( rURL ); + return rURL; } else { diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index 5e401027ace8..29b026db5165 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -1221,7 +1221,7 @@ OUString Content::getParentURL() if ( nPos1 == -1 ) return OUString(); - return OUString( aURL.copy( 0, nPos + 1 ) ); + return aURL.copy( 0, nPos + 1 ); } @@ -3820,7 +3820,7 @@ Content::getBaseURI( const std::unique_ptr< DAVResourceAccess > & rResAccess ) } } - return OUString( rResAccess->getURL() ); + return rResAccess->getURL(); } // resource type is the type of the WebDAV resource -- cgit