diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-23 09:47:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-24 08:37:51 +0200 |
commit | f31c9f16fefd16ea434cdd68721d45bced9b78e1 (patch) | |
tree | c0c504cb4e4d41e168f7118c1baee6b4091aa51d /vcl/unx/gtk/a11y | |
parent | 645db9a2643832e29dbdf904e1cf7b323d273f86 (diff) |
clang-tidy performance-unnecessary-copy-init in test..xmlscript
Change-Id: I1ae16467a8e58e8a50f59b7a140e9f8b68bde07e
Reviewed-on: https://gerrit.libreoffice.org/62254
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/gtk/a11y')
-rw-r--r-- | vcl/unx/gtk/a11y/atkutil.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx index d714b08f2dde..ed99ba392bba 100644 --- a/vcl/unx/gtk/a11y/atkutil.cxx +++ b/vcl/unx/gtk/a11y/atkutil.cxx @@ -320,7 +320,7 @@ void DocumentFocusListener::attachRecursive( return; // If not already done, add the broadcaster to the list and attach as listener. - uno::Reference< uno::XInterface > xInterface = xBroadcaster; + const uno::Reference< uno::XInterface >& xInterface = xBroadcaster; if( m_aRefList.insert(xInterface).second ) { xBroadcaster->addAccessibleEventListener(static_cast< accessibility::XAccessibleEventListener *>(this)); @@ -654,7 +654,7 @@ static void WindowEventHandler(void *, VclSimpleEvent& rEvent) } else if (const VclAccessibleEvent* pAccEvent = dynamic_cast<const VclAccessibleEvent*>(&rEvent)) { - uno::Reference< accessibility::XAccessible > xAccessible = pAccEvent->GetAccessible(); + const uno::Reference< accessibility::XAccessible >& xAccessible = pAccEvent->GetAccessible(); if (xAccessible.is()) atk_wrapper_focus_tracker_notify_when_idle(xAccessible); } |