From: tho Date: Mon, 19 Oct 2009 14:42:51 +0000 (+0000) Subject: bugfix for last commits; test your code *before* committing! grmpf :( X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=0061f12af7284b2d2f03de23014ac2faccfd37ed;p=senf.git bugfix for last commits; test your code *before* committing! grmpf :( git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1504 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/Packets/80211Bundle/WLANBeaconPacket.cc b/senf/Packets/80211Bundle/WLANBeaconPacket.cc index ade514e..4bd4d15 100644 --- a/senf/Packets/80211Bundle/WLANBeaconPacket.cc +++ b/senf/Packets/80211Bundle/WLANBeaconPacket.cc @@ -43,7 +43,7 @@ prefix_ void senf::WLANBeaconPacketType::dump(packet p, std::ostream &os) os << " Optional Information Elements:\n"; typedef parser::ieList_t::container ieListContainer_t; ieListContainer_t ieListContainer (p->ieList()); - for (ieListContainer_t::iterator i = ieListContainer.begin(); i != ieListContainer.end(); ++i) + for (ieListContainer_t::const_iterator i = ieListContainer.begin(); i != ieListContainer.end(); ++i) i->dump( os); } diff --git a/senf/Packets/80221Bundle/MIHPacket.cc b/senf/Packets/80221Bundle/MIHPacket.cc index 619b58d..7f88528 100644 --- a/senf/Packets/80221Bundle/MIHPacket.cc +++ b/senf/Packets/80221Bundle/MIHPacket.cc @@ -85,7 +85,7 @@ prefix_ void senf::MIHGenericPayloadPacketType::dump(packet p, std::ostream &os) os << "MIH Payload (service specific TLVs):\n"; typedef parser::tlvList_t::container tlvListContainer_t; tlvListContainer_t tlvListContainer (p->tlvList()); - for (tlvListContainer_t::iterator i = tlvListContainer.begin(); i != tlvListContainer.end(); ++i) + for (tlvListContainer_t::const_iterator i = tlvListContainer.begin(); i != tlvListContainer.end(); ++i) i->dump( os); } diff --git a/senf/Packets/GenericTLV.ct b/senf/Packets/GenericTLV.ct index f1f34f7..f2aef9b 100644 --- a/senf/Packets/GenericTLV.ct +++ b/senf/Packets/GenericTLV.ct @@ -91,7 +91,7 @@ prefix_ void senf::GenericTLVParserRegistry::dump( GenericTLVParserBase const & parser, std::ostream & os) const { - typename Map::iterator i (map_.find( parser.type())); + typename Map::const_iterator i (map_.find( parser.type())); if (i == map_.end()) { boost::io::ios_all_saver ias(os); os << " GenericTLVParser<" << prettyName(typeid(BaseParser)) << ">\n"