diff options
author | Lei Zhang <thestig@chromium.org> | 2017-06-29 18:28:58 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-30 18:36:15 +0000 |
commit | d24236a926deeb8b9589c330c27dbd300b7f8c9d (patch) | |
tree | 42c0258195c44d73699723abc433edefc6e62b8e /fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp | |
parent | f552ccab1d3ca232f9d2b4770ec40726e5047093 (diff) | |
download | pdfium-d24236a926deeb8b9589c330c27dbd300b7f8c9d.tar.xz |
Remove pointless CFX_FloatRect construction.
Also just call CFX_FloatRect() instead of explicitly writing out all
zeros.
Change-Id: I7574e64791d0c9ba613b14d0a613737dfbf39b12
Reviewed-on: https://pdfium-review.googlesource.com/7172
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp')
-rw-r--r-- | fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp index 3390696e01..d8a157a189 100644 --- a/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp +++ b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp @@ -122,7 +122,7 @@ void CPWL_EditCtrl::CreateEditCaret(const PWL_CREATEPARAM& cp) { ecp.dwFlags = PWS_CHILD | PWS_NOREFRESHCLIP; ecp.dwBorderWidth = 0; ecp.nBorderStyle = BorderStyle::SOLID; - ecp.rcRectWnd = CFX_FloatRect(0, 0, 0, 0); + ecp.rcRectWnd = CFX_FloatRect(); m_pEditCaret->Create(ecp); } |