diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-02-19 15:25:02 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-02-19 15:25:02 -0800 |
commit | ac121aa23a5ee3290af151dddbbdc0f4644098d4 (patch) | |
tree | cb53897892481ba70d327605748308dfd35dfa26 /core/src/fpdfapi/fpdf_edit | |
parent | f348235cce75d378a17f3aee81a97f92049fa0a8 (diff) | |
download | pdfium-ac121aa23a5ee3290af151dddbbdc0f4644098d4.tar.xz |
Remove IFX_BufferArchive.
Merge it into CFX_FileBufferArchive, since both are in the
same header file and it is the only subclass.
Also, bTakeOver is always false, and the buf size is always
32K.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1712353002 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_edit')
-rw-r--r-- | core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp index 7d294c4c52..f103786350 100644 --- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp +++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp @@ -1945,12 +1945,7 @@ void CPDF_Creator::Clear() { } } FX_BOOL CPDF_Creator::Create(IFX_StreamWrite* pFile, FX_DWORD flags) { - if (!pFile) { - return FALSE; - } - if (!m_File.AttachFile(pFile, FALSE)) { - return FALSE; - } + m_File.AttachFile(pFile); return Create(flags); } FX_BOOL CPDF_Creator::Create(FX_DWORD flags) { |