summaryrefslogtreecommitdiffstats
path: root/io
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 15:10:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 08:26:49 +0200
commit03516c505eced337149782a67b2ad98c246929b3 (patch)
treec499c7912cf65ebbf13c729782a93adc3f856a55 /io
parentloplugin:stringadd in extensions..framework (diff)
downloadcore-03516c505eced337149782a67b2ad98c246929b3.tar.gz
core-03516c505eced337149782a67b2ad98c246929b3.zip
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.cxx13
-rw-r--r--io/source/connector/connector.cxx10
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(',');