summaryrefslogtreecommitdiffstats
path: root/io/source/acceptor
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/source/acceptor
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/source/acceptor')
-rw-r--r--io/source/acceptor/acceptor.cxx13
1 files changed, 2 insertions, 11 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)