diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-19 14:20:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-19 15:28:33 +0200 |
commit | 0f44815ce7b2925189cd603853ce55d8363549dd (patch) | |
tree | 87702a1d0f50a8b550ee1b4b9b84ddef60b46ee7 /sfx2 | |
parent | 9239b11cee9f02cedcb0c240637e58cc8b795086 (diff) |
loplugin:constmethods
Change-Id: I786096b989daa6004a6527aafbe825b6f0a22d90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120710
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sidebar/PanelTitleBar.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/StyleList.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/templdgi.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/inc/sidebar/PanelTitleBar.hxx b/sfx2/inc/sidebar/PanelTitleBar.hxx index 8ebd1af1800c..308a0c8f999a 100644 --- a/sfx2/inc/sidebar/PanelTitleBar.hxx +++ b/sfx2/inc/sidebar/PanelTitleBar.hxx @@ -48,7 +48,7 @@ public: return *mxExpander; } - OUString GetMoreOptionsCommand() { return msMoreOptionsCommand; } + const OUString& GetMoreOptionsCommand() const { return msMoreOptionsCommand; } private: virtual void HandleToolBoxItemClick() override; diff --git a/sfx2/source/inc/StyleList.hxx b/sfx2/source/inc/StyleList.hxx index 72efc8981fbc..99889b15534b 100644 --- a/sfx2/source/inc/StyleList.hxx +++ b/sfx2/source/inc/StyleList.hxx @@ -86,7 +86,7 @@ public: // Return whether treeview is visible // It is used in StyleList's UpdateStyles_Hdl // It is used to defaultly set the hierarchical view - bool IsTreeView() { return m_xTreeBox->get_visible(); } + bool IsTreeView() const { return m_xTreeBox->get_visible(); } // Helper function: Access to the current family item // Used in Dialog's updateStyleHandler, Execute_Impl etc... diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx index 7b1ff1b5d736..83192cbd6356 100644 --- a/sfx2/source/inc/templdgi.hxx +++ b/sfx2/source/inc/templdgi.hxx @@ -194,7 +194,7 @@ public: // This function return the value of bUpdate in Stylelist // This value is used in StyleList's Notify - bool GetNotifyUpdate() { return bUpdate; } + bool GetNotifyUpdate() const { return bUpdate; } // This function sets the value of bUpdate in Dialog // This function is used in StyleList's Notify to update the value of bUpdate when required void SetNotifyupdate(bool b) { bUpdate = b; } |