1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 12:44:25 +01:00

Use vector instead of lists everywhere

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

View File

@@ -35,7 +35,6 @@
using std::string;
using std::vector;
using std::list;
using std::runtime_error;
using Tins::Memory::InputMemoryStream;

View File

@@ -38,7 +38,6 @@
using std::string;
using std::memcpy;
using std::list;
using std::make_pair;
using Tins::Memory::InputMemoryStream;

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());

View File

@@ -47,7 +47,6 @@
#include "detail/pdu_helpers.h"
#include "pdu_allocator.h"
using std::list;
using std::memcmp;
using std::vector;