diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-05 08:47:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-05 12:57:18 +0200 |
commit | 8130714148d58dd2bf1ef12dcc6dd6d5838be0d1 (patch) | |
tree | bf8cf91d9837b9d03e1e3e336be7eb35667d4de9 /starmath | |
parent | 54942f0d093e42b06c7a6c10e93d632bfe0c6519 (diff) |
fdo#84938: replace NUMBERFORMAT_INT_ constants with 'enum class'
Change-Id: I9c67de31f5571b282adc132d973b79bccb35fdc9
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/eqnolefilehdr.cxx | 2 | ||||
-rw-r--r-- | starmath/source/mathtype.cxx | 4 |
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) ); |