X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacket.hh;h=4698dd349457e975c904b34cac2ff97dc2ee44b9;hb=9bc655e14d2d8c204ed835896cb51e42d49bd68f;hp=db53195566f32be2ebf4ef5df9328aede46c8078;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Packets/Packet.hh b/senf/Packets/Packet.hh index db53195..4698dd3 100644 --- a/senf/Packets/Packet.hh +++ b/senf/Packets/Packet.hh @@ -171,7 +171,8 @@ namespace senf { // conversion constructors template - Packet(ConcretePacket packet); ///< Copy-construct Packet from ConcretePacket + Packet(ConcretePacket const & packet); + ///< Copy-construct Packet from ConcretePacket /**< This constructor allows to convert an arbitrary ConcretePacket into a general Packet, loosing the protocol specific interface. */ @@ -489,9 +490,9 @@ namespace senf { ///@} protected: - explicit Packet(PacketInterpreterBase::ptr packet); + explicit Packet(PacketInterpreterBase::ptr const & packet); - PacketInterpreterBase::ptr ptr() const; + PacketInterpreterBase::ptr const & ptr() const; private: Packet checkNext() const; @@ -610,7 +611,7 @@ namespace senf { into the packet representation. The data will \e not be validated in any way. - \param[in] range Boost.Range + \param[in] range Boost.Range of data to construct packet from. */ #endif @@ -672,7 +673,7 @@ namespace senf { header/interpreter after \a packet in that packets interpreter chain. \param[in] packet Packet to append new packet to. - \param[in] range Boost.Range + \param[in] range Boost.Range of data to construct packet from. */ #endif @@ -752,7 +753,7 @@ namespace senf { private: typedef PacketInterpreter interpreter; - ConcretePacket(typename interpreter::ptr packet_); + ConcretePacket(typename interpreter::ptr const & packet_); typename interpreter::ptr ptr() const;