added getPtr() to util/refptr

git-svn-id: svn://anubis/fart/trunk@98 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop 2009-02-10 01:21:54 +00:00
parent 2f16235ed2
commit 236cbc7db0

View File

@ -16,6 +16,7 @@ class refptr
~refptr<T>(); ~refptr<T>();
T & operator*() const; T & operator*() const;
T * operator->() const; T * operator->() const;
T * getPtr() const { return m_ptr; }
private: private:
void cloneFrom(const refptr<T> & orig); void cloneFrom(const refptr<T> & orig);