summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-06-16 17:10:40 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-06-16 19:34:12 +0200
commitc003f792183b63ca3f282a6fd53ceae0167f2a5e (patch)
tree9a7c55729033dbc52a6da6baa2e0f9e589f14d27 /sc/source/ui
parent1ad74a0212a4882426ed4a8c9ed9e5e56c9c159d (diff)
cid#1603805 COPY_INSTEAD_OF_MOVE
Change-Id: Ieb2c72dbdfec8431bd23da8a5e4844f3c1a5b74e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168958 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/miscdlgs/solvrdlg.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/miscdlgs/solvrdlg.cxx b/sc/source/ui/miscdlgs/solvrdlg.cxx
index 4f1b38f1f857..b05b243965cb 100644
--- a/sc/source/ui/miscdlgs/solvrdlg.cxx
+++ b/sc/source/ui/miscdlgs/solvrdlg.cxx
@@ -96,14 +96,14 @@ void ScSolverDlg::Init()
OUString aStr(theFormulaCell.Format(ScRefFlags::ADDR_ABS, nullptr, pDoc->GetAddressConvention()));
// If Goal Seek settings are stored in the document, restore them
- ScGoalSeekSettings aSettings = pDoc->GetGoalSeekSettings();
- if (aSettings.bDefined)
+ const ScGoalSeekSettings& rSettings = pDoc->GetGoalSeekSettings();
+ if (rSettings.bDefined)
{
- OUString sFormulaString(aSettings.aFormulaCell.Format(ScRefFlags::ADDR_ABS, nullptr, pDoc->GetAddressConvention()));
- OUString sVariableString(aSettings.aVariableCell.Format(ScRefFlags::ADDR_ABS, nullptr, pDoc->GetAddressConvention()));
+ OUString sFormulaString(rSettings.aFormulaCell.Format(ScRefFlags::ADDR_ABS, nullptr, pDoc->GetAddressConvention()));
+ OUString sVariableString(rSettings.aVariableCell.Format(ScRefFlags::ADDR_ABS, nullptr, pDoc->GetAddressConvention()));
m_xEdFormulaCell->SetText(sFormulaString);
m_xEdVariableCell->SetText(sVariableString);
- m_xEdTargetVal->set_text(aSettings.sTargetValue);
+ m_xEdTargetVal->set_text(rSettings.sTargetValue);
}
else
{