summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_syntax_parser.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-11-22 13:02:43 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-22 13:02:43 -0800
commitc675a2f4afdd7e54bc4b4638bd1ffcb2de0b7124 (patch)
tree32d24b9f0f0644d59ed2e6578e420eb1542aee70 /core/fpdfapi/parser/cpdf_syntax_parser.h
parent6136ec6347a5858a85912a805ea41126863558cd (diff)
downloadpdfium-c675a2f4afdd7e54bc4b4638bd1ffcb2de0b7124.tar.xz
Use more unique_ptrs in CPDF_SyntaxParser and CPDF_Annotchromium/2929
Review-Url: https://codereview.chromium.org/2526543003
Diffstat (limited to 'core/fpdfapi/parser/cpdf_syntax_parser.h')
-rw-r--r--core/fpdfapi/parser/cpdf_syntax_parser.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/fpdfapi/parser/cpdf_syntax_parser.h b/core/fpdfapi/parser/cpdf_syntax_parser.h
index 094872ab70..1e8f736c17 100644
--- a/core/fpdfapi/parser/cpdf_syntax_parser.h
+++ b/core/fpdfapi/parser/cpdf_syntax_parser.h
@@ -75,9 +75,10 @@ class CPDF_SyntaxParser {
CFX_ByteString ReadString();
CFX_ByteString ReadHexString();
unsigned int ReadEOLMarkers(FX_FILESIZE pos);
- std::unique_ptr<CPDF_Stream> ReadStream(CPDF_Dictionary* pDict,
- uint32_t objnum,
- uint32_t gennum);
+ std::unique_ptr<CPDF_Stream> ReadStream(
+ std::unique_ptr<CPDF_Dictionary> pDict,
+ uint32_t objnum,
+ uint32_t gennum);
inline bool CheckPosition(FX_FILESIZE pos) {
return m_BufOffset >= pos ||