From a6aa57ff591fdf3d834a7e0b1e9e2ebad1d87c5c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Jun 2017 13:34:55 +0200 Subject: use ERRCODE_NONE instead of 0 peeling off a small chunk of my ErrCode strong_int conversion Change-Id: Idc89e8496083beed7608cba705cd981139eb7111 Reviewed-on: https://gerrit.libreoffice.org/38777 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/filter/xml/xmlfilter.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dbaccess/source/filter/xml') diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx index d84704722eee..5b2e76546b03 100644 --- a/dbaccess/source/filter/xml/xmlfilter.cxx +++ b/dbaccess/source/filter/xml/xmlfilter.cxx @@ -133,7 +133,7 @@ sal_Int32 ReadThroughComponent( } // success! - return 0; + return ERRCODE_NONE; } @@ -165,12 +165,12 @@ sal_Int32 ReadThroughComponent( // do we even have an alternative name? if ( nullptr == pCompatibilityStreamName ) - return 0; + return ERRCODE_NONE; // if so, does the stream exist? sStreamName = OUString::createFromAscii(pCompatibilityStreamName); if ( !xStorage->hasByName( sStreamName ) || !xStorage->isStreamElement( sStreamName ) ) - return 0; + return ERRCODE_NONE; } // get input stream @@ -340,7 +340,7 @@ bool ODBFilter::implImport( const Sequence< PropertyValue >& rDescriptor ) ,this ); - if ( nRet == 0 ) + if ( nRet == ERRCODE_NONE ) nRet = ReadThroughComponent( xStorage ,xModel ,"content.xml" @@ -349,7 +349,7 @@ bool ODBFilter::implImport( const Sequence< PropertyValue >& rDescriptor ) ,this ); - bRet = nRet == 0; + bRet = nRet == ERRCODE_NONE; if ( bRet ) { -- cgit