summaryrefslogtreecommitdiff
path: root/scripting/source/protocolhandler/scripthandler.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-04 21:23:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-05 08:53:18 +0200
commit9e07acf3a9b0c9f82734c7bb23e82f7684522f13 (patch)
treee56546d13c88eb40e213d259c1b39e8aca4d0bf0 /scripting/source/protocolhandler/scripthandler.cxx
parent91f13f44f26e817b6211c48ca38dcffee4f8fa37 (diff)
Upcoming loplugin:elidestringvar: scripting
Change-Id: Ib900f42b41bf6a3b8f65132dd4c6eb46fb1e5171 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95539 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'scripting/source/protocolhandler/scripthandler.cxx')
-rw-r--r--scripting/source/protocolhandler/scripthandler.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx
index ea29661a489a..74aecbeb1e5c 100644
--- a/scripting/source/protocolhandler/scripthandler.cxx
+++ b/scripting/source/protocolhandler/scripthandler.cxx
@@ -80,8 +80,7 @@ void SAL_CALL ScriptProtocolHandler::initialize(
// but usually it's a "real" frame)
if ( aArguments.hasElements() && !( aArguments[ 0 ] >>= m_xFrame ) )
{
- OUString temp = "ScriptProtocolHandler::initialize: could not extract reference to the frame";
- throw RuntimeException( temp );
+ throw RuntimeException( "ScriptProtocolHandler::initialize: could not extract reference to the frame" );
}
ENSURE_OR_THROW( m_xContext.is(), "ScriptProtocolHandler::initialize: No Service Manager available" );