BReference: missing const cast when building a BReference<const>
* The internal BReference is on a non-const object so it can increment and decrement the reference count, so we need to cast the const away.
This commit is contained in:
parent
27dab5c12d
commit
404cb7e310
@ -176,7 +176,7 @@ public:
|
||||
|
||||
BReference(const BReference<const Type>& other)
|
||||
:
|
||||
fReference(other)
|
||||
fReference(const_cast<Type*>(other.Get()))
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user