From 4d29312c66dd56498fbab35e2892944d33484461 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 24 Jan 2019 16:20:16 +1100 Subject: Cleanup: trailing space guardedalloc & memutil --- intern/memutil/MEM_Allocator.h | 16 ++++++++-------- intern/memutil/MEM_RefCounted.h | 7 +++---- intern/memutil/MEM_RefCountedC-Api.h | 6 +++--- 3 files changed, 14 insertions(+), 15 deletions(-) (limited to 'intern/memutil') diff --git a/intern/memutil/MEM_Allocator.h b/intern/memutil/MEM_Allocator.h index 2bcdf3a6fa5..84c6452bbb0 100644 --- a/intern/memutil/MEM_Allocator.h +++ b/intern/memutil/MEM_Allocator.h @@ -43,8 +43,8 @@ struct MEM_Allocator typedef _Tp value_type; template - struct rebind { - typedef MEM_Allocator<_Tp1> other; + struct rebind { + typedef MEM_Allocator<_Tp1> other; }; MEM_Allocator() throw() {} @@ -75,16 +75,16 @@ struct MEM_Allocator MEM_freeN(__p); } - size_type max_size() const throw() { - return size_t(-1) / sizeof(_Tp); + size_type max_size() const throw() { + return size_t(-1) / sizeof(_Tp); } - void construct(pointer __p, const _Tp& __val) { - new(__p) _Tp(__val); + void construct(pointer __p, const _Tp& __val) { + new(__p) _Tp(__val); } - void destroy(pointer __p) { - __p->~_Tp(); + void destroy(pointer __p) { + __p->~_Tp(); } }; diff --git a/intern/memutil/MEM_RefCounted.h b/intern/memutil/MEM_RefCounted.h index 88eaccf9732..03831fec8f4 100644 --- a/intern/memutil/MEM_RefCounted.h +++ b/intern/memutil/MEM_RefCounted.h @@ -58,19 +58,19 @@ public: { } - /** + /** * Returns the reference count of this object. * @return the reference count. */ inline virtual int getRef() const; - /** + /** * Increases the reference count of this object. * @return the new reference count. */ inline virtual int incRef(); - /** + /** * Decreases the reference count of this object. * If the reference count reaches zero, the object self-destructs. * @return the new reference count. @@ -113,4 +113,3 @@ inline int MEM_RefCounted::decRef() } #endif // __MEM_REFCOUNTED_H__ - diff --git a/intern/memutil/MEM_RefCountedC-Api.h b/intern/memutil/MEM_RefCountedC-Api.h index 79b0b6efb66..d22e5c2666d 100644 --- a/intern/memutil/MEM_RefCountedC-Api.h +++ b/intern/memutil/MEM_RefCountedC-Api.h @@ -48,21 +48,21 @@ extern "C" { #endif -/** +/** * Returns the reference count of this object. * @param shared The object to query. * @return The current reference count. */ extern int MEM_RefCountedGetRef(MEM_TRefCountedObjectPtr shared); -/** +/** * Increases the reference count of this object. * @param shared The object to query. * @return The new reference count. */ extern int MEM_RefCountedIncRef(MEM_TRefCountedObjectPtr shared); -/** +/** * Decreases the reference count of this object. * If the reference count reaches zero, the object self-destructs. * @param shared The object to query. -- cgit v1.2.3