Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: xfa/fxfa/parser/cxfa_stroke.cpp

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fxfa/parser/cxfa_stroke.h ('k') | xfa/fxfa/parser/cxfa_submit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxfa/parser/cxfa_stroke.cpp
diff --git a/xfa/fxfa/parser/cxfa_stroke.cpp b/xfa/fxfa/parser/cxfa_stroke.cpp
index 77549f00edc89a1b29f4ddcff2cece449df65dc1..602f2f9f1fa32169702ed4297ef0340f9dfebdf8 100644
--- a/xfa/fxfa/parser/cxfa_stroke.cpp
+++ b/xfa/fxfa/parser/cxfa_stroke.cpp
@@ -76,8 +76,8 @@ int32_t CXFA_Stroke::GetJoinType() const {
: XFA_ATTRIBUTEENUM_Square;
}
-FX_BOOL CXFA_Stroke::IsInverted() const {
- return m_pNode ? m_pNode->GetBoolean(XFA_ATTRIBUTE_Inverted) : FALSE;
+bool CXFA_Stroke::IsInverted() const {
+ return m_pNode ? m_pNode->GetBoolean(XFA_ATTRIBUTE_Inverted) : false;
}
FX_FLOAT CXFA_Stroke::GetRadius() const {
@@ -85,22 +85,22 @@ FX_FLOAT CXFA_Stroke::GetRadius() const {
: 0;
}
-FX_BOOL CXFA_Stroke::SameStyles(CXFA_Stroke stroke, uint32_t dwFlags) const {
+bool CXFA_Stroke::SameStyles(CXFA_Stroke stroke, uint32_t dwFlags) const {
if (m_pNode == stroke.GetNode())
- return TRUE;
+ return true;
if (FXSYS_fabs(GetThickness() - stroke.GetThickness()) >= 0.01f)
- return FALSE;
+ return false;
if ((dwFlags & XFA_STROKE_SAMESTYLE_NoPresence) == 0 &&
IsVisible() != stroke.IsVisible()) {
- return FALSE;
+ return false;
}
if (GetStrokeType() != stroke.GetStrokeType())
- return FALSE;
+ return false;
if (GetColor() != stroke.GetColor())
- return FALSE;
+ return false;
if ((dwFlags & XFA_STROKE_SAMESTYLE_Corner) != 0 &&
FXSYS_fabs(GetRadius() - stroke.GetRadius()) >= 0.01f) {
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
« no previous file with comments | « xfa/fxfa/parser/cxfa_stroke.h ('k') | xfa/fxfa/parser/cxfa_submit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698