diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-05 15:02:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-06 08:15:57 +0200 |
commit | de8caac6bee3237ba634e7dce2e4635dc8bba57b (patch) | |
tree | 9260fb99b4f6de1619df46a11aa388ad8d42db63 /basic | |
parent | 690f2f5c4633780734a63305fd16733fb1344c74 (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 'basic')
-rw-r--r-- | basic/source/classes/image.cxx | 4 | ||||
-rw-r--r-- | basic/source/runtime/iosys.cxx | 2 | ||||
-rw-r--r-- | basic/source/runtime/methods.cxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxarray.cxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxbase.cxx | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx index e240c17d7854..db06dc9b5d2b 100644 --- a/basic/source/classes/image.cxx +++ b/basic/source/classes/image.cxx @@ -79,7 +79,7 @@ void SbiImage::Clear() bool SbiGood( SvStream& r ) { - return !r.IsEof() && r.GetError() == SVSTREAM_OK; + return !r.IsEof() && r.GetError() == ERRCODE_NONE; } // Open Record @@ -142,7 +142,7 @@ bool SbiImage::Load( SvStream& r, sal_uInt32& nVersion ) r.ReadUInt16( nSign ).ReadUInt32( nLen ).ReadUInt16( nCount ); nNext += nLen + 8; - if( r.GetError() == SVSTREAM_OK ) + if( r.GetError() == ERRCODE_NONE ) { switch( static_cast<FileOffset>( nSign ) ) { diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index 24a2bbdf1871..24ea0cba4f3c 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -144,7 +144,7 @@ void SbiStream::MapError() { switch( pStrm->GetError() ) { - case SVSTREAM_OK: + case ERRCODE_NONE: nError = 0; break; case SVSTREAM_FILE_NOT_FOUND: diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index a2c3e6ce940a..92a50b638935 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -4760,7 +4760,7 @@ RTLFUNC(DumpAllObjects) StreamMode::WRITE | StreamMode::TRUNC ); p->Dump( aStrm, rPar.Get( 2 )->GetBool() ); aStrm.Close(); - if( aStrm.GetError() != SVSTREAM_OK ) + if( aStrm.GetError() != ERRCODE_NONE ) { StarBASIC::Error( ERRCODE_BASIC_IO_ERROR ); } diff --git a/basic/source/sbx/sbxarray.cxx b/basic/source/sbx/sbxarray.cxx index 06d4ebb8ab89..db4655dace63 100644 --- a/basic/source/sbx/sbxarray.cxx +++ b/basic/source/sbx/sbxarray.cxx @@ -727,7 +727,7 @@ bool SbxDimArray::LoadData( SvStream& rStrm, sal_uInt16 nVer ) { short nDimension; rStrm.ReadInt16( nDimension ); - for( short i = 0; i < nDimension && rStrm.GetError() == SVSTREAM_OK; i++ ) + for( short i = 0; i < nDimension && rStrm.GetError() == ERRCODE_NONE; i++ ) { sal_Int16 lb(0), ub(0); rStrm.ReadInt16( lb ).ReadInt16( ub ); diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx index 2b4944aa3754..6c8148e00022 100644 --- a/basic/source/sbx/sbxbase.cxx +++ b/basic/source/sbx/sbxbase.cxx @@ -247,7 +247,7 @@ bool SbxBase::Store( SvStream& rStrm ) rStrm.Seek( nOldPos ); rStrm.WriteUInt32( nNewPos - nOldPos ); rStrm.Seek( nNewPos ); - if( rStrm.GetError() != SVSTREAM_OK ) + if( rStrm.GetError() != ERRCODE_NONE ) bRes = false; if( bRes ) bRes = true; |