summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-03 19:39:11 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-03 22:12:27 +0100
commit59d26784582041232968b7d52fa40389965e90fd (patch)
treeb437cf3637196c5626b9753220a597130f68596e /sfx2
parent44739ff1ee17eb8baf39fd8e40e686fbf31bcf4a (diff)
cid#1557920 COPY_INSTEAD_OF_MOVE
a better example conversion Change-Id: I120fb8e4b505bc5d761f6e7c69766cd610c8a662 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160271 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index fd7a21931c4f..885b6877761a 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -1243,7 +1243,7 @@ LOKDocumentFocusListener::getSelectedObject(const accessibility::AccessibleEvent
uno::Reference< accessibility::XAccessible > xSelectedObject;
if (isText(m_nDocumentType))
{
- xSelectedObject = uno::Reference<accessibility::XAccessible>(aEvent.Source, uno::UNO_QUERY);
+ xSelectedObject.set(aEvent.Source, uno::UNO_QUERY);
}
else
{