1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 04:34:27 +01:00

Use vector instead of lists everywhere

This commit is contained in:
Matias Fontanini
2017-05-13 11:14:11 -07:00
parent fcad90b5e9
commit cedd127e8f
16 changed files with 19 additions and 35 deletions

View File

@@ -49,7 +49,7 @@
#include "packet_sender.h"
#include "memory_helpers.h"
using std::list;
using std::vector;
using Tins::Memory::InputMemoryStream;
using Tins::Memory::OutputMemoryStream;
@@ -212,7 +212,7 @@ void Dot11::write_serialization(uint8_t* buffer, uint32_t total_sz) {
stream.write(header_);
write_ext_header(stream);
write_fixed_parameters(stream);
for (list<option>::const_iterator it = options_.begin(); it != options_.end(); ++it) {
for (vector<option>::const_iterator it = options_.begin(); it != options_.end(); ++it) {
stream.write<uint8_t>(it->option());
stream.write<uint8_t>(it->length_field());
stream.write(it->data_ptr(), it->data_size());