Add conversion operator to the BReference class.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37762 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -119,6 +119,11 @@ public:
|
|||||||
return fObject;
|
return fObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
operator Type*() const
|
||||||
|
{
|
||||||
|
return fObject;
|
||||||
|
}
|
||||||
|
|
||||||
BReference& operator=(const BReference<Type>& other)
|
BReference& operator=(const BReference<Type>& other)
|
||||||
{
|
{
|
||||||
SetTo(other.fObject);
|
SetTo(other.fObject);
|
||||||
|
|||||||
Reference in New Issue
Block a user