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:
@@ -35,7 +35,6 @@
|
||||
|
||||
using std::string;
|
||||
using std::vector;
|
||||
using std::list;
|
||||
using std::runtime_error;
|
||||
|
||||
using Tins::Memory::InputMemoryStream;
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
|
||||
using std::string;
|
||||
using std::memcpy;
|
||||
using std::list;
|
||||
using std::make_pair;
|
||||
|
||||
using Tins::Memory::InputMemoryStream;
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
#include "detail/pdu_helpers.h"
|
||||
#include "pdu_allocator.h"
|
||||
|
||||
using std::list;
|
||||
using std::memcmp;
|
||||
using std::vector;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user