[Libreoffice-commits] core.git: sc/source
Caolán McNamara
caolanm at redhat.com
Fri Jun 2 16:16:39 UTC 2017
sc/source/core/tool/calcconfig.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 4d7ed5744de18cd50056999e176f4647dd9e31e2
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jun 2 16:56:41 2017 +0100
avoid config for fuzzing
Change-Id: I192ad315fcf66d739f0cdc4f81622c868b92cf8e
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();
}
More information about the Libreoffice-commits
mailing list