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 /vcl | |
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 'vcl')
-rw-r--r-- | vcl/inc/unx/gtk/gtksalmenu.hxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk3/fpicker/SalGtkPicker.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/gtk3/fpicker/SalGtkPicker.hxx | 4 | ||||
-rw-r--r-- | vcl/unx/gtk3/gtksalmenu.cxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/vcl/inc/unx/gtk/gtksalmenu.hxx b/vcl/inc/unx/gtk/gtksalmenu.hxx index fa8038048271..36b695a2ccc9 100644 --- a/vcl/inc/unx/gtk/gtksalmenu.hxx +++ b/vcl/inc/unx/gtk/gtksalmenu.hxx @@ -112,7 +112,7 @@ public: static void Deactivate(const gchar* pMenuCommand); void EnableUnity(bool bEnable); virtual void ShowMenuBar( bool bVisible ) override; - bool PrepUpdate(); + bool PrepUpdate() const; virtual void Update() override; // Update this menu only. // Update full menu hierarchy from this menu. void UpdateFull () { ActivateAllSubmenus(mpVCLMenu); } diff --git a/vcl/unx/gtk3/fpicker/SalGtkPicker.cxx b/vcl/unx/gtk3/fpicker/SalGtkPicker.cxx index 6f7a927c3e84..68172ad10f94 100644 --- a/vcl/unx/gtk3/fpicker/SalGtkPicker.cxx +++ b/vcl/unx/gtk3/fpicker/SalGtkPicker.cxx @@ -44,7 +44,7 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::uno; -OUString SalGtkPicker::uritounicode(const gchar* pIn) +OUString SalGtkPicker::uritounicode(const gchar* pIn) const { if (!pIn) return OUString(); @@ -64,7 +64,7 @@ OUString SalGtkPicker::uritounicode(const gchar* pIn) return sURL; } -OString SalGtkPicker::unicodetouri(const OUString &rURL) +OString SalGtkPicker::unicodetouri(const OUString &rURL) const { // all the URLs are handled by office in UTF-8 ( and encoded with "%xx" codes based on UTF-8 ) // so the Gnome FP related URLs should be converted accordingly diff --git a/vcl/unx/gtk3/fpicker/SalGtkPicker.hxx b/vcl/unx/gtk3/fpicker/SalGtkPicker.hxx index 8ebdcfdd4630..7da0ba04e31c 100644 --- a/vcl/unx/gtk3/fpicker/SalGtkPicker.hxx +++ b/vcl/unx/gtk3/fpicker/SalGtkPicker.hxx @@ -67,8 +67,8 @@ class SalGtkPicker /// @throws css::uno::RuntimeException OUString implgetDisplayDirectory( ); - OUString uritounicode(const gchar *pIn); - OString unicodetouri(const OUString &rURL); + OUString uritounicode(const gchar *pIn) const; + OString unicodetouri(const OUString &rURL) const; // to instantiate own services css::uno::Reference< css::uno::XComponentContext > m_xContext; diff --git a/vcl/unx/gtk3/gtksalmenu.cxx b/vcl/unx/gtk3/gtksalmenu.cxx index 5a3bc688a0a1..ed67e7d30d88 100644 --- a/vcl/unx/gtk3/gtksalmenu.cxx +++ b/vcl/unx/gtk3/gtksalmenu.cxx @@ -41,7 +41,7 @@ static gchar* GetCommandForItem(GtkSalMenuItem* pSalMenuItem) pSalMenuItem->mnId); } -bool GtkSalMenu::PrepUpdate() +bool GtkSalMenu::PrepUpdate() const { return mpMenuModel && mpActionGroup; } |