vcl/inc/hyperlabel.hxx | 2 -- vcl/source/control/hyperlabel.cxx | 19 +++++++------------ 2 files changed, 7 insertions(+), 14 deletions(-)
New commits: commit 01f48ef20173a305752ce2605d1d581a663357da Author: Christopher Sherlock <chris.sherloc...@gmail.com> AuthorDate: Mon Dec 23 17:36:44 2024 +1100 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Feb 3 08:45:47 2025 +0100 vcl: remove implInit() from HyperLabel Change-Id: I45d1f519f812529f0913d4a4453201a59d984163 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179191 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/vcl/inc/hyperlabel.hxx b/vcl/inc/hyperlabel.hxx index 6415742616fb..fa69d30f83f1 100644 --- a/vcl/inc/hyperlabel.hxx +++ b/vcl/inc/hyperlabel.hxx @@ -32,8 +32,6 @@ namespace vcl virtual void GetFocus() override; virtual void LoseFocus() override; - void implInit(); - using FixedText::CalcMinimumSize; public: diff --git a/vcl/source/control/hyperlabel.cxx b/vcl/source/control/hyperlabel.cxx index 34f10750ae2b..01aaf47609c9 100644 --- a/vcl/source/control/hyperlabel.cxx +++ b/vcl/source/control/hyperlabel.cxx @@ -32,7 +32,13 @@ namespace vcl , bInteractive(false) , m_bHyperMode(false) { - implInit(); + ToggleBackgroundColor( COL_TRANSPARENT ); + + WinBits nWinStyle = GetStyle(); + nWinStyle |= WB_EXTRAOFFSET; + SetStyle( nWinStyle ); + + Show(); } Size const & HyperLabel::CalcMinimumSize( tools::Long nMaxWidth ) @@ -45,17 +51,6 @@ namespace vcl return m_aMinSize; } - void HyperLabel::implInit() - { - ToggleBackgroundColor( COL_TRANSPARENT ); - - WinBits nWinStyle = GetStyle(); - nWinStyle |= WB_EXTRAOFFSET; - SetStyle( nWinStyle ); - - Show(); - } - void HyperLabel::ToggleBackgroundColor( const Color& _rGBColor ) { SetControlBackground( _rGBColor );