summaryrefslogtreecommitdiff
path: root/framework/source/uiconfiguration
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 09:22:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 11:38:00 +0100
commitbf8a6cacd06d7c1961b5db8cc79ee4bbdb342e43 (patch)
tree3dd81e82c06ce5da82295e614aa5bf9252db2445 /framework/source/uiconfiguration
parente2372907c991833a8bbe13f84460783d8d8fdfdb (diff)
loplugin:changetoolsgen in filter..framework
Change-Id: I622da8a0c096c74efd97326451c4576b230f0483 Reviewed-on: https://gerrit.libreoffice.org/49701 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/uiconfiguration')
-rw-r--r--framework/source/uiconfiguration/ImageList.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uiconfiguration/ImageList.cxx b/framework/source/uiconfiguration/ImageList.cxx
index dbdb9459440f..3e39b08f45f8 100644
--- a/framework/source/uiconfiguration/ImageList.cxx
+++ b/framework/source/uiconfiguration/ImageList.cxx
@@ -63,7 +63,7 @@ BitmapEx ImageList::GetAsHorizontalStrip() const
sal_uInt16 nCount = GetImageCount();
if( !nCount )
return BitmapEx();
- aSize.Width() *= nCount;
+ aSize.setWidth( aSize.Width() * nCount );
// Load any stragglers
for (sal_uInt16 nIdx = 0; nIdx < nCount; nIdx++)
@@ -106,7 +106,7 @@ void ImageList::InsertFromHorizontalStrip( const BitmapEx &rBitmapEx,
Size aSize( rBitmapEx.GetSizePixel() );
DBG_ASSERT (rBitmapEx.GetSizePixel().Width() % nItems == 0,
"ImageList::InsertFromHorizontalStrip - very odd size");
- aSize.Width() /= nItems;
+ aSize.setWidth( aSize.Width() / nItems );
ImplInit( nItems, aSize );
for (sal_uInt16 nIdx = 0; nIdx < nItems; nIdx++)