From de8caac6bee3237ba634e7dce2e4635dc8bba57b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 5 Jun 2017 15:02:51 +0200 Subject: 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 Reviewed-by: Noel Grandin --- basic/source/classes/image.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic/source/classes') 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( nSign ) ) { -- cgit lue='distro/cib/libreoffice-5-1'>distro/cib/libreoffice-5-1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2015-12-03Add build toolchain to upload LibreOffice API to Maven CentralDavid Ostrovsky