diff --git a/doomsday/sdk/libcore/include/de/libcore.h b/doomsday/sdk/libcore/include/de/libcore.h index fcf42f81a9..0ec6710869 100644 --- a/doomsday/sdk/libcore/include/de/libcore.h +++ b/doomsday/sdk/libcore/include/de/libcore.h @@ -386,8 +386,8 @@ class PrivateAutoPtr PrivateAutoPtr(ImplType *p) : ptr(p) {} ~PrivateAutoPtr() { reset(); } - ImplType &operator * () const { return *ptr; } - ImplType *operator -> () const { return ptr; } + inline ImplType &operator * () const { return *ptr; } + inline ImplType *operator -> () const { return ptr; } void reset(ImplType *p = 0) { IPrivate *ip = reinterpret_cast(ptr); if (ip) @@ -397,13 +397,13 @@ class PrivateAutoPtr } ptr = p; } - ImplType *get() const { + inline ImplType *get() const { return ptr; } - ImplType const *getConst() const { + inline ImplType const *getConst() const { return ptr; } - operator ImplType *() const { + inline operator ImplType *() const { return ptr; } ImplType *release() { @@ -414,7 +414,7 @@ class PrivateAutoPtr void swap(PrivateAutoPtr &other) { std::swap(ptr, other.ptr); } - bool isNull() const { + inline bool isNull() const { return !ptr; } #ifdef DENG2_DEBUG