From 7cd179df80957b7daefab028cf35aebb1083b014 Mon Sep 17 00:00:00 2001 From: Noel Date: Tue, 6 Oct 2020 12:27:39 +0200 Subject: loplugin:const& make some params and methods const Change-Id: I2973128a9c6c53187e1da400d1a5df763d515596 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104020 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/unx/gtk3/gtk3gtkframe.cxx | 2 +- vcl/unx/gtk3/gtk3gtkinst.cxx | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'vcl/unx') diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index 40558262977c..d97107d77375 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -2741,7 +2741,7 @@ IMPL_LINK_NOARG(GtkSalFrame, AsyncScroll, Timer *, void) } } -SalWheelMouseEvent GtkSalFrame::GetWheelEvent(GdkEventScroll& rEvent) +SalWheelMouseEvent GtkSalFrame::GetWheelEvent(const GdkEventScroll& rEvent) { SalWheelMouseEvent aEvent; diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 0a1366ab4996..405df2e1b742 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -1969,7 +1969,7 @@ protected: return ::SwapForRTL(m_pWidget); } - void do_enable_drag_source(rtl::Reference& rHelper, sal_uInt8 eDNDConstants) + void do_enable_drag_source(const rtl::Reference& rHelper, sal_uInt8 eDNDConstants) { css::uno::Reference xTrans(rHelper.get()); css::uno::Reference xListener(rHelper.get()); @@ -4444,7 +4444,7 @@ private: *pActivate = true; } - bool signal_screenshot_popup_menu(GdkEventButton* pEvent) + bool signal_screenshot_popup_menu(const GdkEventButton* pEvent) { GtkWidget *pMenu = gtk_menu_new(); @@ -4885,7 +4885,7 @@ private: return pThis->signal_button(pEvent); } - bool signal_button(GdkEventButton* pEvent) + bool signal_button(const GdkEventButton* pEvent) { int nNewCurrentPage = -1; @@ -7990,7 +7990,7 @@ private: gtk_tool_button_set_icon_widget(pItem, pImage); } - void set_item_image(GtkToolButton* pItem, VirtualDevice* pDevice) + void set_item_image(GtkToolButton* pItem, const VirtualDevice* pDevice) { GtkWidget* pImage = nullptr; @@ -9231,7 +9231,7 @@ struct GtkTreeRowReferenceDeleter } }; -bool separator_function(GtkTreePath* path, const std::vector>& rSeparatorRows) +bool separator_function(const GtkTreePath* path, const std::vector>& rSeparatorRows) { bool bFound = false; for (auto& a : rSeparatorRows) @@ -9502,7 +9502,7 @@ private: } } - bool separator_function(GtkTreePath* path) + bool separator_function(const GtkTreePath* path) { return ::separator_function(path, m_aSeparatorRows); } @@ -9710,7 +9710,7 @@ private: return bRet; } - bool signal_test_collapse_row(GtkTreeIter& iter) + bool signal_test_collapse_row(const GtkTreeIter& iter) { disable_notify_events(); @@ -13193,7 +13193,7 @@ private: { return signal_command(rCEvt); } - bool signal_scroll(GdkEventScroll* pEvent) + bool signal_scroll(const GdkEventScroll* pEvent) { SalWheelMouseEvent aEvt(GtkSalFrame::GetWheelEvent(*pEvent)); @@ -14054,7 +14054,7 @@ private: return -1; } - bool separator_function(GtkTreePath* path) + bool separator_function(const GtkTreePath* path) { return ::separator_function(path, m_aSeparatorRows); } @@ -14619,7 +14619,7 @@ private: enable_notify_events(); } - void insert_including_mru(int pos, const OUString& rText, const OUString* pId, const OUString* pIconName, VirtualDevice* pImageSurface) + void insert_including_mru(int pos, const OUString& rText, const OUString* pId, const OUString* pIconName, const VirtualDevice* pImageSurface) { disable_notify_events(); GtkTreeIter iter; -- cgit