mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
52c146dfc2
commit
18356f5041
@ -19,8 +19,10 @@ namespace mozilla
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct ScopedCustomReleaseTraits0 : public ScopedFreePtrTraits<T>
|
struct ScopedCustomReleaseTraits0
|
||||||
{
|
{
|
||||||
|
typedef T* type;
|
||||||
|
static T* empty() { return nullptr; }
|
||||||
static void release(T* ptr)
|
static void release(T* ptr)
|
||||||
{
|
{
|
||||||
if(ptr)
|
if(ptr)
|
||||||
|
Loading…
Reference in New Issue
Block a user