summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-01 11:52:27 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-01 18:07:00 +0100
commit97d3389f32a24f06113aad37058d24f2cbbc3026 (patch)
tree6b85adb0132daac5848ad621922e28758849afca /sfx2
parent004807caaa5f5e4516ba5cc9fac085fe8cd30dee (diff)
cid#1557920 COPY_INSTEAD_OF_MOVE
a sample commit to test this Change-Id: Ibc1a1f75b908e245395a05e81c26158c67e36257 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160214 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewsh.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index ce3b6c5dd694..fd7a21931c4f 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -1243,8 +1243,7 @@ LOKDocumentFocusListener::getSelectedObject(const accessibility::AccessibleEvent
uno::Reference< accessibility::XAccessible > xSelectedObject;
if (isText(m_nDocumentType))
{
- uno::Reference< accessibility::XAccessible > xSource(aEvent.Source, uno::UNO_QUERY);
- xSelectedObject = xSource;
+ xSelectedObject = uno::Reference<accessibility::XAccessible>(aEvent.Source, uno::UNO_QUERY);
}
else
{