diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-08 14:30:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-08 18:20:04 +0100 |
commit | a8b8841f9f52ae1f31a7c54092ab13d02957c665 (patch) | |
tree | 4589254ef76285dc5e31376d0bc3dedae5262ba2 /unotools/source | |
parent | mirror fuzzer setup in fftester (diff) | |
download | core-a8b8841f9f52ae1f31a7c54092ab13d02957c665.tar.gz core-a8b8841f9f52ae1f31a7c54092ab13d02957c665.zip |
speed up fuzzers a little
Change-Id: I04b66fc32bbcd70484bf3a7eef1c5125b3636fe7
Reviewed-on: https://gerrit.libreoffice.org/44467
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/config/fontcfg.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx index 91aa70272eff..0e4dac43ce2d 100644 --- a/unotools/source/config/fontcfg.cxx +++ b/unotools/source/config/fontcfg.cxx @@ -19,6 +19,7 @@ #include <i18nlangtag/mslangid.hxx> #include <o3tl/any.hxx> +#include <unotools/configmgr.hxx> #include <unotools/fontcfg.hxx> #include <unotools/fontdefs.hxx> #include <comphelper/processfactory.hxx> @@ -98,6 +99,8 @@ DefaultFontConfiguration& DefaultFontConfiguration::get() DefaultFontConfiguration::DefaultFontConfiguration() { + if (utl::ConfigManager::IsAvoidConfig()) + return; // create configuration hierarchical access name try { @@ -349,6 +352,8 @@ FontSubstConfiguration& FontSubstConfiguration::get() FontSubstConfiguration::FontSubstConfiguration() : maSubstHash( 300 ) { + if (utl::ConfigManager::IsAvoidConfig()) + return; try { // get service provider |