summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_edit
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-02-19 15:25:02 -0800
committerTom Sepez <tsepez@chromium.org>2016-02-19 15:25:02 -0800
commitac121aa23a5ee3290af151dddbbdc0f4644098d4 (patch)
treecb53897892481ba70d327605748308dfd35dfa26 /core/src/fpdfapi/fpdf_edit
parentf348235cce75d378a17f3aee81a97f92049fa0a8 (diff)
downloadpdfium-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.cpp7
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) {