diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-01 13:01:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-01 20:58:11 +0200 |
commit | 581efdec36787dc5e378e54d13e7328fddcf3a50 (patch) | |
tree | 29f04e719f8402028a4e26088a8ea825ebe9fdca /sfx2 | |
parent | e512b53ef8ae7945131876d32121fdbbdeb1de35 (diff) |
loplugin:constmethod
Change-Id: I3ed657c5c5e6840e38e3c8505505b4b372125df0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122910
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/listview.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/control/listview.cxx b/sfx2/source/control/listview.cxx index 725d7564bbe8..5b53ee5b67f9 100644 --- a/sfx2/source/control/listview.cxx +++ b/sfx2/source/control/listview.cxx @@ -293,7 +293,7 @@ IMPL_LINK(ListView, QueryTooltipHdl, const weld::TreeIter&, rIter, OUString) return OUString(); } -sal_uInt16 ListView::get_nId(int pos) +sal_uInt16 ListView::get_nId(int pos) const { return static_cast<sal_uInt16>(mxTreeView->get_id(pos).toInt32()); } diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index 7d48b674f4c5..284376d974fd 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -329,7 +329,7 @@ css::uno::Reference< css::accessibility::XAccessible > ThumbnailView::CreateAcce return mxAccessible; } -css::uno::Reference< css::accessibility::XAccessible > ThumbnailView::getAccessible() +css::uno::Reference< css::accessibility::XAccessible > ThumbnailView::getAccessible() const { return mxAccessible; } @@ -543,7 +543,7 @@ void ThumbnailView::ImplFireAccessibleEvent( short nEventId, const css::uno::Any pAcc->FireAccessibleEvent( nEventId, rOldValue, rNewValue ); } -bool ThumbnailView::ImplHasAccessibleListeners() +bool ThumbnailView::ImplHasAccessibleListeners() const { ThumbnailViewAcc* pAcc = ThumbnailViewAcc::getImplementation(mxAccessible); return( pAcc && pAcc->HasAccessibleListeners() ); |