diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-07 09:08:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-09 11:06:19 +0200 |
commit | 1501da01092d4ad4e5f3c8499fd8d1e18f87bc0c (patch) | |
tree | 38ddfacf96c179b45a9bcf8789d2f63afb29aea4 /sfx2 | |
parent | 7af90cc93b76996f0f338c6a1285997531281e75 (diff) |
loplugin:oncevar
Change-Id: Id295dc0db174a448ef73db9de34f2de07d47f09a
Reviewed-on: https://gerrit.libreoffice.org/57108
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index 8f420d84395d..ef452582d980 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -637,9 +637,8 @@ bool ShutdownIcon::GetAutostart( ) { #if defined MACOSX return true; -#else +#elif defined ENABLE_QUICKSTART_APPLET bool bRet = false; -#ifdef ENABLE_QUICKSTART_APPLET OUString aShortcut( getShortcutName() ); OUString aShortcutUrl; osl::File::getFileURLFromSystemPath( aShortcut, aShortcutUrl ); @@ -650,8 +649,9 @@ bool ShutdownIcon::GetAutostart( ) f.close(); bRet = true; } -#endif // ENABLE_QUICKSTART_APPLET return bRet; +#else // ENABLE_QUICKSTART_APPLET + return false; #endif } |