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 /include/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 'include/sfx2')
-rw-r--r-- | include/sfx2/listview.hxx | 8 | ||||
-rw-r--r-- | include/sfx2/thumbnailview.hxx | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/sfx2/listview.hxx b/include/sfx2/listview.hxx index 4343d2519afd..fbcdd0cbdb61 100644 --- a/include/sfx2/listview.hxx +++ b/include/sfx2/listview.hxx @@ -60,7 +60,7 @@ public: void refreshDefaultColumn(); protected: - sal_uInt16 get_nId(int pos); + sal_uInt16 get_nId(int pos) const; void select_id(const OUString& sId) { mxTreeView->select_id(sId); } @@ -70,17 +70,17 @@ protected: bool IsListViewVisible() const { return mxTreeView->is_visible(); } - OUString get_id(int pos) { return mxTreeView->get_id(pos); } + OUString get_id(int pos) const { return mxTreeView->get_id(pos); } void set_cursor(int pos) { mxTreeView->set_cursor(pos); } int get_cursor_index() const { return mxTreeView->get_cursor_index(); } - sal_uInt16 get_cursor_nId() { return get_nId(mxTreeView->get_cursor_index()); } + sal_uInt16 get_cursor_nId() const { return get_nId(mxTreeView->get_cursor_index()); } void select(int pos) { mxTreeView->select(pos); } - int get_index(sal_uInt16 nId) { return mxTreeView->find_id(OUString::number(nId)); } + int get_index(sal_uInt16 nId) const { return mxTreeView->find_id(OUString::number(nId)); } DECL_LINK(ColumnClickedHdl, const int, void); diff --git a/include/sfx2/thumbnailview.hxx b/include/sfx2/thumbnailview.hxx index c485fc0274cf..392d93cf5fba 100644 --- a/include/sfx2/thumbnailview.hxx +++ b/include/sfx2/thumbnailview.hxx @@ -256,7 +256,7 @@ protected: virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override; - css::uno::Reference<css::accessibility::XAccessible> getAccessible(); + css::uno::Reference<css::accessibility::XAccessible> getAccessible() const; protected: @@ -285,7 +285,7 @@ protected: sal_uInt16 ImplGetVisibleItemCount() const; ThumbnailViewItem* ImplGetVisibleItem(sal_uInt16 nVisiblePos); void ImplFireAccessibleEvent( short nEventId, const css::uno::Any& rOldValue, const css::uno::Any& rNewValue ); - bool ImplHasAccessibleListeners(); + bool ImplHasAccessibleListeners() const; DECL_LINK( ImplScrollHdl, weld::ScrolledWindow&, void ); protected: |