Added toStrong() on weak ref.
This commit is contained in:
parent
9938aa65ab
commit
965aa0d083
@ -475,6 +475,14 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ref <T> toStrong()
|
||||||
|
{
|
||||||
|
if (m_ptr == NULL)
|
||||||
|
return ref <T>();
|
||||||
|
|
||||||
|
return ref <T>::fromPtr(m_ptr);
|
||||||
|
}
|
||||||
|
|
||||||
// Implicit non-const => const conversion
|
// Implicit non-const => const conversion
|
||||||
operator weak_ref <const T>() const
|
operator weak_ref <const T>() const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user