From 9bdec0831afc45af45ea6d9350ef3372188b45cb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 1 Nov 2016 13:10:08 +0200 Subject: loplugin:oncevar in sd..svgio Change-Id: I58565460fcc3279c9771c6e1272d0af540b2c87c Reviewed-on: https://gerrit.libreoffice.org/30459 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sfx2/source/doc/templatedlg.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sfx2/source/doc/templatedlg.cxx') diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index f11fccd97eec..941f451f1916 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -63,8 +63,6 @@ const char TM_SETTING_MANAGER[] = "TemplateManager"; const char TM_SETTING_LASTFOLDER[] = "LastFolder"; const char TM_SETTING_LASTAPPLICATION[] = "LastApplication"; -const char SERVICENAME_CFGREADACCESS[] = "com.sun.star.configuration.ConfigurationAccess"; - const char ACTIONBAR_ACTION[] = "action_menu"; #define MNI_ACTION_NEW_FOLDER 1 @@ -1064,7 +1062,7 @@ void SfxTemplateManagerDlg::OnTemplateLink () Any(sNodePath), PropertyState_DIRECT_VALUE); args.getArray()[0] <<= val; - Reference xNameAccess(xConfig->createInstanceWithArguments(SERVICENAME_CFGREADACCESS,args), UNO_QUERY); + Reference xNameAccess(xConfig->createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess", args), UNO_QUERY); if( xNameAccess.is() ) { OUString sURL; -- cgit