summaryrefslogtreecommitdiff
path: root/scripting/source/protocolhandler/scripthandler.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-11-10 14:41:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-11 06:33:40 +0100
commitcc1e6ee2dd4609c27cb7a09aa47a779592a3e22c (patch)
treee0155415dcdbb86078d47100d088689542b98a66 /scripting/source/protocolhandler/scripthandler.cxx
parentdfb2e07e32694c220e791574b7a6c05f5648c0c2 (diff)
disable O(U)String::concat for internal code
in favour of the more widely used, and better optimised, operator+ Change-Id: I6a1b37e0f3d253af1f7a0892443f59b620efea63 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105523 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting/source/protocolhandler/scripthandler.cxx')
-rw-r--r--scripting/source/protocolhandler/scripthandler.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx
index 78d754300cfa..b163a2000cce 100644
--- a/scripting/source/protocolhandler/scripthandler.cxx
+++ b/scripting/source/protocolhandler/scripthandler.cxx
@@ -242,9 +242,8 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification(
{
aException = ::cppu::getCaughtException();
- OUString reason = "ScriptProtocolHandler::dispatch: caught ";
-
- invokeResult <<= reason.concat( aException.getValueTypeName() ).concat( ": " ).concat( e.Message );
+ invokeResult <<= "ScriptProtocolHandler::dispatch: caught "
+ + aException.getValueTypeName() + ": " + e.Message;
bCaughtException = true;
}