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

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

Issue 370853002: pdfium: Fix all -Wdelete-non-virtual-dtor violations on Mac. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 6 years, 5 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/fpdf_sysfontinfo.cpp ('k') | fpdfsdk/src/fpdfview.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 "../include/fsdk_define.h" 7 #include "../include/fsdk_define.h"
8 #include "../include/fpdfsave.h" 8 #include "../include/fpdfsave.h"
9 #include "../include/fpdfedit.h" 9 #include "../include/fpdfedit.h"
10 #if _FX_OS_ == _FX_ANDROID_ 10 #if _FX_OS_ == _FX_ANDROID_
11 #include "time.h" 11 #include "time.h"
12 #else 12 #else
13 #include <ctime> 13 #include <ctime>
14 #endif 14 #endif
15 15
16 class CFX_IFileWrite:public IFX_StreamWrite 16 class CFX_IFileWrite FX_FINAL : public IFX_StreamWrite
17 { 17 {
18 18
19 public: 19 public:
20 CFX_IFileWrite(); 20 CFX_IFileWrite();
21 FX_BOOL Init( FPDF_FILEWRITE * pFileWriteStruct ); 21 FX_BOOL Init( FPDF_FILEWRITE * pFileWriteStruct );
22 virtual FX_BOOL WriteBlock(const void* pData, size_t size); 22 virtual FX_BOOL WriteBlock(const void* pData, size_t size);
23 virtual void Release(){}; 23 virtual void Release(){};
24 24
25 protected: 25 protected:
26 FPDF_FILEWRITE* m_pFileWriteStruct; 26 FPDF_FILEWRITE* m_pFileWriteStruct;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 { 87 {
88 return _FPDF_Doc_Save(document, pFileWrite, flags, FALSE , 0); 88 return _FPDF_Doc_Save(document, pFileWrite, flags, FALSE , 0);
89 } 89 }
90 90
91 91
92 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion( FPDF_DOCUMENT document,F PDF_FILEWRITE * pFileWrite, 92 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion( FPDF_DOCUMENT document,F PDF_FILEWRITE * pFileWrite,
93 FPDF_DWORD flags, int fileVersion) 93 FPDF_DWORD flags, int fileVersion)
94 { 94 {
95 return _FPDF_Doc_Save(document, pFileWrite, flags, TRUE , fileVersion); 95 return _FPDF_Doc_Save(document, pFileWrite, flags, TRUE , fileVersion);
96 } 96 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fpdf_sysfontinfo.cpp ('k') | fpdfsdk/src/fpdfview.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698