PVS V591: non void functions must return something
Change-Id: I1f4276bc32afab75cf857c143d2bdb4fc3b578b1 Reviewed-on: https://review.haiku-os.org/c/1612 Reviewed-by: Stephan Aßmus <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
d1a703cb22
commit
22817d221a
@@ -225,17 +225,20 @@ public:
|
|||||||
BReference& operator=(const BReference<const Type>& other)
|
BReference& operator=(const BReference<const Type>& other)
|
||||||
{
|
{
|
||||||
fReference = other.fReference;
|
fReference = other.fReference;
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
BReference& operator=(Type* other)
|
BReference& operator=(Type* other)
|
||||||
{
|
{
|
||||||
fReference = other;
|
fReference = other;
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename OtherType>
|
template<typename OtherType>
|
||||||
BReference& operator=(const BReference<OtherType>& other)
|
BReference& operator=(const BReference<OtherType>& other)
|
||||||
{
|
{
|
||||||
fReference = other.Get();
|
fReference = other.Get();
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const BReference<const Type>& other) const
|
bool operator==(const BReference<const Type>& other) const
|
||||||
|
|||||||
Reference in New Issue
Block a user