Skip to content

Commit d23efab

Browse files
author
L'In20Cible
committed
Oh Linux... why you so whimy?
1 parent d093f73 commit d23efab

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/core/modules/filters/filters_recipients.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,15 @@ template<class T, class U = int>
4646
class CRecipientFilterAllocator : public CUtlMemory<T, U>
4747
{
4848
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) {}
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>>
6563
class CVecRecipients : public CUtlVector<T, U>
6664
{
6765
public:
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

0 commit comments

Comments
 (0)