summaryrefslogtreecommitdiff
path: root/core/fxcrt/css/cfx_csscomputedstyle.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-18 20:51:54 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-18 20:51:54 +0000
commit8e49f3fce1a56634284b254a0dc2d329da349355 (patch)
tree153842a78192a5726376efadeff7c2be69ec4191 /core/fxcrt/css/cfx_csscomputedstyle.cpp
parent4754adaf70d8708610ea31a4d5e3df7c4fcb2ef0 (diff)
downloadpdfium-8e49f3fce1a56634284b254a0dc2d329da349355.tar.xz
Do IWYU in core/fxcrt/css and fix lint errors.
Change-Id: I6d2b35849e9f1935277986b6c72e6f507d976974 Reviewed-on: https://pdfium-review.googlesource.com/c/43948 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcrt/css/cfx_csscomputedstyle.cpp')
-rw-r--r--core/fxcrt/css/cfx_csscomputedstyle.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fxcrt/css/cfx_csscomputedstyle.cpp b/core/fxcrt/css/cfx_csscomputedstyle.cpp
index eff708122b..11ae901185 100644
--- a/core/fxcrt/css/cfx_csscomputedstyle.cpp
+++ b/core/fxcrt/css/cfx_csscomputedstyle.cpp
@@ -9,16 +9,16 @@
#include "core/fxcrt/css/cfx_cssstringvalue.h"
#include "core/fxcrt/css/cfx_cssvaluelist.h"
-CFX_CSSComputedStyle::CFX_CSSComputedStyle() {}
+CFX_CSSComputedStyle::CFX_CSSComputedStyle() = default;
-CFX_CSSComputedStyle::~CFX_CSSComputedStyle() {}
+CFX_CSSComputedStyle::~CFX_CSSComputedStyle() = default;
bool CFX_CSSComputedStyle::GetCustomStyle(const WideString& wsName,
- WideString& wsValue) const {
+ WideString* pValue) const {
for (auto iter = m_CustomProperties.rbegin();
- iter != m_CustomProperties.rend(); iter++) {
+ iter != m_CustomProperties.rend(); ++iter) {
if (wsName == iter->name()) {
- wsValue = iter->value();
+ *pValue = iter->value();
return true;
}
}