From 8130714148d58dd2bf1ef12dcc6dd6d5838be0d1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 5 Jan 2015 08:47:31 +0200 Subject: fdo#84938: replace NUMBERFORMAT_INT_ constants with 'enum class' Change-Id: I9c67de31f5571b282adc132d973b79bccb35fdc9 --- svtools/source/misc/imap.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'svtools') diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx index 3f687c2a51e6..6ff356b22ade 100644 --- a/svtools/source/misc/imap.cxx +++ b/svtools/source/misc/imap.cxx @@ -945,11 +945,11 @@ void ImageMap::Write( SvStream& rOStm, const OUString& rBaseURL ) const { IMapCompat* pCompat; OUString aImageName( GetName() ); - sal_uInt16 nOldFormat = rOStm.GetNumberFormatInt(); - sal_uInt16 nCount = (sal_uInt16) GetIMapObjectCount(); + SvStreamEndian nOldFormat = rOStm.GetEndian(); + sal_uInt16 nCount = (sal_uInt16) GetIMapObjectCount(); const rtl_TextEncoding eEncoding = osl_getThreadTextEncoding(); //vomit! - rOStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN ); + rOStm.SetEndian( SvStreamEndian::LITTLE ); // write MagicCode rOStm.WriteCharPtr( IMAPMAGIC ); @@ -967,7 +967,7 @@ void ImageMap::Write( SvStream& rOStm, const OUString& rBaseURL ) const ImpWriteImageMap( rOStm, rBaseURL ); - rOStm.SetNumberFormatInt( nOldFormat ); + rOStm.SetEndian( nOldFormat ); } @@ -979,11 +979,11 @@ void ImageMap::Write( SvStream& rOStm, const OUString& rBaseURL ) const void ImageMap::Read( SvStream& rIStm, const OUString& rBaseURL ) { - char cMagic[6]; - sal_uInt16 nOldFormat = rIStm.GetNumberFormatInt(); + char cMagic[6]; + SvStreamEndian nOldFormat = rIStm.GetEndian(); sal_uInt16 nCount; - rIStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN ); + rIStm.SetEndian( SvStreamEndian::LITTLE ); rIStm.Read( cMagic, sizeof( cMagic ) ); if ( !memcmp( cMagic, IMAPMAGIC, sizeof( cMagic ) ) ) @@ -1012,7 +1012,7 @@ void ImageMap::Read( SvStream& rIStm, const OUString& rBaseURL ) else rIStm.SetError( SVSTREAM_GENERALERROR ); - rIStm.SetNumberFormatInt( nOldFormat ); + rIStm.SetEndian( nOldFormat ); } -- cgit