bugfix for last commits; test your code *before* committing! grmpf :(
tho [Mon, 19 Oct 2009 14:42:51 +0000 (14:42 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1504 270642c3-0616-0410-b53a-bc976706d245

senf/Packets/80211Bundle/WLANBeaconPacket.cc
senf/Packets/80221Bundle/MIHPacket.cc
senf/Packets/GenericTLV.ct

index ade514e..4bd4d15 100644 (file)
@@ -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);
 }
 
index 619b58d..7f88528 100644 (file)
@@ -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);
 }
 
index f1f34f7..f2aef9b 100644 (file)
@@ -91,7 +91,7 @@ prefix_ void senf::GenericTLVParserRegistry<BaseParser>::dump(
         GenericTLVParserBase<BaseParser> 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"