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 /editeng/source/misc/svxacorr.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 'editeng/source/misc/svxacorr.cxx')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 66357fef4ad0..e0472dd7caea 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1989,7 +1989,7 @@ void SvxAutoCorrectLanguageLists::LoadXMLExceptList_Imp( { tools::SvRef<SotStorageStream> xStrm = rStg->OpenSotStream( sStrmName, ( StreamMode::READ | StreamMode::SHARE_DENYWRITE | StreamMode::NOCREATE ) ); - if( SVSTREAM_OK != xStrm->GetError()) + if( ERRCODE_NONE != xStrm->GetError()) { xStrm.clear(); rStg.clear(); @@ -2084,13 +2084,13 @@ void SvxAutoCorrectLanguageLists::SaveExceptList_Imp( xExp->exportDoc( XML_BLOCK_LIST ); xStrm->Commit(); - if( xStrm->GetError() == SVSTREAM_OK ) + if( xStrm->GetError() == ERRCODE_NONE ) { xStrm.clear(); if (!bConvert) { rStg->Commit(); - if( SVSTREAM_OK != rStg->GetError() ) + if( ERRCODE_NONE != rStg->GetError() ) { rStg->Remove( sStrmName ); rStg->Commit(); @@ -2312,7 +2312,7 @@ void SvxAutoCorrectLanguageLists::RemoveStream_Imp( const OUString& rName ) if( sShareAutoCorrFile != sUserAutoCorrFile ) { tools::SvRef<SotStorage> xStg = new SotStorage( sUserAutoCorrFile, StreamMode::READWRITE ); - if( xStg.is() && SVSTREAM_OK == xStg->GetError() && + if( xStg.is() && ERRCODE_NONE == xStg->GetError() && xStg->IsStream( rName ) ) { xStg->Remove( rName ); @@ -2449,12 +2449,12 @@ bool SvxAutoCorrectLanguageLists::MakeBlocklist_Imp( SotStorage& rStg ) xExp->exportDoc( XML_BLOCK_LIST ); refList->Commit(); - bRet = SVSTREAM_OK == refList->GetError(); + bRet = ERRCODE_NONE == refList->GetError(); if( bRet ) { refList.clear(); rStg.Commit(); - if( SVSTREAM_OK != rStg.GetError() ) + if( ERRCODE_NONE != rStg.GetError() ) { bRemove = true; bRet = false; @@ -2482,7 +2482,7 @@ bool SvxAutoCorrectLanguageLists::MakeCombinedChanges( std::vector<SvxAutocorrWo MakeUserStorage_Impl(); tools::SvRef<SotStorage> xStorage = new SotStorage( sUserAutoCorrFile, StreamMode::READWRITE ); - bool bRet = xStorage.is() && SVSTREAM_OK == xStorage->GetError(); + bool bRet = xStorage.is() && ERRCODE_NONE == xStorage->GetError(); if( bRet ) { @@ -2554,7 +2554,7 @@ bool SvxAutoCorrectLanguageLists::PutText( const OUString& rShort, const OUStrin MakeUserStorage_Impl(); tools::SvRef<SotStorage> xStg = new SotStorage( sUserAutoCorrFile, StreamMode::READWRITE ); - bool bRet = xStg.is() && SVSTREAM_OK == xStg->GetError(); + bool bRet = xStg.is() && ERRCODE_NONE == xStg->GetError(); // Update the word list if( bRet ) |