From 404cb7e3108ca8a7857962a6cc847955881a9cff Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 14 Jun 2015 11:02:41 +0200 Subject: [PATCH] BReference: missing const cast when building a BReference * 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. --- headers/os/support/Referenceable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/os/support/Referenceable.h b/headers/os/support/Referenceable.h index bc242f050a..7d051ef3f3 100644 --- a/headers/os/support/Referenceable.h +++ b/headers/os/support/Referenceable.h @@ -176,7 +176,7 @@ public: BReference(const BReference& other) : - fReference(other) + fReference(const_cast(other.Get())) { }