[Libreoffice-commits] .: vcl/source

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Tue May 10 11:14:52 PDT 2011


 vcl/source/gdi/pdfwriter_impl2.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 08137a2e663a7df59e9865260f1f578cf396f473
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Tue May 10 13:14:44 2011 -0500

    use sal_uInt32 in loop instead of size_t to resolve type mismatch issues

diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index ec574f9..2ab02b4 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -264,9 +264,9 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevDa
     }
     GDIMetaFile aMtf( i_rMtf );
 
-    for( size_t i = 0, nCount = aMtf.GetActionSize(); i < nCount; )
+    for( sal_uInt32 i = 0, nCount = aMtf.GetActionSize(); i < (sal_uInt32)nCount; )
     {
-        if ( !i_pOutDevData || !i_pOutDevData->PlaySyncPageAct( m_rOuterFace, (sal_uInt32)i ) )
+        if ( !i_pOutDevData || !i_pOutDevData->PlaySyncPageAct( m_rOuterFace, i ) )
         {
             const MetaAction*	pAction = aMtf.GetAction( i );
             const sal_uInt16		nType = pAction->GetType();


More information about the Libreoffice-commits mailing list