From 2157c4baba28123304affa48ec0a5973151faccf Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 22 Jan 2018 18:44:39 +0000 Subject: Move IsNull and PreNull to CXFA_Node This CL moves the m_bIsNull and m_bPreNull flags from CXFA_WidgetAcc to CXFA_Node. Change-Id: Ibdcdb8611699d6d908ab3c6ed05cbce7bba872ae Reviewed-on: https://pdfium-review.googlesource.com/23310 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- xfa/fxfa/cxfa_widgetacc.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'xfa/fxfa/cxfa_widgetacc.cpp') diff --git a/xfa/fxfa/cxfa_widgetacc.cpp b/xfa/fxfa/cxfa_widgetacc.cpp index 49ccade894..4fa744a098 100644 --- a/xfa/fxfa/cxfa_widgetacc.cpp +++ b/xfa/fxfa/cxfa_widgetacc.cpp @@ -348,10 +348,7 @@ bool SplitDateTime(const WideString& wsDateTime, } // namespace -CXFA_WidgetAcc::CXFA_WidgetAcc(CXFA_Node* pNode) - : m_bIsNull(true), - m_bPreNull(true), - m_pNode(pNode) {} +CXFA_WidgetAcc::CXFA_WidgetAcc(CXFA_Node* pNode) : m_pNode(pNode) {} CXFA_WidgetAcc::~CXFA_WidgetAcc() = default; @@ -2132,8 +2129,9 @@ bool CXFA_WidgetAcc::SetValue(XFA_VALUEPICTURE eValueType, return true; } - m_bPreNull = m_bIsNull; - m_bIsNull = false; + m_pNode->SetPreNull(m_pNode->IsNull()); + m_pNode->SetIsNull(false); + WideString wsNewText(wsValue); WideString wsPicture = GetPictureContent(eValueType); bool bValidate = true; -- cgit v1.2.3