cstretchengine.cpp: remove two unnecessary local bools Change-Id: I1eab776eec1ee50d98e54e87a6e23918f24f6dc5 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/82014 Auto-Submit: Tom Sepez <tsepez@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/core/fxge/dib/cstretchengine.cpp b/core/fxge/dib/cstretchengine.cpp index 64e54d4..01a5ff1 100644 --- a/core/fxge/dib/cstretchengine.cpp +++ b/core/fxge/dib/cstretchengine.cpp
@@ -251,18 +251,16 @@ m_SrcClip.Height() > (1 << 29) / m_InterPitch) { return false; } - m_InterBuf.resize(m_SrcClip.Height() * m_InterPitch); if (m_pSource && m_bHasAlpha && m_pSource->HasAlphaMask()) { m_ExtraAlphaBuf.resize(m_SrcClip.Height(), m_ExtraMaskPitch); m_DestMaskScanline.resize(m_ExtraMaskPitch); } - bool ret = m_WeightTable.CalculateWeights( - m_DestWidth, m_DestClip.left, m_DestClip.right, m_SrcWidth, - m_SrcClip.left, m_SrcClip.right, m_ResampleOptions); - if (!ret) + if (!m_WeightTable.CalculateWeights( + m_DestWidth, m_DestClip.left, m_DestClip.right, m_SrcWidth, + m_SrcClip.left, m_SrcClip.right, m_ResampleOptions)) { return false; - + } m_CurRow = m_SrcClip.top; m_State = State::kHorizontal; return true; @@ -449,11 +447,11 @@ return; CWeightTable table; - bool ret = table.CalculateWeights( - m_DestHeight, m_DestClip.top, m_DestClip.bottom, m_SrcHeight, - m_SrcClip.top, m_SrcClip.bottom, m_ResampleOptions); - if (!ret) + if (!table.CalculateWeights(m_DestHeight, m_DestClip.top, m_DestClip.bottom, + m_SrcHeight, m_SrcClip.top, m_SrcClip.bottom, + m_ResampleOptions)) { return; + } const int DestBpp = m_DestBpp / 8; for (int row = m_DestClip.top; row < m_DestClip.bottom; ++row) {