summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen7.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-10-01 17:07:36 +0300
committerTor Lillqvist <tml@collabora.com>2015-10-02 08:05:31 +0300
commitab092bdc0f8c45e174cad403de9d2342adc01fb6 (patch)
treebf6857f609aec0d6bbe87b72bdf120d14f682ec2 /sc/source/core/data/documen7.cxx
parent419549b095a1bb95ce23bf3fc8866e6b582e6dde (diff)
Make fewer calls to officecfg::...::UseOpenCL::get()
Change-Id: I5f7f52b6f2fb92c46e2b24e0edf95b4ccd17671d
Diffstat (limited to 'sc/source/core/data/documen7.cxx')
-rw-r--r--sc/source/core/data/documen7.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/data/documen7.cxx b/sc/source/core/data/documen7.cxx
index 864a77b757b6..54335c9e239a 100644
--- a/sc/source/core/data/documen7.cxx
+++ b/sc/source/core/data/documen7.cxx
@@ -456,6 +456,7 @@ void ScDocument::CalcFormulaTree( bool bOnlyForced, bool bProgressBar, bool bSet
pCell = pFormulaTree;
ScFormulaCell* pLastNoGood = 0;
+ const bool bUseOpenCL(officecfg::Office::Common::Misc::UseOpenCL::get());
while ( pCell )
{
// Interpret resets bDirty and calls Remove, also the referenced!
@@ -463,11 +464,11 @@ void ScDocument::CalcFormulaTree( bool bOnlyForced, bool bProgressBar, bool bSet
if ( bOnlyForced )
{
if ( pCell->GetCode()->IsRecalcModeForced() )
- pCell->Interpret();
+ pCell->Interpret( bUseOpenCL );
}
else
{
- pCell->Interpret();
+ pCell->Interpret( bUseOpenCL );
}
if ( pCell->GetPrevious() || pCell == pFormulaTree )
{ // (IsInFormulaTree(pCell)) no Remove was called => next