summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3/gtk3gtkinst.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-06 12:27:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-06 15:30:42 +0200
commit7cd179df80957b7daefab028cf35aebb1083b014 (patch)
treef76056c2eaf044088cd1dc8159136bac774500f0 /vcl/unx/gtk3/gtk3gtkinst.cxx
parente1482daecff877e3b0e22f1fc864e614376cb6b1 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/gtk3/gtk3gtkinst.cxx')
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx20
1 files changed, 10 insertions, 10 deletions
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<TransferDataContainer>& rHelper, sal_uInt8 eDNDConstants)
+ void do_enable_drag_source(const rtl::Reference<TransferDataContainer>& rHelper, sal_uInt8 eDNDConstants)
{
css::uno::Reference<css::datatransfer::XTransferable> xTrans(rHelper.get());
css::uno::Reference<css::datatransfer::dnd::XDragSourceListener> 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<std::unique_ptr<GtkTreeRowReference, GtkTreeRowReferenceDeleter>>& rSeparatorRows)
+bool separator_function(const GtkTreePath* path, const std::vector<std::unique_ptr<GtkTreeRowReference, GtkTreeRowReferenceDeleter>>& 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;