summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_boxdata.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-07 20:06:01 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-07 20:06:01 +0000
commitb415ffb47de6e58603db2a01027aa879c0126b24 (patch)
tree48117c166ada6f156d501de7da71d191fdce271a /xfa/fxfa/parser/cxfa_boxdata.cpp
parentc0c3b8cb21296f182da3be97acf175346bc06004 (diff)
downloadpdfium-b415ffb47de6e58603db2a01027aa879c0126b24.tar.xz
Rename CXFA_Edge to CXFA_EdgeData
This CL renames CXFA_Edge to CXFA_EdgeData to make it clear it's part of the data hierarchy. Change-Id: Id67526cafe1927803c36159b106656c32e770d6b Reviewed-on: https://pdfium-review.googlesource.com/17979 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_boxdata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_boxdata.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/xfa/fxfa/parser/cxfa_boxdata.cpp b/xfa/fxfa/parser/cxfa_boxdata.cpp
index 51fadffd79..607a1571dc 100644
--- a/xfa/fxfa/parser/cxfa_boxdata.cpp
+++ b/xfa/fxfa/parser/cxfa_boxdata.cpp
@@ -33,10 +33,10 @@ void GetStrokesInternal(CXFA_Node* pNode,
(*strokes)[j] = (*strokes)[2];
}
j++;
- CXFA_Edge edge =
- CXFA_Edge(pNode->JSNode()->GetProperty(i, XFA_Element::Edge, i == 0));
- if (edge || i == 0) {
- (*strokes)[j] = edge;
+ CXFA_EdgeData edgeData = CXFA_EdgeData(
+ pNode->JSNode()->GetProperty(i, XFA_Element::Edge, i == 0));
+ if (edgeData || i == 0) {
+ (*strokes)[j] = edgeData;
} else if (!bNull) {
if (i == 1 || i == 2)
(*strokes)[j] = (*strokes)[1];
@@ -93,10 +93,10 @@ int32_t CXFA_BoxData::CountEdges() const {
return m_pNode->CountChildren(XFA_Element::Edge, false);
}
-CXFA_Edge CXFA_BoxData::GetEdge(int32_t nIndex) const {
- return CXFA_Edge(m_pNode ? m_pNode->JSNode()->GetProperty(
- nIndex, XFA_Element::Edge, nIndex == 0)
- : nullptr);
+CXFA_EdgeData CXFA_BoxData::GetEdgeData(int32_t nIndex) const {
+ return CXFA_EdgeData(m_pNode ? m_pNode->JSNode()->GetProperty(
+ nIndex, XFA_Element::Edge, nIndex == 0)
+ : nullptr);
}
void CXFA_BoxData::GetStrokes(std::vector<CXFA_Stroke>* strokes) const {