summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-08 14:30:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-08 18:20:04 +0100
commita8b8841f9f52ae1f31a7c54092ab13d02957c665 (patch)
tree4589254ef76285dc5e31376d0bc3dedae5262ba2 /unotools
parente3e4b799d9f0d04065397f05deefbb029a5ee7b1 (diff)
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')
-rw-r--r--unotools/source/config/fontcfg.cxx5
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