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>
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx
index a75d159..71d515a 100644
--- a/svx/source/xml/xmlgrhlp.cxx
+++ b/svx/source/xml/xmlgrhlp.cxx
@@ -305,10 +305,10 @@

            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 @@

                    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 );