Removed a warning

This commit is contained in:
ptitSeb 2019-08-17 15:53:53 +02:00
parent ddf4b42b4c
commit d20c647919
2 changed files with 3 additions and 7 deletions

6
Sources/Engine/Templates/StaticArray.cpp Normal file → Executable file
View File

@ -30,12 +30,6 @@ inline void CStaticArray<Type>::operator=(const CStaticArray<Type> &arOriginal)
CopyArray(arOriginal);
}
template<class Type>
/* Destroy all objects, and reset the array to initial (empty) state. */
inline void CStaticArray<Type>::Clear(void) {
if (sa_Count!=0) Delete();
}
/*
* Create a given number of objects.
*/

4
Sources/Engine/Templates/StaticArray.h Normal file → Executable file
View File

@ -61,7 +61,9 @@ public:
sa_Array = NULL;
}
/* Destroy all objects, and reset the array to initial (empty) state. */
inline void Clear(void);
inline void Clear(void) {
if (sa_Count!=0) Delete();
}
/* Random access operator. */
inline Type &operator[](INDEX iObject)