summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_form.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/core/ifwl_form.cpp')
-rw-r--r--xfa/fwl/core/ifwl_form.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/xfa/fwl/core/ifwl_form.cpp b/xfa/fwl/core/ifwl_form.cpp
index 4a8d911976..9e632a009a 100644
--- a/xfa/fwl/core/ifwl_form.cpp
+++ b/xfa/fwl/core/ifwl_form.cpp
@@ -329,7 +329,9 @@ IFWL_Widget* IFWL_Form::DoModal() {
if (!pDriver)
return nullptr;
- m_pNoteLoop.reset(new CFWL_NoteLoop(this));
+ m_pNoteLoop = pdfium::MakeUnique<CFWL_NoteLoop>();
+ m_pNoteLoop->SetMainForm(this);
+
pDriver->PushNoteLoop(m_pNoteLoop.get());
m_bDoModalFlag = true;
SetStates(FWL_WGTSTATE_Invisible, false);