Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp

Issue 1712353002: Remove IFX_BufferArchive. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: pFile never null. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/include/fxcrt/fx_basic.h ('k') | core/src/fxcrt/fx_basic_buffer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "core/src/fpdfapi/fpdf_edit/editint.h" 7 #include "core/src/fpdfapi/fpdf_edit/editint.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1927 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 delete m_pXRefStream; 1938 delete m_pXRefStream;
1939 m_pXRefStream = NULL; 1939 m_pXRefStream = NULL;
1940 m_File.Clear(); 1940 m_File.Clear();
1941 m_NewObjNumArray.RemoveAll(); 1941 m_NewObjNumArray.RemoveAll();
1942 if (m_pIDArray) { 1942 if (m_pIDArray) {
1943 m_pIDArray->Release(); 1943 m_pIDArray->Release();
1944 m_pIDArray = NULL; 1944 m_pIDArray = NULL;
1945 } 1945 }
1946 } 1946 }
1947 FX_BOOL CPDF_Creator::Create(IFX_StreamWrite* pFile, FX_DWORD flags) { 1947 FX_BOOL CPDF_Creator::Create(IFX_StreamWrite* pFile, FX_DWORD flags) {
1948 if (!pFile) { 1948 m_File.AttachFile(pFile);
1949 return FALSE;
1950 }
1951 if (!m_File.AttachFile(pFile, FALSE)) {
1952 return FALSE;
1953 }
1954 return Create(flags); 1949 return Create(flags);
1955 } 1950 }
1956 FX_BOOL CPDF_Creator::Create(FX_DWORD flags) { 1951 FX_BOOL CPDF_Creator::Create(FX_DWORD flags) {
1957 m_dwFlags = flags; 1952 m_dwFlags = flags;
1958 m_iStage = 0; 1953 m_iStage = 0;
1959 m_Offset = 0; 1954 m_Offset = 0;
1960 m_dwLastObjNum = m_pDocument->GetLastObjNum(); 1955 m_dwLastObjNum = m_pDocument->GetLastObjNum();
1961 m_ObjectOffset.Clear(); 1956 m_ObjectOffset.Clear();
1962 m_NewObjNumArray.RemoveAll(); 1957 m_NewObjNumArray.RemoveAll();
1963 InitID(); 1958 InitID();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
2061 m_bNewCrypto = FALSE; 2056 m_bNewCrypto = FALSE;
2062 if (!m_bStandardSecurity) { 2057 if (!m_bStandardSecurity) {
2063 return; 2058 return;
2064 } 2059 }
2065 if (m_pEncryptDict) { 2060 if (m_pEncryptDict) {
2066 m_pEncryptDict->Release(); 2061 m_pEncryptDict->Release();
2067 m_pEncryptDict = NULL; 2062 m_pEncryptDict = NULL;
2068 } 2063 }
2069 m_bStandardSecurity = FALSE; 2064 m_bStandardSecurity = FALSE;
2070 } 2065 }
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_basic.h ('k') | core/src/fxcrt/fx_basic_buffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698