We should never mess with fQueueLink as it's maintained by the BMessageQueue. Small simplification.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17313 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2006-05-03 22:23:09 +00:00
parent 4bd2b6b203
commit 035eafc5f3
+3 -7
View File
@@ -71,14 +71,12 @@ BMessage::BMessage()
{
DEBUG_FUNCTION_ENTER;
_InitCommon();
_InitHeader();
}
BMessage::BMessage(BMessage *other)
{
DEBUG_FUNCTION_ENTER;
_InitCommon();
_InitHeader();
*this = *other;
}
@@ -86,7 +84,6 @@ BMessage::BMessage(uint32 _what)
{
DEBUG_FUNCTION_ENTER;
_InitCommon();
_InitHeader();
fHeader->what = what = _what;
}
@@ -95,7 +92,6 @@ BMessage::BMessage(const BMessage &other)
{
DEBUG_FUNCTION_ENTER;
_InitCommon();
_InitHeader();
*this = other;
}
@@ -134,7 +130,7 @@ BMessage::operator=(const BMessage &other)
fHeader->fields_available = 0;
fHeader->data_available = 0;
fHeader->what = what = other.what;
fQueueLink = other.fQueueLink;
return *this;
}
@@ -178,7 +174,8 @@ BMessage::_InitCommon()
fOriginal = NULL;
fQueueLink = NULL;
return B_OK;
return _InitHeader();
}
@@ -223,7 +220,6 @@ BMessage::_Clear()
delete fOriginal;
fOriginal = NULL;
fQueueLink = NULL;
return B_OK;
}