diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-22 17:27:41 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-22 17:27:41 +0000 |
commit | 962c1bc7e550b9466d802b0b94322693611fa30b (patch) | |
tree | 6528c90c1b4242c82566ab44aed01a123c6f1dd2 /fpdfsdk/cpdfsdk_filewriteadapter.cpp | |
parent | c47ba8ece5d73651dd966fd420ba00da2f9c6ad8 (diff) | |
download | pdfium-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.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_filewriteadapter.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fpdfsdk/cpdfsdk_filewriteadapter.cpp b/fpdfsdk/cpdfsdk_filewriteadapter.cpp index 8fc269402b..85fff8e89c 100644 --- a/fpdfsdk/cpdfsdk_filewriteadapter.cpp +++ b/fpdfsdk/cpdfsdk_filewriteadapter.cpp @@ -6,16 +6,15 @@ #include "fpdfsdk/cpdfsdk_filewriteadapter.h" -CPDFSDK_FileWriteAdapter::CPDFSDK_FileWriteAdapter( - FPDF_FILEWRITE* fileWriteStruct) - : fileWriteStruct_(fileWriteStruct) { - ASSERT(fileWriteStruct_); +CPDFSDK_FileWriteAdapter::CPDFSDK_FileWriteAdapter(FPDF_FILEWRITE* file_write) + : file_write_(file_write) { + ASSERT(file_write_); } CPDFSDK_FileWriteAdapter::~CPDFSDK_FileWriteAdapter() {} bool CPDFSDK_FileWriteAdapter::WriteBlock(const void* data, size_t size) { - return fileWriteStruct_->WriteBlock(fileWriteStruct_, data, size) != 0; + return file_write_->WriteBlock(file_write_.Get(), data, size) != 0; } bool CPDFSDK_FileWriteAdapter::WriteString(const ByteStringView& str) { |