diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-27 12:52:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-28 07:17:51 +0200 |
commit | b32ead5dd27c6f2b760e4196ebe0378fb8ec1a69 (patch) | |
tree | e647c37f069db3be229a4b89bc44fd21e64128fa /vcl/unx/gtk | |
parent | 3956e4cb58033cae360beddf97136596ff3bb740 (diff) |
loplugin:checkunusedparams more part1
seems I got one of the checks wrong, and was missing a bunch of stuff
Change-Id: I2c662fc4e735f8d6cbe56c6f82906a60a580331b
Reviewed-on: https://gerrit.libreoffice.org/40481
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 | 8 | ||||
-rw-r--r-- | vcl/unx/gtk/salnativewidgets-gtk.cxx | 15 |
2 files changed, 7 insertions, 16 deletions
diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx index fab7902d588c..c30a41905302 100644 --- a/vcl/unx/gtk/a11y/atkutil.cxx +++ b/vcl/unx/gtk/a11y/atkutil.cxx @@ -169,14 +169,12 @@ public: /// @throws lang::IndexOutOfBoundsException /// @throws uno::RuntimeException void detachRecursive( - const uno::Reference< accessibility::XAccessible >& xAccessible, const uno::Reference< accessibility::XAccessibleContext >& xContext ); /// @throws lang::IndexOutOfBoundsException /// @throws uno::RuntimeException void detachRecursive( - const uno::Reference< accessibility::XAccessible >& xAccessible, const uno::Reference< accessibility::XAccessibleContext >& xContext, const uno::Reference< accessibility::XAccessibleStateSet >& xStateSet ); @@ -349,13 +347,12 @@ void DocumentFocusListener::detachRecursive( xAccessible->getAccessibleContext(); if( xContext.is() ) - detachRecursive(xAccessible, xContext); + detachRecursive(xContext); } /*****************************************************************************/ void DocumentFocusListener::detachRecursive( - const uno::Reference< accessibility::XAccessible >& xAccessible, const uno::Reference< accessibility::XAccessibleContext >& xContext ) { @@ -363,13 +360,12 @@ void DocumentFocusListener::detachRecursive( xContext->getAccessibleStateSet(); if( xStateSet.is() ) - detachRecursive(xAccessible, xContext, xStateSet); + detachRecursive(xContext, xStateSet); } /*****************************************************************************/ void DocumentFocusListener::detachRecursive( - const uno::Reference< accessibility::XAccessible >&, const uno::Reference< accessibility::XAccessibleContext >& xContext, const uno::Reference< accessibility::XAccessibleStateSet >& xStateSet ) diff --git a/vcl/unx/gtk/salnativewidgets-gtk.cxx b/vcl/unx/gtk/salnativewidgets-gtk.cxx index 6b87eef78f54..3c8e75628a3e 100644 --- a/vcl/unx/gtk/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/salnativewidgets-gtk.cxx @@ -965,7 +965,7 @@ bool GtkSalGraphics::DoDrawNativeControl( } else if ( (nType==ControlType::Scrollbar) && ((nPart==ControlPart::DrawBackgroundHorz) || (nPart==ControlPart::DrawBackgroundVert)) ) { - return NWPaintGTKScrollbar( nPart, aCtrlRect, aClip, nState, aValue ); + return NWPaintGTKScrollbar( nPart, aCtrlRect, nState, aValue ); } else if ( ((nType==ControlType::Editbox) && ((nPart==ControlPart::Entire) || (nPart==ControlPart::HasBackgroundTexture)) ) || ((nType==ControlType::Spinbox) && (nPart==ControlPart::HasBackgroundTexture)) @@ -981,7 +981,7 @@ bool GtkSalGraphics::DoDrawNativeControl( else if ( ((nType==ControlType::Spinbox) || (nType==ControlType::SpinButtons)) && ((nPart==ControlPart::Entire) || (nPart==ControlPart::AllButtons)) ) { - return NWPaintGTKSpinBox(nType, nPart, aCtrlRect, aClip, nState, aValue, rCaption, rControlCacheKey); + return NWPaintGTKSpinBox(nType, nPart, aCtrlRect, nState, aValue, rCaption, rControlCacheKey); } else if ( (nType == ControlType::Combobox) && ( (nPart==ControlPart::Entire) @@ -995,7 +995,7 @@ bool GtkSalGraphics::DoDrawNativeControl( if ( nType == ControlType::TabBody ) return true; else - return NWPaintGTKTabItem( nType, aCtrlRect, aClip, nState, aValue); + return NWPaintGTKTabItem( nType, aCtrlRect, nState, aValue); } else if ( (nType==ControlType::Listbox) && ((nPart==ControlPart::Entire) || (nPart==ControlPart::ListboxWindow)) ) { @@ -1031,7 +1031,7 @@ bool GtkSalGraphics::DoDrawNativeControl( } else if( (nType == ControlType::ListNode) && (nPart == ControlPart::Entire) ) { - return NWPaintGTKListNode( aCtrlRect, aClip, nState, aValue ); + return NWPaintGTKListNode( aCtrlRect, nState, aValue ); } else if( (nType == ControlType::ListNet) && (nPart == ControlPart::Entire) ) { @@ -1040,7 +1040,7 @@ bool GtkSalGraphics::DoDrawNativeControl( } else if( nType == ControlType::Slider ) { - return NWPaintGTKSlider( nPart, aCtrlRect, aClip, nState, aValue ); + return NWPaintGTKSlider( nPart, aCtrlRect, nState, aValue ); } else if( nType == ControlType::WindowBackground ) { @@ -1862,7 +1862,6 @@ static void NWCalcArrowRect( const tools::Rectangle& rButton, tools::Rectangle& bool GtkSalGraphics::NWPaintGTKScrollbar( ControlPart nPart, const tools::Rectangle& rControlRectangle, - const std::list< tools::Rectangle >&, ControlState nState, const ImplControlValue& aValue ) { @@ -2389,7 +2388,6 @@ static void NWPaintOneEditBox( SalX11Screen nScreen, bool GtkSalGraphics::NWPaintGTKSpinBox(ControlType nType, ControlPart nPart, const tools::Rectangle& rControlRectangle, - const std::list< tools::Rectangle >&, ControlState nState, const ImplControlValue& aValue, const OUString& rCaption, @@ -2692,7 +2690,6 @@ static tools::Rectangle NWGetComboBoxButtonRect( SalX11Screen nScreen, bool GtkSalGraphics::NWPaintGTKTabItem( ControlType nType, const tools::Rectangle& rControlRectangle, - const std::list< tools::Rectangle >&, ControlState nState, const ImplControlValue& aValue ) { @@ -3380,7 +3377,6 @@ bool GtkSalGraphics::NWPaintGTKTooltip( bool GtkSalGraphics::NWPaintGTKListNode( const tools::Rectangle& rControlRectangle, - const std::list< tools::Rectangle >&, ControlState nState, const ImplControlValue& rValue ) { NWEnsureGTKTreeView( m_nXScreen ); @@ -3489,7 +3485,6 @@ bool GtkSalGraphics::NWPaintGTKProgress( bool GtkSalGraphics::NWPaintGTKSlider( ControlPart nPart, const tools::Rectangle& rControlRectangle, - const std::list< tools::Rectangle >&, ControlState nState, const ImplControlValue& rValue ) { OSL_ASSERT( rValue.getType() == ControlType::Slider ); |