summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-03 11:46:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-03 22:39:11 +0200
commit3d3cb4328ece843b3e31b8411f9d16bbedb57a7b (patch)
treeccf8a174c02c384de787d0d7f6a1cbcb0c9e4f6c /extensions/source/propctrlr
parent6d1b19df4e9cd066acf57b57c3a8b68e09a43ff0 (diff)
Upcoming loplugin:elidestringvar: extensions
Change-Id: I318eebbdc79c503b10570061a298eb76d6555540 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95402 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions/source/propctrlr')
-rw-r--r--extensions/source/propctrlr/eventhandler.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx
index 638ff02a77e8..32d9894dace4 100644
--- a/extensions/source/propctrlr/eventhandler.cxx
+++ b/extensions/source/propctrlr/eventhandler.cxx
@@ -619,10 +619,8 @@ namespace pcr
aComposeBuffer.append( xScriptUri->getName() );
// location
- const OUString sLocationParamName( "location" );
- const OUString sLocation = xScriptUri->getParameter( sLocationParamName );
- const OUString sLangParamName( "language" );
- const OUString sLanguage = xScriptUri->getParameter( sLangParamName );
+ const OUString sLocation = xScriptUri->getParameter( "location" );
+ const OUString sLanguage = xScriptUri->getParameter( "language" );
if ( !(sLocation.isEmpty() && sLanguage.isEmpty()) )
{