summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-10 11:36:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-10 13:36:28 +0200
commit0098d36c07d8a6cd4ad59bf4f4c7ad69fdaf6dfd (patch)
tree5693c0eed0867a58bf3d4db5202188c1d6351aa1 /vcl
parent7ad41a7767c666f6707adb1449e501f8581d0d3b (diff)
loplugin:unnecessaryreturn SvImpLBox::SetMostRight
Change-Id: Id556d8c86c1229a51bd600da433d564979c1cd40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116975 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/svimpbox.hxx2
-rw-r--r--vcl/source/treelist/svimpbox.cxx4
2 files changed, 2 insertions, 4 deletions
diff --git a/vcl/inc/svimpbox.hxx b/vcl/inc/svimpbox.hxx
index 54382ea6e5d7..554c5a8070ae 100644
--- a/vcl/inc/svimpbox.hxx
+++ b/vcl/inc/svimpbox.hxx
@@ -165,7 +165,7 @@ private:
void InitScrollBarBox();
SvLBoxTab* NextTab( SvLBoxTab const * );
- bool SetMostRight( SvTreeListEntry* pEntry );
+ void SetMostRight( SvTreeListEntry* pEntry );
void FindMostRight( SvTreeListEntry* pParent );
void FindMostRight_Impl( SvTreeListEntry* pParent );
void NotifyTabsChanged();
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index 60b8a5962e42..11a8fb344998 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -2961,7 +2961,7 @@ void SvImpLBox::SetUpdateMode( bool bMode )
}
}
-bool SvImpLBox::SetMostRight( SvTreeListEntry* pEntry )
+void SvImpLBox::SetMostRight( SvTreeListEntry* pEntry )
{
if( m_pView->nTreeFlags & SvTreeFlags::RECALCTABS )
{
@@ -2997,10 +2997,8 @@ bool SvImpLBox::SetMostRight( SvTreeListEntry* pEntry )
{
m_nMostRight = nRight;
m_pMostRightEntry = pEntry;
- return true;
}
}
- return false;
}
void SvImpLBox::FindMostRight()