From bc539bd3c04964471af6b5ca54264215c8995696 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 28 Oct 2019 10:35:49 +0200 Subject: loplugin:stringadd improve detection if one side of the expression is a compile-time-constant, we don't need to worry about side-effects on the other side Change-Id: Iee71ea51b327ef244bf39f128f921ac325d74e2b Reviewed-on: https://gerrit.libreoffice.org/81589 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucb/source/ucp/ftp/ftpurl.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ucb') diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx index c1c35b5db02e..413b89c8605c 100644 --- a/ucb/source/ucp/ftp/ftpurl.cxx +++ b/ucb/source/ucp/ftp/ftpurl.cxx @@ -715,15 +715,13 @@ OUString FTPURL::ren(const OUString& NewTitle) CURL *curl = m_pFCP->handle(); // post request - OString renamefrom("RNFR "); OUString OldTitle = net_title(); - renamefrom += + OString renamefrom = "RNFR " + OString(OldTitle.getStr(), OldTitle.getLength(), RTL_TEXTENCODING_UTF8); - OString renameto("RNTO "); - renameto += + OString renameto = "RNTO " + OString(NewTitle.getStr(), NewTitle.getLength(), RTL_TEXTENCODING_UTF8); -- cgit v1.2.3