From 7a73effb9fe071fbc852b30865d7a332e96fbd56 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 8 Feb 2016 13:39:53 -0800 Subject: Tidy fpdfsave.cpp Remove CFX_PtrArray filelist. Promote ScopedFileStream to .h file and use it. Fix _CAPS names, bool returns, and put in anonymous namespace. FX_CreateMemoryStream() can't return null, so remove checks. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1672153002 . --- core/include/fpdfapi/fpdf_parser.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/include/fpdfapi') diff --git a/core/include/fpdfapi/fpdf_parser.h b/core/include/fpdfapi/fpdf_parser.h index 6620a71e2e..18a942e4e8 100644 --- a/core/include/fpdfapi/fpdf_parser.h +++ b/core/include/fpdfapi/fpdf_parser.h @@ -12,7 +12,7 @@ #include #include "core/include/fpdfapi/fpdf_objects.h" -#include "core/include/fxcrt/fx_system.h" +#include "core/include/fxcrt/fx_basic.h" class CFX_Font; class CFX_Matrix; @@ -28,7 +28,6 @@ class CPDF_Object; class CPDF_Parser; class CPDF_Pattern; class CPDF_StandardSecurityHandler; -class IFX_FileRead; class IPDF_SecurityHandler; #define FPDFPERM_PRINT 0x0004 @@ -41,6 +40,11 @@ class IPDF_SecurityHandler; #define FPDFPERM_PRINT_HIGH 0x0800 #define FPDF_PAGE_MAX_NUM 0xFFFFF +// TODO(thestig) Using unique_ptr with ReleaseDeleter is still not ideal. +// Come up or wait for something better. +using ScopedFileStream = + std::unique_ptr>; + // Use the accessors below instead of directly accessing PDF_CharType. extern const char PDF_CharType[256]; -- cgit v1.2.3