mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-25 01:11:48 +01:00
Merge pull request #3162 from lioncash/packet
packet: Simplify operator bool overload
This commit is contained in:
commit
d00b17eb43
@ -63,7 +63,7 @@ bool Packet::EndOfPacket() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Packet::operator bool() const {
|
Packet::operator bool() const {
|
||||||
return is_valid ? &Packet::CheckSize : nullptr;
|
return is_valid;
|
||||||
}
|
}
|
||||||
|
|
||||||
Packet& Packet::operator>>(bool& out_data) {
|
Packet& Packet::operator>>(bool& out_data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user