From d83186c444809beaaf181b11c857bc2ab675428e Mon Sep 17 00:00:00 2001 From: John Reck Date: Fri, 9 May 2014 15:27:22 -0700 Subject: [PATCH] Add VirtualLightRefBase Change-Id: I040db87d9e87ba0584e7e5bdd72f0c319a522fa1 --- include/utils/RefBase.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/utils/RefBase.h b/include/utils/RefBase.h index cbfe13a72..8e15c1901 100644 --- a/include/utils/RefBase.h +++ b/include/utils/RefBase.h @@ -203,6 +203,13 @@ private: mutable volatile int32_t mCount; }; +// This is a wrapper around LightRefBase that simply enforces a virtual +// destructor to eliminate the template requirement of LightRefBase +class VirtualLightRefBase : public LightRefBase { +public: + virtual ~VirtualLightRefBase() {} +}; + // --------------------------------------------------------------------------- template