diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-25 19:11:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-26 09:17:47 +0200 |
commit | 2dbe6a2d57956be392966c363d03f54cb68dd4fa (patch) | |
tree | 148065e98b7470331edaa83b95c85eae6e179ed2 /sfx2/source/appl/shutdownicon.cxx | |
parent | d416a5ff59b31dd7250d392278c43f66cdb81e35 (diff) |
loplugin:oncevar in sfx2
Change-Id: I9aadcb9a12ef9b0c3f93ea255f2542e51d31fbf7
Reviewed-on: https://gerrit.libreoffice.org/39242
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/appl/shutdownicon.cxx')
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index 7496e6aa153f..031c395cf3c0 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -377,13 +377,11 @@ IMPL_LINK( ShutdownIcon, DialogClosedHdl_Impl, FileDialogHelper*, /*unused*/, vo aArgs[0].Name = "InteractionHandler"; aArgs[0].Value <<= xInteraction; - sal_Int16 nMacroExecMode = css::document::MacroExecMode::USE_CONFIG; aArgs[1].Name = "MacroExecutionMode"; - aArgs[1].Value <<= nMacroExecMode; + aArgs[1].Value <<= sal_Int16(css::document::MacroExecMode::USE_CONFIG); - sal_Int16 nUpdateDoc = css::document::UpdateDocMode::ACCORDING_TO_CONFIG; aArgs[2].Name = "UpdateDocMode"; - aArgs[2].Value <<= nUpdateDoc; + aArgs[2].Value <<= sal_Int16(css::document::UpdateDocMode::ACCORDING_TO_CONFIG); // use the filedlghelper to get the current filter name, // because it removes the extensions before you get the filter name. @@ -717,6 +715,7 @@ OUString ShutdownIcon::getShortcutName() return OUString(); #else +#ifdef _WIN32 OUString aShortcutName( "StarOffice 6.0" ); ResMgr* pMgr = SfxResMgr::GetResMgr(); if( pMgr ) @@ -724,7 +723,6 @@ OUString ShutdownIcon::getShortcutName() ::SolarMutexGuard aGuard; aShortcutName = SfxResId(STR_QUICKSTART_LNKNAME); } -#ifdef _WIN32 aShortcutName += ".lnk"; OUString aShortcut(GetAutostartFolderNameW32()); |