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

Unified Diff: xfa/src/fxfa/src/parser/xfa_object_imp.cpp

Issue 1747123002: Fix and enable lint checks. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 months 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/src/fxfa/src/parser/xfa_layout_itemlayout.cpp ('k') | xfa/src/fxjse/src/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fxfa/src/parser/xfa_object_imp.cpp
diff --git a/xfa/src/fxfa/src/parser/xfa_object_imp.cpp b/xfa/src/fxfa/src/parser/xfa_object_imp.cpp
index 1c5bd758a89ab5b06dc445f9d39b2e738a9730ea..c7a288bb27f6e64d77c75a2360691de12b46d792 100644
--- a/xfa/src/fxfa/src/parser/xfa_object_imp.cpp
+++ b/xfa/src/fxfa/src/parser/xfa_object_imp.cpp
@@ -178,24 +178,27 @@ CXFA_Node* CXFA_Node::GetNodeItem(XFA_NODEITEM eItem,
switch (eItem) {
case XFA_NODEITEM_NextSibling:
pNode = m_pNext;
- if (eType != XFA_OBJECTTYPEMASK)
+ if (eType != XFA_OBJECTTYPEMASK) {
while (pNode && pNode->GetObjectType() != eType) {
pNode = pNode->m_pNext;
}
+ }
break;
case XFA_NODEITEM_FirstChild:
pNode = m_pChild;
- if (eType != XFA_OBJECTTYPEMASK)
+ if (eType != XFA_OBJECTTYPEMASK) {
while (pNode && pNode->GetObjectType() != eType) {
pNode = pNode->m_pNext;
}
+ }
break;
case XFA_NODEITEM_Parent:
pNode = m_pParent;
- if (eType != XFA_OBJECTTYPEMASK)
+ if (eType != XFA_OBJECTTYPEMASK) {
while (pNode && pNode->GetObjectType() != eType) {
pNode = pNode->m_pParent;
}
+ }
break;
case XFA_NODEITEM_PrevSibling:
if (m_pParent) {
« no previous file with comments | « xfa/src/fxfa/src/parser/xfa_layout_itemlayout.cpp ('k') | xfa/src/fxjse/src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698