summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-07 15:59:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 06:11:51 +0000
commit8955c3fde60b0621527e4b91576e49778494f926 (patch)
treec74b6e1991bb7684f0fd78c943a1968f2113e602 /desktop
parent525a45f22f591d8046ca95af3073ed27fd283ef0 (diff)
loplugin:oncevar
Change-Id: I44fb6858eeff14fcbd9fdfbbb0aabd1433b6a27d Reviewed-on: https://gerrit.libreoffice.org/30668 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/app.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 7f278e14e546..53365f4e76a0 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1090,12 +1090,10 @@ void handleCrashReport()
void handleSafeMode()
{
- static const char SERVICENAME_SAFEMODE[] = "com.sun.star.comp.svx.SafeModeUI";
-
css::uno::Reference< css::uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext();
Reference< css::frame::XSynchronousDispatch > xSafeModeUI(
- xContext->getServiceManager()->createInstanceWithContext(SERVICENAME_SAFEMODE, xContext),
+ xContext->getServiceManager()->createInstanceWithContext("com.sun.star.comp.svx.SafeModeUI", xContext),
css::uno::UNO_QUERY_THROW);
css::util::URL aURL;