Fixed a warning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9366 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -158,13 +158,11 @@ BNetAddress::BNetAddress( BMessage* archive )
|
|||||||
* Input parameter:
|
* Input parameter:
|
||||||
* refparam : Instance to assign from.
|
* refparam : Instance to assign from.
|
||||||
*/
|
*/
|
||||||
BNetAddress& BNetAddress::operator=( const BNetAddress& refparam )
|
BNetAddress & BNetAddress::operator=( const BNetAddress& refparam )
|
||||||
{
|
{
|
||||||
if ( clone( refparam ) == B_OK )
|
clone(refparam);
|
||||||
{
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
// TODO: what do return on clone() failure!?
|
// TODO: what do return on clone() failure!?
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user