diff options
author | Eda Nur Var <var.eda.nur@gmail.com> | 2020-01-27 03:03:21 +0300 |
---|---|---|
committer | Muhammet Kara <muhammet.kara@collabora.com> | 2020-01-28 08:37:55 +0100 |
commit | 2a37089bad8656271f0fde92ab7731f29a19c8df (patch) | |
tree | 8036971ebba7782540d6994134433523d6d1b142 /svx | |
parent | 0025b74e8099ed79e7824a8d22335e882e0c635c (diff) |
tdf#75280 Convert inappropriate use of sal_uIntPtr to better integer types
Change-Id: I2829cccb526084590889d0618bc89a921aa8cdf7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87475
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index a75d159dd41d..71d515a8a7fe 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -305,10 +305,10 @@ Graphic SvXMLGraphicOutputStream::GetGraphic() sal_uInt8 sFirstBytes[ 2 ]; - sal_uIntPtr nStreamLen = mpOStm->TellEnd(); + sal_uInt64 nStreamLen = mpOStm->TellEnd(); mpOStm->Seek( 0 ); - if ( !nStreamLen ) + if ( nStreamLen == 0 ) { SvLockBytes* pLockBytes = mpOStm->GetLockBytes(); if ( pLockBytes ) @@ -332,8 +332,8 @@ Graphic SvXMLGraphicOutputStream::GetGraphic() if (aZCodec.EndCompression()) { - sal_uIntPtr nStreamLen_ = pDest->TellEnd(); - if (nStreamLen_) + sal_uInt64 nStreamLen_ = pDest->TellEnd(); + if (nStreamLen_ > 0) { pDest->Seek(0); GraphicFilter::GetGraphicFilter().ImportGraphic( aGraphic, "", *pDest ,nFormat,&nDeterminedFormat ); |