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

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

Issue 1602323002: Remove an extra "const" in fpdf_objects. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 11 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/src/fpdfapi/fpdf_parser/fpdf_parser_objects.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 CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const CPDF_Stream* AsStream() const; 95 const CPDF_Stream* AsStream() const;
96 CPDF_String* AsString(); 96 CPDF_String* AsString();
97 const CPDF_String* AsString() const; 97 const CPDF_String* AsString() const;
98 98
99 protected: 99 protected:
100 explicit CPDF_Object(FX_DWORD type) 100 explicit CPDF_Object(FX_DWORD type)
101 : m_Type(type), m_ObjNum(0), m_GenNum(0) {} 101 : m_Type(type), m_ObjNum(0), m_GenNum(0) {}
102 ~CPDF_Object() {} 102 ~CPDF_Object() {}
103 void Destroy(); 103 void Destroy();
104 104
105 const CPDF_Object* const GetBasicObject() const; 105 const CPDF_Object* GetBasicObject() const;
106 106
107 FX_DWORD m_Type; 107 FX_DWORD m_Type;
108 FX_DWORD m_ObjNum; 108 FX_DWORD m_ObjNum;
109 FX_DWORD m_GenNum; 109 FX_DWORD m_GenNum;
110 110
111 friend class CPDF_IndirectObjectHolder; 111 friend class CPDF_IndirectObjectHolder;
112 friend class CPDF_Parser; 112 friend class CPDF_Parser;
113 friend class CPDF_SyntaxParser; 113 friend class CPDF_SyntaxParser;
114 114
115 private: 115 private:
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 iterator end() { return m_IndirectObjs.end(); } 582 iterator end() { return m_IndirectObjs.end(); }
583 const_iterator end() const { return m_IndirectObjs.end(); } 583 const_iterator end() const { return m_IndirectObjs.end(); }
584 584
585 protected: 585 protected:
586 CPDF_Parser* m_pParser; 586 CPDF_Parser* m_pParser;
587 FX_DWORD m_LastObjNum; 587 FX_DWORD m_LastObjNum;
588 std::map<FX_DWORD, CPDF_Object*> m_IndirectObjs; 588 std::map<FX_DWORD, CPDF_Object*> m_IndirectObjs;
589 }; 589 };
590 590
591 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ 591 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698