X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacket.ct;h=f47853509470468d186c97c9101a4a900e15b554;hb=9bc655e14d2d8c204ed835896cb51e42d49bd68f;hp=073a9f8a935746cc5f9862f68681a825d6d036a4;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Packets/Packet.ct b/senf/Packets/Packet.ct index 073a9f8..f478535 100644 --- a/senf/Packets/Packet.ct +++ b/senf/Packets/Packet.ct @@ -38,9 +38,9 @@ prefix_ OtherPacket senf::Packet::find(NoThrow_t) const { Packet p (*this); - while (p && ! p.is()) + while (p && ! p.is()) p = p.next(nothrow); - if (p) + if (p) return p.as(); else return OtherPacket(); @@ -51,9 +51,9 @@ prefix_ OtherPacket senf::Packet::rfind(NoThrow_t) const { Packet p (*this); - while (p && ! p.is()) + while (p && ! p.is()) p = p.prev(nothrow); - if (p) + if (p) return p.as(); else return OtherPacket();