From 36ce07093b68b07513149577c209ae7a57ab356b Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周日, 15 3月 2020 16:26:21 +0800 Subject: [PATCH] Merge branch 'feature/pc_identifiers' into develop issues #2 #3 #14 #49 --- src/library/hw_identifier/ethernet.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/library/hw_identifier/ethernet.cpp b/src/library/hw_identifier/ethernet.cpp index ce1d6de..bd21bc9 100644 --- a/src/library/hw_identifier/ethernet.cpp +++ b/src/library/hw_identifier/ethernet.cpp @@ -63,7 +63,7 @@ FUNCTION_RETURN result = generate_ethernet_pc_id(data, use_ip); vector<HwIdentifier> identifiers; if (result == FUNC_RET_OK) { - identifiers.resize(data.size()); + identifiers.reserve(data.size()); for (auto &it : data) { HwIdentifier pc_id; pc_id.set_identification_strategy(identification_strategy()); -- Gitblit v1.9.1