From b97e12926cca706e70eb47adc18962853573c462 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sat, 31 Jul 2010 15:34:28 +0000 Subject: [PATCH] * added operator-> for convenience git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37825 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/shared/AutoDeleter.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/headers/private/shared/AutoDeleter.h b/headers/private/shared/AutoDeleter.h index 2e7762ed19..152f02e6be 100644 --- a/headers/private/shared/AutoDeleter.h +++ b/headers/private/shared/AutoDeleter.h @@ -66,6 +66,11 @@ public: return object; } + inline C *operator->() const + { + return fObject; + } + protected: C *fObject; DeleteFunc fDelete;