diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-16 12:56:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-16 15:00:01 +0100 |
commit | 5ea8d87dfee68fe3564a58230664d2f2a2852a51 (patch) | |
tree | 98d2ebbfbc4dae9342ce92b5dc8d97cfe9149417 /starmath | |
parent | b7d8c5bc614e826dbe0588593a4de5102ed22cda (diff) |
loplugin:referencecasting in slideshow..starmath
Change-Id: Id9dc0ac27897c8a3650424db65d3a05e2fe418f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110986
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/AccessibleSmElement.cxx | 2 | ||||
-rw-r--r-- | starmath/source/AccessibleSmElementsControl.cxx | 2 | ||||
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 2 | ||||
-rw-r--r-- | starmath/source/edit.cxx | 2 | ||||
-rw-r--r-- | starmath/source/view.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/AccessibleSmElement.cxx b/starmath/source/AccessibleSmElement.cxx index b995c23818cc..848af8af6b0d 100644 --- a/starmath/source/AccessibleSmElement.cxx +++ b/starmath/source/AccessibleSmElement.cxx @@ -137,7 +137,7 @@ uno::Reference<XAccessible> AccessibleSmElement::getAccessibleParent() OContextEntryGuard aGuard(this); uno::Reference<XAccessible> xParent; if (m_pSmElementsControl) - xParent.set(m_pSmElementsControl->GetAccessible().get()); + xParent = m_pSmElementsControl->GetAccessible(); return xParent; } diff --git a/starmath/source/AccessibleSmElementsControl.cxx b/starmath/source/AccessibleSmElementsControl.cxx index 15b226931a60..0b82f3f87e5a 100644 --- a/starmath/source/AccessibleSmElementsControl.cxx +++ b/starmath/source/AccessibleSmElementsControl.cxx @@ -198,7 +198,7 @@ uno::Reference<XAccessible> AccessibleSmElementsControl::getAccessibleChild(sal_ m_aAccessibleChildren[c] = pChild; xChild = pChild; } - return xChild.get(); + return xChild; } uno::Reference<XAccessible> AccessibleSmElementsControl::getAccessibleParent() diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 754d819aa3f1..aae6027bbdc4 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -1087,7 +1087,7 @@ css::uno::Reference<css::accessibility::XAccessible> SmElementsControl::CreateAc m_xAccessible = new AccessibleSmElementsControl(*this); m_xAccessible->AddAllItems(); } - return m_xAccessible.get(); + return m_xAccessible; } bool SmElementsControl::itemTrigger(sal_uInt16 nPos) diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index e49945acb840..b6734d6e1aa9 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -1016,7 +1016,7 @@ uno::Reference< XAccessible > SmEditWindow::CreateAccessible() mxAccessible.set(new SmEditAccessible( this )); mxAccessible->Init(); } - return uno::Reference< XAccessible >(mxAccessible.get()); + return mxAccessible; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 2a69b340e3ef..3d732bbc5b4d 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -612,7 +612,7 @@ uno::Reference< XAccessible > SmGraphicWindow::CreateAccessible() { mxAccessible = new SmGraphicAccessible( this ); } - return mxAccessible.get(); + return mxAccessible; } /**************************************************************************/ |