summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-19 17:16:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-19 17:16:24 +0200
commit2dda43ff27ddbdb70c3e2e38d96cdd27c4e50572 (patch)
tree1fc5871b1f0c511b44edf838ee60d96667e48e3e /ucb
parentb052e1775a658514283e4b019830f0bd460f2e54 (diff)
loplugin:stringcopy: ucb
Change-Id: I9ea5e17673ec91fcbb1c7e42df3820c80aa90b93
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/core/ucbcmds.cxx2
-rw-r--r--ucb/source/core/ucbstore.cxx2
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx2
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontent.cxx4
4 files changed, 5 insertions, 5 deletions
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