diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-18 09:02:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-18 09:57:26 +0200 |
commit | 72f36adb93d24a3da8868dad128ab2eca0124fda (patch) | |
tree | 06baca9f873aa59e16c5f3612f5a464c2e0eba46 /vcl/unx/gtk | |
parent | bff8cd3d52223002263dcb8c09758c4fc753b6e3 (diff) |
loplugin:constparams in vcl
Change-Id: I36afe2107e07ffb9b73c0b76be600e3e999a0fd4
Reviewed-on: https://gerrit.libreoffice.org/40116
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r-- | vcl/unx/gtk/a11y/atkutil.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atkwindow.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/gtkdata.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/gtk/gtksalmenu.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/gtk/salnativewidgets-gtk.cxx | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx index a57051f4c577..fab7902d588c 100644 --- a/vcl/unx/gtk/a11y/atkutil.cxx +++ b/vcl/unx/gtk/a11y/atkutil.cxx @@ -457,7 +457,7 @@ static void handle_toolbox_highlight(vcl::Window *pWindow) notify_toolbox_item_focus(pToolBox); } -static void handle_toolbox_highlightoff(vcl::Window *pWindow) +static void handle_toolbox_highlightoff(vcl::Window const *pWindow) { ToolBox* pToolBoxParent = dynamic_cast< ToolBox* >( pWindow->GetParent() ); diff --git a/vcl/unx/gtk/a11y/atkwindow.cxx b/vcl/unx/gtk/a11y/atkwindow.cxx index 24b464299de2..581e81d23db4 100644 --- a/vcl/unx/gtk/a11y/atkwindow.cxx +++ b/vcl/unx/gtk/a11y/atkwindow.cxx @@ -37,7 +37,7 @@ static void (* window_real_initialize) (AtkObject *obj, gpointer data) = nullptr static void (* window_real_finalize) (GObject *obj) = nullptr; static void -init_from_window( AtkObject *accessible, vcl::Window *pWindow ) +init_from_window( AtkObject *accessible, vcl::Window const *pWindow ) { static AtkRole aDefaultRole = ATK_ROLE_INVALID; diff --git a/vcl/unx/gtk/gtkdata.cxx b/vcl/unx/gtk/gtkdata.cxx index 6bb9f04e3bae..29f7d33be75e 100644 --- a/vcl/unx/gtk/gtkdata.cxx +++ b/vcl/unx/gtk/gtkdata.cxx @@ -162,14 +162,14 @@ GdkFilterReturn GtkSalDisplay::filterGdkEvent( GdkXEvent* sys_event ) return aFilterReturn; } -void GtkSalDisplay::screenSizeChanged( GdkScreen* pScreen ) +void GtkSalDisplay::screenSizeChanged( GdkScreen const * pScreen ) { m_pSys->countScreenMonitors(); if (pScreen) emitDisplayChanged(); } -void GtkSalDisplay::monitorsChanged( GdkScreen* pScreen ) +void GtkSalDisplay::monitorsChanged( GdkScreen const * pScreen ) { m_pSys->countScreenMonitors(); if (pScreen) @@ -671,7 +671,7 @@ extern "C" { } static gboolean sal_gtk_timeout_expired( SalGtkTimeoutSource *pTSource, - gint *nTimeoutMS, GTimeVal *pTimeNow ) + gint *nTimeoutMS, GTimeVal const *pTimeNow ) { glong nDeltaSec = pTSource->aFireTime.tv_sec - pTimeNow->tv_sec; glong nDeltaUSec = pTSource->aFireTime.tv_usec - pTimeNow->tv_usec; diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx index f004a055d544..716be616af0b 100644 --- a/vcl/unx/gtk/gtksalmenu.cxx +++ b/vcl/unx/gtk/gtksalmenu.cxx @@ -686,7 +686,7 @@ void GtkSalMenu::ReturnFocus() mbReturnFocusToDocument = false; } -gboolean GtkSalMenu::SignalKey(GdkEventKey* pEvent) +gboolean GtkSalMenu::SignalKey(GdkEventKey const * pEvent) { if (pEvent->keyval == GDK_KEY_F6) { @@ -905,7 +905,7 @@ void GtkSalMenu::NativeCheckItem( unsigned nSection, unsigned nItemPos, MenuItem g_free( aCommand ); } -void GtkSalMenu::NativeSetEnableItem( gchar* aCommand, gboolean bEnable ) +void GtkSalMenu::NativeSetEnableItem( gchar const * aCommand, gboolean bEnable ) { SolarMutexGuard aGuard; GLOActionGroup* pActionGroup = G_LO_ACTION_GROUP( mpActionGroup ); diff --git a/vcl/unx/gtk/salnativewidgets-gtk.cxx b/vcl/unx/gtk/salnativewidgets-gtk.cxx index 36f7f2e1d0a6..6b87eef78f54 100644 --- a/vcl/unx/gtk/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/salnativewidgets-gtk.cxx @@ -228,7 +228,7 @@ static tools::Rectangle NWGetTabItemRect( SalX11Screen nScreen, tools::Rectangle static tools::Rectangle NWGetEditBoxPixmapRect( SalX11Screen nScreen, tools::Rectangle aAreaRect ); -static void NWPaintOneEditBox( SalX11Screen nScreen, GdkDrawable * gdkDrawable, GdkRectangle *gdkRect, +static void NWPaintOneEditBox( SalX11Screen nScreen, GdkDrawable * gdkDrawable, GdkRectangle const *gdkRect, ControlType nType, ControlPart nPart, tools::Rectangle aEditBoxRect, ControlState nState, const ImplControlValue& aValue, const OUString& rCaption ); @@ -2321,7 +2321,7 @@ static tools::Rectangle NWGetEditBoxPixmapRect(SalX11Screen nScreen, */ static void NWPaintOneEditBox( SalX11Screen nScreen, GdkDrawable * gdkDrawable, - GdkRectangle * gdkRect, + GdkRectangle const * gdkRect, ControlType nType, ControlPart, tools::Rectangle aEditBoxRect, |