summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-02 16:56:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-06-02 17:16:14 +0100
commit4d7ed5744de18cd50056999e176f4647dd9e31e2 (patch)
tree35492577c017a2d5b814dbf2ef48187b4c19df8b
parentc06acf156934741e7658bd22f861a1e4c55511f1 (diff)
avoid config for fuzzing
Change-Id: I192ad315fcf66d739f0cdc4f81622c868b92cf8e
-rw-r--r--sc/source/core/tool/calcconfig.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/core/tool/calcconfig.cxx b/sc/source/core/tool/calcconfig.cxx
index a1c9fd833fcd..07da3b4f2924 100644
--- a/sc/source/core/tool/calcconfig.cxx
+++ b/sc/source/core/tool/calcconfig.cxx
@@ -15,6 +15,7 @@
#include <formula/opcode.hxx>
#include <rtl/ustring.hxx>
#include <sfx2/objsh.hxx>
+#include <unotools/configmgr.hxx>
#include "calcconfig.hxx"
#include "compiler.hxx"
@@ -34,12 +35,16 @@ static rtl::Reference<ConfigurationListener> const & getMiscListener()
bool ScCalcConfig::isOpenCLEnabled()
{
+ if (utl::ConfigManager::IsAvoidConfig())
+ return false;
static comphelper::ConfigurationListenerProperty<bool> gOpenCLEnabled(getMiscListener(), "UseOpenCL");
return gOpenCLEnabled.get();
}
bool ScCalcConfig::isSwInterpreterEnabled()
{
+ if (utl::ConfigManager::IsAvoidConfig())
+ return false;
static comphelper::ConfigurationListenerProperty<bool> gSwInterpreterEnabled(getMiscListener(), "UseSwInterpreter");
return gSwInterpreterEnabled.get();
}