summaryrefslogtreecommitdiff
path: root/starmath
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 /starmath
parent54942f0d093e42b06c7a6c10e93d632bfe0c6519 (diff)
fdo#84938: replace NUMBERFORMAT_INT_ constants with 'enum class'
Change-Id: I9c67de31f5571b282adc132d973b79bccb35fdc9
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/eqnolefilehdr.cxx2
-rw-r--r--starmath/source/mathtype.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/eqnolefilehdr.cxx b/starmath/source/eqnolefilehdr.cxx
index 75d180f1587b..d1d7428af8cd 100644
--- a/starmath/source/eqnolefilehdr.cxx
+++ b/starmath/source/eqnolefilehdr.cxx
@@ -38,7 +38,7 @@ bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion )
if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError()))
return bSuccess;
SvStorageStream *pS = &xSrc;
- pS->SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
+ pS->SetEndian( SvStreamEndian::LITTLE );
EQNOLEFILEHDR aHdr;
aHdr.Read(pS);
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 21800ce0e331..bdbc36ebc391 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -560,7 +560,7 @@ int MathType::Parse(SotStorage *pStor)
if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError()))
return 0;
pS = &xSrc;
- pS->SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
+ pS->SetEndian( SvStreamEndian::LITTLE );
EQNOLEFILEHDR aHdr;
aHdr.Read(pS);
@@ -1934,7 +1934,7 @@ int MathType::ConvertFromStarMath( SfxMedium& rMedium )
return 0;
pS = &xSrc;
- pS->SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
+ pS->SetEndian( SvStreamEndian::LITTLE );
pS->SeekRel(EQNOLEFILEHDR_SIZE); //Skip 28byte Header and fill it in later
pS->WriteUChar( sal_uInt8(0x03) );