diff options
author | dsinclair <dsinclair@chromium.org> | 2016-07-18 13:14:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-18 13:14:49 -0700 |
commit | 34965459f4f53a77f6c925292304eface57d12c6 (patch) | |
tree | 788cb62af316f8b5c5d520583eaa0313dd48144e /xfa/fxfa/parser/xfa_utils.h | |
parent | aae4566ee8b2eaffb182861047c466ed1ec04902 (diff) | |
download | pdfium-34965459f4f53a77f6c925292304eface57d12c6.tar.xz |
Cleanup fgas/crt.
This CL removes unused methods and default parameters from the fgas/crt code.
Review-Url: https://codereview.chromium.org/2162503003
Diffstat (limited to 'xfa/fxfa/parser/xfa_utils.h')
-rw-r--r-- | xfa/fxfa/parser/xfa_utils.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fxfa/parser/xfa_utils.h b/xfa/fxfa/parser/xfa_utils.h index 0aa9064288..794624a8de 100644 --- a/xfa/fxfa/parser/xfa_utils.h +++ b/xfa/fxfa/parser/xfa_utils.h @@ -27,7 +27,7 @@ template <class NodeType, class TraverseStrategy> class CXFA_NodeIteratorTemplate { public: CXFA_NodeIteratorTemplate(NodeType* pRootNode = nullptr) - : m_pRoot(pRootNode) { + : m_pRoot(pRootNode), m_NodeStack(100) { if (pRootNode) { m_NodeStack.Push(pRootNode); } @@ -37,11 +37,11 @@ class CXFA_NodeIteratorTemplate { return FALSE; } m_pRoot = pRootNode; - m_NodeStack.RemoveAll(); + m_NodeStack.RemoveAll(FALSE); m_NodeStack.Push(pRootNode); return TRUE; } - void Clear() { m_NodeStack.RemoveAll(); } + void Clear() { m_NodeStack.RemoveAll(FALSE); } void Reset() { Clear(); if (m_pRoot) { @@ -49,9 +49,9 @@ class CXFA_NodeIteratorTemplate { } } FX_BOOL SetCurrent(NodeType* pCurNode) { - m_NodeStack.RemoveAll(); + m_NodeStack.RemoveAll(FALSE); if (pCurNode) { - CFX_StackTemplate<NodeType*> revStack; + CFX_StackTemplate<NodeType*> revStack(100); NodeType* pNode; for (pNode = pCurNode; pNode && pNode != m_pRoot; pNode = TraverseStrategy::GetParent(pNode)) { @@ -94,7 +94,7 @@ class CXFA_NodeIteratorTemplate { } m_NodeStack.Push(pPrevItem); } else { - m_NodeStack.RemoveAll(); + m_NodeStack.RemoveAll(FALSE); if (m_pRoot) { m_NodeStack.Push(m_pRoot); } |