summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-07 20:03:02 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-07 20:03:02 +0000
commitc0c3b8cb21296f182da3be97acf175346bc06004 (patch)
treeaf3de27a0fde727f63ed8d45c45ded11acbde08d /xfa/fxfa/parser
parent826f2223fb0414144d7a627d5d0264da1a5ce82e (diff)
downloadpdfium-c0c3b8cb21296f182da3be97acf175346bc06004.tar.xz
Rename CXFA_Corner to CXFA_CornerData
This CL renames CXFA_Corner to CXFA_CornerData to make it clear it's part of the data hierarchy. Change-Id: I9428c7a09735f11089de344fa148edc86e6e4694 Reviewed-on: https://pdfium-review.googlesource.com/17978 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r--xfa/fxfa/parser/cxfa_boxdata.cpp8
-rw-r--r--xfa/fxfa/parser/cxfa_cornerdata.h (renamed from xfa/fxfa/parser/cxfa_corner.h)10
2 files changed, 9 insertions, 9 deletions
diff --git a/xfa/fxfa/parser/cxfa_boxdata.cpp b/xfa/fxfa/parser/cxfa_boxdata.cpp
index c7a58a1c27..51fadffd79 100644
--- a/xfa/fxfa/parser/cxfa_boxdata.cpp
+++ b/xfa/fxfa/parser/cxfa_boxdata.cpp
@@ -6,7 +6,7 @@
#include "xfa/fxfa/parser/cxfa_boxdata.h"
-#include "xfa/fxfa/parser/cxfa_corner.h"
+#include "xfa/fxfa/parser/cxfa_cornerdata.h"
#include "xfa/fxfa/parser/cxfa_measurement.h"
#include "xfa/fxfa/parser/cxfa_node.h"
@@ -22,10 +22,10 @@ void GetStrokesInternal(CXFA_Node* pNode,
strokes->resize(8);
int32_t i, j;
for (i = 0, j = 0; i < 4; i++) {
- CXFA_Corner corner = CXFA_Corner(
+ CXFA_CornerData cornerData = CXFA_CornerData(
pNode->JSNode()->GetProperty(i, XFA_Element::Corner, i == 0));
- if (corner || i == 0) {
- (*strokes)[j] = corner;
+ if (cornerData || i == 0) {
+ (*strokes)[j] = cornerData;
} else if (!bNull) {
if (i == 1 || i == 2)
(*strokes)[j] = (*strokes)[0];
diff --git a/xfa/fxfa/parser/cxfa_corner.h b/xfa/fxfa/parser/cxfa_cornerdata.h
index 7665c53812..be0b602d78 100644
--- a/xfa/fxfa/parser/cxfa_corner.h
+++ b/xfa/fxfa/parser/cxfa_cornerdata.h
@@ -4,16 +4,16 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef XFA_FXFA_PARSER_CXFA_CORNER_H_
-#define XFA_FXFA_PARSER_CXFA_CORNER_H_
+#ifndef XFA_FXFA_PARSER_CXFA_CORNERDATA_H_
+#define XFA_FXFA_PARSER_CXFA_CORNERDATA_H_
#include "xfa/fxfa/parser/cxfa_stroke.h"
class CXFA_Node;
-class CXFA_Corner : public CXFA_Stroke {
+class CXFA_CornerData : public CXFA_Stroke {
public:
- explicit CXFA_Corner(CXFA_Node* pNode) : CXFA_Stroke(pNode) {}
+ explicit CXFA_CornerData(CXFA_Node* pNode) : CXFA_Stroke(pNode) {}
};
-#endif // XFA_FXFA_PARSER_CXFA_CORNER_H_
+#endif // XFA_FXFA_PARSER_CXFA_CORNERDATA_H_