File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -46,17 +46,15 @@ template<class T, class U = int>
46
46
class CRecipientFilterAllocator : public CUtlMemory <T, U>
47
47
{
48
48
public:
49
- CRecipientFilterAllocator (int nGrowSize = 0 , int nInitSize = 0 )
50
- {
51
- ::CUtlMemory<T, U>(nGrowSize, nInitSize);
52
- }
49
+ CRecipientFilterAllocator (int nGrowSize = 0 , int nInitSize = 0 ):
50
+ CUtlMemory<T, U>(nGrowSize, nInitSize) {}
53
51
54
- ~CRecipientFilterAllocator () { m_nAllocationCount = 0 ; }
52
+ ~CRecipientFilterAllocator () { this -> m_nAllocationCount = 0 ; }
55
53
56
54
void *DetachAndReturn ()
57
55
{
58
- void *pMemory = m_pMemory;
59
- m_pMemory = NULL ;
56
+ void *pMemory = this -> m_pMemory ;
57
+ this -> m_pMemory = NULL ;
60
58
return pMemory;
61
59
}
62
60
};
@@ -65,9 +63,12 @@ template<class T, class U = CRecipientFilterAllocator<T>>
65
63
class CVecRecipients : public CUtlVector <T, U>
66
64
{
67
65
public:
66
+ CVecRecipients (int nGrowSize = 0 , int nInitSize = 0 ):
67
+ CUtlVector<T, U>(nGrowSize, nInitSize) {}
68
+
68
69
~CVecRecipients ()
69
70
{
70
- UTIL_Dealloc (m_Memory.DetachAndReturn ());
71
+ UTIL_Dealloc (this -> m_Memory .DetachAndReturn ());
71
72
}
72
73
};
73
74
You can’t perform that action at this time.
0 commit comments