From 6465f02fba984e169c904cccf89fd1417ee2f45b Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 16 Jan 2010 14:22:19 +0000 Subject: (svn r18826) -Codechange: Unifiy return value of (SmallArray|FixedSizeArray)::(Append|AppendC) with other containers. (skidd13) --- src/misc/array.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/misc/array.hpp') diff --git a/src/misc/array.hpp b/src/misc/array.hpp index e4cf19408..78dd0098f 100644 --- a/src/misc/array.hpp +++ b/src/misc/array.hpp @@ -35,7 +35,7 @@ protected: SubArray& s = data[super_size - 1]; if (!s.IsFull()) return s; } - return data.AppendC(); + return *data.AppendC(); } public: @@ -56,9 +56,9 @@ public: /** return true if array is full */ FORCEINLINE bool IsFull() { return data.IsFull() && data[N - 1].IsFull(); } /** allocate but not construct new item */ - FORCEINLINE T& Append() { return FirstFreeSubArray().Append(); } + FORCEINLINE T *Append() { return FirstFreeSubArray().Append(); } /** allocate and construct new item */ - FORCEINLINE T& AppendC() { return FirstFreeSubArray().AppendC(); } + FORCEINLINE T *AppendC() { return FirstFreeSubArray().AppendC(); } /** indexed access (non-const) */ FORCEINLINE T& operator [] (uint index) { -- cgit v1.2.3-70-g09d2