diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-09 08:50:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-09 13:49:39 +0200 |
commit | 13e5d52fc37f9283edd8a055d6b86108701182f1 (patch) | |
tree | 54a21d76afa9a2ecbf64527d343727b430c42934 /starmath/source | |
parent | 317a90fd9d090aa2fe879549553d6491eb5028bf (diff) |
loplugin:constantparam
Change-Id: I7bbc4e1546acf58f1ca24bfec5e465bad5ca90de
Reviewed-on: https://gerrit.libreoffice.org/73732
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/AccessibleSmElementsControl.cxx | 4 | ||||
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/starmath/source/AccessibleSmElementsControl.cxx b/starmath/source/AccessibleSmElementsControl.cxx index d0f95a0ecef7..5421c03799eb 100644 --- a/starmath/source/AccessibleSmElementsControl.cxx +++ b/starmath/source/AccessibleSmElementsControl.cxx @@ -70,14 +70,12 @@ void AccessibleSmElementsControl::UpdateFocus(sal_uInt16 nPos) } } -void AccessibleSmElementsControl::ReleaseAllItems(bool bNotifyRemoval) +void AccessibleSmElementsControl::ReleaseAllItems() { if (m_aAccessibleChildren.empty()) return; m_aAccessibleChildren.clear(); - if (!bNotifyRemoval) - return; // The original toolbox accessibility code uses individual NAME_CHANGED // events in a loop. We can't do this, because on each remove event the diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 22229483c650..12d362208a88 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -1003,7 +1003,7 @@ void SmElementsControl::build() mxScroll->SetThumbPos(0); mxScroll->Hide(); if (m_xAccessible.is()) - m_xAccessible->ReleaseAllItems(true); + m_xAccessible->ReleaseAllItems(); setCurrentElement(SAL_MAX_UINT16); // The first element is the scrollbar. We can't change its indexInParent |