summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/hierarchy/hierarchycontent.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-05-25 14:24:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-25 18:43:52 +0200
commite810bd2b99777e192fb464572fa64a34bc0768fe (patch)
tree22e209b88814242c1914931dff28112cbf8c0e6f /ucb/source/ucp/hierarchy/hierarchycontent.cxx
parent578758835e700b38b167753ccda9527f3a8cc43b (diff)
merge some stringadds
found with a lightly tweaked version of the loplugin:stringadd and some hand-holding. Change-Id: I146aadcaf665e98fea89a9cad2df4dc3935622f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152275 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/hierarchy/hierarchycontent.cxx')
-rw-r--r--ucb/source/ucp/hierarchy/hierarchycontent.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.cxx b/ucb/source/ucp/hierarchy/hierarchycontent.cxx
index 61a495267814..798ba88ea079 100644
--- a/ucb/source/ucp/hierarchy/hierarchycontent.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchycontent.cxx
@@ -699,8 +699,8 @@ HierarchyContent::makeNewIdentifier( const OUString& rTitle )
// Assemble new content identifier...
HierarchyUri aUri( m_xIdentifier->getContentIdentifier() );
- OUString aNewURL = aUri.getParentUri() + "/";
- aNewURL += ::ucb_impl::urihelper::encodeSegment( rTitle );
+ OUString aNewURL = aUri.getParentUri() + "/" +
+ ::ucb_impl::urihelper::encodeSegment( rTitle );
return uno::Reference< ucb::XContentIdentifier >(
new ::ucbhelper::ContentIdentifier( aNewURL ) );
@@ -1348,8 +1348,7 @@ void HierarchyContent::insert( sal_Int32 nNameClashResolve,
do
{
- OUString aNewId = xId->getContentIdentifier() + "_";
- aNewId += OUString::number( ++nTry );
+ OUString aNewId = xId->getContentIdentifier() + "_" + OUString::number( ++nTry );
xId = new ::ucbhelper::ContentIdentifier( aNewId );
}
while ( hasData( xId ) && ( nTry < 1000 ) );