diff --git a/storm/array/TSBaseArray.hpp b/storm/array/TSBaseArray.hpp index 23e99dd..11da6a4 100644 --- a/storm/array/TSBaseArray.hpp +++ b/storm/array/TSBaseArray.hpp @@ -47,7 +47,8 @@ void TSBaseArray::CheckArrayBounds(uint32_t index) const { 1, "index (0x%08X), array size (0x%08X)", index, - this->Count()); + this->Count() + ); } template diff --git a/storm/array/TSFixedArray.hpp b/storm/array/TSFixedArray.hpp index dd0c569..0435f2c 100644 --- a/storm/array/TSFixedArray.hpp +++ b/storm/array/TSFixedArray.hpp @@ -8,10 +8,11 @@ template class TSFixedArray : public TSBaseArray { public: + // Member functions TSFixedArray(); - TSFixedArray(const TSFixedArray& source); + TSFixedArray(const TSFixedArray& source); ~TSFixedArray(); - TSFixedArray& operator=(const TSFixedArray& source); + TSFixedArray& operator=(const TSFixedArray& source); void Clear(); void ReallocAndClearData(uint32_t count); void ReallocData(uint32_t count); @@ -48,13 +49,13 @@ TSFixedArray& TSFixedArray::operator=(const TSFixedArray& source) { this->Set(source.Count(), source.Ptr()); } - return *this; + return *this; } template void TSFixedArray::Clear() { - this->~TSFixedArray(); - this->Constructor(); + this->~TSFixedArray(); + this->Constructor(); } template diff --git a/storm/array/TSGrowableArray.hpp b/storm/array/TSGrowableArray.hpp index a091103..5a0b987 100644 --- a/storm/array/TSGrowableArray.hpp +++ b/storm/array/TSGrowableArray.hpp @@ -10,13 +10,15 @@ template class TSGrowableArray : public TSFixedArray { public: + // Member variables uint32_t m_chunk = 0; + // Member functions uint32_t Add(uint32_t count, const T* data); uint32_t Add(uint32_t count, uint32_t incr, const T* data); uint32_t CalcChunkSize(uint32_t count); void GrowToFit(uint32_t index, int32_t zero); - T* New(void); + T* New(); void Reserve(uint32_t count, int32_t round); uint32_t Reserved() const; uint32_t RoundToChunk(uint32_t count, uint32_t chunk);