summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-05 15:02:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-06 08:15:57 +0200
commitde8caac6bee3237ba634e7dce2e4635dc8bba57b (patch)
tree9260fb99b4f6de1619df46a11aa388ad8d42db63 /starmath
parent690f2f5c4633780734a63305fd16733fb1344c74 (diff)
replace SVSTREAM_OK with ERRCODE_NONE
since the first is #define'd to the second, and offers no extra value Change-Id: I2c67e09ea3aa5361b8e7dfe7a20858c6ae054450 Reviewed-on: https://gerrit.libreoffice.org/38406 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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 aa6fdaca6d02..f211f1aaa942 100644
--- a/starmath/source/eqnolefilehdr.cxx
+++ b/starmath/source/eqnolefilehdr.cxx
@@ -32,7 +32,7 @@ bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion )
tools::SvRef<SotStorageStream> xSrc = pStor->OpenSotStream(
"Equation Native",
StreamMode::STD_READ);
- if ( (!xSrc.is()) || (SVSTREAM_OK != xSrc->GetError()))
+ if ( (!xSrc.is()) || (ERRCODE_NONE != xSrc->GetError()))
return bSuccess;
SotStorageStream *pS = xSrc.get();
pS->SetEndian( SvStreamEndian::LITTLE );
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 4a4f84a4dacf..1fc3ba3b8fdb 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -558,7 +558,7 @@ bool MathType::Parse(SotStorage *pStor)
tools::SvRef<SotStorageStream> xSrc = pStor->OpenSotStream(
"Equation Native",
StreamMode::STD_READ);
- if ( (!xSrc.is()) || (SVSTREAM_OK != xSrc->GetError()))
+ if ( (!xSrc.is()) || (ERRCODE_NONE != xSrc->GetError()))
return false;
pS = xSrc.get();
pS->SetEndian( SvStreamEndian::LITTLE );
@@ -1922,7 +1922,7 @@ bool MathType::ConvertFromStarMath( SfxMedium& rMedium )
xStor2.clear();
tools::SvRef<SotStorageStream> xSrc = pStor->OpenSotStream("Equation Native");
- if ( (!xSrc.is()) || (SVSTREAM_OK != xSrc->GetError()))
+ if ( (!xSrc.is()) || (ERRCODE_NONE != xSrc->GetError()))
return false;
pS = xSrc.get();