summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-05 08:47:31 +0200
committerNoel Grandin <noel@peralex.com>2015-01-05 12:57:18 +0200
commit8130714148d58dd2bf1ef12dcc6dd6d5838be0d1 (patch)
treebf8cf91d9837b9d03e1e3e336be7eb35667d4de9 /svtools
parent54942f0d093e42b06c7a6c10e93d632bfe0c6519 (diff)
fdo#84938: replace NUMBERFORMAT_INT_ constants with 'enum class'
Change-Id: I9c67de31f5571b282adc132d973b79bccb35fdc9
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/imap.cxx16
1 files changed, 8 insertions, 8 deletions
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 );
}