diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-22 22:06:49 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-22 22:06:49 +0000 |
commit | 86688dea3b0d30741a95fd15b5f9ee57b2ae86f1 (patch) | |
tree | a858f201cdc8d0823496dcfcf15d22bff1c402a8 /testing/fx_string_testhelpers.h | |
parent | 96c9517296c94cfa643d6197c8227879d88876d9 (diff) | |
download | pdfium-86688dea3b0d30741a95fd15b5f9ee57b2ae86f1.tar.xz |
Make friend RetainPtr<T> statements consistently public.
Also make destructors private for RetainPtr sub-classes, and add missing
destructors.
Change-Id: I451bf0aae2dae943b1f450d0aa4ca5124dc578fd
Reviewed-on: https://pdfium-review.googlesource.com/32853
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/fx_string_testhelpers.h')
-rw-r--r-- | testing/fx_string_testhelpers.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/fx_string_testhelpers.h b/testing/fx_string_testhelpers.h index 5a269a3cf6..cb59cfbc03 100644 --- a/testing/fx_string_testhelpers.h +++ b/testing/fx_string_testhelpers.h @@ -25,10 +25,10 @@ class CFX_InvalidSeekableReadStream : public IFX_SeekableReadStream { FX_FILESIZE GetSize() override { return data_size_; } private: - explicit CFX_InvalidSeekableReadStream(FX_FILESIZE data_size) - : data_size_(data_size) {} + explicit CFX_InvalidSeekableReadStream(FX_FILESIZE data_size); + ~CFX_InvalidSeekableReadStream() override; - FX_FILESIZE data_size_; + const FX_FILESIZE data_size_; }; class CFX_BufferSeekableReadStream : public IFX_SeekableReadStream { @@ -55,8 +55,8 @@ class CFX_BufferSeekableReadStream : public IFX_SeekableReadStream { } private: - CFX_BufferSeekableReadStream(const unsigned char* src, size_t src_size) - : data_(src), data_size_(src_size) {} + CFX_BufferSeekableReadStream(const unsigned char* src, size_t src_size); + ~CFX_BufferSeekableReadStream() override; const unsigned char* data_; size_t data_size_; |