From fbe14b97f00b866e69e0970881550f6d6d9465cd Mon Sep 17 00:00:00 2001 From: thestig Date: Mon, 2 May 2016 13:31:10 -0700 Subject: Fix lint bugs. Also fix typos and overrides. Review-Url: https://codereview.chromium.org/1935793002 --- xfa/fxbarcode/BC_BufferedImageLuminanceSource.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xfa/fxbarcode/BC_BufferedImageLuminanceSource.cpp') diff --git a/xfa/fxbarcode/BC_BufferedImageLuminanceSource.cpp b/xfa/fxbarcode/BC_BufferedImageLuminanceSource.cpp index 982cc9c4ad..814f300b2d 100644 --- a/xfa/fxbarcode/BC_BufferedImageLuminanceSource.cpp +++ b/xfa/fxbarcode/BC_BufferedImageLuminanceSource.cpp @@ -135,8 +135,8 @@ CFX_ByteArray* CBC_BufferedImageLuminanceSource::GetRow(int32_t y, } CFX_ByteArray* CBC_BufferedImageLuminanceSource::GetMatrix() { - CFX_ByteArray* matirx = new CFX_ByteArray(); - matirx->SetSize(m_bytesPerLine * m_height); + CFX_ByteArray* matrix = new CFX_ByteArray(); + matrix->SetSize(m_bytesPerLine * m_height); int32_t* rgb = (int32_t*)m_pBitmap->GetBuffer(); int32_t y; for (y = 0; y < m_height; y++) { @@ -148,8 +148,8 @@ CFX_ByteArray* CBC_BufferedImageLuminanceSource::GetMatrix() { (306 * ((pixel >> 16) & 0xFF) + 601 * ((pixel >> 8) & 0xFF) + 117 * (pixel & 0xFF)) >> 10; - (*matirx)[offset + x] = (uint8_t)luminance; + (*matrix)[offset + x] = (uint8_t)luminance; } } - return matirx; + return matrix; } -- cgit v1.2.3