diff options
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/settings.cxx | 14 | ||||
-rw-r--r-- | vcl/source/app/svapp.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/FilterConfigCache.cxx | 2 | ||||
-rw-r--r-- | vcl/source/font/PhysicalFontCollection.cxx | 10 | ||||
-rw-r--r-- | vcl/source/outdev/font.cxx | 6 | ||||
-rw-r--r-- | vcl/source/window/settings.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/window.cxx | 4 |
7 files changed, 20 insertions, 20 deletions
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index 5fa327948971..215d8eaca122 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -677,7 +677,7 @@ void ImplStyleData::SetStandardStyles() vcl::Font aStdFont( FAMILY_SWISS, Size( 0, 8 ) ); aStdFont.SetCharSet( osl_getThreadTextEncoding() ); aStdFont.SetWeight( WEIGHT_NORMAL ); - if (!utl::ConfigManager::IsAvoidConfig()) + if (!utl::ConfigManager::IsFuzzing()) aStdFont.SetFamilyName(utl::DefaultFontConfiguration::get().getUserInterfaceFont(LanguageTag("en"))); else aStdFont.SetFamilyName("Liberation Serif"); @@ -2656,7 +2656,7 @@ ImplAllSettingsData::ImplAllSettingsData() mpUILocaleDataWrapper = nullptr; mpI18nHelper = nullptr; mpUII18nHelper = nullptr; - if (!utl::ConfigManager::IsAvoidConfig()) + if (!utl::ConfigManager::IsFuzzing()) maMiscSettings.SetEnableLocalizedDecimalSep( maSysLocale.GetOptions().IsDecimalSeparatorAsLocale() ); } @@ -2860,21 +2860,21 @@ namespace bool AllSettings::GetLayoutRTL() { - if (utl::ConfigManager::IsAvoidConfig()) + if (utl::ConfigManager::IsFuzzing()) return false; return GetConfigLayoutRTL(false); } bool AllSettings::GetMathLayoutRTL() { - if (utl::ConfigManager::IsAvoidConfig()) + if (utl::ConfigManager::IsFuzzing()) return false; return GetConfigLayoutRTL(true); } const LanguageTag& AllSettings::GetLanguageTag() const { - if (utl::ConfigManager::IsAvoidConfig()) + if (utl::ConfigManager::IsFuzzing()) { static LanguageTag aRet("en-US"); return aRet; @@ -2889,7 +2889,7 @@ const LanguageTag& AllSettings::GetLanguageTag() const const LanguageTag& AllSettings::GetUILanguageTag() const { - if (utl::ConfigManager::IsAvoidConfig()) + if (utl::ConfigManager::IsFuzzing()) { static LanguageTag aRet("en-US"); return aRet; @@ -3004,7 +3004,7 @@ StyleSettings::DetermineIconTheme() const OUString sTheme(mxData->mIconTheme); if (sTheme.isEmpty()) { - if (utl::ConfigManager::IsAvoidConfig()) + if (utl::ConfigManager::IsFuzzing()) sTheme = "galaxy"; else { diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 351a5bfa2f77..f9e82ccd2acb 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -744,7 +744,7 @@ void InitSettings(ImplSVData* pSVData) assert(!pSVData->maAppData.mpSettings && "initialization should not happen twice!"); pSVData->maAppData.mpSettings = new AllSettings(); - if (!utl::ConfigManager::IsAvoidConfig()) + if (!utl::ConfigManager::IsFuzzing()) { pSVData->maAppData.mpCfgListener = new LocaleConfigurationListener; pSVData->maAppData.mpSettings->GetSysLocale().GetOptions().AddListener( pSVData->maAppData.mpCfgListener ); diff --git a/vcl/source/filter/FilterConfigCache.cxx b/vcl/source/filter/FilterConfigCache.cxx index bde60c7d3ae6..d652093285e5 100644 --- a/vcl/source/filter/FilterConfigCache.cxx +++ b/vcl/source/filter/FilterConfigCache.cxx @@ -296,7 +296,7 @@ FilterConfigCache::FilterConfigCache( bool bConfig ) : bUseConfig ( bConfig ) { if (bUseConfig) - bUseConfig = !utl::ConfigManager::IsAvoidConfig(); + bUseConfig = !utl::ConfigManager::IsFuzzing(); if (bUseConfig) ImplInit(); else diff --git a/vcl/source/font/PhysicalFontCollection.cxx b/vcl/source/font/PhysicalFontCollection.cxx index 42fe0707134b..39390b7bf107 100644 --- a/vcl/source/font/PhysicalFontCollection.cxx +++ b/vcl/source/font/PhysicalFontCollection.cxx @@ -424,7 +424,7 @@ void PhysicalFontCollection::ImplInitMatchData() const return; mbMatchData = true; - if (utl::ConfigManager::IsAvoidConfig()) + if (utl::ConfigManager::IsFuzzing()) return; // calculate MatchData for all entries @@ -867,7 +867,7 @@ PhysicalFontFamily* PhysicalFontCollection::ImplFindFontFamilyOfDefaultFont() co // try to find one of the default fonts of the // UNICODE, SANSSERIF, SERIF or FIXED default font lists PhysicalFontFamily* pFoundData = nullptr; - if (!utl::ConfigManager::IsAvoidConfig()) + if (!utl::ConfigManager::IsFuzzing()) { const utl::DefaultFontConfiguration& rDefaults = utl::DefaultFontConfiguration::get(); LanguageTag aLanguageTag("en"); @@ -1179,7 +1179,7 @@ PhysicalFontFamily* PhysicalFontCollection::FindFontFamily( FontSelectPattern& r // use font fallback const utl::FontNameAttr* pFontAttr = nullptr; - if (!aSearchName.isEmpty() && !utl::ConfigManager::IsAvoidConfig()) + if (!aSearchName.isEmpty() && !utl::ConfigManager::IsFuzzing()) { // get fallback info using FontSubstConfiguration and // the target name, it's shortened name and family name in that order @@ -1203,7 +1203,7 @@ PhysicalFontFamily* PhysicalFontCollection::FindFontFamily( FontSelectPattern& r if( rFSD.IsSymbolFont() ) { LanguageTag aDefaultLanguageTag("en"); - if (utl::ConfigManager::IsAvoidConfig()) + if (utl::ConfigManager::IsFuzzing()) aSearchName = "OpenSymbol"; else aSearchName = utl::DefaultFontConfiguration::get().getDefaultFont( aDefaultLanguageTag, DefaultFontType::SYMBOL ); @@ -1238,7 +1238,7 @@ PhysicalFontFamily* PhysicalFontCollection::FindFontFamily( FontSelectPattern& r } const utl::FontNameAttr* pTempFontAttr = nullptr; - if (!utl::ConfigManager::IsAvoidConfig()) + if (!utl::ConfigManager::IsFuzzing()) { // use a font name from font fallback list to determine font attributes // get fallback info using FontSubstConfiguration and diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index e0d81ccf231b..c018113a9ff5 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -756,11 +756,11 @@ void ImplFontSubstitute( OUString& rFontName ) vcl::Font OutputDevice::GetDefaultFont( DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice* pOutDev ) { - if (!pOutDev && !utl::ConfigManager::IsAvoidConfig()) // default is NULL + if (!pOutDev && !utl::ConfigManager::IsFuzzing()) // default is NULL pOutDev = Application::GetDefaultDevice(); OUString aSearch; - if (!utl::ConfigManager::IsAvoidConfig()) + if (!utl::ConfigManager::IsFuzzing()) { LanguageTag aLanguageTag( ( eLang == LANGUAGE_NONE || eLang == LANGUAGE_SYSTEM || eLang == LANGUAGE_DONTKNOW ) ? @@ -987,7 +987,7 @@ void OutputDevice::InitFont() const { // decide if antialiasing is appropriate bool bNonAntialiased(GetAntialiasing() & AntialiasingFlags::DisableText); - if (!utl::ConfigManager::IsAvoidConfig()) + if (!utl::ConfigManager::IsFuzzing()) { const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); bNonAntialiased |= bool(rStyleSettings.GetDisplayOptions() & DisplayOptions::AADisable); diff --git a/vcl/source/window/settings.cxx b/vcl/source/window/settings.cxx index f9ca0d2cb87b..ce85784ab0f1 100644 --- a/vcl/source/window/settings.cxx +++ b/vcl/source/window/settings.cxx @@ -228,7 +228,7 @@ void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, bool bCallHdl ) c // auto detect HC mode; if the system already set it to "yes" // (see above) then accept that - if (!rSettings.GetStyleSettings().GetHighContrastMode() && !utl::ConfigManager::IsAvoidConfig()) + if (!rSettings.GetStyleSettings().GetHighContrastMode() && !utl::ConfigManager::IsFuzzing()) { bool bAutoHCMode = true; utl::OConfigurationNode aNode = utl::OConfigurationTreeRoot::tryCreateWithComponentContext( diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 91e36464982a..5083f418b2c2 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -1133,7 +1133,7 @@ void Window::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* p mpWindowImpl->meAlwaysInputMode = pParent->mpWindowImpl->meAlwaysInputMode; } - if (!utl::ConfigManager::IsAvoidConfig()) + if (!utl::ConfigManager::IsFuzzing()) OutputDevice::SetSettings( pParent->GetSettings() ); } @@ -1144,7 +1144,7 @@ void Window::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* p mnDPIX = mpWindowImpl->mpFrameData->mnDPIX; mnDPIY = mpWindowImpl->mpFrameData->mnDPIY; - if (!utl::ConfigManager::IsAvoidConfig()) + if (!utl::ConfigManager::IsFuzzing()) { const StyleSettings& rStyleSettings = mxSettings->GetStyleSettings(); maFont = rStyleSettings.GetAppFont(); |