X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacket.ct;h=073a9f8a935746cc5f9862f68681a825d6d036a4;hb=92f8630b75f3ef50e73c48cde58645dcd1534e27;hp=48b83fcb890327e6be66b8dbe07990dd53858c92;hpb=ee64a24a7ed1dfcdb7a12f14d7df3b043e564a30;p=senf.git diff --git a/Packets/Packet.ct b/Packets/Packet.ct index 48b83fc..073a9f8 100644 --- a/Packets/Packet.ct +++ b/Packets/Packet.ct @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -34,12 +34,12 @@ // senf::Packet template -prefix_ OtherPacket senf::Packet::find() +prefix_ OtherPacket senf::Packet::find(NoThrow_t) const { Packet p (*this); while (p && ! p.is()) - p = p.next(); + p = p.next(nothrow); if (p) return p.as(); else @@ -47,12 +47,12 @@ prefix_ OtherPacket senf::Packet::find() } template -prefix_ OtherPacket senf::Packet::rfind() +prefix_ OtherPacket senf::Packet::rfind(NoThrow_t) const { Packet p (*this); while (p && ! p.is()) - p = p.prev(); + p = p.prev(nothrow); if (p) return p.as(); else