diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-23 16:07:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-30 12:45:45 +0100 |
commit | f0a8b5b81d6be08de6e0d504616a1f09830f7c38 (patch) | |
tree | c13bfc5e50c8e1852bf50531d6fcdff6e59e718c /vcl/source/app/settings.cxx | |
parent | 2c8e9ed3cbe3aed5520ce8f5888dd083f8ee50c3 (diff) |
move IsFuzzing to comphelper
and try something a bit more generic
Change-Id: I1d8256576cd02f0a589df350ba7b53059dd586a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161250
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl/source/app/settings.cxx')
-rw-r--r-- | vcl/source/app/settings.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index a1138de24c4d..8d04d9065ea6 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -636,7 +636,7 @@ void ImplStyleData::SetStandardStyles() vcl::Font aStdFont( FAMILY_SWISS, Size( 0, 8 ) ); aStdFont.SetCharSet( osl_getThreadTextEncoding() ); aStdFont.SetWeight( WEIGHT_NORMAL ); - if (!utl::ConfigManager::IsFuzzing()) + if (!comphelper::IsFuzzing()) aStdFont.SetFamilyName(utl::DefaultFontConfiguration::get().getUserInterfaceFont(LanguageTag("en"))); else aStdFont.SetFamilyName("Liberation Sans"); @@ -2814,7 +2814,7 @@ bool MiscSettings::GetUseDarkMode() int MiscSettings::GetAppColorMode() { - if (utl::ConfigManager::IsFuzzing()) + if (comphelper::IsFuzzing()) return 0; return officecfg::Office::Common::Misc::ApplicationAppearance::get(); } @@ -2887,7 +2887,7 @@ ImplAllSettingsData::ImplAllSettingsData() maLocale( LANGUAGE_SYSTEM ), maUILocale( LANGUAGE_SYSTEM ) { - if (!utl::ConfigManager::IsFuzzing()) + if (!comphelper::IsFuzzing()) maMiscSettings.SetEnableLocalizedDecimalSep( maSysLocale.GetOptions().IsDecimalSeparatorAsLocale() ); } @@ -3079,21 +3079,21 @@ namespace bool AllSettings::GetLayoutRTL() { - if (utl::ConfigManager::IsFuzzing()) + if (comphelper::IsFuzzing()) return false; return GetConfigLayoutRTL(false); } bool AllSettings::GetMathLayoutRTL() { - if (utl::ConfigManager::IsFuzzing()) + if (comphelper::IsFuzzing()) return false; return GetConfigLayoutRTL(true); } const LanguageTag& AllSettings::GetLanguageTag() const { - if (utl::ConfigManager::IsFuzzing()) + if (comphelper::IsFuzzing()) { static LanguageTag aRet("en-US"); return aRet; @@ -3111,7 +3111,7 @@ const LanguageTag& AllSettings::GetLanguageTag() const const LanguageTag& AllSettings::GetUILanguageTag() const { - if (utl::ConfigManager::IsFuzzing()) + if (comphelper::IsFuzzing()) { static LanguageTag aRet("en-US"); return aRet; @@ -3237,7 +3237,7 @@ StyleSettings::DetermineIconTheme() const OUString sTheme(mxData->mIconTheme); if (sTheme.isEmpty()) { - if (utl::ConfigManager::IsFuzzing()) + if (comphelper::IsFuzzing()) sTheme = "colibre"; else { |