diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-30 15:10:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-01 08:26:49 +0200 |
commit | 03516c505eced337149782a67b2ad98c246929b3 (patch) | |
tree | c499c7912cf65ebbf13c729782a93adc3f856a55 /io | |
parent | 9b3643820bf821c8be728ed20a8cb7ed05cabef2 (diff) |
loplugin:stringadd in helpcompiler..oox
Change-Id: I858870d883de10a673d7ce2798bda8c8f511cee5
Reviewed-on: https://gerrit.libreoffice.org/79889
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'io')
-rw-r--r-- | io/source/acceptor/acceptor.cxx | 13 | ||||
-rw-r--r-- | io/source/connector/connector.cxx | 10 |
2 files changed, 4 insertions, 19 deletions
diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx index 0606c4f1f248..217c23b9a845 100644 --- a/io/source/acceptor/acceptor.cxx +++ b/io/source/acceptor/acceptor.cxx @@ -92,11 +92,7 @@ namespace io_acceptor : m_pFlag( pFlag ) { if( *m_pFlag ) - { - OUString sMessage( "AlreadyAcceptingException :" ); - sMessage += sConnectionDescription; - throw AlreadyAcceptingException( sMessage ); - } + throw AlreadyAcceptingException( "AlreadyAcceptingException :" + sConnectionDescription ); *m_pFlag = true; } ~BeingInAccept() @@ -186,12 +182,7 @@ namespace io_acceptor _xAcceptor.set(_xSMgr->createInstanceWithContext(delegatee, _xCtx), UNO_QUERY); if(!_xAcceptor.is()) - { - OUString message("Acceptor: unknown delegatee "); - message += delegatee; - - throw ConnectionSetupException(message); - } + throw ConnectionSetupException("Acceptor: unknown delegatee " + delegatee); } } catch (const rtl::MalformedUriException & rEx) diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx index 1c9619c26352..c21a34d17eac 100644 --- a/io/source/connector/connector.cxx +++ b/io/source/connector/connector.cxx @@ -114,8 +114,7 @@ namespace stoc_connector { OUString sMessage("Connector : couldn't connect to socket ("); OUString sError = pConn->m_socket.getErrorAsString(); - sMessage += sError; - sMessage += ")"; + sMessage += sError + ")"; throw NoConnectException( sMessage ); } // we enable tcpNoDelay for loopback connections because @@ -137,12 +136,7 @@ namespace stoc_connector _xSMgr->createInstanceWithContext(delegatee, _xCtx), UNO_QUERY ); if(!xConnector.is()) - { - OUString message("Connector: unknown delegatee "); - message += delegatee; - - throw ConnectionSetupException(message); - } + throw ConnectionSetupException("Connector: unknown delegatee " + delegatee); sal_Int32 index = sConnectionDescription.indexOf(','); |