diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-20 15:28:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-21 08:30:34 +0200 |
commit | bb7b0511bbb6d2237b7b765c31727324b4183a85 (patch) | |
tree | d5def9db196610dbe470ec502ef3ee61a675dbff /vcl/source/control/button.cxx | |
parent | a8a2602066b110f19b1e24630ce8cb8908b93652 (diff) |
loplugin:unusedfields
Change-Id: I933d9a82bb6ad5f5b946e28abcc2dae30126c720
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99108
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r-- | vcl/source/control/button.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 8d9b269ea823..b58b8d9fe019 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -2858,7 +2858,6 @@ FactoryFunction RadioButton::GetUITestFactory() const void CheckBox::ImplInitCheckBoxData() { meState = TRISTATE_FALSE; - meSaveValue = TRISTATE_FALSE; mbTriState = false; } @@ -3022,12 +3021,7 @@ void CheckBox::ImplDraw( OutputDevice* pDev, DrawFlags nDrawFlags, } else { - if ( mbLegacyNoTextAlign && ( nWinStyle & WB_CENTER ) ) - rStateRect.SetLeft( rPos.X()+((rSize.Width()-rImageSize.Width())/2) ); - else if ( mbLegacyNoTextAlign && ( nWinStyle & WB_RIGHT ) ) - rStateRect.SetLeft( rPos.X()+rSize.Width()-rImageSize.Width() ); - else - rStateRect.SetLeft( rPos.X() ); + rStateRect.SetLeft( rPos.X() ); if ( nWinStyle & WB_VCENTER ) rStateRect.SetTop( rPos.Y()+((rSize.Height()-rImageSize.Height())/2) ); else if ( nWinStyle & WB_BOTTOM ) @@ -3087,7 +3081,7 @@ void CheckBox::ImplCheck() } CheckBox::CheckBox( vcl::Window* pParent, WinBits nStyle ) : - Button( WindowType::CHECKBOX ), mbLegacyNoTextAlign( false ) + Button( WindowType::CHECKBOX ) { ImplInitCheckBoxData(); ImplInit( pParent, nStyle ); |