summaryrefslogtreecommitdiff
path: root/scripting/source/inc
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/inc
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/inc')
-rw-r--r--scripting/source/inc/util/MiscUtils.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripting/source/inc/util/MiscUtils.hxx b/scripting/source/inc/util/MiscUtils.hxx
index f40a51499834..e7b5bd920a58 100644
--- a/scripting/source/inc/util/MiscUtils.hxx
+++ b/scripting/source/inc/util/MiscUtils.hxx
@@ -108,8 +108,7 @@ static css::uno::Reference< css::frame::XModel > tDocUrlToModel( const OUString&
try
{
::ucbhelper::Content root( url, nullptr, comphelper::getProcessComponentContext() );
- OUString propName = "DocumentModel";
- result = getUCBProperty( root, propName );
+ result = getUCBProperty( root, "DocumentModel" );
}
catch ( css::ucb::ContentCreationException& )
{