From 7b10bb9c50d183caffc2f4481e249eb3cf763d5f Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 3 Jul 2018 14:04:53 +0000 Subject: Remove XFA_LAYOUT_INVALIDNODE XFA_LAYOUT_INVALIDNODE is used in place of nullptr, but does not appear to represent a sentinel value distinct from it. Using a non-nullptr value prevents using any kind of smart pointer type in the future. Change-Id: Iab6418b3dc9c3d45780730795496ac07b67de696 Reviewed-on: https://pdfium-review.googlesource.com/36651 Reviewed-by: dsinclair Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_itemlayoutprocessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa') diff --git a/xfa/fxfa/parser/cxfa_itemlayoutprocessor.h b/xfa/fxfa/parser/cxfa_itemlayoutprocessor.h index 12709bad01..9c25fa88c7 100644 --- a/xfa/fxfa/parser/cxfa_itemlayoutprocessor.h +++ b/xfa/fxfa/parser/cxfa_itemlayoutprocessor.h @@ -17,7 +17,7 @@ #include "core/fxcrt/fx_coordinates.h" #include "xfa/fxfa/fxfa_basic.h" -#define XFA_LAYOUT_INVALIDNODE ((CXFA_Node*)(intptr_t)-1) +#define XFA_LAYOUT_INVALIDNODE nullptr #define XFA_LAYOUT_FLOAT_PERCISION (0.0005f) class CXFA_ContainerLayoutItem; -- cgit v1.2.3