From 54e4ccbbf09c496f8ab79a2b02fc4afc3d6abc42 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 16 Jan 2018 15:46:35 +0000 Subject: Rename CXFA_Line methods to make clearer This CL clarifies that he CXFA_Line::GetEdge method can return nullptr. Change-Id: I785d4636126727e07a80afb001489bd00ec9ae9e Reviewed-on: https://pdfium-review.googlesource.com/22771 Commit-Queue: dsinclair Reviewed-by: Ryan Harrison --- xfa/fxfa/parser/cxfa_line.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/parser/cxfa_line.cpp') diff --git a/xfa/fxfa/parser/cxfa_line.cpp b/xfa/fxfa/parser/cxfa_line.cpp index d4159c3f72..4e656c2999 100644 --- a/xfa/fxfa/parser/cxfa_line.cpp +++ b/xfa/fxfa/parser/cxfa_line.cpp @@ -50,6 +50,6 @@ bool CXFA_Line::GetSlope() { return JSObject()->GetEnum(XFA_Attribute::Slope) == XFA_AttributeEnum::Slash; } -CXFA_Edge* CXFA_Line::GetEdge() { +CXFA_Edge* CXFA_Line::GetEdgeIfExists() { return GetChild(0, XFA_Element::Edge, false); } -- cgit v1.2.3