diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-03 09:52:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-06 07:13:42 +0100 |
commit | 0d50804e1c0c0ea2a5cd73fa3fa2a9ff0a0e7048 (patch) | |
tree | ab861bba797a4610ffd5b482cc8fa4c4d5b59c35 /vcl/unx | |
parent | 26e8b589b3f7716a80df7f3a9273e4967d9b0991 (diff) |
loplugin:constparams in various(2)
Change-Id: I533a7eb724b15e168a28dc92cd5962a39bc96e7c
Reviewed-on: https://gerrit.libreoffice.org/44313
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/app/i18n_ic.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/app/saldisp.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_selection.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_selection.hxx | 6 | ||||
-rw-r--r-- | vcl/unx/generic/window/salframe.cxx | 10 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atktext.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/salnativewidgets-gtk.cxx | 4 |
7 files changed, 16 insertions, 16 deletions
diff --git a/vcl/unx/generic/app/i18n_ic.cxx b/vcl/unx/generic/app/i18n_ic.cxx index 408a828ba2b0..f2245e5a7d4f 100644 --- a/vcl/unx/generic/app/i18n_ic.cxx +++ b/vcl/unx/generic/app/i18n_ic.cxx @@ -512,7 +512,7 @@ SalI18N_InputContext::SupportInputMethodStyle( XIMStyles const *pIMStyles ) // handle extended and normal key input void -SalI18N_InputContext::CommitKeyEvent(sal_Unicode* pText, std::size_t nLength) +SalI18N_InputContext::CommitKeyEvent(sal_Unicode const * pText, std::size_t nLength) { if (nLength == 1 && IsControlCode(pText[0])) return; diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index fafb46b25b90..dd0b57c2fb38 100644 --- a/vcl/unx/generic/app/saldisp.cxx +++ b/vcl/unx/generic/app/saldisp.cxx @@ -771,7 +771,7 @@ OUString SalDisplay::GetKeyNameFromKeySym( KeySym nKeySym ) const } inline KeySym sal_XModifier2Keysym( Display *pDisplay, - XModifierKeymap *pXModMap, + XModifierKeymap const *pXModMap, int n ) { return XkbKeycodeToKeysym( pDisplay, diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx index 67eb8c4a7b8a..90e620090cc8 100644 --- a/vcl/unx/generic/dtrans/X11_selection.cxx +++ b/vcl/unx/generic/dtrans/X11_selection.cxx @@ -1760,7 +1760,7 @@ bool SelectionManager::handleSelectionRequest( XSelectionRequestEvent& rRequest return true; } -bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent& rNotify ) +bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent const & rNotify ) { osl::MutexGuard aGuard( m_aMutex ); // data we requested arrived @@ -1975,7 +1975,7 @@ bool SelectionManager::handleSendPropertyNotify( XPropertyEvent const & rNotify return bHandled; } -bool SelectionManager::handleSelectionNotify( XSelectionEvent& rNotify ) +bool SelectionManager::handleSelectionNotify( XSelectionEvent const & rNotify ) { osl::MutexGuard aGuard( m_aMutex ); @@ -2493,7 +2493,7 @@ void SelectionManager::sendDropPosition( bool bForce, Time eventTime ) } } -bool SelectionManager::handleDragEvent( XEvent& rMessage ) +bool SelectionManager::handleDragEvent( XEvent const & rMessage ) { if( ! m_xDragSourceListener.is() ) return false; diff --git a/vcl/unx/generic/dtrans/X11_selection.hxx b/vcl/unx/generic/dtrans/X11_selection.hxx index 13d119b9ec0a..40b81f414902 100644 --- a/vcl/unx/generic/dtrans/X11_selection.hxx +++ b/vcl/unx/generic/dtrans/X11_selection.hxx @@ -370,9 +370,9 @@ namespace x11 { // handle various events bool handleSelectionRequest( XSelectionRequestEvent& rRequest ); bool handleSendPropertyNotify( XPropertyEvent const & rNotify ); - bool handleReceivePropertyNotify( XPropertyEvent& rNotify ); - bool handleSelectionNotify( XSelectionEvent& rNotify ); - bool handleDragEvent( XEvent& rMessage ); + bool handleReceivePropertyNotify( XPropertyEvent const & rNotify ); + bool handleSelectionNotify( XSelectionEvent const & rNotify ); + bool handleDragEvent( XEvent const & rMessage ); bool handleDropEvent( XClientMessageEvent const & rMessage ); // dnd helpers diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index c35c2d96ec77..03fc70c40676 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -382,7 +382,7 @@ static bool lcl_SelectAppIconPixmap( SalDisplay const *pDisplay, SalX11Screen nX return true; } -void X11SalFrame::Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nXScreen, SystemParentData* pParentData, bool bUseGeometry ) +void X11SalFrame::Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nXScreen, SystemParentData const * pParentData, bool bUseGeometry ) { if( nXScreen.getXScreen() >= GetDisplay()->GetXScreenCount() ) nXScreen = GetDisplay()->GetDefaultXScreen(); @@ -809,7 +809,7 @@ void X11SalFrame::Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nXScreen } X11SalFrame::X11SalFrame( SalFrame *pParent, SalFrameStyleFlags nSalFrameStyle, - SystemParentData* pSystemParent ) : + SystemParentData const * pSystemParent ) : m_nXScreen( 0 ) { GenericUnixSalData *pData = GetGenericUnixSalData(); @@ -2278,7 +2278,7 @@ void X11SalFrame::SetPointerPos(long nX, long nY) // delay handling of extended text input #if !defined(__synchronous_extinput__) void -X11SalFrame::HandleExtTextEvent (XClientMessageEvent *pEvent) +X11SalFrame::HandleExtTextEvent (XClientMessageEvent const *pEvent) { #if SAL_TYPES_SIZEOFLONG > 4 void* pExtTextEvent = reinterpret_cast<void*>( (pEvent->data.l[0] & 0xffffffff) @@ -3375,7 +3375,7 @@ bool X11SalFrame::HandleFocusEvent( XFocusChangeEvent const *pEvent ) return false; } -bool X11SalFrame::HandleExposeEvent( XEvent *pEvent ) +bool X11SalFrame::HandleExposeEvent( XEvent const *pEvent ) { XRectangle aRect = { 0, 0, 0, 0 }; sal_uInt16 nCount = 0; @@ -3780,7 +3780,7 @@ bool X11SalFrame::HandleReparentEvent( XReparentEvent *pEvent ) return true; } -bool X11SalFrame::HandleStateEvent( XPropertyEvent *pEvent ) +bool X11SalFrame::HandleStateEvent( XPropertyEvent const *pEvent ) { Atom actual_type; int actual_format; diff --git a/vcl/unx/gtk/a11y/atktext.cxx b/vcl/unx/gtk/a11y/atktext.cxx index 202236b2d91c..5faac5ee526c 100644 --- a/vcl/unx/gtk/a11y/atktext.cxx +++ b/vcl/unx/gtk/a11y/atktext.cxx @@ -58,7 +58,7 @@ text_type_from_boundary(AtkTextBoundary boundary_type) static gchar * adjust_boundaries( css::uno::Reference<css::accessibility::XAccessibleText> const & pText, - accessibility::TextSegment& rTextSegment, + accessibility::TextSegment const & rTextSegment, AtkTextBoundary boundary_type, gint * start_offset, gint * end_offset ) { diff --git a/vcl/unx/gtk/salnativewidgets-gtk.cxx b/vcl/unx/gtk/salnativewidgets-gtk.cxx index 59fd3765406a..5126034ed5e5 100644 --- a/vcl/unx/gtk/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/salnativewidgets-gtk.cxx @@ -247,7 +247,7 @@ static tools::Rectangle NWGetToolbarRect( SalX11Screen nScreen, ControlPart nPart, tools::Rectangle aAreaRect ); -static int getFrameWidth(GtkWidget* widget); +static int getFrameWidth(GtkWidget const * widget); static tools::Rectangle NWGetScrollButtonRect( SalX11Screen nScreen, ControlPart nPart, tools::Rectangle aAreaRect ); @@ -3543,7 +3543,7 @@ bool GtkSalGraphics::NWPaintGTKSlider( return true; } -static int getFrameWidth(GtkWidget* widget) +static int getFrameWidth(GtkWidget const * widget) { return widget->style->xthickness; } |