diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 20:31:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 21:28:05 +0100 |
commit | 4ebeb52a234d4e5c8de0de4b02bf3def5351d735 (patch) | |
tree | 90f4e9b445b27dbe8d2dae58d5a9eb38a9022bfa | |
parent | 29bd1673e92f1da1c360a77ea3a029db67d7cebe (diff) |
Dialog::Execute does not return bool
Change-Id: I4d1c0b6f0586e2ff7adc5aae524a14c9eaa2dc3b
-rw-r--r-- | cui/source/customize/cfg.cxx | 39 | ||||
-rw-r--r-- | cui/source/options/optaboutconfig.cxx | 3 |
2 files changed, 11 insertions, 31 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 590d9de2b367..87414e4249ef 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -2516,9 +2516,7 @@ IMPL_LINK( SvxMenuConfigPage, MenuSelectHdl, MenuButton *, pButton ) pNameDialog->SetHelpId( HID_SVX_CONFIG_RENAME_MENU ); pNameDialog->SetText( CUI_RESSTR( RID_SVXSTR_RENAME_MENU ) ); - bool ret = pNameDialog->Execute(); - - if ( ret == RET_OK ) { + if ( pNameDialog->Execute() == RET_OK ) { pNameDialog->GetName( aNewName ); pMenuData->SetName( aNewName ); @@ -2540,9 +2538,7 @@ IMPL_LINK( SvxMenuConfigPage, MenuSelectHdl, MenuButton *, pButton ) new SvxMainMenuOrganizerDialog( this, GetSaveInData()->GetEntries(), pMenuData ); - bool ret = pDialog->Execute(); - - if ( ret == RET_OK ) + if ( pDialog->Execute() == RET_OK ) { GetSaveInData()->SetEntries( pDialog->GetEntries() ); @@ -2574,9 +2570,7 @@ IMPL_LINK( SvxMenuConfigPage, EntrySelectHdl, MenuButton *, pButton ) pNameDialog->SetHelpId( HID_SVX_CONFIG_NAME_SUBMENU ); pNameDialog->SetText( CUI_RESSTR( RID_SVXSTR_ADD_SUBMENU ) ); - bool ret = pNameDialog->Execute(); - - if ( ret == RET_OK ) { + if ( pNameDialog->Execute() == RET_OK ) { pNameDialog->GetName(aNewName); SvxConfigEntry* pNewEntryData = @@ -2620,9 +2614,7 @@ IMPL_LINK( SvxMenuConfigPage, EntrySelectHdl, MenuButton *, pButton ) pNameDialog->SetHelpId( HID_SVX_CONFIG_RENAME_MENU_ITEM ); pNameDialog->SetText( CUI_RESSTR( RID_SVXSTR_RENAME_MENU ) ); - bool ret = pNameDialog->Execute(); - - if ( ret == RET_OK ) { + if ( pNameDialog->Execute() == RET_OK ) { pNameDialog->GetName(aNewName); pEntry->SetName( aNewName ); @@ -2667,9 +2659,7 @@ IMPL_LINK( SvxMenuConfigPage, NewMenuHdl, Button *, pButton ) new SvxMainMenuOrganizerDialog( 0, GetSaveInData()->GetEntries(), NULL, sal_True ); - bool ret = pDialog->Execute(); - - if ( ret == RET_OK ) + if ( pDialog->Execute() == RET_OK ) { GetSaveInData()->SetEntries( pDialog->GetEntries() ); ReloadTopLevelListBox( pDialog->GetSelectedEntry() ); @@ -3215,9 +3205,7 @@ IMPL_LINK( SvxToolbarConfigPage, ToolbarSelectHdl, MenuButton *, pButton ) pNameDialog->SetHelpId( HID_SVX_CONFIG_RENAME_TOOLBAR ); pNameDialog->SetText( CUI_RESSTR( RID_SVXSTR_RENAME_TOOLBAR ) ); - bool ret = pNameDialog->Execute(); - - if ( ret == RET_OK ) + if ( pNameDialog->Execute() == RET_OK ) { pNameDialog->GetName(aNewName); @@ -3306,9 +3294,7 @@ IMPL_LINK( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton ) pNameDialog->SetHelpId( HID_SVX_CONFIG_RENAME_TOOLBAR_ITEM ); pNameDialog->SetText( CUI_RESSTR( RID_SVXSTR_RENAME_TOOLBAR ) ); - bool ret = pNameDialog->Execute(); - - if ( ret == RET_OK ) { + if ( pNameDialog->Execute() == RET_OK ) { pNameDialog->GetName(aNewName); pEntry->SetName( aNewName ); @@ -3441,9 +3427,7 @@ IMPL_LINK( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton ) GetSaveInData()->GetImageManager(), GetSaveInData()->GetParentImageManager() ); - bool ret = pIconDialog->Execute(); - - if ( ret == RET_OK ) + if ( pIconDialog->Execute() == RET_OK ) { uno::Reference< graphic::XGraphic > newgraphic = pIconDialog->GetSelectedIcon(); @@ -4591,8 +4575,7 @@ IMPL_LINK( SvxToolbarConfigPage, NewToolbarHdl, Button *, pButton ) pNameDialog->m_pSaveInListBox->SelectEntryPos( aSaveInListBox.GetSelectEntryPos(), sal_True ); - bool ret = pNameDialog->Execute(); - if ( ret == RET_OK ) + if ( pNameDialog->Execute() == RET_OK ) { aNewName = pNameDialog->GetName(); @@ -5197,9 +5180,7 @@ IMPL_LINK( SvxIconSelectorDialog, DeleteHdl, PushButton *, pButton ) (void)pButton; OUString message = CUI_RES( RID_SVXSTR_DELETE_ICON_CONFIRM ); - bool ret = WarningBox( this, WinBits(WB_OK_CANCEL), message ).Execute(); - - if ( ret == RET_OK ) + if ( WarningBox( this, WinBits(WB_OK_CANCEL), message ).Execute() == RET_OK ) { sal_uInt16 nCount = aTbSymbol.GetItemCount(); diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx index 08cfbc59531c..3d0919ec3db6 100644 --- a/cui/source/options/optaboutconfig.cxx +++ b/cui/source/options/optaboutconfig.cxx @@ -526,8 +526,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl ) CuiAboutConfigValueDialog* pValueDialog = new CuiAboutConfigValueDialog(0, sDialogValue, limit); - bool ret = pValueDialog->Execute(); - if( ret == RET_OK ) + if( pValueDialog->Execute() == RET_OK ) { sNewValue = pValueDialog->getValue(); if ( sPropertyType == "short") |