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

Side by Side Diff: core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp

Issue 361553002: Remove "this==NULL" and adjust corresponding callers (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: fix if check warning Created 6 years, 5 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 "../../../include/fpdfapi/fpdf_page.h" 7 #include "../../../include/fpdfapi/fpdf_page.h"
8 #include "pageint.h" 8 #include "pageint.h"
9 CPDF_TilingPattern::CPDF_TilingPattern(CPDF_Document* pDoc, CPDF_Object* pPatter nObj, const CFX_AffineMatrix* parentMatrix) : 9 CPDF_TilingPattern::CPDF_TilingPattern(CPDF_Document* pDoc, CPDF_Object* pPatter nObj, const CFX_AffineMatrix* parentMatrix) :
10 CPDF_Pattern(parentMatrix) 10 CPDF_Pattern(parentMatrix)
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 m_ShadingType = 0; 91 m_ShadingType = 0;
92 m_pCS = NULL; 92 m_pCS = NULL;
93 m_nFuncs = 0; 93 m_nFuncs = 0;
94 } 94 }
95 FX_BOOL CPDF_ShadingPattern::Load() 95 FX_BOOL CPDF_ShadingPattern::Load()
96 { 96 {
97 if (m_ShadingType != 0) { 97 if (m_ShadingType != 0) {
98 return TRUE; 98 return TRUE;
99 } 99 }
100 CPDF_Dictionary* pShadingDict = m_pShadingObj->GetDict(); 100 CPDF_Dictionary* pShadingDict = m_pShadingObj ? m_pShadingObj->GetDict() : N ULL;
101 if (pShadingDict == NULL) { 101 if (pShadingDict == NULL) {
102 return FALSE; 102 return FALSE;
103 } 103 }
104 if (m_nFuncs) { 104 if (m_nFuncs) {
105 for (int i = 0; i < m_nFuncs; i ++) 105 for (int i = 0; i < m_nFuncs; i ++)
106 if (m_pFunctions[i]) { 106 if (m_pFunctions[i]) {
107 delete m_pFunctions[i]; 107 delete m_pFunctions[i];
108 } 108 }
109 m_nFuncs = 0; 109 m_nFuncs = 0;
110 } 110 }
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 } 269 }
270 } 270 }
271 stream.m_BitStream.SkipBits(stream.m_nComps * stream.m_nCompBits * color _count); 271 stream.m_BitStream.SkipBits(stream.m_nComps * stream.m_nCompBits * color _count);
272 if (bGouraud) { 272 if (bGouraud) {
273 stream.m_BitStream.ByteAlign(); 273 stream.m_BitStream.ByteAlign();
274 } 274 }
275 } 275 }
276 rect.Transform(pMatrix); 276 rect.Transform(pMatrix);
277 return rect; 277 return rect;
278 } 278 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp ('k') | core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698