summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-23 12:08:34 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-23 18:03:39 +0000
commit0e187d80179fe63c11cfb710ecd18b95b39dfa10 (patch)
tree29d9a0f91ab44c4d6bca5e9c900c01e7bf2d380d /core
parent4b172c4934ddda46e06b1c4dc7554e96e1a2f54a (diff)
downloadpdfium-0e187d80179fe63c11cfb710ecd18b95b39dfa10.tar.xz
Cleanup some javascript color code
This CL changes the color conversion methods to return their result instead of taking an out param. Change-Id: I19ca2b395145866533c7f93cbad80cdf4d7df05d Reviewed-on: https://pdfium-review.googlesource.com/16530 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/fxge/cfx_color.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxge/cfx_color.h b/core/fxge/cfx_color.h
index 413c0a49c1..099e19b11e 100644
--- a/core/fxge/cfx_color.h
+++ b/core/fxge/cfx_color.h
@@ -37,6 +37,8 @@ struct CFX_Color {
fColor3(b / 255.0f),
fColor4(0) {}
+ CFX_Color(const CFX_Color&) = default;
+
CFX_Color operator/(float fColorDivide) const;
CFX_Color operator-(float fColorSub) const;