Bug 1252901 - don't use ScopedFreePtrTraits in MediaEngineWrapper.h; r=jesup

ScopedFreePtrTraits is somewhat of an internal implementation detail of
Scoped.h, and it's not hard to write out the two static functions we
need from ScopedFreePtrTraits anyway.  Removing this means that we can
clear the way for ScopedFreePtr to be removed.
This commit is contained in:
Nathan Froyd 2016-03-02 11:43:58 -05:00
parent 52c146dfc2
commit 18356f5041

View File

@ -19,8 +19,10 @@ namespace mozilla
*
*/
template<typename T>
struct ScopedCustomReleaseTraits0 : public ScopedFreePtrTraits<T>
struct ScopedCustomReleaseTraits0
{
typedef T* type;
static T* empty() { return nullptr; }
static void release(T* ptr)
{
if(ptr)