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

Side by Side Diff: core/include/fpdfapi/fpdf_objects.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 | « no previous file | core/include/fpdfapi/fpdf_resource.h » ('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_OBJECTS_ 7 #ifndef _FPDF_OBJECTS_
8 #define _FPDF_OBJECTS_ 8 #define _FPDF_OBJECTS_
9 #ifndef _FXCRT_EXTENSION_ 9 #ifndef _FXCRT_EXTENSION_
10 #include "../fxcrt/fx_ext.h" 10 #include "../fxcrt/fx_ext.h"
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 void LoadAllData(const CPDF_Stream* p Stream, FX_BOOL bRawAccess = FALSE, 613 void LoadAllData(const CPDF_Stream* p Stream, FX_BOOL bRawAccess = FALSE,
614 FX_DWORD estimated_size = 0, FX_BOOL bIm ageAcc = FALSE); 614 FX_DWORD estimated_size = 0, FX_BOOL bIm ageAcc = FALSE);
615 615
616 const CPDF_Stream* GetStream() const 616 const CPDF_Stream* GetStream() const
617 { 617 {
618 return m_pStream; 618 return m_pStream;
619 } 619 }
620 620
621 CPDF_Dictionary* GetDict() const 621 CPDF_Dictionary* GetDict() const
622 { 622 {
623 return m_pStream->GetDict(); 623 return m_pStream? m_pStream->GetDict() : NULL;
624 } 624 }
625 625
626 FX_LPCBYTE GetData() const; 626 FX_LPCBYTE GetData() const;
627 627
628 FX_DWORD GetSize() const; 628 FX_DWORD GetSize() const;
629 629
630 FX_LPBYTE DetachData(); 630 FX_LPBYTE DetachData();
631 631
632 const CFX_ByteString& GetImageDecoder() 632 const CFX_ByteString& GetImageDecoder()
633 { 633 {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 } 776 }
777 protected: 777 protected:
778 778
779 CFX_MapPtrToPtr m_IndirectObjs; 779 CFX_MapPtrToPtr m_IndirectObjs;
780 780
781 IPDF_DocParser* m_pParser; 781 IPDF_DocParser* m_pParser;
782 782
783 FX_DWORD m_LastObjNum; 783 FX_DWORD m_LastObjNum;
784 }; 784 };
785 #endif 785 #endif
OLDNEW
« no previous file with comments | « no previous file | core/include/fpdfapi/fpdf_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698