From 3cca9c8f68e7a60a9e064bb2e036fdd51ae6eb55 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 18 Nov 2015 10:24:24 -0800 Subject: Fold IFWL_TargetData into IFWL_Target IFWL_TargetData was a sibling class to which we illegally cast other IFWL_ classes just to get access to a member, to which they already had access in many cases. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1452403002 . --- xfa/include/fwl/core/fwl_target.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xfa/include/fwl') diff --git a/xfa/include/fwl/core/fwl_target.h b/xfa/include/fwl/core/fwl_target.h index 25c8a33c90..363ce30562 100644 --- a/xfa/include/fwl/core/fwl_target.h +++ b/xfa/include/fwl/core/fwl_target.h @@ -28,6 +28,8 @@ class CFWL_TargetImp; class IFWL_Target { public: + IFWL_Target() : m_pImpl(nullptr) {} + FX_DWORD Release(); IFWL_Target* Retain(); FX_DWORD GetRefCount() const; @@ -37,6 +39,9 @@ class IFWL_Target { FWL_ERR Initialize(); FWL_ERR Finalize(); + CFWL_TargetImp* GetImpl() const { return m_pImpl; } + void SetImpl(CFWL_TargetImp* pImpl) { m_pImpl = pImpl; } + protected: virtual ~IFWL_Target(); CFWL_TargetImp* m_pImpl; -- cgit v1.2.3