summaryrefslogtreecommitdiff
path: root/sd/source
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 /sd/source
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 'sd/source')
-rw-r--r--sd/source/filter/eppt/eppt.cxx6
-rw-r--r--sd/source/filter/html/pubdlg.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx
index fc6dce12a3e5..a05169c5fee9 100644
--- a/sd/source/filter/eppt/eppt.cxx
+++ b/sd/source/filter/eppt/eppt.cxx
@@ -1451,13 +1451,13 @@ extern "C" SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL SaveVBA( SfxObjectShell& rDocS
aMSVBas.SaveOrDelMSVBAStorage( true, "_MS_VBA_Overhead" );
tools::SvRef<SotStorage> xOverhead = xDest->OpenSotStorage( "_MS_VBA_Overhead" );
- if ( xOverhead.is() && ( xOverhead->GetError() == SVSTREAM_OK ) )
+ if ( xOverhead.is() && ( xOverhead->GetError() == ERRCODE_NONE ) )
{
tools::SvRef<SotStorage> xOverhead2 = xOverhead->OpenSotStorage( "_MS_VBA_Overhead" );
- if ( xOverhead2.is() && ( xOverhead2->GetError() == SVSTREAM_OK ) )
+ if ( xOverhead2.is() && ( xOverhead2->GetError() == ERRCODE_NONE ) )
{
tools::SvRef<SotStorageStream> xTemp = xOverhead2->OpenSotStream( "_MS_VBA_Overhead2" );
- if ( xTemp.is() && ( xTemp->GetError() == SVSTREAM_OK ) )
+ if ( xTemp.is() && ( xTemp->GetError() == ERRCODE_NONE ) )
{
sal_uInt32 nLen = xTemp->GetSize();
if ( nLen )
diff --git a/sd/source/filter/html/pubdlg.cxx b/sd/source/filter/html/pubdlg.cxx
index 39de03af59c7..22697b75a581 100644
--- a/sd/source/filter/html/pubdlg.cxx
+++ b/sd/source/filter/html/pubdlg.cxx
@@ -1543,7 +1543,7 @@ void SdPublishingDlg::Load()
pStream->ReadUInt16( nDesigns );
for( sal_uInt16 nIndex = 0;
- pStream->GetError() == SVSTREAM_OK && nIndex < nDesigns;
+ pStream->GetError() == ERRCODE_NONE && nIndex < nDesigns;
nIndex++ )
{
SdPublishingDesign aDesign;
@@ -1576,7 +1576,7 @@ bool SdPublishingDlg::Save()
pStream->WriteUInt16( nDesigns );
for( sal_uInt16 nIndex = 0;
- pStream->GetError() == SVSTREAM_OK && nIndex < nDesigns;
+ pStream->GetError() == ERRCODE_NONE && nIndex < nDesigns;
nIndex++ )
WriteSdPublishingDesign( *pStream, m_aDesignList[nIndex] );
}