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

Side by Side Diff: core/fpdfapi/parser/cpdf_object.h

Issue 2420743002: Make CPDF_Image() constructors saner. (Closed)
Patch Set: Fix leak Created 4 years, 2 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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_FPDFAPI_PARSER_CPDF_OBJECT_H_ 7 #ifndef CORE_FPDFAPI_PARSER_CPDF_OBJECT_H_
8 #define CORE_FPDFAPI_PARSER_CPDF_OBJECT_H_ 8 #define CORE_FPDFAPI_PARSER_CPDF_OBJECT_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool bDirect, 111 bool bDirect,
112 std::set<const CPDF_Object*>* pVisited) const; 112 std::set<const CPDF_Object*>* pVisited) const;
113 113
114 uint32_t m_ObjNum; 114 uint32_t m_ObjNum;
115 uint32_t m_GenNum; 115 uint32_t m_GenNum;
116 116
117 private: 117 private:
118 CPDF_Object(const CPDF_Object& src) {} 118 CPDF_Object(const CPDF_Object& src) {}
119 }; 119 };
120 120
121 using UniqueObject = std::unique_ptr<CPDF_Object, ReleaseDeleter<CPDF_Object>>;
122
121 #endif // CORE_FPDFAPI_PARSER_CPDF_OBJECT_H_ 123 #endif // CORE_FPDFAPI_PARSER_CPDF_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698