From 56588dd83d9e790bed7f9486103cf63438754ec5 Mon Sep 17 00:00:00 2001 From: tho <tho@wiback.org> Date: Wed, 7 Nov 2007 17:05:27 +0000 Subject: [PATCH] some small doc fixes --- Packets/PacketType.hh | 8 ++++---- Packets/ParseVariant.hh | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Packets/PacketType.hh b/Packets/PacketType.hh index e01db8748..06c2a5156 100644 --- a/Packets/PacketType.hh +++ b/Packets/PacketType.hh @@ -222,8 +222,8 @@ namespace senf { \code // Here 'SomeRegistryTag' is optional struct SimplePacketType - : public senf::PacketTypeBase - public senf:PacketTypeMixin<SimplePacketType, SomeRegistryTag> + : public senf::PacketTypeBase, + public senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag> { typedef senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag> mixin; typedef senf::ConcretePacket<SimplePacketType> packet; @@ -292,8 +292,8 @@ namespace senf { \code struct SimplePacketType - : public senf::PacketTypeBase - public senf:PacketTypeMixin<SimplePacketType, SomeRegistryTag> + : public senf::PacketTypeBase, + public senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag> { typedef senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag> mixin; typedef senf::ConcretePacket<SimplePacketType> packet; diff --git a/Packets/ParseVariant.hh b/Packets/ParseVariant.hh index e8593b57f..9deb62267 100644 --- a/Packets/ParseVariant.hh +++ b/Packets/ParseVariant.hh @@ -180,15 +180,15 @@ namespace senf { (senf::Parse_UInt32) ); senf::Parse_UInt8 uint8() const { return content().get<1>(); } - senf::Parse_UInt8 uint16() const { return content().get<2>(); } - senf::Parse_UInt8 uint24() const { return content().get<3>(); } - senf::Parse_UInt8 uint32() const { return content().get<4>(); } + senf::Parse_UInt16 uint16() const { return content().get<2>(); } + senf::Parse_UInt24 uint24() const { return content().get<3>(); } + senf::Parse_UInt32 uint32() const { return content().get<4>(); } void disable() const { content().init<0>(); } void set_uint8() const { content().init<1>(); } - void set_uint16() const { content().init<1>(); } - void set_uint24) const { content().init<1>(); } - void set_uint23() const { content().init<1>(); } + void set_uint16() const { content().init<2>(); } + void set_uint24) const { content().init<3>(); } + void set_uint23() const { content().init<4>(); } SENF_PARSER_FINALIZE(SomeParser); }; -- GitLab