diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-15 14:26:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-16 11:12:31 +0200 |
commit | 87c90cec38c43efbbd9cbfad1f0f607f428043d4 (patch) | |
tree | b65b6ccc78a4a922c027f98e4d8ab5251fdf33bb /sd | |
parent | 9b34dc20b6946698ae6ce2d5d859885bfb444633 (diff) |
fix some *printf which are using "%l" ie. long specifiers
which are not portable between Linux and Windows because long
is not portable.
In preparation for converting long -> tools::Long
Change-Id: I8bf1aa1570946ca887a6c83dd5f99c024d437336
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104374
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/ppt/pptinanimations.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sd/source/filter/ppt/pptinanimations.cxx b/sd/source/filter/ppt/pptinanimations.cxx index 8516b063728a..3d17237ba67b 100644 --- a/sd/source/filter/ppt/pptinanimations.cxx +++ b/sd/source/filter/ppt/pptinanimations.cxx @@ -970,7 +970,7 @@ int AnimationImporter::importTimeContainer( const Atom* pAtom, const Reference< sal_uInt32 nU1, nU2; mrStCtrl.ReadUInt32(nU1).ReadUInt32(nU2); - fprintf( mpFile, "<unknown_0xf136 nU1=\"%ld\" nU2=\"%ld\"/>\n", nU1, nU2 ); + fprintf( mpFile, "<unknown_0xf136 nU1=\"%" SAL_PRIdINT32 "\" nU2=\"%" SAL_PRIdINT32 "\"/>\n", nU1, nU2 ); #endif } break; @@ -1971,7 +1971,7 @@ void AnimationImporter::importAnimateRotationContainer( const Atom* pAtom, const fprintf( mpFile, " to=\"%g\"", (double)fTo ); if( nU1 ) - fprintf( mpFile, " rotation_1=\"%ld\"", nU1 ); + fprintf( mpFile, " rotation_1=\"%" SAL_PRIdINT32 "\"", nU1 ); #endif } break; @@ -2699,7 +2699,7 @@ void AnimationImporter::dump_atom( const Atom* pAtom, bool bNewLine ) if( aValue >>= nInt ) { - fprintf(mpFile, " value=\"%ld\"", nInt ); + fprintf(mpFile, " value=\"%" SAL_PRIdINT32 "\"", nInt ); } else if( aValue >>= aString ) { @@ -2858,7 +2858,7 @@ void AnimationImporter::dump( Any& rAny ) } else if( rAny >>= nInt ) { - fprintf( mpFile, "%ld", nInt ); + fprintf( mpFile, "%" SAL_PRIdINT32, nInt ); } else if( rAny >>= bBool ) { @@ -2974,7 +2974,7 @@ void AnimationImporter::dump( const PropertySet& rSet ) sal_Int32 nPresetId ; if( aAny >>= nPresetId ) { - fprintf(mpFile, " presetid=\"%ld\"", nPresetId ); + fprintf(mpFile, " presetid=\"%" SAL_PRIdINT32 "\"", nPresetId ); bKnown = true; } } @@ -2985,7 +2985,7 @@ void AnimationImporter::dump( const PropertySet& rSet ) sal_Int32 nPointsType ; if( aAny >>= nPointsType ) { - fprintf(mpFile, " presetSubType=\"%ld\"", nPointsType ); + fprintf(mpFile, " presetSubType=\"%" SAL_PRIdINT32 "\"", nPointsType ); bKnown = true; } } @@ -3009,7 +3009,7 @@ void AnimationImporter::dump( const PropertySet& rSet ) default: { static char buffer[128]; - sprintf( buffer, "%ld", nPresetClass ); + sprintf( buffer, "%" SAL_PRIdINT32, nPresetClass ); pMode = buffer; } break; @@ -3038,7 +3038,7 @@ void AnimationImporter::dump( const PropertySet& rSet ) default : { static char buffer[128]; - sprintf( buffer, "%ld", nNodeType ); + sprintf( buffer, "%" SAL_PRIdINT32, nNodeType ); pNode = buffer; } break; @@ -3055,7 +3055,7 @@ void AnimationImporter::dump( const PropertySet& rSet ) sal_Int32 nGroupId; if ( aAny >>= nGroupId ) { - fprintf( mpFile, " groupId=\"%ld\"", nGroupId ); + fprintf( mpFile, " groupId=\"%" SAL_PRIdINT32 "\"", nGroupId ); bKnown = true; } } @@ -3092,7 +3092,7 @@ void AnimationImporter::dump( const PropertySet& rSet ) sal_Int32 nEndAfterSlide; if( aAny >>= nEndAfterSlide ) { - fprintf(mpFile, " endAfterSlide=\"%ld\"", nEndAfterSlide ); + fprintf(mpFile, " endAfterSlide=\"%" SAL_PRIdINT32 "\"", nEndAfterSlide ); bKnown = true; } } @@ -3149,7 +3149,7 @@ void AnimationImporter::dump( const PropertySet& rSet ) if( !bKnown ) { - fprintf( mpFile, " unknown_%lu=\"", nInstance ); + fprintf( mpFile, " unknown_%" SAL_PRIdINT32 "=\"", nInstance ); dump( aAny ); fprintf( mpFile, "\"" ); } |