diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-05 15:52:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-06 08:16:22 +0200 |
commit | e4ffd9388968c717fe4c21222f322fe1c375c434 (patch) | |
tree | d7156419127734c271fc483860c6df7de3803034 /sc | |
parent | 86cefcf4dfeefc9c08dc1b6d30f9920db52bcc99 (diff) |
replace SCERR_NONE with ERRORCODE_NONE
since the first is #define'd to the second, and offers no extra value
Change-Id: I8268b4969ccdc090eeb8cd877e476bb32d2ddd1b
Reviewed-on: https://gerrit.libreoffice.org/38410
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/scerrors.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlwrap.cxx | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sc/inc/scerrors.hxx b/sc/inc/scerrors.hxx index a1f7493605bd..3555a9f8a171 100644 --- a/sc/inc/scerrors.hxx +++ b/sc/inc/scerrors.hxx @@ -22,8 +22,6 @@ #include <vcl/errcode.hxx> -#define SCERR_NONE 0 - // ERRCODE_CLASS_READ - file related, displays "Read-Error" in MsgBox #define SCERR_IMPORT_CONNECT ( 1 | ERRCODE_CLASS_READ | ERRCODE_AREA_SC ) #define SCERR_IMPORT_OPEN ( 2 | ERRCODE_CLASS_READ | ERRCODE_AREA_SC ) diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index 8c6cd1b00bc3..0e702d0e5a13 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -122,7 +122,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(const uno::Reference<uno::XCo sStream = sOldDocName; } else - return SCERR_NONE; + return ERRCODE_NONE; aParserInput.aInputStream = xDocStream->getInputStream(); uno::Reference < beans::XPropertySet > xSet( xDocStream, uno::UNO_QUERY ); @@ -157,7 +157,7 @@ sal_uInt32 ScXMLImportWrapper::ImportFromComponent(const uno::Reference<uno::XCo xInfoSet->setPropertyValue( sPropName, uno::makeAny( sStream ) ); } - sal_uInt32 nReturn = SCERR_NONE; + sal_uInt32 nReturn = ERRCODE_NONE; rDoc.SetRangeOverflowType(0); // is modified by the importer if limits are exceeded uno::Reference<xml::sax::XDocumentHandler> xDocHandler( |