mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
Finish clearing out std::vector from PortabilityLayer
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef __PL_SCOPEDPTR_H__
|
||||
#define __PL_SCOPEDPTR_H__
|
||||
|
||||
#include "CoreDefs.h"
|
||||
|
||||
namespace PortabilityLayer
|
||||
@@ -49,7 +46,7 @@ namespace PortabilityLayer
|
||||
inline ScopedPtr<T>::~ScopedPtr()
|
||||
{
|
||||
if (m_ref)
|
||||
delete m_ref;
|
||||
m_ref->Destroy();
|
||||
}
|
||||
|
||||
template<class T>
|
||||
@@ -87,11 +84,9 @@ namespace PortabilityLayer
|
||||
template<class T>
|
||||
inline void ScopedPtr<T>::Set(T *ref)
|
||||
{
|
||||
if (m_ref && m_ref != ref)
|
||||
delete m_ref;
|
||||
if (m_ref && m_ref != ref)
|
||||
m_ref->Destroy();
|
||||
|
||||
m_ref = ref;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user