removed test directory, converted Shape's material handle to a refptr<Material> instead of a Material *, made refptr<T>::operator*() and operator->() const members

git-svn-id: svn://anubis/fart/trunk@96 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop committed 2009-02-10 01:09:07 +00:00
1 parent 2e82f9e2ea
commit 0fc1e468fe
10 files changed
+23 -79

No files matched your search

+4 -4
View File
@@ -14,8 +14,8 @@ class refptr
refptr<T> & operator=(const refptr<T> & orig);
refptr<T> & operator=(T * ptr);
~refptr<T>();
T & operator*();
T * operator->();
T & operator*() const;
T * operator->() const;
private:
void cloneFrom(const refptr<T> & orig);
@@ -88,12 +88,12 @@ template <typename T> void refptr<T>::destroy()
}
}
template <typename T> T & refptr<T>::operator*()
template <typename T> T & refptr<T>::operator*() const
{
return *m_ptr;
}
template <typename T> T * refptr<T>::operator->()
template <typename T> T * refptr<T>::operator->() const
{
return m_ptr;
}