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:
parent
b085f93bcd
commit
a28bf6c79d
|
@ -119,6 +119,11 @@ public:
|
|||
return fObject;
|
||||
}
|
||||
|
||||
operator Type*() const
|
||||
{
|
||||
return fObject;
|
||||
}
|
||||
|
||||
BReference& operator=(const BReference<Type>& other)
|
||||
{
|
||||
SetTo(other.fObject);
|
||||
|
|
Loading…
Reference in New Issue