diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-11 11:11:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-05-11 11:12:30 +0200 |
commit | 08234bab5e3287724344cd127ea88090561d9fc0 (patch) | |
tree | 5941786567e0da48741f5a75557d0a29a89e525f /cui/source/dialogs/dlgname.cxx | |
parent | 307ab87fecb702b3aa72525ce4556b9c49fa5515 (diff) |
Convert MESS_BTN to scoped enum
Change-Id: I9332216f58268b20b3b8e9488471279d70c519ad
Diffstat (limited to 'cui/source/dialogs/dlgname.cxx')
-rw-r--r-- | cui/source/dialogs/dlgname.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cui/source/dialogs/dlgname.cxx b/cui/source/dialogs/dlgname.cxx index 3ff72b728f6a..6772f445f3ea 100644 --- a/cui/source/dialogs/dlgname.cxx +++ b/cui/source/dialogs/dlgname.cxx @@ -202,20 +202,17 @@ IMPL_LINK_NOARG_TYPED(SvxMessDialog, Button2Hdl, Button*, void) /*************************************************************************/ -void SvxMessDialog::SetButtonText( sal_uInt16 nBtnId, const OUString& rNewTxt ) +void SvxMessDialog::SetButtonText( SvxMessDialogButton nBtnId, const OUString& rNewTxt ) { switch ( nBtnId ) { - case MESS_BTN_1: + case SvxMessDialogButton::N1: pBtn1->SetText( rNewTxt ); break; - case MESS_BTN_2: + case SvxMessDialogButton::N2: pBtn2->SetText( rNewTxt ); break; - - default: - OSL_FAIL( "Invalid button number!!!" ); } } |