X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacketType.hh;h=931ef4bf1452f0ff5824780a0524951acb765361;hb=92f8630b75f3ef50e73c48cde58645dcd1534e27;hp=e97380b5f85f02da3e80730f6e1db2a20af8b16d;hpb=412024ed31a4ab4eaea7a4165a434f8efebee325;p=senf.git diff --git a/Packets/PacketType.hh b/Packets/PacketType.hh index e97380b..931ef4b 100644 --- a/Packets/PacketType.hh +++ b/Packets/PacketType.hh @@ -312,7 +312,7 @@ namespace senf { typedef typename Registry::key_t key_t; typedef boost::optional optional_key_t; - static optional_key_t key (Packet p); ///< Find key of packet from registry + static optional_key_t key (Packet const & p); ///< Find key of packet from registry /**< key() will query the registry to find the key of the given packet. Whereas \c nextPacketKey() as implemented by the mixin user will provide the registry key of the @@ -333,10 +333,10 @@ namespace senf { ///\name PacketType interface implementation ///@{ - static PacketInterpreterBase::optional_range nextPacketRange (Packet p); - static PacketInterpreterBase::factory_t nextPacketType (Packet p); + static PacketInterpreterBase::optional_range nextPacketRange (Packet const & p); + static PacketInterpreterBase::factory_t nextPacketType (Packet const & p); static PacketInterpreterBase::size_type initSize (); - static void init (Packet p); + static void init (Packet const & p); ///@} }; @@ -347,9 +347,9 @@ namespace senf { class PacketTypeMixin { public: - static PacketInterpreterBase::optional_range nextPacketRange (Packet p); + static PacketInterpreterBase::optional_range nextPacketRange (Packet const & p); static PacketInterpreterBase::size_type initSize (); - static void init (Packet p); + static void init (Packet const & p); }; # endif