summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-03-28 21:10:35 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-28 21:10:35 +0000
commita17a0e219d5fcd4b8714cf97e8daf119d4388bee (patch)
tree158f81e700398e3e4fc7cb03111b79746d485fdd /fxjs
parentcbf76e656042e3d9778ccc114983ab6a3c19ff92 (diff)
downloadpdfium-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 'fxjs')
-rw-r--r--fxjs/cjs_field.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_field.cpp b/fxjs/cjs_field.cpp
index 7b4c064a9e..acc0fe3188 100644
--- a/fxjs/cjs_field.cpp
+++ b/fxjs/cjs_field.cpp
@@ -1888,7 +1888,7 @@ CJS_Return CJS_Field::get_text_color(CJS_Runtime* pRuntime) {
int iColorType;
FX_ARGB color;
CPDF_DefaultAppearance FieldAppearance = pFormControl->GetDefaultAppearance();
- FieldAppearance.GetColor(color, iColorType);
+ std::tie(iColorType, color) = FieldAppearance.GetColor();
int32_t a;
int32_t r;