summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column3.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/column3.cxx
parent419549b095a1bb95ce23bf3fc8866e6b582e6dde (diff)
Make fewer calls to officecfg::...::UseOpenCL::get()
Change-Id: I5f7f52b6f2fb92c46e2b24e0edf95b4ccd17671d
Diffstat (limited to 'sc/source/core/data/column3.cxx')
-rw-r--r--sc/source/core/data/column3.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index c4d2e4ef3061..0c28aa1740ef 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -92,10 +92,17 @@ void ScColumn::BroadcastCells( const std::vector<SCROW>& rRows, sal_uLong nHint
struct DirtyCellInterpreter
{
+ bool mbUseOpenCL;
+
+ DirtyCellInterpreter() :
+ mbUseOpenCL(officecfg::Office::Common::Misc::UseOpenCL::get())
+ {
+ }
+
void operator() (size_t, ScFormulaCell* p)
{
if (p->GetDirty())
- p->Interpret();
+ p->Interpret(mbUseOpenCL);
}
};