summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_pageobjectlist.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-03-26 20:17:29 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-26 20:17:29 +0000
commit2c47fb2c9b3db7be3480cbc044fa90fda988b97f (patch)
tree8f221ab1bf47c9b624974907b8ee74f92a528cb4 /core/fpdfapi/page/cpdf_pageobjectlist.cpp
parentca28cb636331de447125de476decbec333fe613b (diff)
downloadpdfium-2c47fb2c9b3db7be3480cbc044fa90fda988b97f.tar.xz
Do not call CPDF_PageObjectList directly in fpdfeditpage.cpp.
Change-Id: If816c4f532f03513ad06959182b0e0edfd688e39 Reviewed-on: https://pdfium-review.googlesource.com/29170 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_pageobjectlist.cpp')
-rw-r--r--core/fpdfapi/page/cpdf_pageobjectlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_pageobjectlist.cpp b/core/fpdfapi/page/cpdf_pageobjectlist.cpp
index afd2c98536..2c8e061a73 100644
--- a/core/fpdfapi/page/cpdf_pageobjectlist.cpp
+++ b/core/fpdfapi/page/cpdf_pageobjectlist.cpp
@@ -8,6 +8,6 @@
#include "third_party/base/stl_util.h"
-CPDF_PageObject* CPDF_PageObjectList::GetPageObjectByIndex(int index) {
+CPDF_PageObject* CPDF_PageObjectList::GetPageObjectByIndex(int index) const {
return pdfium::IndexInBounds(*this, index) ? (*this)[index].get() : nullptr;
}