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 /core/fpdfapi/parser | |
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 'core/fpdfapi/parser')
-rw-r--r-- | core/fpdfapi/parser/cpdf_read_validator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/parser/cpdf_read_validator.h b/core/fpdfapi/parser/cpdf_read_validator.h index 31c33fa36a..281a2ea194 100644 --- a/core/fpdfapi/parser/cpdf_read_validator.h +++ b/core/fpdfapi/parser/cpdf_read_validator.h @@ -10,9 +10,6 @@ class CPDF_ReadValidator : public IFX_SeekableReadStream { public: - template <typename T, typename... Args> - friend RetainPtr<T> pdfium::MakeRetain(Args&&... args); - class Session { public: explicit Session(CPDF_ReadValidator* validator); @@ -28,6 +25,9 @@ class CPDF_ReadValidator : public IFX_SeekableReadStream { hints_ = hints; } + template <typename T, typename... Args> + friend RetainPtr<T> pdfium::MakeRetain(Args&&... args); + bool read_error() const { return read_error_; } bool has_unavailable_data() const { return has_unavailable_data_; } |