diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-06 16:02:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-07 09:12:58 +0000 |
commit | b5e3f8a5fa98a249ecd50021c33cf2a5c7a3b4fc (patch) | |
tree | 7f09b0c1897bba078282fe7e78911c59f1118f04 /sw/source/filter/xml/wrtxml.cxx | |
parent | bcb8aaf6522745b236dead5963b24ecc6aa2eac7 (diff) |
remove ugly operator* in DynamicErrorInfo
I can see why you'd want to hide this horrible tunnelling of
information with objects registering themselves in a global list.
Urrgh.
Change-Id: Ib151a0d2d5a4508dc456e52883e488ce56d9a095
Reviewed-on: https://gerrit.libreoffice.org/33984
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/wrtxml.cxx')
-rw-r--r-- | sw/source/filter/xml/wrtxml.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx index 0447ac459f75..a2494ef1f221 100644 --- a/sw/source/filter/xml/wrtxml.cxx +++ b/sw/source/filter/xml/wrtxml.cxx @@ -413,15 +413,15 @@ sal_uInt32 SwXMLWriter::Write_( const uno::Reference < task::XStatusIndicator >& if( bErr ) { if( !sErrFile.isEmpty() ) - return *new StringErrorInfo( ERR_WRITE_ERROR_FILE, sErrFile, - ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR ); + return (new StringErrorInfo( ERR_WRITE_ERROR_FILE, sErrFile, + ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR ))->GetErrorCode(); return ERR_SWG_WRITE_ERROR; } else if( bWarn ) { if( !sWarnFile.isEmpty() ) - return *new StringErrorInfo( WARN_WRITE_ERROR_FILE, sWarnFile, - ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR ); + return (new StringErrorInfo( WARN_WRITE_ERROR_FILE, sWarnFile, + ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR ))->GetErrorCode(); return WARN_SWG_FEATURES_LOST; } |