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 /sot/source/sdstor/stgole.cxx | |
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 'sot/source/sdstor/stgole.cxx')
-rw-r--r-- | sot/source/sdstor/stgole.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx index 15907d4d8502..a00e706e38de 100644 --- a/sot/source/sdstor/stgole.cxx +++ b/sot/source/sdstor/stgole.cxx @@ -105,7 +105,7 @@ bool StgCompObjStream::Load() memset( &m_aClsId, 0, sizeof( ClsId ) ); m_nCbFormat = SotClipboardFormatId::NONE; m_aUserName.clear(); - if( GetError() != SVSTREAM_OK ) + if( GetError() != ERRCODE_NONE ) return false; Seek( 8L ); // skip the first part sal_Int32 nMarker = 0; @@ -137,12 +137,12 @@ bool StgCompObjStream::Load() SetError( SVSTREAM_GENERALERROR ); } } - return GetError() == SVSTREAM_OK; + return GetError() == ERRCODE_NONE; } bool StgCompObjStream::Store() { - if( GetError() != SVSTREAM_OK ) + if( GetError() != ERRCODE_NONE ) return false; Seek( 0L ); OString aAsciiUserName(OUStringToOString(m_aUserName, RTL_TEXTENCODING_MS_1252)); @@ -157,7 +157,7 @@ bool StgCompObjStream::Store() WriteClipboardFormat( *this, m_nCbFormat ); WriteInt32( 0 ); // terminator Commit(); - return GetError() == SVSTREAM_OK; + return GetError() == ERRCODE_NONE; } /////////////////////////// class StgOleStream @@ -169,7 +169,7 @@ StgOleStream::StgOleStream( BaseStorage& rStg ) bool StgOleStream::Store() { - if( GetError() != SVSTREAM_OK ) + if( GetError() != ERRCODE_NONE ) return false; Seek( 0L ); @@ -179,7 +179,7 @@ bool StgOleStream::Store() WriteInt32( 0 ); // reserved WriteInt32( 0 ); // Moniker 1 Commit(); - return GetError() == SVSTREAM_OK; + return GetError() == ERRCODE_NONE; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |