From aadedf904d6e072e885f6ccd142c5f874833d5c5 Mon Sep 17 00:00:00 2001 From: tsepez Date: Thu, 12 May 2016 10:08:06 -0700 Subject: 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 --- xfa/fxfa/parser/xfa_object.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'xfa/fxfa/parser/xfa_object.h') 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 + #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_NodeArray; -typedef CFX_StackTemplate CXFA_NodeStack; -typedef CXFA_PtrSetTemplate CXFA_NodeSet; +using CXFA_NodeArray = CFX_ArrayTemplate; +using CXFA_NodeStack = CFX_StackTemplate; +using CXFA_NodeSet = std::unordered_set; typedef void (*PD_CALLBACK_DUPLICATEDATA)(void*& pData); struct XFA_MAPDATABLOCKCALLBACKINFO { -- cgit v1.2.3