diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-08 16:21:26 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-09 10:07:46 +0200 |
commit | 435d6d50c3cdb6711942ee40dc2fae1865361845 (patch) | |
tree | ae76659dca1dfb867c99ae7ca66add9cf3c8ac2d /sfx2/source/appl/newhelp.cxx | |
parent | 96a2aa94b2a68e12ab74cb6d8f4a16f6c63e4ccf (diff) |
loplugin:constantparam in sfx2
Change-Id: I50a2d8221f907f0e844e558f3dbdd0346c010201
Diffstat (limited to 'sfx2/source/appl/newhelp.cxx')
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index da3da96d60ee..2ab9ab8b762e 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -1905,7 +1905,7 @@ SfxHelpTextWindow_Impl::SfxHelpTextWindow_Impl( SfxHelpWindow_Impl* pParent ) : InitToolBoxImages(); aToolBox->Show(); - InitOnStartupBox( false ); + InitOnStartupBox(); aOnStartupCB->SetClickHdl( LINK( this, SfxHelpTextWindow_Impl, CheckHdl ) ); aSelectIdle.SetIdleHdl( LINK( this, SfxHelpTextWindow_Impl, SelectHdl ) ); @@ -2001,7 +2001,7 @@ void SfxHelpTextWindow_Impl::InitToolBoxImages() } -void SfxHelpTextWindow_Impl::InitOnStartupBox( bool bOnlyText ) +void SfxHelpTextWindow_Impl::InitOnStartupBox() { sCurrentFactory = SfxHelp::GetCurrentModuleIdentifier(); @@ -2078,18 +2078,15 @@ void SfxHelpTextWindow_Impl::InitOnStartupBox( bool bOnlyText ) SetOnStartupBoxPosition(); } - if ( !bOnlyText ) - { - // set position of the checkbox - Size a3Size = LogicToPixel( Size( 3, 3 ), MAP_APPFONT ); - Size aTBSize = aToolBox->GetSizePixel(); - Size aCBSize = aOnStartupCB->GetSizePixel(); - Point aPnt = aToolBox->GetPosPixel(); - aPnt.X() += aTBSize.Width() + a3Size.Width(); - aPnt.Y() += ( ( aTBSize.Height() - aCBSize.Height() ) / 2 ); - aOnStartupCB->SetPosPixel( aPnt ); - nMinPos = aPnt.X(); - } + // set position of the checkbox + Size a3Size = LogicToPixel( Size( 3, 3 ), MAP_APPFONT ); + Size aTBSize = aToolBox->GetSizePixel(); + Size aCBSize = aOnStartupCB->GetSizePixel(); + Point aPnt = aToolBox->GetPosPixel(); + aPnt.X() += aTBSize.Width() + a3Size.Width(); + aPnt.Y() += ( ( aTBSize.Height() - aCBSize.Height() ) / 2 ); + aOnStartupCB->SetPosPixel( aPnt ); + nMinPos = aPnt.X(); } } |