diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-16 08:49:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-16 08:42:37 +0000 |
commit | f0f973da8560e16cba85d2c9465c3a8c4c0ebbb3 (patch) | |
tree | 0b6d78c3b16acc698dee15d83422a924be71097f /include/vcl/salnativewidgets.hxx | |
parent | 6eb91bdf75fe0085584efa6abf955c14c7acb9fd (diff) |
loplugin:constantparams in vcl/
also some improvements to the plugin
Change-Id: I0e3a519d70756e577fcb1bd47dd66864b5b4c871
Reviewed-on: https://gerrit.libreoffice.org/23289
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/vcl/salnativewidgets.hxx')
-rw-r--r-- | include/vcl/salnativewidgets.hxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx index 0b60312df0e2..8dc05a223ec0 100644 --- a/include/vcl/salnativewidgets.hxx +++ b/include/vcl/salnativewidgets.hxx @@ -333,9 +333,9 @@ class VCL_DLLPUBLIC ImplControlValue ButtonValue mTristate; // Tristate value: on, off, mixed long mNumber; // numeric value protected: - ImplControlValue( ControlType i_eType, ButtonValue i_eTriState, long i_nNumber ) + ImplControlValue( ControlType i_eType, long i_nNumber ) : mType( i_eType ) - , mTristate( i_eTriState ) + , mTristate( BUTTONVALUE_DONTKNOW ) , mNumber( i_nNumber ) {} @@ -381,7 +381,7 @@ class VCL_DLLPUBLIC ScrollbarValue : public ImplControlValue ControlState mnPage2State; inline ScrollbarValue() - : ImplControlValue( CTRL_SCROLLBAR, BUTTONVALUE_DONTKNOW, 0 ) + : ImplControlValue( CTRL_SCROLLBAR, 0 ) { mnMin = 0; mnMax = 0; mnCur = 0; mnVisibleSize = 0; mnButton1State = ControlState::NONE; mnButton2State = ControlState::NONE; @@ -401,7 +401,7 @@ class VCL_DLLPUBLIC SliderValue : public ImplControlValue ControlState mnThumbState; SliderValue() - : ImplControlValue( CTRL_SLIDER, BUTTONVALUE_DONTKNOW, 0 ) + : ImplControlValue( CTRL_SLIDER, 0 ) , mnMin( 0 ), mnMax( 0 ), mnCur( 0 ), mnThumbState( ControlState::NONE ) {} virtual ~SliderValue(); @@ -434,7 +434,7 @@ class VCL_DLLPUBLIC TabitemValue : public ImplControlValue Rectangle maContentRect; TabitemValue(const Rectangle &rContentRect) - : ImplControlValue( CTRL_TAB_ITEM, BUTTONVALUE_DONTKNOW, 0 ) + : ImplControlValue( CTRL_TAB_ITEM, 0 ) , mnAlignment(TabitemFlags::NONE) , maContentRect(rContentRect) { @@ -468,7 +468,7 @@ class VCL_DLLPUBLIC SpinbuttonValue : public ImplControlValue int mnLowerPart; SpinbuttonValue() - : ImplControlValue( CTRL_SPINBUTTONS, BUTTONVALUE_DONTKNOW, 0 ) + : ImplControlValue( CTRL_SPINBUTTONS, 0 ) , mnUpperState(ControlState::NONE) , mnLowerState(ControlState::NONE) , mnUpperPart(0) @@ -487,7 +487,7 @@ class VCL_DLLPUBLIC SpinbuttonValue : public ImplControlValue class VCL_DLLPUBLIC ToolbarValue : public ImplControlValue { public: - ToolbarValue() : ImplControlValue( CTRL_TOOLBAR, BUTTONVALUE_DONTKNOW, 0 ) + ToolbarValue() : ImplControlValue( CTRL_TOOLBAR, 0 ) { mbIsTopDockingArea = false; } virtual ~ToolbarValue(); virtual ToolbarValue* clone() const override; @@ -503,7 +503,7 @@ public: class VCL_DLLPUBLIC MenubarValue : public ImplControlValue { public: - MenubarValue() : ImplControlValue( CTRL_MENUBAR, BUTTONVALUE_DONTKNOW, 0 ) + MenubarValue() : ImplControlValue( CTRL_MENUBAR, 0 ) { maTopDockingAreaHeight=0; } virtual ~MenubarValue(); virtual MenubarValue* clone() const override; @@ -518,10 +518,10 @@ public: class VCL_DLLPUBLIC MenupopupValue : public ImplControlValue { public: - MenupopupValue() : ImplControlValue( CTRL_MENU_POPUP, BUTTONVALUE_DONTKNOW, 0 ) + MenupopupValue() : ImplControlValue( CTRL_MENU_POPUP, 0 ) {} MenupopupValue( long i_nGutterWidth, const Rectangle& i_rItemRect ) - : ImplControlValue( CTRL_MENU_POPUP, BUTTONVALUE_DONTKNOW, i_nGutterWidth ) + : ImplControlValue( CTRL_MENU_POPUP, i_nGutterWidth ) , maItemRect( i_rItemRect ) {} virtual ~MenupopupValue(); @@ -537,7 +537,7 @@ class VCL_DLLPUBLIC PushButtonValue : public ImplControlValue { public: PushButtonValue() - : ImplControlValue( CTRL_PUSHBUTTON, BUTTONVALUE_DONTKNOW, 0 ) + : ImplControlValue( CTRL_PUSHBUTTON, 0 ) , mbBevelButton( false ), mbSingleLine( true ) {} virtual ~PushButtonValue(); virtual PushButtonValue* clone() const override; |