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

Side by Side Diff: xfa/src/fxbarcode/common/BC_CommonDecoderResult.cpp

Issue 1726373002: Remove foo != NULL checks in xfa/src/fxbarcode. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 10 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 // Original code is licensed as follows: 6 // Original code is licensed as follows:
7 /* 7 /*
8 * Copyright 2007 ZXing authors 8 * Copyright 2007 ZXing authors
9 * 9 *
10 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * Licensed under the Apache License, Version 2.0 (the "License");
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 m_rawBytes.Copy(rawBytes); 52 m_rawBytes.Copy(rawBytes);
53 m_text = text; 53 m_text = text;
54 m_pdf417byteSegments.Copy(byteSegments); 54 m_pdf417byteSegments.Copy(byteSegments);
55 m_pdf417ecLevel = ecLevel; 55 m_pdf417ecLevel = ecLevel;
56 m_other = NULL; 56 m_other = NULL;
57 } 57 }
58 void CBC_CommonDecoderResult::setOther(CBC_PDF417ResultMetadata* other) { 58 void CBC_CommonDecoderResult::setOther(CBC_PDF417ResultMetadata* other) {
59 m_other = other; 59 m_other = other;
60 } 60 }
61 CBC_CommonDecoderResult::~CBC_CommonDecoderResult() { 61 CBC_CommonDecoderResult::~CBC_CommonDecoderResult() {
62 if (m_other != NULL) { 62 delete m_other;
63 delete m_other;
64 }
65 } 63 }
66 const CFX_ByteArray& CBC_CommonDecoderResult::GetRawBytes() { 64 const CFX_ByteArray& CBC_CommonDecoderResult::GetRawBytes() {
67 return m_rawBytes; 65 return m_rawBytes;
68 } 66 }
69 const CFX_Int32Array& CBC_CommonDecoderResult::GetByteSegments() { 67 const CFX_Int32Array& CBC_CommonDecoderResult::GetByteSegments() {
70 return m_byteSegments; 68 return m_byteSegments;
71 } 69 }
72 const CFX_ByteString& CBC_CommonDecoderResult::GetText() { 70 const CFX_ByteString& CBC_CommonDecoderResult::GetText() {
73 return m_text; 71 return m_text;
74 } 72 }
75 CBC_QRCoderErrorCorrectionLevel* CBC_CommonDecoderResult::GetECLevel() { 73 CBC_QRCoderErrorCorrectionLevel* CBC_CommonDecoderResult::GetECLevel() {
76 return m_ecLevel; 74 return m_ecLevel;
77 } 75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698