From b4ef380c49c2dfc78c7bd25a8ebc15d7a27b7243 Mon Sep 17 00:00:00 2001 From: skidd13 Date: Sun, 22 Jun 2008 15:41:38 +0000 Subject: (svn r13607) -Fix (r13606): some coding style issues got fixed but some got/stayed broken --- src/core/alloc_type.hpp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src/core/alloc_type.hpp') diff --git a/src/core/alloc_type.hpp b/src/core/alloc_type.hpp index fe9c3b81d..cc549658f 100644 --- a/src/core/alloc_type.hpp +++ b/src/core/alloc_type.hpp @@ -29,28 +29,39 @@ struct SmallStackSafeStackAlloc { /** Allocating the memory */ SmallStackSafeStackAlloc() : data(MallocT(length)), len(length) {} + /** And freeing when it goes out of scope */ - ~SmallStackSafeStackAlloc() { free(data); } + ~SmallStackSafeStackAlloc() + { + free(data); + } #endif /** * Gets a pointer to the data stored in this wrapper. * @return the pointer. */ - FORCEINLINE operator T* () { return data; } + FORCEINLINE operator T* () + { + return data; + } /** * Gets a pointer to the data stored in this wrapper. * @return the pointer. */ - FORCEINLINE T* operator -> () { return data; } + FORCEINLINE T* operator -> () + { + return data; + } /** * Gets a pointer to the last data element stored in this wrapper. * @note needed because endof does not work properly for pointers. * @return the 'endof' pointer. */ - FORCEINLINE T* EndOf() { + FORCEINLINE T* EndOf() + { #if !defined(__NDS__) return endof(data); #else -- cgit v1.2.3-54-g00ecf