vcl/inc/slider.hxx | 1 - vcl/source/control/slider.cxx | 9 ++------- 2 files changed, 2 insertions(+), 8 deletions(-)
New commits: commit 8a3a2ab67d8db2a99936671a24ed300fd965c303 Author: Christopher Sherlock <chris.sherloc...@gmail.com> AuthorDate: Tue Dec 24 23:26:38 2024 +1100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Mon Feb 10 08:18:00 2025 +0100 vcl: move ImplInit into Slider constructor Change-Id: I70a990079443aa0bc3480c8f98235f67ce043611 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179326 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/vcl/inc/slider.hxx b/vcl/inc/slider.hxx index c1a1e808af9f..65eae2722229 100644 --- a/vcl/inc/slider.hxx +++ b/vcl/inc/slider.hxx @@ -49,7 +49,6 @@ private: using Control::ImplInitSettings; using Window::ImplInit; - void ImplInit( vcl::Window* pParent, WinBits nStyle ); void ImplInitSettings(); void ImplUpdateRects( bool bUpdate = true ); tools::Long ImplCalcThumbPos( tools::Long nPixPos ) const; diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx index 3a119ea4f5e5..b90a19dc5721 100644 --- a/vcl/source/control/slider.cxx +++ b/vcl/source/control/slider.cxx @@ -36,7 +36,8 @@ #define SLIDER_VIEW_STYLE (WB_3DLOOK | WB_HORZ | WB_VERT) -void Slider::ImplInit( vcl::Window* pParent, WinBits nStyle ) +Slider::Slider(vcl::Window* pParent, WinBits nStyle) + : Control(WindowType::SLIDER) { mnThumbPixOffset = 0; mnThumbPixRange = 0; @@ -61,12 +62,6 @@ void Slider::ImplInit( vcl::Window* pParent, WinBits nStyle ) SetSizePixel( CalcWindowSizePixel() ); } -Slider::Slider( vcl::Window* pParent, WinBits nStyle ) : - Control(WindowType::SLIDER) -{ - ImplInit( pParent, nStyle ); -} - Slider::~Slider() { disposeOnce();