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

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

Issue 1668003003: Call CXFA_Object::ToNode() rather than C-style casting. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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
Index: xfa/src/fxfa/src/parser/xfa_document_layout_imp.cpp
diff --git a/xfa/src/fxfa/src/parser/xfa_document_layout_imp.cpp b/xfa/src/fxfa/src/parser/xfa_document_layout_imp.cpp
index a9843fae2bcb505fe939a19089737adf11dd9277..1c47ccb009fa744670c37cf3689a7fb8731e3019 100644
--- a/xfa/src/fxfa/src/parser/xfa_document_layout_imp.cpp
+++ b/xfa/src/fxfa/src/parser/xfa_document_layout_imp.cpp
@@ -52,7 +52,7 @@ int32_t CXFA_LayoutProcessor::StartLayout(FX_BOOL bForceRestart) {
}
m_nProgressCounter = 0;
CXFA_Node* pFormPacketNode =
- (CXFA_Node*)m_pDocument->GetXFAObject(XFA_HASHCODE_Form);
+ ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_Form));
if (!pFormPacketNode) {
return -1;
}

Powered by Google App Engine
This is Rietveld 408576698