diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-05 14:20:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-05 18:50:51 +0200 |
commit | e859bf8c4da78698b820d13af1a2fdee3602f5b4 (patch) | |
tree | b2ead4e992f283c2e1dfcdabfa99f013f1506918 /include/sfx2 | |
parent | ae1d21ae69b0522cbbe67abeb2f5c5ba7ca2c33b (diff) |
loplugin:constmethod
Change-Id: I7913fd8144d521b8293ac43036d0fad82e457cd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115145
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/brokenpackageint.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/listview.hxx | 8 | ||||
-rw-r--r-- | include/sfx2/templatedlg.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/templatedlglocalview.hxx | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/include/sfx2/brokenpackageint.hxx b/include/sfx2/brokenpackageint.hxx index e7a1e3876257..37c98540a6bc 100644 --- a/include/sfx2/brokenpackageint.hxx +++ b/include/sfx2/brokenpackageint.hxx @@ -42,7 +42,7 @@ public: RequestPackageReparation(const RequestPackageReparation&) = delete; RequestPackageReparation& operator=(const RequestPackageReparation&) = delete; bool isApproved() const; - css::uno::Reference<css::task::XInteractionRequest> GetRequest(); + css::uno::Reference<css::task::XInteractionRequest> GetRequest() const; }; class NotifyBrokenPackage_Impl; @@ -55,7 +55,7 @@ public: ~NotifyBrokenPackage(); NotifyBrokenPackage(const NotifyBrokenPackage&) = delete; NotifyBrokenPackage& operator=(const NotifyBrokenPackage&) = delete; - css::uno::Reference<css::task::XInteractionRequest> GetRequest(); + css::uno::Reference<css::task::XInteractionRequest> GetRequest() const; }; #endif // INCLUDED_SFX2_BROKENPACKAGEINT_HXX diff --git a/include/sfx2/listview.hxx b/include/sfx2/listview.hxx index 4f7e37a49671..5b253754dd45 100644 --- a/include/sfx2/listview.hxx +++ b/include/sfx2/listview.hxx @@ -66,17 +66,17 @@ protected: void select_id(const OUString& sId) { mxTreeView->select_id(sId); } - int get_selected_index() { return mxTreeView->get_selected_index(); } + int get_selected_index() const { return mxTreeView->get_selected_index(); } - std::vector<int> get_selected_rows() { return mxTreeView->get_selected_rows(); } + std::vector<int> get_selected_rows() const { return mxTreeView->get_selected_rows(); } - bool IsListViewVisible() { return mxTreeView->is_visible(); } + bool IsListViewVisible() const { return mxTreeView->is_visible(); } OUString get_id(int pos) { return mxTreeView->get_id(pos); } void set_cursor(int pos) { mxTreeView->set_cursor(pos); } - int get_cursor_index() { return mxTreeView->get_cursor_index(); } + int get_cursor_index() const { return mxTreeView->get_cursor_index(); } sal_uInt16 get_cursor_nId() { return get_nId(mxTreeView->get_cursor_index()); } diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx index 35bb0620978b..05a693611603 100644 --- a/include/sfx2/templatedlg.hxx +++ b/include/sfx2/templatedlg.hxx @@ -46,7 +46,7 @@ public: void setDocumentModel(const css::uno::Reference<css::frame::XModel>& rModel); void setTemplateViewMode(TemplateViewMode eViewMode); - TemplateViewMode getTemplateViewMode(); + TemplateViewMode getTemplateViewMode() const; protected: void getApplicationSpecificSettings(); @@ -210,4 +210,4 @@ private: #endif // INCLUDED_SFX2_INC_TEMPLATEDLG_HXX -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/sfx2/templatedlglocalview.hxx b/include/sfx2/templatedlglocalview.hxx index bdae9eb44e35..409a1acaa578 100644 --- a/include/sfx2/templatedlglocalview.hxx +++ b/include/sfx2/templatedlglocalview.hxx @@ -36,7 +36,7 @@ public: virtual void Hide() override; - bool IsVisible(); + bool IsVisible() const; void connect_focus_rect(const Link<weld::Widget&, tools::Rectangle>& rLink) { |