diff options
author | tsepez <tsepez@chromium.org> | 2016-05-12 10:08:06 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-12 10:08:06 -0700 |
commit | aadedf904d6e072e885f6ccd142c5f874833d5c5 (patch) | |
tree | 8d44df3c03db12a1745f2c597871aa4b97f4b862 /xfa/fxfa/parser/xfa_object.h | |
parent | fc1136525693c4aad2c803ca14bd25ff4a658f37 (diff) | |
download | pdfium-aadedf904d6e072e885f6ccd142c5f874833d5c5.tar.xz |
Replace CXFA_PtrSetTemplate with std::unordered_set.
Building a set on top of a map and ignoring the mapped
value seems wasteful.
Review-Url: https://codereview.chromium.org/1942903003
Diffstat (limited to 'xfa/fxfa/parser/xfa_object.h')
-rw-r--r-- | xfa/fxfa/parser/xfa_object.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/xfa_object.h b/xfa/fxfa/parser/xfa_object.h index 0779cbf2b3..f6267b5998 100644 --- a/xfa/fxfa/parser/xfa_object.h +++ b/xfa/fxfa/parser/xfa_object.h @@ -7,6 +7,8 @@ #ifndef XFA_FXFA_PARSER_XFA_OBJECT_H_ #define XFA_FXFA_PARSER_XFA_OBJECT_H_ +#include <unordered_set> + #include "xfa/fde/xml/fde_xml.h" #include "xfa/fxfa/parser/xfa_utils.h" #include "xfa/fxjse/cfxjse_arguments.h" @@ -105,9 +107,9 @@ enum XFA_SOM_MESSAGETYPE { XFA_SOM_MandatoryMessage }; -typedef CFX_ArrayTemplate<CXFA_Node*> CXFA_NodeArray; -typedef CFX_StackTemplate<CXFA_Node*> CXFA_NodeStack; -typedef CXFA_PtrSetTemplate<CXFA_Node*> CXFA_NodeSet; +using CXFA_NodeArray = CFX_ArrayTemplate<CXFA_Node*>; +using CXFA_NodeStack = CFX_StackTemplate<CXFA_Node*>; +using CXFA_NodeSet = std::unordered_set<CXFA_Node*>; typedef void (*PD_CALLBACK_DUPLICATEDATA)(void*& pData); struct XFA_MAPDATABLOCKCALLBACKINFO { |