diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-06-02 14:30:41 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-02 10:52:45 +0000 |
commit | 53bc54209388f608521de48e289226188c138cec (patch) | |
tree | 8b95a560f130c0169b729a4f64a6fe3401d4b5ac /starmath | |
parent | f52bbd2bab18c45c687ee466d1caa57a4d515785 (diff) |
STREAM_STD_READ already includes StreamMode::NOCREATE
Change-Id: Ib8c81056619a383cedc828b945c1802ff1ce42ca
Reviewed-on: https://gerrit.libreoffice.org/25802
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/eqnolefilehdr.cxx | 2 | ||||
-rw-r--r-- | starmath/source/mathtype.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/eqnolefilehdr.cxx b/starmath/source/eqnolefilehdr.cxx index 63e9d090dcc9..0465149e0090 100644 --- a/starmath/source/eqnolefilehdr.cxx +++ b/starmath/source/eqnolefilehdr.cxx @@ -31,7 +31,7 @@ bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion ) tools::SvRef<SotStorageStream> xSrc = pStor->OpenSotStream( "Equation Native", - STREAM_STD_READ | StreamMode::NOCREATE); + STREAM_STD_READ); if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError())) return bSuccess; SotStorageStream *pS = &xSrc; diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index d18ef6386445..dd61e267fd63 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -557,7 +557,7 @@ bool MathType::Parse(SotStorage *pStor) { tools::SvRef<SotStorageStream> xSrc = pStor->OpenSotStream( "Equation Native", - STREAM_STD_READ | StreamMode::NOCREATE); + STREAM_STD_READ); if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError())) return false; pS = &xSrc; |