summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/options/optdict.cxx4
-rw-r--r--cui/source/tabpages/backgrnd.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx
index a28bd946c698..2747233af4e1 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -180,8 +180,8 @@ IMPL_LINK_NOARG(SvxNewDictionaryDialog, OKHdl_Impl, Button*, void)
// error: couldn't create new dictionary
SfxErrorContext aContext( ERRCTX_SVX_LINGU_DICTIONARY, OUString(),
this, RID_SVXERRCTX, &CUI_MGR() );
- ErrorHandler::HandleError( *new StringErrorInfo(
- ERRCODE_SVX_LINGU_DICT_NOTWRITEABLE, sDict ) );
+ ErrorHandler::HandleError( (new StringErrorInfo(
+ ERRCODE_SVX_LINGU_DICT_NOTWRITEABLE, sDict ))->GetErrorCode() );
EndDialog();
}
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx
index f781f0c7e715..16981f57c41e 100644
--- a/cui/source/tabpages/backgrnd.cxx
+++ b/cui/source/tabpages/backgrnd.cxx
@@ -973,8 +973,8 @@ void SvxBackgroundTabPage::RaiseLoadError_Impl()
&CUI_MGR() );
ErrorHandler::HandleError(
- *new StringErrorInfo( ERRCODE_SVX_GRAPHIC_NOTREADABLE,
- aBgdGraphicPath ) );
+ (new StringErrorInfo( ERRCODE_SVX_GRAPHIC_NOTREADABLE,
+ aBgdGraphicPath ))->GetErrorCode() );
}
bool SvxBackgroundTabPage::LoadLinkedGraphic_Impl()