diff options
author | Lei Zhang <thestig@chromium.org> | 2017-03-10 14:37:14 -0800 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-13 19:28:30 +0000 |
commit | 375c2764b56b38cc9326a8f8ef668fbf78234e9a (patch) | |
tree | ee1056ac37b855135c8c5a544d4716c3d1a9c7b1 /xfa/fxfa/app | |
parent | 723987910fb195e454aab28e1088df4f9ccf0d6e (diff) | |
download | pdfium-375c2764b56b38cc9326a8f8ef668fbf78234e9a.tar.xz |
Make most PDFium code pass Clang plugin's auto raw check.
Change-Id: I9dc32342e24361389841ecba83081a97fc043377
Reviewed-on: https://pdfium-review.googlesource.com/2959
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/app')
-rw-r--r-- | xfa/fxfa/app/xfa_ffchoicelist.cpp | 2 | ||||
-rw-r--r-- | xfa/fxfa/app/xfa_ffdocview.cpp | 6 | ||||
-rw-r--r-- | xfa/fxfa/app/xfa_ffpageview.cpp | 4 | ||||
-rw-r--r-- | xfa/fxfa/app/xfa_ffwidgetacc.cpp | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/xfa/fxfa/app/xfa_ffchoicelist.cpp b/xfa/fxfa/app/xfa_ffchoicelist.cpp index 3aabde870a..66b52fec40 100644 --- a/xfa/fxfa/app/xfa_ffchoicelist.cpp +++ b/xfa/fxfa/app/xfa_ffchoicelist.cpp @@ -227,7 +227,7 @@ CFX_RectF CXFA_FFComboBox::GetBBox(uint32_t dwStatus, bool bDrawFocus) { } bool CXFA_FFComboBox::PtInActiveRect(const CFX_PointF& point) { - auto pComboBox = static_cast<CFWL_ComboBox*>(m_pNormalWidget); + auto* pComboBox = static_cast<CFWL_ComboBox*>(m_pNormalWidget); return pComboBox && pComboBox->GetBBox().Contains(point); } diff --git a/xfa/fxfa/app/xfa_ffdocview.cpp b/xfa/fxfa/app/xfa_ffdocview.cpp index 87441814e5..545afcad00 100644 --- a/xfa/fxfa/app/xfa_ffdocview.cpp +++ b/xfa/fxfa/app/xfa_ffdocview.cpp @@ -633,12 +633,12 @@ void CXFA_FFDocView::AddCalculateWidgetAcc(CXFA_WidgetAcc* pWidgetAcc) { } void CXFA_FFDocView::AddCalculateNodeNotify(CXFA_Node* pNodeChange) { - auto pGlobalData = + auto* pGlobalData = static_cast<CXFA_CalcData*>(pNodeChange->GetUserData(XFA_CalcData)); if (!pGlobalData) return; - for (const auto& pResultAcc : pGlobalData->m_Globals) { + for (auto* pResultAcc : pGlobalData->m_Globals) { if (!pResultAcc->GetNode()->HasRemovedChildren()) AddCalculateWidgetAcc(pResultAcc); } @@ -723,7 +723,7 @@ bool CXFA_FFDocView::RunEventLayoutReady() { return true; } void CXFA_FFDocView::RunBindItems() { - for (const auto& item : m_BindItems) { + for (auto* item : m_BindItems) { if (item->HasRemovedChildren()) continue; diff --git a/xfa/fxfa/app/xfa_ffpageview.cpp b/xfa/fxfa/app/xfa_ffpageview.cpp index caff52c6c0..181f0f19a5 100644 --- a/xfa/fxfa/app/xfa_ffpageview.cpp +++ b/xfa/fxfa/app/xfa_ffpageview.cpp @@ -363,8 +363,8 @@ void CXFA_FFTabOrderPageWidgetIterator::CreateTabOrderWidgetArray() { static int32_t XFA_TabOrderWidgetComparator(const void* phWidget1, const void* phWidget2) { - auto param1 = *static_cast<CXFA_TabParam**>(const_cast<void*>(phWidget1)); - auto param2 = *static_cast<CXFA_TabParam**>(const_cast<void*>(phWidget2)); + auto* param1 = *static_cast<CXFA_TabParam**>(const_cast<void*>(phWidget1)); + auto* param2 = *static_cast<CXFA_TabParam**>(const_cast<void*>(phWidget2)); CFX_RectF rt1 = param1->m_pWidget->GetWidgetRect(); CFX_RectF rt2 = param2->m_pWidget->GetWidgetRect(); FX_FLOAT x1 = rt1.left, y1 = rt1.top, x2 = rt2.left, y2 = rt2.top; diff --git a/xfa/fxfa/app/xfa_ffwidgetacc.cpp b/xfa/fxfa/app/xfa_ffwidgetacc.cpp index adc5c31cc6..960771f9f8 100644 --- a/xfa/fxfa/app/xfa_ffwidgetacc.cpp +++ b/xfa/fxfa/app/xfa_ffwidgetacc.cpp @@ -1505,7 +1505,7 @@ CFX_RetainPtr<CFGAS_GEFont> CXFA_WidgetAcc::GetFDEFont() { font.GetTypeface(wsFontName); } - auto pDoc = GetDoc(); + auto* pDoc = GetDoc(); return pDoc->GetApp()->GetXFAFontMgr()->GetFont(pDoc, wsFontName, dwFontStyle); } |