summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-12-02 17:14:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-12-03 09:50:24 +0100
commit923cb4c8f9780a8703bf37856bc2abfc3e31929e (patch)
tree57df2f2ec060bab32c3e5d416bcff82af1024d80 /sc
parentb31c39cbc843e77c8d97dbb2e559b48b21202ba6 (diff)
Make OpenCLMinimumDataSize configuration property non-nillable
It had curiously been added as nillable (by default) alongside other properties that were added as non-nillable with ef809ce9480182ea5c4f77843f72d1d45bd48c35 "More work on the new OpenCL options", but with a non-nil default value, and no code sets a nil value, and ScModelObj::getFormulaCellNumberLimit, which reads its value and expects it to be non-nil, would cause UB if it was nil. So make it non-nillable and thereby simplify the code handling it. (Similar to how e8bb827571f540ac4af2247cb11239bb96876669 "Fixed cppheader.xsl nillable treatment" retrofitted lots of existing properties to be non-nillable in the past.) Change-Id: I60ac95025f363e346f3102ef80f38d00862e6e9a Reviewed-on: https://gerrit.libreoffice.org/84248 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 12de81d3556b..eb1e35383c61 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -3338,7 +3338,7 @@ void ScModelObj::setFormulaCellNumberLimit( sal_Int32 number )
sal_Int32 ScModelObj::getFormulaCellNumberLimit()
{
- return *officecfg::Office::Calc::Formula::Calculation::OpenCLMinimumDataSize::get();
+ return officecfg::Office::Calc::Formula::Calculation::OpenCLMinimumDataSize::get();
}
ScDrawPagesObj::ScDrawPagesObj(ScDocShell* pDocSh) :