diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-03-28 21:10:35 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-03-28 21:10:35 +0000 |
commit | a17a0e219d5fcd4b8714cf97e8daf119d4388bee (patch) | |
tree | 158f81e700398e3e4fc7cb03111b79746d485fdd /fpdfsdk/pwl | |
parent | cbf76e656042e3d9778ccc114983ab6a3c19ff92 (diff) | |
download | pdfium-a17a0e219d5fcd4b8714cf97e8daf119d4388bee.tar.xz |
Remove CPDF_DefaultAppearance reference params
This CL converts the CPDF_DefaultAppearance::GetColor methods to return
instead of using reference parameters.
Change-Id: I9ba6bf060a536290a83d3c9ce6e115511f28664c
Reviewed-on: https://pdfium-review.googlesource.com/29410
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl')
-rw-r--r-- | fpdfsdk/pwl/cpwl_appstream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/pwl/cpwl_appstream.cpp b/fpdfsdk/pwl/cpwl_appstream.cpp index 38144d1735..0731398ae2 100644 --- a/fpdfsdk/pwl/cpwl_appstream.cpp +++ b/fpdfsdk/pwl/cpwl_appstream.cpp @@ -1181,7 +1181,7 @@ void CPWL_AppStream::SetAsPushButton() { ByteString csNameTag; CPDF_DefaultAppearance da = pControl->GetDefaultAppearance(); if (da.HasColor()) { - da.GetColor(iColorType, fc); + iColorType = da.GetColor(fc); crText = CFX_Color(iColorType, fc[0], fc[1], fc[2], fc[3]); } float fFontSize = 12.0f; @@ -1355,7 +1355,7 @@ void CPWL_AppStream::SetAsCheckBox() { CFX_FloatRect rcClient = rcWindow.GetDeflated(fBorderWidth, fBorderWidth); CPDF_DefaultAppearance da = pControl->GetDefaultAppearance(); if (da.HasColor()) { - da.GetColor(iColorType, fc); + iColorType = da.GetColor(fc); crText = CFX_Color(iColorType, fc[0], fc[1], fc[2], fc[3]); } @@ -1471,7 +1471,7 @@ void CPWL_AppStream::SetAsRadioButton() { CFX_FloatRect rcClient = rcWindow.GetDeflated(fBorderWidth, fBorderWidth); CPDF_DefaultAppearance da = pControl->GetDefaultAppearance(); if (da.HasColor()) { - da.GetColor(iColorType, fc); + iColorType = da.GetColor(fc); crText = CFX_Color(iColorType, fc[0], fc[1], fc[2], fc[3]); } |