X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacketInterpreter.ct;h=428f54f9757bfeeb96c5b60ffd80f96a45dd5023;hb=84f14a42f9993e186c7897ce0db021300e0a2d48;hp=22781810683e86c8409329e612ebc032f4a865e0;hpb=3a3350157a52c268d5082a4aac4aba643417071f;p=senf.git diff --git a/senf/Packets/PacketInterpreter.ct b/senf/Packets/PacketInterpreter.ct index 2278181..428f54f 100644 --- a/senf/Packets/PacketInterpreter.ct +++ b/senf/Packets/PacketInterpreter.ct @@ -43,11 +43,11 @@ senf::PacketInterpreterBase::parseNextAs() optional_range r (nextPacketRange()); if (!r) throw InvalidPacketChainException(); - + if (next()) impl().truncateInterpreters(next().get()); - typename PacketInterpreter::ptr pi + typename PacketInterpreter::ptr pi (PacketInterpreter::create(&impl(),r->begin(),r->end(),Append)); return pi; } @@ -118,7 +118,7 @@ senf::PacketInterpreter::createAfter(PacketInterpreterBase::ptr pack optional_range r (packet->nextPacketRange()); if (!r) throw InvalidPacketChainException(); - + if (packet->next()) packet->impl().truncateInterpreters(packet->next().get()); @@ -379,7 +379,7 @@ senf::PacketInterpreter::FactoryImpl::parseNext(PacketInterpreterBas optional_range r (packet->nextPacketRange()); if (!r) throw InvalidPacketChainException(); - + if (packet->next()) packet->impl().truncateInterpreters(packet->next().get()); @@ -387,7 +387,7 @@ senf::PacketInterpreter::FactoryImpl::parseNext(PacketInterpreterBas } template -const typename senf::PacketInterpreter::FactoryImpl +const typename senf::PacketInterpreter::FactoryImpl senf::PacketInterpreter::factory_; ///////////////////////////////ct.e////////////////////////////////////////