diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-05-01 10:08:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-01 14:42:04 +0100 |
commit | 26bda9f4a82c9b1956a10e3dc52a99bc2f850ada (patch) | |
tree | 37766d78617725fdf87084cebb13a93111b35a6c /sd/source/ui/func | |
parent | 1680b036c5a9bf50b10580ee995f91ca6f873ef5 (diff) |
convert message box return types to an enum
Change-Id: I20889dc94aac1119c1ee9da873ce911887c1c335
Diffstat (limited to 'sd/source/ui/func')
-rw-r--r-- | sd/source/ui/func/fuoaprms.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/func/fuprlout.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/func/fuoaprms.cxx b/sd/source/ui/func/fuoaprms.cxx index bb031057ad82..3efc8aecf4eb 100644 --- a/sd/source/ui/func/fuoaprms.cxx +++ b/sd/source/ui/func/fuoaprms.cxx @@ -450,7 +450,7 @@ void FuObjectAnimationParameters::DoExecute( SfxRequest& rReq ) SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); SfxAbstractDialog* pDlg = pFact ? pFact->CreatSdActionDialog( NULL, &aSet, mpView ) : 0; - sal_uInt16 nResult = pDlg ? pDlg->Execute() : RET_CANCEL; + short nResult = pDlg ? pDlg->Execute() : static_cast<short>(RET_CANCEL); if( nResult == RET_OK ) { diff --git a/sd/source/ui/func/fuprlout.cxx b/sd/source/ui/func/fuprlout.cxx index 9df2ef1ee815..67ae4cae1c7d 100644 --- a/sd/source/ui/func/fuprlout.cxx +++ b/sd/source/ui/func/fuprlout.cxx @@ -149,7 +149,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); AbstractSdPresLayoutDlg* pDlg = pFact ? pFact->CreateSdPresLayoutDlg(mpDocSh, NULL, aSet ) : 0; - sal_uInt16 nResult = pDlg ? pDlg->Execute() : RET_CANCEL; + sal_uInt16 nResult = pDlg ? pDlg->Execute() : static_cast<short>(RET_CANCEL); switch (nResult) { |