X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacket.hh;h=25d0f56a4227934fee280876819e9a9e2f25c329;hb=a0b6f53e5c464c6b84fed30a67fcce32da81012d;hp=d6dc393f62207e0760d9e0ab083cb115af1860e0;hpb=3a43b572a2c0028b353d47e86fa7546633d6e2cf;p=senf.git diff --git a/senf/Packets/Packet.hh b/senf/Packets/Packet.hh index d6dc393..25d0f56 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. */ @@ -242,7 +243,7 @@ namespace senf { Packet first() const; ///< Return first packet in chain - template OtherPacket first() const; + template OtherPacket first() const; ///< Return first packet in chain and cast /**< \throws std::bad_cast if the first() packet is not of type \a OtherPacket */ @@ -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; @@ -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;