summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_ffchoicelist.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-19 07:59:25 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-19 07:59:25 -0700
commit0ca71ec811e33818d2ccba3221fdb660811b813c (patch)
treed94dce266dd67bbe94f5c73960734e7b5b691dd1 /xfa/fxfa/app/xfa_ffchoicelist.cpp
parentc273e8f5006aa7d91d37a5da021dbbabb8721e5b (diff)
downloadpdfium-0ca71ec811e33818d2ccba3221fdb660811b813c.tar.xz
Remove FWL Create methods, use new instead
Review-Url: https://chromiumcodereview.appspot.com/2422303003
Diffstat (limited to 'xfa/fxfa/app/xfa_ffchoicelist.cpp')
-rw-r--r--xfa/fxfa/app/xfa_ffchoicelist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/app/xfa_ffchoicelist.cpp b/xfa/fxfa/app/xfa_ffchoicelist.cpp
index 641b163ce7..00c83489b2 100644
--- a/xfa/fxfa/app/xfa_ffchoicelist.cpp
+++ b/xfa/fxfa/app/xfa_ffchoicelist.cpp
@@ -30,7 +30,7 @@ CXFA_FFListBox::~CXFA_FFListBox() {
}
}
FX_BOOL CXFA_FFListBox::LoadWidget() {
- CFWL_ListBox* pListBox = CFWL_ListBox::Create();
+ CFWL_ListBox* pListBox = new CFWL_ListBox;
pListBox->Initialize();
pListBox->ModifyStyles(FWL_WGTSTYLE_VScroll | FWL_WGTSTYLE_NoBackground,
0xFFFFFFFF);
@@ -227,7 +227,7 @@ FX_BOOL CXFA_FFComboBox::PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy) {
return FALSE;
}
FX_BOOL CXFA_FFComboBox::LoadWidget() {
- CFWL_ComboBox* pComboBox = CFWL_ComboBox::Create();
+ CFWL_ComboBox* pComboBox = new CFWL_ComboBox;
pComboBox->Initialize();
m_pNormalWidget = (CFWL_Widget*)pComboBox;
m_pNormalWidget->SetLayoutItem(this);