summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_nametree.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-24 01:39:31 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-24 01:39:31 +0000
commit18f7fbca461254cc0df1af2ca586df42b7fd6c17 (patch)
tree2c31f8e06d6cd4bdd4f9ba6409a92e27719e4245 /core/fpdfdoc/cpdf_nametree.h
parentdbf13f6562a902df17f6e543d3be844ca82956e2 (diff)
downloadpdfium-18f7fbca461254cc0df1af2ca586df42b7fd6c17.tar.xz
Mark some pointers as non-const in CPDF_NameTree.
The class modifies the tree, so stop pretending its const. Change-Id: I1095239a728fc0999c84db37d5cb17f596b9c791 Reviewed-on: https://pdfium-review.googlesource.com/32185 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_nametree.h')
-rw-r--r--core/fpdfdoc/cpdf_nametree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfdoc/cpdf_nametree.h b/core/fpdfdoc/cpdf_nametree.h
index 72d0d669e9..495798c087 100644
--- a/core/fpdfdoc/cpdf_nametree.h
+++ b/core/fpdfdoc/cpdf_nametree.h
@@ -20,7 +20,7 @@ class CPDF_Object;
class CPDF_NameTree {
public:
explicit CPDF_NameTree(CPDF_Dictionary* pRoot);
- CPDF_NameTree(const CPDF_Document* pDoc, const ByteString& category);
+ CPDF_NameTree(CPDF_Document* pDoc, const ByteString& category);
~CPDF_NameTree();
bool AddValueAndName(std::unique_ptr<CPDF_Object> pObj,