From 375c2764b56b38cc9326a8f8ef668fbf78234e9a Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 10 Mar 2017 14:37:14 -0800 Subject: 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 Commit-Queue: Lei Zhang --- xfa/fde/css/cfde_cssstyleselector.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xfa/fde/css/cfde_cssstyleselector.cpp') diff --git a/xfa/fde/css/cfde_cssstyleselector.cpp b/xfa/fde/css/cfde_cssstyleselector.cpp index 5a7aa1b7ff..08cd0e9251 100644 --- a/xfa/fde/css/cfde_cssstyleselector.cpp +++ b/xfa/fde/css/cfde_cssstyleselector.cpp @@ -56,7 +56,7 @@ CFDE_CSSStyleSelector::MatchDeclarations(const CFX_WideString& tagname) { if (m_UARules.CountSelectors() == 0 || tagname.IsEmpty()) return matchedDecls; - auto rules = m_UARules.GetTagRuleData(tagname); + auto* rules = m_UARules.GetTagRuleData(tagname); if (!rules) return matchedDecls; @@ -106,19 +106,19 @@ void CFDE_CSSStyleSelector::ApplyDeclarations( std::vector normals; std::vector customs; - for (auto& decl : declArray) + for (auto* decl : declArray) ExtractValues(decl, &importants, &normals, &customs); if (extraDecl) ExtractValues(extraDecl, &importants, &normals, &customs); - for (auto& prop : normals) + for (auto* prop : normals) ApplyProperty(prop->eProperty, prop->pValue, pComputedStyle); - for (auto& prop : customs) + for (auto* prop : customs) pComputedStyle->AddCustomStyle(*prop); - for (auto& prop : importants) + for (auto* prop : importants) ApplyProperty(prop->eProperty, prop->pValue, pComputedStyle); } -- cgit v1.2.3