Gradual code migration to ATL and object-oriented approach

This commit is contained in:
Simon Rozman
2015-04-03 09:36:07 +00:00
parent f4bf46a58f
commit d7310ae077
2 changed files with 79 additions and 8 deletions

View File

@@ -25,19 +25,19 @@
namespace ATL
{
//
// CHandleT
// CObjectWithHandleT
//
template <class T>
class CHandleT
class CObjectWithHandleT
{
public:
typedef T HANDLE;
inline CHandleT() throw() : m_h(NULL)
inline CObjectWithHandleT() throw() : m_h(NULL)
{
}
inline CHandleT(T h) throw() : m_h(h)
inline CObjectWithHandleT(T h) throw() : m_h(h)
{
}