diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-02-08 13:39:53 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-02-08 13:39:53 -0800 |
commit | 7a73effb9fe071fbc852b30865d7a332e96fbd56 (patch) | |
tree | e3a61318b805e6b7108e6889235a2e44e382b3d6 /core/include | |
parent | 1d95d654dde9380265be8d412141e03f7ba12da3 (diff) | |
download | pdfium-7a73effb9fe071fbc852b30865d7a332e96fbd56.tar.xz |
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 .
Diffstat (limited to 'core/include')
-rw-r--r-- | core/include/fpdfapi/fpdf_parser.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 <set> #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<IFX_FileStream, ReleaseDeleter<IFX_FileStream>>; + // Use the accessors below instead of directly accessing PDF_CharType. extern const char PDF_CharType[256]; |