diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-13 08:44:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-13 08:44:46 +0200 |
commit | 8bd9eb833444810dec3debd0215bd26dffc2fb91 (patch) | |
tree | 67af5f48ff3b6a83e50ff8980d8b6fad96cc1446 /svx/source/svdraw/svdattr.cxx | |
parent | fa7c7b160136e4b08bc1e1aef9017d4596ad6184 (diff) |
loplugin:unusedmethods unused return value in include/svl
Change-Id: I759fe8769daccea07c2157bfb5912df8ba285534
Diffstat (limited to 'svx/source/svdraw/svdattr.cxx')
-rw-r--r-- | svx/source/svdraw/svdattr.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index 5f0978d4d136..e9510a6401c4 100644 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -939,7 +939,7 @@ bool SdrMetricItem::HasMetrics() const return true; } -bool SdrMetricItem::ScaleMetrics(long nMul, long nDiv) +void SdrMetricItem::ScaleMetrics(long nMul, long nDiv) { if (GetValue()!=0) { BigInt aVal(GetValue()); @@ -948,7 +948,6 @@ bool SdrMetricItem::ScaleMetrics(long nMul, long nDiv) aVal/=nDiv; SetValue(long(aVal)); } - return true; } bool SdrMetricItem::GetPresentation(SfxItemPresentation ePres, @@ -1312,7 +1311,7 @@ bool SdrTextAniAmountItem::HasMetrics() const return GetValue()>0; } -bool SdrTextAniAmountItem::ScaleMetrics(long nMul, long nDiv) +void SdrTextAniAmountItem::ScaleMetrics(long nMul, long nDiv) { if (GetValue()>0) { BigInt aVal(GetValue()); @@ -1320,8 +1319,7 @@ bool SdrTextAniAmountItem::ScaleMetrics(long nMul, long nDiv) aVal+=nDiv/2; // to round accurately aVal/=nDiv; SetValue(short(aVal)); - return true; - } else return false; + } } bool SdrTextAniAmountItem::GetPresentation( |