summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-21 13:48:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-22 21:42:14 +0200
commit75997f13ee3a71d6c994392264b0190bd7bb6756 (patch)
tree4dc35a2e62e41d4b1f7953367419ff3fb072635f /ucb/source
parentb546af03ab9e371c70ce72562bc0a492972a8585 (diff)
no need to create temporaries when appending number to O[U]StringBuffer
Change-Id: I36d82423b5f75010552696a66cec7e53ee265ce4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114395 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/ucp/tdoc/tdoc_content.cxx4
-rw-r--r--ucb/source/ucp/webdav-neon/NeonUri.cxx4
-rw-r--r--ucb/source/ucp/webdav/SerfUri.cxx4
3 files changed, 6 insertions, 6 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx
index 34c6ea2b31df..9dd1b6bf0b73 100644
--- a/ucb/source/ucp/tdoc/tdoc_content.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_content.cxx
@@ -1566,7 +1566,7 @@ void Content::insert( const uno::Reference< io::XInputStream >& xData,
{
OUStringBuffer aNew = aNewUri.getUri();
aNew.append( "_" );
- aNew.append( OUString::number( ++nTry ) );
+ aNew.append( ++nTry );
aNewUri.setUri( aNew.makeStringAndClear() );
}
while ( hasData( aNewUri ) && ( nTry < 1000 ) );
@@ -1586,7 +1586,7 @@ void Content::insert( const uno::Reference< io::XInputStream >& xData,
{
OUStringBuffer aNewTitle = m_aProps.getTitle();
aNewTitle.append( "_" );
- aNewTitle.append( OUString::number( ++nTry ) );
+ aNewTitle.append( ++nTry );
m_aProps.setTitle( aNewTitle.makeStringAndClear() );
}
}
diff --git a/ucb/source/ucp/webdav-neon/NeonUri.cxx b/ucb/source/ucp/webdav-neon/NeonUri.cxx
index 4c88819e7bb5..df641fce518d 100644
--- a/ucb/source/ucp/webdav-neon/NeonUri.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonUri.cxx
@@ -189,7 +189,7 @@ void NeonUri::calculateURI ()
if ( bAppendPort )
{
aBuf.append( ":" );
- aBuf.append( OUString::number( mPort ) );
+ aBuf.append( mPort );
}
aBuf.append( mPath );
@@ -283,7 +283,7 @@ OUString NeonUri::makeConnectionEndPointString(
if ( ( nPort != DEFAULT_HTTP_PORT ) && ( nPort != DEFAULT_HTTPS_PORT ) )
{
aBuf.append( ":" );
- aBuf.append( OUString::number( nPort ) );
+ aBuf.append( static_cast<sal_Int32>(nPort) );
}
return aBuf.makeStringAndClear();
}
diff --git a/ucb/source/ucp/webdav/SerfUri.cxx b/ucb/source/ucp/webdav/SerfUri.cxx
index dab11a64cfa9..8852779faeba 100644
--- a/ucb/source/ucp/webdav/SerfUri.cxx
+++ b/ucb/source/ucp/webdav/SerfUri.cxx
@@ -146,7 +146,7 @@ void SerfUri::calculateURI ()
if ( bAppendPort )
{
aBuf.append( ":" );
- aBuf.append( OUString::number( mPort ) );
+ aBuf.append( mPort );
}
aBuf.append( mPath );
@@ -240,7 +240,7 @@ OUString SerfUri::makeConnectionEndPointString(
if ( ( nPort != DEFAULT_HTTP_PORT ) && ( nPort != DEFAULT_HTTPS_PORT ) )
{
aBuf.append( ":" );
- aBuf.append( OUString::number( sal_Int32( nPort ) ) );
+ aBuf.append( sal_Int32( nPort ) );
}
return aBuf.makeStringAndClear();
}