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

Unified Diff: xfa/src/fwl/src/lightwidget/barcode.cpp

Issue 1508883003: Replace more static casts in FWL (part 3) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Remove Transfer() default args since they're always present. Created 5 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 | « xfa/src/fwl/src/core/include/fwl_widgetmgrimp.h ('k') | xfa/src/fwl/src/lightwidget/caret.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fwl/src/lightwidget/barcode.cpp
diff --git a/xfa/src/fwl/src/lightwidget/barcode.cpp b/xfa/src/fwl/src/lightwidget/barcode.cpp
index 15b0a40d915d1673cf5fb27f282ff3e2441b099e..a0704c4bd93e42ecb6ff4d61767c39bb6d6e7990 100644
--- a/xfa/src/fwl/src/lightwidget/barcode.cpp
+++ b/xfa/src/fwl/src/lightwidget/barcode.cpp
@@ -29,12 +29,12 @@ CFWL_Barcode::~CFWL_Barcode() {}
void CFWL_Barcode::SetType(BC_TYPE type) {
if (!m_pIface)
return;
- ((IFWL_Barcode*)m_pIface)->SetType(type);
+ static_cast<IFWL_Barcode*>(m_pIface)->SetType(type);
}
FX_BOOL CFWL_Barcode::IsProtectedType() {
if (!m_pIface)
return 0;
- return ((IFWL_Barcode*)m_pIface)->IsProtectedType();
+ return static_cast<IFWL_Barcode*>(m_pIface)->IsProtectedType();
}
FWL_ERR CFWL_Barcode::CFWL_BarcodeDP::GetCaption(IFWL_Widget* pWidget,
CFX_WideString& wsCaption) {
« no previous file with comments | « xfa/src/fwl/src/core/include/fwl_widgetmgrimp.h ('k') | xfa/src/fwl/src/lightwidget/caret.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698