diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-18 14:09:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-19 07:58:15 +0200 |
commit | e61e4e56994c22221dcc0e9f4c2cb62fd63ac823 (patch) | |
tree | d38359c4e9a3de7112075244d7013907ce135d4f /vcl/source/app/IconThemeSelector.cxx | |
parent | ba80f637b82ef5df7c650ec301ca9ebb5f678f44 (diff) |
clang-tidy readability-misleading-indentation
Change-Id: I4673fc7c694924b41d048a1918ddb8b0e0af1f79
Reviewed-on: https://gerrit.libreoffice.org/61935
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/app/IconThemeSelector.cxx')
-rw-r--r-- | vcl/source/app/IconThemeSelector.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/vcl/source/app/IconThemeSelector.cxx b/vcl/source/app/IconThemeSelector.cxx index cf18f5f2c687..d0454c37fb34 100644 --- a/vcl/source/app/IconThemeSelector.cxx +++ b/vcl/source/app/IconThemeSelector.cxx @@ -51,24 +51,24 @@ IconThemeSelector::IconThemeSelector() /*static*/ OUString IconThemeSelector::GetIconThemeForDesktopEnvironment(const OUString& desktopEnvironment) { - OUString r; #ifdef _WIN32 - r = "colibre"; (void)desktopEnvironment; + return OUString("colibre"); #else + OUString r; if ( desktopEnvironment.equalsIgnoreAsciiCase("kde4") || desktopEnvironment.equalsIgnoreAsciiCase("kde5") || desktopEnvironment.equalsIgnoreAsciiCase("lxqt") ) { r = "breeze"; - } else - if ( desktopEnvironment.equalsIgnoreAsciiCase("macosx") ) { + } + else if ( desktopEnvironment.equalsIgnoreAsciiCase("macosx") ) { #if MPL_HAVE_SUBSET r = "tango"; #else r = "breeze"; #endif - } else - if ( desktopEnvironment.equalsIgnoreAsciiCase("gnome") || + } + else if ( desktopEnvironment.equalsIgnoreAsciiCase("gnome") || desktopEnvironment.equalsIgnoreAsciiCase("mate") || desktopEnvironment.equalsIgnoreAsciiCase("unity") ) { r = "elementary"; @@ -76,9 +76,8 @@ IconThemeSelector::GetIconThemeForDesktopEnvironment(const OUString& desktopEnvi { r = FALLBACK_ICON_THEME_ID; } -#endif - return r; +#endif // _WIN32 } OUString |