diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-02-29 13:23:13 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-02-29 13:23:13 -0800 |
commit | bec4ea1e64b8049c572dd088c9c09a94f49b2353 (patch) | |
tree | 14470b439a7f963beea6aff17c72ac3321dc2e0a /xfa/src/fdp | |
parent | 3f157c7c6a5cdb92dd5df2a0b06c10ed83b472e8 (diff) | |
download | pdfium-bec4ea1e64b8049c572dd088c9c09a94f49b2353.tar.xz |
Pass rect by const reference in SetClip_Rect().
R=dsinclair@chromium.org
Review URL: https://codereview.chromium.org/1745243002 .
Diffstat (limited to 'xfa/src/fdp')
-rw-r--r-- | xfa/src/fdp/src/fde/fde_gedevice.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xfa/src/fdp/src/fde/fde_gedevice.cpp b/xfa/src/fdp/src/fde/fde_gedevice.cpp index b2be47c659..c0d665d6a5 100644 --- a/xfa/src/fdp/src/fde/fde_gedevice.cpp +++ b/xfa/src/fdp/src/fde/fde_gedevice.cpp @@ -71,11 +71,10 @@ void CFDE_FxgeDevice::RestoreState(FDE_HDEVICESTATE hState) { } FX_BOOL CFDE_FxgeDevice::SetClipRect(const CFX_RectF& rtClip) { m_rtClip = rtClip; - FX_RECT rt((int32_t)FXSYS_floor(rtClip.left), - (int32_t)FXSYS_floor(rtClip.top), - (int32_t)FXSYS_ceil(rtClip.right()), - (int32_t)FXSYS_ceil(rtClip.bottom())); - return m_pDevice->SetClip_Rect(&rt); + return m_pDevice->SetClip_Rect(FX_RECT((int32_t)FXSYS_floor(rtClip.left), + (int32_t)FXSYS_floor(rtClip.top), + (int32_t)FXSYS_ceil(rtClip.right()), + (int32_t)FXSYS_ceil(rtClip.bottom()))); } const CFX_RectF& CFDE_FxgeDevice::GetClipRect() { return m_rtClip; |