From e5c3ebd923a21c6c82bd214ca27a5d7396b852c2 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 10 Apr 2018 19:02:15 +0000 Subject: 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 Reviewed-by: Ryan Harrison --- fxbarcode/oned/BC_OnedUPCAWriter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fxbarcode/oned/BC_OnedUPCAWriter.cpp') diff --git a/fxbarcode/oned/BC_OnedUPCAWriter.cpp b/fxbarcode/oned/BC_OnedUPCAWriter.cpp index 025f851526..daabe9eb3b 100644 --- a/fxbarcode/oned/BC_OnedUPCAWriter.cpp +++ b/fxbarcode/oned/BC_OnedUPCAWriter.cpp @@ -128,7 +128,7 @@ bool CBC_OnedUPCAWriter::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 + 40 * multiple), (float)(m_Height - iTextHeight), @@ -136,14 +136,14 @@ bool CBC_OnedUPCAWriter::ShowChars(const WideStringView& contents, (float)m_Height); matr1.Concat(*matrix); re = matr1.TransformRect(rect1).GetOuterRect(); - device->FillRect(&re, m_backgroundColor); + device->FillRect(re, m_backgroundColor); float strWidth1 = (float)multiple * 7; CFX_Matrix matr2(m_outputHScale, 0.0, 0.0, 1.0, 0.0, 0.0); CFX_FloatRect rect2(0.0, (float)(m_Height - iTextHeight), (float)strWidth1 - 1, (float)m_Height); matr2.Concat(*matrix); re = matr2.TransformRect(rect2).GetOuterRect(); - device->FillRect(&re, m_backgroundColor); + device->FillRect(re, m_backgroundColor); CFX_Matrix matr3(m_outputHScale, 0.0, 0.0, 1.0, 0.0, 0.0); CFX_FloatRect rect3((float)(leftPosition + 85 * multiple), (float)(m_Height - iTextHeight), @@ -151,7 +151,7 @@ bool CBC_OnedUPCAWriter::ShowChars(const WideStringView& contents, (float)m_Height); matr3.Concat(*matrix); re = matr3.TransformRect(rect3).GetOuterRect(); - device->FillRect(&re, m_backgroundColor); + device->FillRect(re, m_backgroundColor); strWidth = strWidth * m_outputHScale; CalcTextInfo(tempStr, &charpos[1], m_pFont.Get(), strWidth, iFontSize, blank); -- cgit v1.2.3