summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_filewriteadapter.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-22 17:27:41 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-22 17:27:41 +0000
commit962c1bc7e550b9466d802b0b94322693611fa30b (patch)
tree6528c90c1b4242c82566ab44aed01a123c6f1dd2 /fpdfsdk/cpdfsdk_filewriteadapter.h
parentc47ba8ece5d73651dd966fd420ba00da2f9c6ad8 (diff)
downloadpdfium-962c1bc7e550b9466d802b0b94322693611fa30b.tar.xz
Use UnownedPtr<> in CPDFSDK_FileWriteAdapter.
Make member naming match chromium conventions. Change-Id: Iaa88d1446d445da3a059a339b35a5ef2152811ff Reviewed-on: https://pdfium-review.googlesource.com/40952 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_filewriteadapter.h')
-rw-r--r--fpdfsdk/cpdfsdk_filewriteadapter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/cpdfsdk_filewriteadapter.h b/fpdfsdk/cpdfsdk_filewriteadapter.h
index e452d1cc20..3d5dbfd453 100644
--- a/fpdfsdk/cpdfsdk_filewriteadapter.h
+++ b/fpdfsdk/cpdfsdk_filewriteadapter.h
@@ -9,6 +9,7 @@
#include "core/fxcrt/fx_stream.h"
#include "core/fxcrt/retain_ptr.h"
+#include "core/fxcrt/unowned_ptr.h"
#include "public/fpdf_save.h"
class CPDFSDK_FileWriteAdapter : public IFX_WriteStream {
@@ -21,10 +22,10 @@ class CPDFSDK_FileWriteAdapter : public IFX_WriteStream {
bool WriteString(const ByteStringView& str) override;
private:
- explicit CPDFSDK_FileWriteAdapter(FPDF_FILEWRITE* fileWriteStruct);
+ explicit CPDFSDK_FileWriteAdapter(FPDF_FILEWRITE* file_write);
~CPDFSDK_FileWriteAdapter() override;
- FPDF_FILEWRITE* fileWriteStruct_;
+ UnownedPtr<FPDF_FILEWRITE> file_write_;
};
#endif // FPDFSDK_CPDFSDK_FILEWRITEADAPTER_H_