diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-17 01:24:57 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-17 01:24:57 +0000 |
commit | 21068062a038db72b5ee40512fe638acbdd17c3d (patch) | |
tree | ad370554fee1f1c2cf543758229a3d3edc0df6e7 /xfa/fxfa/parser/cxfa_layoutpagemgr.h | |
parent | 42f5bf0c37f2f686c9b172fb3d9f284744b74be3 (diff) | |
download | pdfium-21068062a038db72b5ee40512fe638acbdd17c3d.tar.xz |
Remove optionals in CXFA_LayoutPageMgr methods.
Change-Id: If57552b9e48d9607f84e853aadb2742a8c135b46
Reviewed-on: https://pdfium-review.googlesource.com/40470
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_layoutpagemgr.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_layoutpagemgr.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xfa/fxfa/parser/cxfa_layoutpagemgr.h b/xfa/fxfa/parser/cxfa_layoutpagemgr.h index 7c9055dcf8..6acd5b4aff 100644 --- a/xfa/fxfa/parser/cxfa_layoutpagemgr.h +++ b/xfa/fxfa/parser/cxfa_layoutpagemgr.h @@ -53,7 +53,7 @@ class CXFA_LayoutPageMgr { CXFA_Node*& pBookendAppendNode); private: - bool AppendNewPage(bool bFirstTemPage = false); + bool AppendNewPage(bool bFirstTemPage); void ReorderPendingLayoutRecordToTail(CXFA_ContainerRecord* pNewRecord, CXFA_ContainerRecord* pPrevRecord); void RemoveLayoutRecord(CXFA_ContainerRecord* pNewRecord, @@ -65,8 +65,8 @@ class CXFA_LayoutPageMgr { auto iter = m_ProposedContainerRecords.end(); return !m_ProposedContainerRecords.empty() ? std::prev(iter) : iter; } - CXFA_ContainerRecord* CreateContainerRecord(CXFA_Node* pPageNode = nullptr, - bool bCreateNew = false); + CXFA_ContainerRecord* CreateContainerRecord(CXFA_Node* pPageNode, + bool bCreateNew); void AddPageAreaLayoutItem(CXFA_ContainerRecord* pNewRecord, CXFA_Node* pNewPageArea); void AddContentAreaLayoutItem(CXFA_ContainerRecord* pNewRecord, @@ -89,8 +89,8 @@ class CXFA_LayoutPageMgr { int32_t CreateMinPageRecord(CXFA_Node* pPageArea, bool bTargetPageArea, - bool bCreateLast = false); - void CreateMinPageSetRecord(CXFA_Node* pPageSet, bool bCreateAll = false); + bool bCreateLast); + void CreateMinPageSetRecord(CXFA_Node* pPageSet, bool bCreateAll); void CreateNextMinRecord(CXFA_Node* pRecordNode); bool FindPageAreaFromPageSet(CXFA_Node* pPageSet, CXFA_Node* pStartChild, @@ -114,9 +114,9 @@ class CXFA_LayoutPageMgr { XFA_AttributeEnum ePreferredPosition = XFA_AttributeEnum::First); bool MatchPageAreaOddOrEven(CXFA_Node* pPageArea); CXFA_Node* GetNextAvailPageArea(CXFA_Node* pTargetPageArea, - CXFA_Node* pTargetContentArea = nullptr, - bool bNewPage = false, - bool bQuery = false); + CXFA_Node* pTargetContentArea, + bool bNewPage, + bool bQuery); bool GetNextContentArea(CXFA_Node* pTargetContentArea); void InitPageSetMap(); void ProcessLastPageSet(); |