diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-08-19 08:19:08 +0200 |
---|---|---|
committer | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-08-20 20:45:27 +0200 |
commit | 42009698f2ca23ea1527f0696662fbf4c23f2b84 (patch) | |
tree | 2d80d0a1c0154f4818c9594a0363aea96501c89e /svtools | |
parent | 45cbf16d26c6982ce471d1923eb47009771a465d (diff) |
svtools: rename function to match it's effect.
nYoffsNodeBmp went with
commit 9e61a951374a3f7705de67295e406e929c603a42
Date: Tue Jun 20 15:59:42 2017 +0200
loplugin:unusedfields in svtools
Change-Id: I959829c64242b2d021497f828e24bb23119d8e24
Reviewed-on: https://gerrit.libreoffice.org/41363
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 6 | ||||
-rw-r--r-- | svtools/source/inc/svimpbox.hxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 1a13a08dfbed..f849ee96a8c6 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -1457,8 +1457,8 @@ long SvImpLBox::GetEntryLine( SvTreeListEntry* pEntry ) const void SvImpLBox::SetEntryHeight() { - SetNodeBmpYOffset( GetExpandedNodeBmp() ); - SetNodeBmpYOffset( GetCollapsedNodeBmp() ); + SetNodeBmpWidth( GetExpandedNodeBmp() ); + SetNodeBmpWidth( GetCollapsedNodeBmp() ); if(!pView->HasViewData()) // are we within the Clear? { Size aSize = pView->Control::GetOutputSizePixel(); @@ -1565,7 +1565,7 @@ void SvImpLBox::CollapsingEntry( SvTreeListEntry* pEntry ) } -void SvImpLBox::SetNodeBmpYOffset( const Image& rBmp ) +void SvImpLBox::SetNodeBmpWidth( const Image& rBmp ) { const Size aSize( rBmp.GetSizePixel() ); nNodeBmpWidth = aSize.Width(); diff --git a/svtools/source/inc/svimpbox.hxx b/svtools/source/inc/svimpbox.hxx index 09d896ba8135..10d8287d4fdb 100644 --- a/svtools/source/inc/svimpbox.hxx +++ b/svtools/source/inc/svimpbox.hxx @@ -161,7 +161,7 @@ private: DECL_LINK( ScrollLeftRightHdl, ScrollBar*, void ); DECL_LINK( EndScrollHdl, ScrollBar*, void ); - void SetNodeBmpYOffset( const Image& ); + void SetNodeBmpWidth( const Image& ); void SetNodeBmpTabDistance(); // Selection-Engine @@ -346,13 +346,13 @@ inline Image& SvImpLBox::implGetImageLocation( const ImageType _eType ) inline void SvImpLBox::SetExpandedNodeBmp( const Image& rImg ) { implGetImageLocation( ImageType::NodeExpanded ) = rImg; - SetNodeBmpYOffset( rImg ); + SetNodeBmpWidth( rImg ); } inline void SvImpLBox::SetCollapsedNodeBmp( const Image& rImg ) { implGetImageLocation( ImageType::NodeCollapsed ) = rImg; - SetNodeBmpYOffset( rImg ); + SetNodeBmpWidth( rImg ); } inline const Image& SvImpLBox::GetDontKnowNodeBmp( ) |