summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-07-03 14:04:53 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-03 14:04:53 +0000
commit7b10bb9c50d183caffc2f4481e249eb3cf763d5f (patch)
treecf6a6f6ce0aabf691df40d37dffc3ed79af97164 /xfa/fxfa/parser
parent1448cc11b9be67d2d1fcd3f2f833cc6f79ad8d42 (diff)
downloadpdfium-7b10bb9c50d183caffc2f4481e249eb3cf763d5f.tar.xz
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 <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r--xfa/fxfa/parser/cxfa_itemlayoutprocessor.h2
1 files changed, 1 insertions, 1 deletions
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;