diff options
author | Lei Zhang <thestig@chromium.org> | 2018-04-10 19:02:15 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-10 19:02:15 +0000 |
commit | e5c3ebd923a21c6c82bd214ca27a5d7396b852c2 (patch) | |
tree | d952cc04bd711b5dd21ad2dcce7ea307024c719b /fxbarcode/oned/BC_OnedEAN8Writer.cpp | |
parent | 85ba2610cf05a75b52681f381bba2da3ba37b984 (diff) | |
download | pdfium-e5c3ebd923a21c6c82bd214ca27a5d7396b852c2.tar.xz |
Change CFX_RenderDevice::FillRect() to take FX_RECT by const-ref.
It currently takes const FX_RECT*, but the pointer is never nullptr.
Change-Id: I571e9e8dd04756bc4daa25a61a5af8d1f902914b
Reviewed-on: https://pdfium-review.googlesource.com/30052
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fxbarcode/oned/BC_OnedEAN8Writer.cpp')
-rw-r--r-- | fxbarcode/oned/BC_OnedEAN8Writer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fxbarcode/oned/BC_OnedEAN8Writer.cpp b/fxbarcode/oned/BC_OnedEAN8Writer.cpp index 988528ed09..6862ba87a1 100644 --- a/fxbarcode/oned/BC_OnedEAN8Writer.cpp +++ b/fxbarcode/oned/BC_OnedEAN8Writer.cpp @@ -160,14 +160,14 @@ bool CBC_OnedEAN8Writer::ShowChars(const WideStringView& contents, (float)(leftPosition + strWidth - 0.5), (float)m_Height); matr.Concat(*matrix); FX_RECT re = matr.TransformRect(rect).GetOuterRect(); - device->FillRect(&re, m_backgroundColor); + device->FillRect(re, m_backgroundColor); CFX_Matrix matr1(m_outputHScale, 0.0, 0.0, 1.0, 0.0, 0.0); CFX_FloatRect rect1( (float)(leftPosition + 33 * multiple), (float)(m_Height - iTextHeight), (float)(leftPosition + 33 * multiple + strWidth - 0.5), (float)m_Height); matr1.Concat(*matrix); re = matr1.TransformRect(rect1).GetOuterRect(); - device->FillRect(&re, m_backgroundColor); + device->FillRect(re, m_backgroundColor); strWidth = (int32_t)(strWidth * m_outputHScale); CalcTextInfo(tempStr, charpos.data(), m_pFont.Get(), (float)strWidth, |