Changed Packet::operator bool() to Packet::operator void*(), to avoid inappropriate implicit conversions

This commit is contained in:
Laurent Gomila 2011-05-24 22:10:13 +02:00
parent 1a59b9291e
commit 1526d09701
2 changed files with 3 additions and 3 deletions

View file

@ -92,9 +92,9 @@ bool Packet::EndOfPacket() const
////////////////////////////////////////////////////////////
Packet::operator bool() const
Packet::operator void*() const
{
return myIsValid;
return myIsValid ? this : NULL;
}