diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-11-08 15:31:51 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-11-08 20:34:09 +0100 |
commit | 1a588c71a0b60d200077138eaff54fced14c4fe2 (patch) | |
tree | 5a54419c44bec4082c8254fbf55716403b9be187 /sc/source/core/tool/interpr1.cxx | |
parent | 4d66721962f60a9c8b4653dc724f163c45e6ddd9 (diff) |
make a number of Calc functions return value by actually returning it
All these returned their value using a reference argument, for
apprently no good reason.
Change-Id: I6a33417e7df2aac67427c16e5003dfaaa1a814d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124872
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/source/core/tool/interpr1.cxx')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index add2fea120d2..116e3b8c3708 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -2788,7 +2788,7 @@ void ScInterpreter::ScFormula() switch (aCell.meType) { case CELLTYPE_FORMULA : - aCell.mpFormula->GetFormula(aFormula, formula::FormulaGrammar::GRAM_UNSPECIFIED, &mrContext); + aFormula = aCell.mpFormula->GetFormula(formula::FormulaGrammar::GRAM_UNSPECIFIED, &mrContext); pResMat->PutString( mrStrPool.intern( aFormula), i,j); break; default: @@ -2814,7 +2814,7 @@ void ScInterpreter::ScFormula() switch (aCell.meType) { case CELLTYPE_FORMULA : - aCell.mpFormula->GetFormula(aFormula, formula::FormulaGrammar::GRAM_UNSPECIFIED, &mrContext); + aFormula = aCell.mpFormula->GetFormula(formula::FormulaGrammar::GRAM_UNSPECIFIED, &mrContext); break; default: SetError( FormulaError::NotAvailable ); |