summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/laycache.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 /sw/source/core/layout/laycache.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 'sw/source/core/layout/laycache.cxx')
-rw-r--r--sw/source/core/layout/laycache.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx
index 74653f8db268..39cfc157aae7 100644
--- a/sw/source/core/layout/laycache.cxx
+++ b/sw/source/core/layout/laycache.cxx
@@ -1054,7 +1054,7 @@ bool SwLayCacheIoImpl::OpenRec( sal_uInt8 cType )
pStream->ReadUInt32( nVal );
sal_uInt8 cRecTyp = (sal_uInt8)nVal;
if( !nVal || cRecTyp != cType ||
- pStream->GetErrorCode() != SVSTREAM_OK || pStream->IsEof() )
+ pStream->GetErrorCode() != ERRCODE_NONE || pStream->IsEof() )
{
OSL_ENSURE( nVal, "OpenRec: Record-Header is 0" );
OSL_ENSURE( cRecTyp == cType, "OpenRec: Wrong Record Type" );
@@ -1087,7 +1087,7 @@ bool SwLayCacheIoImpl::CloseRec()
sal_uInt32 nVal = ( nSize << 8 ) | aRecords.back().type;
pStream->WriteUInt32( nVal );
pStream->Seek( nPos );
- if( pStream->GetError() != SVSTREAM_OK )
+ if( pStream->GetError() != ERRCODE_NONE )
bRes = false;
}
else
@@ -1100,7 +1100,7 @@ bool SwLayCacheIoImpl::CloseRec()
if( n < nPos )
bRes = false;
}
- if( pStream->GetErrorCode() != SVSTREAM_OK )
+ if( pStream->GetErrorCode() != ERRCODE_NONE )
bRes = false;
}
aRecords.pop_back();
@@ -1133,7 +1133,7 @@ sal_uInt8 SwLayCacheIoImpl::Peek()
sal_uInt32 nPos = pStream->Tell();
pStream->ReadUChar( c );
pStream->Seek( nPos );
- if( pStream->GetErrorCode() != SVSTREAM_OK )
+ if( pStream->GetErrorCode() != ERRCODE_NONE )
{
c = 0;
bError = true;