diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-04 14:13:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-05 06:42:40 +0000 |
commit | ff339c89b51ed571d55c762e43aa1a6ee9ada1cb (patch) | |
tree | 5ed1c9a8353037745ce49e5a97e696157a0dcbca /svtools/source | |
parent | loplugin:constantparam (diff) | |
download | core-ff339c89b51ed571d55c762e43aa1a6ee9ada1cb.tar.gz core-ff339c89b51ed571d55c762e43aa1a6ee9ada1cb.zip |
loplugin:constantparam part2
Change-Id: I7ec4c946be52a6b56aee908426f95ecacc7b0746
Reviewed-on: https://gerrit.libreoffice.org/36072
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/scrwin.cxx | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/svtools/source/control/scrwin.cxx b/svtools/source/control/scrwin.cxx index 7f875a0784cc..cf6b83fb624a 100644 --- a/svtools/source/control/scrwin.cxx +++ b/svtools/source/control/scrwin.cxx @@ -21,11 +21,15 @@ #include <vcl/settings.hxx> -void ScrollableWindow::ImpInitialize( ScrollableWindowFlags nFlags ) +ScrollableWindow::ScrollableWindow( vcl::Window* pParent ) : + Window( pParent, WB_CLIPCHILDREN ), + aVScroll( VclPtr<ScrollBar>::Create(this, WinBits(WB_VSCROLL | WB_DRAG)) ), + aHScroll( VclPtr<ScrollBar>::Create(this, WinBits(WB_HSCROLL | WB_DRAG)) ), + aCornerWin( VclPtr<ScrollBarBox>::Create(this) ) { - bHandleDragging = bool( nFlags & ScrollableWindowFlags::THUMBDRAGGING ); - bVCenter = bool(nFlags & ScrollableWindowFlags::VCENTER); - bHCenter = bool(nFlags & ScrollableWindowFlags::HCENTER); + bHandleDragging = true; + bVCenter = true; + bHCenter = true; bScrolling = false; // set the handlers for the scrollbars @@ -38,16 +42,6 @@ void ScrollableWindow::ImpInitialize( ScrollableWindowFlags nFlags ) } -ScrollableWindow::ScrollableWindow( vcl::Window* pParent ) : - Window( pParent, WB_CLIPCHILDREN ), - aVScroll( VclPtr<ScrollBar>::Create(this, WinBits(WB_VSCROLL | WB_DRAG)) ), - aHScroll( VclPtr<ScrollBar>::Create(this, WinBits(WB_HSCROLL | WB_DRAG)) ), - aCornerWin( VclPtr<ScrollBarBox>::Create(this) ) -{ - ImpInitialize( ScrollableWindowFlags::DEFAULT ); -} - - ScrollableWindow::~ScrollableWindow() { disposeOnce(); |