Make Packet::RemoveTag behave as documented (bug #139)
This commit is contained in:
@@ -128,7 +128,15 @@ Tags::Remove (T &tag)
|
||||
// input to this function is not a subclass of the Tag class.
|
||||
parent = &tag;
|
||||
NS_ASSERT (sizeof (T) <= Tags::SIZE);
|
||||
return Remove (T::GetUid ());
|
||||
if (Peek (tag))
|
||||
{
|
||||
Remove (T::GetUid ());
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user