From 893e6427a54b1145fa0d58651aecad2d8eba42fe Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Wed, 13 Nov 2013 14:48:24 +0100 Subject: [PATCH] UniquePointer and UniqeArray ready to use All compile errors fixed. Tested against Visual Leak detector. No leak detected! --- Misc/Utilities-InlineImpl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Misc/Utilities-InlineImpl.h b/Misc/Utilities-InlineImpl.h index 93b780ec..dc047153 100644 --- a/Misc/Utilities-InlineImpl.h +++ b/Misc/Utilities-InlineImpl.h @@ -124,7 +124,7 @@ namespace Utility } template - UniqueArray & UniqueArray::operator = ( const UniquePointer &donor ) + UniqueArray & UniqueArray::operator = ( const UniqueArray &donor ) { SafeDeleteArray( this->ownedArray ); this->ownedArray = donor.ownedInstance; @@ -132,13 +132,13 @@ namespace Utility } template template - template Type & UniqueArray::operator [] ( Index i ) + Type & UniqueArray::operator [] ( Index i ) { return this->ownedArray[i]; } template template - template const Type & UniqueArray::operator [] ( Index i ) const + const Type & UniqueArray::operator [] ( Index i ) const { return this->ownedArray[i]; }