mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
parent
0dca13b49e
commit
2dec45ca39
1 changed files with 5 additions and 5 deletions
10
src/tarray.h
10
src/tarray.h
|
@ -550,8 +550,8 @@ public:
|
||||||
////////
|
////////
|
||||||
TStaticArray()
|
TStaticArray()
|
||||||
{
|
{
|
||||||
Count = 0;
|
this->Count = 0;
|
||||||
Array = NULL;
|
this->Array = NULL;
|
||||||
}
|
}
|
||||||
// This is not supposed to be copyable.
|
// This is not supposed to be copyable.
|
||||||
TStaticArray(const TStaticArray<T> &other) = delete;
|
TStaticArray(const TStaticArray<T> &other) = delete;
|
||||||
|
@ -562,13 +562,13 @@ public:
|
||||||
}
|
}
|
||||||
void Clear()
|
void Clear()
|
||||||
{
|
{
|
||||||
if (Array) delete[] Array;
|
if (this->Array) delete[] this->Array;
|
||||||
}
|
}
|
||||||
void Alloc(unsigned int amount)
|
void Alloc(unsigned int amount)
|
||||||
{
|
{
|
||||||
Clear();
|
Clear();
|
||||||
Array = new T[amount];
|
this->Array = new T[amount];
|
||||||
Count = Amount;
|
this->Count = amount;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue