diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-15 13:57:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-15 13:57:54 +0100 |
commit | 14a4b8e01634da44656aeba5640bb1650777fdbc (patch) | |
tree | 38678d85d1eac86291725bcbefbc8db8b0163a37 /sfx2 | |
parent | 9fbb4c6cf42857e80090e0b81ecde7ea2913e427 (diff) |
need the version that allows NULL for a while still
Change-Id: Ie7c61ad75b60bb2900a843df7fb12add03a20bf2
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index f44c425f742e..dcf6d310b2c2 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -455,38 +455,37 @@ void SfxTabDialog::Init_Impl(bool bFmtFlag) m_pBox = get_content_area(); assert(m_pBox); m_pUIBuilder->get(m_pTabCtrl, "tabcontrol"); - assert(m_pTabCtrl); pImpl = new TabDlg_Impl(m_pTabCtrl->GetPageCount()); m_pActionArea = get_action_area(); assert(m_pActionArea); - m_pUIBuilder->get(m_pOKBtn, "ok"); + m_pOKBtn = m_pUIBuilder->get<PushButton>("ok"); m_bOwnsOKBtn = m_pOKBtn == NULL; if (m_bOwnsOKBtn) m_pOKBtn = new OKButton(m_pActionArea); - m_pUIBuilder->get(m_pApplyBtn, "apply"); - m_pUIBuilder->get(m_pUserBtn, "user"); - m_pUIBuilder->get(m_pCancelBtn, "cancel"); + m_pApplyBtn = m_pUIBuilder->get<PushButton>("apply"); + m_pUserBtn = m_pUIBuilder->get<PushButton>("user"); + m_pCancelBtn = m_pUIBuilder->get<CancelButton>("cancel"); m_bOwnsCancelBtn = m_pCancelBtn == NULL; if (m_bOwnsCancelBtn) m_pCancelBtn = new CancelButton(m_pActionArea); - m_pUIBuilder->get(m_pHelpBtn, "help"); + m_pHelpBtn = m_pUIBuilder->get<HelpButton>("help"); m_bOwnsHelpBtn = m_pHelpBtn == NULL; if (m_bOwnsHelpBtn) m_pHelpBtn = new HelpButton(m_pActionArea); - m_pUIBuilder->get(m_pResetBtn, "reset"); + m_pResetBtn = m_pUIBuilder->get<PushButton>("reset"); m_bOwnsResetBtn = m_pResetBtn == NULL; if (m_bOwnsResetBtn) m_pResetBtn = new PushButton(m_pActionArea); else pImpl->bHideResetBtn = !m_pResetBtn->IsVisible(); - m_pUIBuilder->get(m_pBaseFmtBtn, "standard"); + m_pBaseFmtBtn = m_pUIBuilder->get<PushButton>("standard"); m_bOwnsBaseFmtBtn = m_pBaseFmtBtn == NULL; if (m_bOwnsBaseFmtBtn) m_pBaseFmtBtn = new PushButton(m_pActionArea); |