summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pngread.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 15:56:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-22 20:18:57 +0100
commit4a8968039a2e1d9e7aee10433ced1f59c0392d7a (patch)
tree7074b5b4a94b5d509487872b8201bc5872dc107e /vcl/source/gdi/pngread.cxx
parent1d7f96a324a4c2ab82a04513c6a38dc31fd061fa (diff)
loplugin:changetoolsgen in vcl
Change-Id: I0fc68cf51fb23ed9bb86a5087e8247c81b024494 Reviewed-on: https://gerrit.libreoffice.org/50107 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi/pngread.cxx')
-rw-r--r--vcl/source/gdi/pngread.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index 9bb759400c97..7e6674819925 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -407,8 +407,8 @@ BitmapEx PNGReaderImpl::GetBitmapEx( const Size& rPreviewSizeHint )
mbpHYs = true;
// convert into MapUnit::Map100thMM
- maPhysSize.Width() = static_cast<sal_Int32>( (100000.0 * maOrigSize.Width()) / nXPixelPerMeter );
- maPhysSize.Height() = static_cast<sal_Int32>( (100000.0 * maOrigSize.Height()) / nYPixelPerMeter );
+ maPhysSize.setWidth( static_cast<sal_Int32>( (100000.0 * maOrigSize.Width()) / nXPixelPerMeter ) );
+ maPhysSize.setHeight( static_cast<sal_Int32>( (100000.0 * maOrigSize.Height()) / nYPixelPerMeter ) );
}
}
}
@@ -454,8 +454,8 @@ bool PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint )
if( mnChunkLen < 13 )
return false;
- maOrigSize.Width() = ImplReadsal_uInt32();
- maOrigSize.Height() = ImplReadsal_uInt32();
+ maOrigSize.setWidth( ImplReadsal_uInt32() );
+ maOrigSize.setHeight( ImplReadsal_uInt32() );
if (maOrigSize.Width() <= 0 || maOrigSize.Height() <= 0)
return false;
@@ -650,8 +650,8 @@ bool PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint )
}
}
- maTargetSize.Width() = (maOrigSize.Width() + mnPreviewMask) >> mnPreviewShift;
- maTargetSize.Height() = (maOrigSize.Height() + mnPreviewMask) >> mnPreviewShift;
+ maTargetSize.setWidth( (maOrigSize.Width() + mnPreviewMask) >> mnPreviewShift );
+ maTargetSize.setHeight( (maOrigSize.Height() + mnPreviewMask) >> mnPreviewShift );
//round bits up to nearest multiple of 8 and divide by 8 to get num of bytes per pixel
int nBytesPerPixel = ((mnTargetDepth + 7) & ~7)/8;