diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-06 00:32:16 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-06 00:32:16 +0000 |
commit | d9826495fe0e279c6e2d587a656c7452cc2dc71f (patch) | |
tree | 0256f8903da70445c5f8e21b62c01d2d70385201 /core/fxcrt | |
parent | a0032a2a2c53794bbf0ccb412a5c70ce66f052fb (diff) | |
download | pdfium-d9826495fe0e279c6e2d587a656c7452cc2dc71f.tar.xz |
Encapsulate CPDF_PageObject's rect member.
At the same time, change it from 4 floats to a CFX_FloatRect.
Change-Id: I00ded941723d6a264b7a17c73fd337e66b449308
Reviewed-on: https://pdfium-review.googlesource.com/c/43570
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt')
-rw-r--r-- | core/fxcrt/fx_coordinates.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/fx_coordinates.h b/core/fxcrt/fx_coordinates.h index 05e60c47b5..9e41efc417 100644 --- a/core/fxcrt/fx_coordinates.h +++ b/core/fxcrt/fx_coordinates.h @@ -225,8 +225,8 @@ struct FX_RECT { // LTRB rectangles (y-axis runs upwards). class CFX_FloatRect { public: - CFX_FloatRect() : CFX_FloatRect(0.0f, 0.0f, 0.0f, 0.0f) {} - CFX_FloatRect(float l, float b, float r, float t) + constexpr CFX_FloatRect() : CFX_FloatRect(0.0f, 0.0f, 0.0f, 0.0f) {} + constexpr CFX_FloatRect(float l, float b, float r, float t) : left(l), bottom(b), right(r), top(t) {} explicit CFX_FloatRect(const float* pArray) |