summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_layoutitem.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-07-30 22:07:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-30 22:07:22 +0000
commitb53ef1e52d40f586c401a7e3948259f8ebbfd3cc (patch)
tree23a55140c7bee634f40ff30f8370c0aaa32002de /xfa/fxfa/parser/cxfa_layoutitem.cpp
parent87c1fdcc9a5669e29c4440e2b220587de7134e7a (diff)
downloadpdfium-b53ef1e52d40f586c401a7e3948259f8ebbfd3cc.tar.xz
Replace m_bIsContentLayoutItem with proper enum for type.
Because bools are bogus. Change-Id: I54a2627443784cec40912288230e657c63a35408 Reviewed-on: https://pdfium-review.googlesource.com/39190 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_layoutitem.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_layoutitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_layoutitem.cpp b/xfa/fxfa/parser/cxfa_layoutitem.cpp
index 8b1c30e8cf..5dd03674c9 100644
--- a/xfa/fxfa/parser/cxfa_layoutitem.cpp
+++ b/xfa/fxfa/parser/cxfa_layoutitem.cpp
@@ -34,8 +34,8 @@ void XFA_ReleaseLayoutItem(CXFA_LayoutItem* pLayoutItem) {
delete pLayoutItem;
}
-CXFA_LayoutItem::CXFA_LayoutItem(CXFA_Node* pNode, bool bIsContentLayoutItem)
- : m_bIsContentLayoutItem(bIsContentLayoutItem), m_pFormNode(pNode) {}
+CXFA_LayoutItem::CXFA_LayoutItem(CXFA_Node* pNode, ItemType type)
+ : m_ItemType(type), m_pFormNode(pNode) {}
CXFA_LayoutItem::~CXFA_LayoutItem() = default;