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

Side by Side Diff: core/include/fpdfapi/fpdf_resource.h

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
« no previous file with comments | « core/include/fpdfapi/fpdf_objects.h ('k') | core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef _FPDF_RESOURCE_ 7 #ifndef _FPDF_RESOURCE_
8 #define _FPDF_RESOURCE_ 8 #define _FPDF_RESOURCE_
9 #ifndef _FPDF_PARSER_ 9 #ifndef _FPDF_PARSER_
10 #include "fpdf_parser.h" 10 #include "fpdf_parser.h"
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 return m_pInlineDict; 875 return m_pInlineDict;
876 } 876 }
877 877
878 CPDF_Stream* GetStream() const 878 CPDF_Stream* GetStream() const
879 { 879 {
880 return m_pStream; 880 return m_pStream;
881 } 881 }
882 882
883 CPDF_Dictionary* GetDict() const 883 CPDF_Dictionary* GetDict() const
884 { 884 {
885 return m_pStream->GetDict(); 885 return m_pStream? m_pStream->GetDict(): NULL;
886 } 886 }
887 887
888 CPDF_Dictionary* GetOC() const 888 CPDF_Dictionary* GetOC() const
889 { 889 {
890 return m_pOC; 890 return m_pOC;
891 } 891 }
892 892
893 CPDF_Document* GetDocument() const 893 CPDF_Document* GetDocument() const
894 { 894 {
895 return m_pDocument; 895 return m_pDocument;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 FX_BOOL m_bIsMask; 951 FX_BOOL m_bIsMask;
952 952
953 FX_BOOL m_bInterpolate; 953 FX_BOOL m_bInterpolate;
954 954
955 CPDF_Document* m_pDocument; 955 CPDF_Document* m_pDocument;
956 956
957 CPDF_Dictionary* m_pOC; 957 CPDF_Dictionary* m_pOC;
958 CPDF_Dictionary* InitJPEG(FX_LPBYTE pData, FX_DWORD size); 958 CPDF_Dictionary* InitJPEG(FX_LPBYTE pData, FX_DWORD size);
959 }; 959 };
960 #endif 960 #endif
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_objects.h ('k') | core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698