diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-06-22 15:24:05 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-22 15:24:05 +0000 |
commit | 0a49103801e322656eeacf8764cc0cb557059cea (patch) | |
tree | 50782ec65b3619e23789054503f133a4e80e6329 /core/fpdfapi/edit/cpdf_pagecontentmanager.cpp | |
parent | a327030ca50bd9e06d4bab3ffc5610bf348be0ee (diff) | |
download | pdfium-0a49103801e322656eeacf8764cc0cb557059cea.tar.xz |
CPDF_PageObjectHolder::GetDirtyStreams() returns const ref.
This is safer since a ref cannot be deleted.
Change-Id: Ib8d76ae2adb7c59e6955881eee0d2bd4db448b68
Reviewed-on: https://pdfium-review.googlesource.com/35950
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit/cpdf_pagecontentmanager.cpp')
-rw-r--r-- | core/fpdfapi/edit/cpdf_pagecontentmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/edit/cpdf_pagecontentmanager.cpp b/core/fpdfapi/edit/cpdf_pagecontentmanager.cpp index 46033bc0d1..3ba23a88fb 100644 --- a/core/fpdfapi/edit/cpdf_pagecontentmanager.cpp +++ b/core/fpdfapi/edit/cpdf_pagecontentmanager.cpp @@ -101,7 +101,7 @@ void CPDF_PageContentManager::ExecuteScheduledRemovals() { // updated. // Since this is only called by CPDF_PageContentGenerator::GenerateContent(), // which cleans up the dirty streams first, this should always be true. - ASSERT(obj_holder_->GetDirtyStreams()->empty()); + ASSERT(obj_holder_->GetDirtyStreams().empty()); if (contents_stream_) { // Only stream that can be removed is 0. |