From 023d645733cddcf026897c51f3d4c34090eb4b2d Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 5 Oct 2017 11:11:09 -0400 Subject: Remove friend from CPDF_ApSettings This CL removes the friend class from CPDF_ApSettings and makes the needed methods public. Change-Id: I062004d619676b31648f49c9d18a8595874e3c57 Reviewed-on: https://pdfium-review.googlesource.com/15532 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- core/fpdfdoc/cpdf_apsettings.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/fpdfdoc/cpdf_apsettings.h b/core/fpdfdoc/cpdf_apsettings.h index b4b72bc167..a807c2b581 100644 --- a/core/fpdfdoc/cpdf_apsettings.h +++ b/core/fpdfdoc/cpdf_apsettings.h @@ -59,9 +59,6 @@ class CPDF_ApSettings { CPDF_IconFit GetIconFit() const; int GetTextPosition() const; - private: - friend class CPDF_FormControl; - FX_ARGB GetColor(int& iColorType, const ByteString& csEntry) const; float GetOriginalColor(int index, const ByteString& csEntry) const; void GetOriginalColor(int& iColorType, @@ -71,6 +68,7 @@ class CPDF_ApSettings { WideString GetCaption(const ByteString& csEntry) const; CPDF_Stream* GetIcon(const ByteString& csEntry) const; + private: UnownedPtr const m_pDict; }; -- cgit v1.2.3