summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdfsave.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/src/fpdfsave.cpp')
-rw-r--r--fpdfsdk/src/fpdfsave.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/fpdfsdk/src/fpdfsave.cpp b/fpdfsdk/src/fpdfsave.cpp
index 4a83345242..4b9d7acecf 100644
--- a/fpdfsdk/src/fpdfsave.cpp
+++ b/fpdfsdk/src/fpdfsave.cpp
@@ -1,7 +1,7 @@
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
+
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "../../public/fpdf_edit.h"
@@ -16,13 +16,13 @@
class CFX_IFileWrite final : public IFX_StreamWrite
{
-
+
public:
CFX_IFileWrite();
FX_BOOL Init( FPDF_FILEWRITE * pFileWriteStruct );
virtual FX_BOOL WriteBlock(const void* pData, size_t size) override;
virtual void Release() override {}
-
+
protected:
FPDF_FILEWRITE* m_pFileWriteStruct;
};
@@ -50,7 +50,7 @@ FX_BOOL CFX_IFileWrite::WriteBlock(const void* pData, size_t size)
m_pFileWriteStruct->WriteBlock( m_pFileWriteStruct, pData, size );
return TRUE;
}
- else
+ else
return FALSE;
}
@@ -58,14 +58,14 @@ FPDF_BOOL _FPDF_Doc_Save(FPDF_DOCUMENT document,FPDF_FILEWRITE * pFileWrite,FPDF
int fileVerion)
{
CPDF_Document* pDoc = (CPDF_Document*)document;
- if (!pDoc)
+ if (!pDoc)
return 0;
-
+
if ( flags < FPDF_INCREMENTAL || flags > FPDF_REMOVE_SECURITY )
{
flags = 0;
}
-
+
CPDF_Creator FileMaker(pDoc);
if(bSetVersion)
FileMaker.SetFileVersion(fileVerion);