X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FCloneSource.cc;h=cb0b67c9aec7c88e1b9a72b7b1d430335d2f2463;hb=b8ca4a544cce3e6023bb56b712a03d6362f2bb79;hp=76b4ddfb94f5e46b5da8317b21ed76aff63b79e4;hpb=a52ad78703fa2c4d2a90aff32dec3b5f756ee63c;p=senf.git diff --git a/PPI/CloneSource.cc b/PPI/CloneSource.cc index 76b4ddf..cb0b67c 100644 --- a/PPI/CloneSource.cc +++ b/PPI/CloneSource.cc @@ -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 @@ -32,8 +32,8 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -senf::ppi::module::CloneSource::CloneSource(senf::Packet packet) - : packet_(packet) +senf::ppi::module::CloneSource::CloneSource(senf::Packet const & packet) + : packet_(packet) { noroute(output); output.onRequest(&CloneSource::request); @@ -43,9 +43,10 @@ void senf::ppi::module::CloneSource::request() { output(packet_.clone()); } -void senf::ppi::module::CloneSource::replacePacket(senf::Packet packet) + +void senf::ppi::module::CloneSource::replacePacket(senf::Packet const & packet) { - packet_ = packet; + packet_ = packet; }