summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-10 12:17:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-11 13:38:04 +0200
commit4fbc246c7021248e4e9689f59b030b4b8f526954 (patch)
tree29ed38b69429d6555294fd5aabbe4719777e0539 /svx/source/tbxctrls
parenteea9224017d282324bdced180f8e13249da1f5bd (diff)
loplugin:unnecessaryreturn in SvxColorValueSet::layoutToGivenHeight
Change-Id: Ia42158597588fe802a2f06a6e8e59f372c62c022 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117031 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r--svx/source/tbxctrls/SvxColorValueSet.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/svx/source/tbxctrls/SvxColorValueSet.cxx b/svx/source/tbxctrls/SvxColorValueSet.cxx
index 9176c00a2a8d..4b4547dfce59 100644
--- a/svx/source/tbxctrls/SvxColorValueSet.cxx
+++ b/svx/source/tbxctrls/SvxColorValueSet.cxx
@@ -124,7 +124,7 @@ void SvxColorValueSet::Resize()
ValueSet::Resize();
}
-Size SvxColorValueSet::layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount)
+void SvxColorValueSet::layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount)
{
if(!nEntryCount)
{
@@ -157,15 +157,10 @@ Size SvxColorValueSet::layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntry
SetStyle(aWinBits|WB_VSCROLL);
}
- // set height to wanted height
- aNewSize.setHeight( nHeight );
-
SetItemWidth(aItemSize.Width());
SetItemHeight(aItemSize.Height());
SetColCount(SvxColorValueSet::getColumnCount());
SetLineCount(nLineCount);
-
- return aNewSize;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */