X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacket.cc;h=9b1d68aa6aebf94e79f314cb4cc5406c15de799e;hb=85ab07d100a382467a42e19d741d403a7a96c951;hp=828e530f8688ed58e0ec87d550397816e784b5f9;hpb=3e42ecb22121f2e6df86b27bea73f890384a4ee4;p=senf.git diff --git a/Packets/Packet.cc b/Packets/Packet.cc index 828e530..9b1d68a 100644 --- a/Packets/Packet.cc +++ b/Packets/Packet.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -76,7 +76,7 @@ prefix_ senf::Packet::interpreter_list::iterator senf::impl::PacketImpl::appendInterpreter(Packet * p) { BOOST_ASSERT( p->impl_ == 0 ); - + this->refcount_ += p->refcount_; SATCOM_PKF_REFC_MSG("] PacketImpl::appendInterpreter (" << this << "): refcount_ = " << refcount_ << "\n"); p->impl_ = this; @@ -167,7 +167,7 @@ prefix_ void senf::impl::PacketImpl::packet_add_ref(Packet const * p) } prefix_ void senf::impl::PacketImpl::packet_release(Packet * p) -{ +{ bool del (p->release()); if (p->impl_ && p->impl_->release()) // In this case, del is certainly false here. p might @@ -188,7 +188,7 @@ prefix_ senf::Packet::ptr senf::Packet::next() if (this->parsed_) return ptr(0); /* \fixme v_nextInterpreter return bool? new Interpreter to be - added ? hmm ... this however is quite suboptimal ... */ + added ? hmm ... this however is quite suboptimal ... */ this->v_nextInterpreter(); this->parsed_ = true; n = boost::next(this->self_); @@ -271,7 +271,7 @@ prefix_ void senf::Packet::erase(iterator first, iterator last) size_type sz(last-first); BOOST_ASSERT( index >= begin_ && index < end_ && sz <= end_-index ); /** \fixme Here we should assert, that no bytes belonging to the - next iterator are deleted ... */ + next iterator are deleted ... */ impl_->data_.erase(first,last); impl_->updateIterators(index,-sz,self_,INSIDE); } @@ -291,5 +291,8 @@ prefix_ void senf::Packet::dump(std::ostream & os) // Local Variables: // mode: c++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: