From 2dec45ca39fb245e1c3e64d4a056a3e3ab967132 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 3 Jan 2017 09:45:53 +0200 Subject: [PATCH] Fixed compilation with GCC/Clang Fixes #175 --- src/tarray.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tarray.h b/src/tarray.h index ca24649677..e40b88a7be 100644 --- a/src/tarray.h +++ b/src/tarray.h @@ -550,8 +550,8 @@ public: //////// TStaticArray() { - Count = 0; - Array = NULL; + this->Count = 0; + this->Array = NULL; } // This is not supposed to be copyable. TStaticArray(const TStaticArray &other) = delete; @@ -562,13 +562,13 @@ public: } void Clear() { - if (Array) delete[] Array; + if (this->Array) delete[] this->Array; } void Alloc(unsigned int amount) { Clear(); - Array = new T[amount]; - Count = Amount; + this->Array = new T[amount]; + this->Count = amount; } };