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

Side by Side Diff: fpdfsdk/src/fpdfsave.cpp

Issue 1783023002: Re-enable MSVC warning 4800 for compiling with chromium_code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: remove cast change on security_handler file Created 4 years, 9 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 | « fpdfsdk/src/formfiller/FFL_RadioButton.cpp ('k') | fpdfsdk/src/fsdk_baseannot.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 "public/fpdf_save.h" 7 #include "public/fpdf_save.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 CPDF_Creator FileMaker(pPDFDoc); 296 CPDF_Creator FileMaker(pPDFDoc);
297 if (bSetVersion) 297 if (bSetVersion)
298 FileMaker.SetFileVersion(fileVerion); 298 FileMaker.SetFileVersion(fileVerion);
299 if (flags == FPDF_REMOVE_SECURITY) { 299 if (flags == FPDF_REMOVE_SECURITY) {
300 flags = 0; 300 flags = 0;
301 FileMaker.RemoveSecurity(); 301 FileMaker.RemoveSecurity();
302 } 302 }
303 303
304 CFX_IFileWrite* pStreamWrite = NULL; 304 CFX_IFileWrite* pStreamWrite = NULL;
305 FX_BOOL bRet;
306 pStreamWrite = new CFX_IFileWrite; 305 pStreamWrite = new CFX_IFileWrite;
307 pStreamWrite->Init(pFileWrite); 306 pStreamWrite->Init(pFileWrite);
308 bRet = FileMaker.Create(pStreamWrite, flags); 307 bool bRet = FileMaker.Create(pStreamWrite, flags);
309 #ifdef PDF_ENABLE_XFA 308 #ifdef PDF_ENABLE_XFA
310 SendPostSaveToXFADoc(pDoc); 309 SendPostSaveToXFADoc(pDoc);
311 #endif // PDF_ENABLE_XFA 310 #endif // PDF_ENABLE_XFA
312 pStreamWrite->Release(); 311 pStreamWrite->Release();
313 return bRet; 312 return bRet;
314 } 313 }
315 314
316 } // namespace 315 } // namespace
317 316
318 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveAsCopy(FPDF_DOCUMENT document, 317 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveAsCopy(FPDF_DOCUMENT document,
319 FPDF_FILEWRITE* pFileWrite, 318 FPDF_FILEWRITE* pFileWrite,
320 FPDF_DWORD flags) { 319 FPDF_DWORD flags) {
321 return FPDF_Doc_Save(document, pFileWrite, flags, FALSE, 0); 320 return FPDF_Doc_Save(document, pFileWrite, flags, FALSE, 0);
322 } 321 }
323 322
324 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document, 323 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion(FPDF_DOCUMENT document,
325 FPDF_FILEWRITE* pFileWrite, 324 FPDF_FILEWRITE* pFileWrite,
326 FPDF_DWORD flags, 325 FPDF_DWORD flags,
327 int fileVersion) { 326 int fileVersion) {
328 return FPDF_Doc_Save(document, pFileWrite, flags, TRUE, fileVersion); 327 return FPDF_Doc_Save(document, pFileWrite, flags, TRUE, fileVersion);
329 } 328 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_RadioButton.cpp ('k') | fpdfsdk/src/fsdk_baseannot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698