sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)
New commits: commit 096a1f0a6f2d8fdbd632bd4263e2f022b07f9b69 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Nov 30 19:35:16 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sat Nov 30 21:58:21 2024 +0100 cid#1608320 COPY_INSTEAD_OF_MOVE and cid#1607135 COPY_INSTEAD_OF_MOVE Change-Id: If8f36744c53bb0515516a23589ffdb389aaec02c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177592 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx index 838ac9393cd7..0bad15e85566 100644 --- a/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx +++ b/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx @@ -685,13 +685,11 @@ void ScAccessibleSpreadsheet::Notify( SfxBroadcaster& rBC, const SfxHint& rHint OUString valStr(pScDoc->GetString(aNewCell.Col(),aNewCell.Row(),aNewCell.Tab())); if(mpAccCell.is() && m_strCurCellValue != valStr) { - uno::Any aOldValue; - uno::Any aNewValue; - (void)comphelper::OCommonAccessibleText::implInitTextChangedEvent(m_strCurCellValue, valStr, aOldValue, aNewValue); AccessibleEventObject aTextChangedEvent; + (void)comphelper::OCommonAccessibleText::implInitTextChangedEvent(m_strCurCellValue, valStr, + aTextChangedEvent.OldValue, + aTextChangedEvent.NewValue); aTextChangedEvent.EventId = AccessibleEventId::TEXT_CHANGED; - aTextChangedEvent.OldValue = aOldValue; - aTextChangedEvent.NewValue = aNewValue; mpAccCell->CommitChange(aTextChangedEvent); if (pScDoc->HasValueData(maActiveCell)) @@ -788,13 +786,11 @@ void ScAccessibleSpreadsheet::CommitFocusCell(const ScAddress &aNewCell) OUString valStr(pScDoc->GetString(aOldActiveCell.Col(),aOldActiveCell.Row(),aOldActiveCell.Tab())); if(m_strCurCellValue != valStr) { - uno::Any aOldValue; - uno::Any aNewValue; - (void)comphelper::OCommonAccessibleText::implInitTextChangedEvent(m_strCurCellValue, valStr, aOldValue, aNewValue); AccessibleEventObject aTextChangedEvent; + (void)comphelper::OCommonAccessibleText::implInitTextChangedEvent(m_strCurCellValue, valStr, + aTextChangedEvent.OldValue, + aTextChangedEvent.NewValue); aTextChangedEvent.EventId = AccessibleEventId::TEXT_CHANGED; - aTextChangedEvent.OldValue = aOldValue; - aTextChangedEvent.NewValue = aNewValue; mpAccCell->CommitChange(aTextChangedEvent); if (pScDoc->HasValueData(maActiveCell))