[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara
caolanm at redhat.com
Fri Aug 15 05:59:09 PDT 2014
sfx2/source/dialog/tabdlg.cxx | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
New commits:
commit 14a4b8e01634da44656aeba5640bb1650777fdbc
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Aug 15 13:57:54 2014 +0100
need the version that allows NULL for a while still
Change-Id: Ie7c61ad75b60bb2900a843df7fb12add03a20bf2
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index f44c425..dcf6d31 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);
More information about the Libreoffice-commits
mailing list