Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: xfa/fwl/basewidget/fxmath_barcodeimp.cpp

Issue 1935793002: Fix lint bugs. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fwl/basewidget/fxmath_barcodeimp.h" 7 #include "xfa/fwl/basewidget/fxmath_barcodeimp.h"
8 8
9 #include "xfa/fxbarcode/cbc_codabar.h" 9 #include "xfa/fxbarcode/cbc_codabar.h"
10 #include "xfa/fxbarcode/cbc_code128.h" 10 #include "xfa/fxbarcode/cbc_code128.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 #endif 331 #endif
332 FX_BOOL CFX_Barcode::Encode(const CFX_WideStringC& contents, 332 FX_BOOL CFX_Barcode::Encode(const CFX_WideStringC& contents,
333 FX_BOOL isDevice, 333 FX_BOOL isDevice,
334 int32_t& e) { 334 int32_t& e) {
335 if (!m_pBCEngine) { 335 if (!m_pBCEngine) {
336 return FALSE; 336 return FALSE;
337 } 337 }
338 return m_pBCEngine->Encode(contents, isDevice, e); 338 return m_pBCEngine->Encode(contents, isDevice, e);
339 } 339 }
340 FX_BOOL CFX_Barcode::RenderDevice(CFX_RenderDevice* device, 340 FX_BOOL CFX_Barcode::RenderDevice(CFX_RenderDevice* device,
341 const CFX_Matrix* matirx, 341 const CFX_Matrix* matrix,
342 int32_t& e) { 342 int32_t& e) {
343 if (!m_pBCEngine) { 343 if (!m_pBCEngine) {
344 return FALSE; 344 return FALSE;
345 } 345 }
346 return m_pBCEngine->RenderDevice(device, matirx, e); 346 return m_pBCEngine->RenderDevice(device, matrix, e);
347 } 347 }
348 FX_BOOL CFX_Barcode::RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) { 348 FX_BOOL CFX_Barcode::RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) {
349 if (!m_pBCEngine) { 349 if (!m_pBCEngine) {
350 return FALSE; 350 return FALSE;
351 } 351 }
352 return m_pBCEngine->RenderBitmap(pOutBitmap, e); 352 return m_pBCEngine->RenderBitmap(pOutBitmap, e);
353 } 353 }
354 #define BC_TYPE_MIN BC_CODE39 354 #define BC_TYPE_MIN BC_CODE39
355 #define BC_TYPE_MAX BC_DATAMATRIX 355 #define BC_TYPE_MAX BC_DATAMATRIX
356 CFX_WideString CFX_Barcode::Decode(uint8_t* buf, 356 CFX_WideString CFX_Barcode::Decode(uint8_t* buf,
(...skipping 22 matching lines...) Expand all
379 continue; 379 continue;
380 } 380 }
381 CFX_WideString ret = pTmpEngine->Decode(pBitmap, errorCode); 381 CFX_WideString ret = pTmpEngine->Decode(pBitmap, errorCode);
382 if (errorCode == BCExceptionNO) { 382 if (errorCode == BCExceptionNO) {
383 return ret; 383 return ret;
384 } 384 }
385 } 385 }
386 errorCode = BCExceptionUnSupportedBarcode; 386 errorCode = BCExceptionUnSupportedBarcode;
387 return CFX_WideString(); 387 return CFX_WideString();
388 } 388 }
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fxmath_barcodeimp.h ('k') | xfa/fxbarcode/BC_BufferedImageLuminanceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698