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

Unified Diff: xfa/fwl/cfwl_edit.cpp

Issue 2559643004: Change layout item in CFWL_Widget type from void (Closed)
Patch Set: Created 4 years 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 | « no previous file | xfa/fwl/cfwl_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/cfwl_edit.cpp
diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp
index 913f08d7b95aad2619619220927de0127f7480e1..5cf3f2f0065915bdb24920993309e1c91a0a43c6 100644
--- a/xfa/fwl/cfwl_edit.cpp
+++ b/xfa/fwl/cfwl_edit.cpp
@@ -1168,8 +1168,7 @@ void CFWL_Edit::ShowCaret(CFX_RectF* pRect) {
pRect->Offset(rtOuter.left, rtOuter.top);
}
- CXFA_FFWidget* pXFAWidget =
- static_cast<CXFA_FFWidget*>(pOuter->GetLayoutItem());
+ CXFA_FFWidget* pXFAWidget = pOuter->GetLayoutItem();
if (!pXFAWidget)
return;
@@ -1197,8 +1196,7 @@ void CFWL_Edit::HideCaret(CFX_RectF* pRect) {
while (pOuter->GetOuter())
pOuter = pOuter->GetOuter();
- CXFA_FFWidget* pXFAWidget =
- static_cast<CXFA_FFWidget*>(pOuter->GetLayoutItem());
+ CXFA_FFWidget* pXFAWidget = pOuter->GetLayoutItem();
if (!pXFAWidget)
return;
« no previous file with comments | « no previous file | xfa/fwl/cfwl_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698