diff options
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/app/error.src | 2 | ||||
-rw-r--r-- | sw/source/ui/dbui/mmresultdialogs.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/app/error.src b/sw/source/ui/app/error.src index bca00c9503dc..35d774455b5f 100644 --- a/sw/source/ui/app/error.src +++ b/sw/source/ui/app/error.src @@ -36,7 +36,7 @@ String STR_ERROR_CLPBRD_READ Text [ en-US ] = "Error reading from the clipboard." ; }; -#define ERR_CODE( class, err ) (class | (err - ERROR_SW_BASE)) +#define ERR_CODE( class, err ) (class | (err - ERRCODE_AREA_SW)) #define WARN_CODE( class, err ) (class | ( err - WARN_SW_BASE)) StringArray RID_SW_ERRHDL diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx index 366a42be3e78..2004445fc7c9 100644 --- a/sw/source/ui/dbui/mmresultdialogs.cxx +++ b/sw/source/ui/dbui/mmresultdialogs.cxx @@ -593,14 +593,14 @@ IMPL_LINK(SwMMResultSaveDialog, SaveOutputHdl_Impl, Button*, pButton, void) pValues[0].Value <<= sFilter; uno::Reference< frame::XStorable > xStore( pTargetView->GetDocShell()->GetModel(), uno::UNO_QUERY); - sal_uInt32 nErrorCode = ERRCODE_NONE; + ErrCode nErrorCode = ERRCODE_NONE; try { xStore->storeToURL( sPath, aValues ); } catch (const task::ErrorCodeIOException& rErrorEx) { - nErrorCode = (sal_uInt32)rErrorEx.ErrCode; + nErrorCode = ErrCode(rErrorEx.ErrCode); } catch (const Exception&) { @@ -650,14 +650,14 @@ IMPL_LINK(SwMMResultSaveDialog, SaveOutputHdl_Impl, Button*, pButton, void) pValues[0].Value <<= pSfxFlt->GetFilterName(); uno::Reference< frame::XStorable > xStore( pTargetView->GetDocShell()->GetModel(), uno::UNO_QUERY); - sal_uInt32 nErrorCode = ERRCODE_NONE; + ErrCode nErrorCode = ERRCODE_NONE; try { xStore->storeToURL( sTargetTempURL, aValues ); } catch (const task::ErrorCodeIOException& rErrorEx) { - nErrorCode = (sal_uInt32)rErrorEx.ErrCode; + nErrorCode = ErrCode(rErrorEx.ErrCode); } catch (const Exception&) { |