mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-25 15:14:51 +01:00
Removed a warning
This commit is contained in:
parent
ddf4b42b4c
commit
d20c647919
6
Sources/Engine/Templates/StaticArray.cpp
Normal file → Executable file
6
Sources/Engine/Templates/StaticArray.cpp
Normal file → Executable 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
4
Sources/Engine/Templates/StaticArray.h
Normal file → Executable 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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user