summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgdir.cxx
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 /sot/source/sdstor/stgdir.cxx
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 'sot/source/sdstor/stgdir.cxx')
-rw-r--r--sot/source/sdstor/stgdir.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index 7d496223e29e..bc0d042065ef 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -322,7 +322,7 @@ bool StgDirEntry::SetSize( sal_Int32 nNewSize )
{
m_pTmpStrm->SetSize( nNewSize );
m_pStgStrm->GetIo().SetError( m_pTmpStrm->GetError() );
- return m_pTmpStrm->GetError() == SVSTREAM_OK;
+ return m_pTmpStrm->GetError() == ERRCODE_NONE;
}
else
{
@@ -561,7 +561,7 @@ bool StgDirEntry::Strm2Tmp()
{
// It was already committed once
m_pTmpStrm = new StgTmpStrm;
- if( m_pTmpStrm->GetError() == SVSTREAM_OK && m_pTmpStrm->Copy( *m_pCurStrm ) )
+ if( m_pTmpStrm->GetError() == ERRCODE_NONE && m_pTmpStrm->Copy( *m_pCurStrm ) )
return true;
n = 1; // indicates error
}
@@ -569,7 +569,7 @@ bool StgDirEntry::Strm2Tmp()
{
n = m_aEntry.GetSize();
m_pTmpStrm = new StgTmpStrm( n );
- if( m_pTmpStrm->GetError() == SVSTREAM_OK )
+ if( m_pTmpStrm->GetError() == ERRCODE_NONE )
{
if( n )
{