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>
4646class CRecipientFilterAllocator : public CUtlMemory <T, U>
4747{
4848public:
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) {}
5351
54- ~CRecipientFilterAllocator () { m_nAllocationCount = 0 ; }
52+ ~CRecipientFilterAllocator () { this -> m_nAllocationCount = 0 ; }
5553
5654 void *DetachAndReturn ()
5755 {
58- void *pMemory = m_pMemory;
59- m_pMemory = NULL ;
56+ void *pMemory = this -> m_pMemory ;
57+ this -> m_pMemory = NULL ;
6058 return pMemory;
6159 }
6260};
@@ -65,9 +63,12 @@ template<class T, class U = CRecipientFilterAllocator<T>>
6563class CVecRecipients : public CUtlVector <T, U>
6664{
6765public:
66+ CVecRecipients (int nGrowSize = 0 , int nInitSize = 0 ):
67+ CUtlVector<T, U>(nGrowSize, nInitSize) {}
68+
6869 ~CVecRecipients ()
6970 {
70- UTIL_Dealloc (m_Memory.DetachAndReturn ());
71+ UTIL_Dealloc (this -> m_Memory .DetachAndReturn ());
7172 }
7273};
7374
You can’t perform that action at this time.
0 commit comments