summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_strokedata.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-30 22:06:40 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-30 22:06:40 +0000
commitd02c4d8b1199799340833ebfc79d7092f9b2d043 (patch)
tree46c5ad3489153bf600529314fdbcf8c772622a24 /xfa/fxfa/parser/cxfa_strokedata.cpp
parentf65f1d398804ec4702a3de691398902a0347461c (diff)
downloadpdfium-d02c4d8b1199799340833ebfc79d7092f9b2d043.tar.xz
Rename XFA_ATTRIBUTEENUM to XFA_AttributeEnum enum class
This CL changes the enum XFA_ATTRIBUTEENUM to an enum class XFA_AttributeEnum. Methods expecting an int32 have been updated to take or return the XFA_AttrbuteEnum type. Change-Id: I268453949545fe2dd3eae707be4d9cc7edeff763 Reviewed-on: https://pdfium-review.googlesource.com/20070 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_strokedata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_strokedata.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/xfa/fxfa/parser/cxfa_strokedata.cpp b/xfa/fxfa/parser/cxfa_strokedata.cpp
index 061b89e8ef..a0e80cdd5a 100644
--- a/xfa/fxfa/parser/cxfa_strokedata.cpp
+++ b/xfa/fxfa/parser/cxfa_strokedata.cpp
@@ -14,21 +14,21 @@ bool CXFA_StrokeData::IsVisible() const {
if (!m_pNode)
return false;
- XFA_ATTRIBUTEENUM presence = m_pNode->JSNode()
+ XFA_AttributeEnum presence = m_pNode->JSNode()
->TryEnum(XFA_Attribute::Presence, true)
- .value_or(XFA_ATTRIBUTEENUM_Visible);
- return presence == XFA_ATTRIBUTEENUM_Visible;
+ .value_or(XFA_AttributeEnum::Visible);
+ return presence == XFA_AttributeEnum::Visible;
}
-XFA_ATTRIBUTEENUM CXFA_StrokeData::GetCapType() const {
+XFA_AttributeEnum CXFA_StrokeData::GetCapType() const {
if (!m_pNode)
- return XFA_ATTRIBUTEENUM_Square;
+ return XFA_AttributeEnum::Square;
return m_pNode->JSNode()->GetEnum(XFA_Attribute::Cap);
}
-XFA_ATTRIBUTEENUM CXFA_StrokeData::GetStrokeType() const {
+XFA_AttributeEnum CXFA_StrokeData::GetStrokeType() const {
return m_pNode ? m_pNode->JSNode()->GetEnum(XFA_Attribute::Stroke)
- : XFA_ATTRIBUTEENUM_Solid;
+ : XFA_AttributeEnum::Solid;
}
float CXFA_StrokeData::GetThickness() const {
@@ -75,9 +75,9 @@ void CXFA_StrokeData::SetColor(FX_ARGB argb) {
false);
}
-XFA_ATTRIBUTEENUM CXFA_StrokeData::GetJoinType() const {
+XFA_AttributeEnum CXFA_StrokeData::GetJoinType() const {
return m_pNode ? m_pNode->JSNode()->GetEnum(XFA_Attribute::Join)
- : XFA_ATTRIBUTEENUM_Square;
+ : XFA_AttributeEnum::Square;
}
bool CXFA_StrokeData::IsInverted() const {