From d20c647919890d02a7eb0670116d6940e9476083 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 17 Aug 2019 15:53:53 +0200 Subject: [PATCH] Removed a warning --- Sources/Engine/Templates/StaticArray.cpp | 6 ------ Sources/Engine/Templates/StaticArray.h | 4 +++- 2 files changed, 3 insertions(+), 7 deletions(-) mode change 100644 => 100755 Sources/Engine/Templates/StaticArray.cpp mode change 100644 => 100755 Sources/Engine/Templates/StaticArray.h diff --git a/Sources/Engine/Templates/StaticArray.cpp b/Sources/Engine/Templates/StaticArray.cpp old mode 100644 new mode 100755 index 6b62639..59c6bd3 --- a/Sources/Engine/Templates/StaticArray.cpp +++ b/Sources/Engine/Templates/StaticArray.cpp @@ -30,12 +30,6 @@ inline void CStaticArray::operator=(const CStaticArray &arOriginal) CopyArray(arOriginal); } -template -/* Destroy all objects, and reset the array to initial (empty) state. */ -inline void CStaticArray::Clear(void) { - if (sa_Count!=0) Delete(); -} - /* * Create a given number of objects. */ diff --git a/Sources/Engine/Templates/StaticArray.h b/Sources/Engine/Templates/StaticArray.h old mode 100644 new mode 100755 index 99c0227..9a5e81d --- a/Sources/Engine/Templates/StaticArray.h +++ b/Sources/Engine/Templates/StaticArray.h @@ -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)