From 22817d221ae43ecffeb64146f51f7e2cafcc34eb Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 16 Jul 2019 21:13:57 +0200 Subject: [PATCH] PVS V591: non void functions must return something MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1f4276bc32afab75cf857c143d2bdb4fc3b578b1 Reviewed-on: https://review.haiku-os.org/c/1612 Reviewed-by: Stephan Aßmus --- headers/os/support/Referenceable.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/headers/os/support/Referenceable.h b/headers/os/support/Referenceable.h index 7d051ef3f3..5a4fff7a6e 100644 --- a/headers/os/support/Referenceable.h +++ b/headers/os/support/Referenceable.h @@ -225,17 +225,20 @@ public: BReference& operator=(const BReference& other) { fReference = other.fReference; + return *this; } BReference& operator=(Type* other) { fReference = other; + return *this; } template BReference& operator=(const BReference& other) { fReference = other.Get(); + return *this; } bool operator==(const BReference& other) const