From 72fba4be5de7a16e62b093e9441b69abe862ff39 Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 22 Nov 2019 17:51:54 +0000 Subject: [PATCH] Use std::vector::clear() instead of empty() to clear a list --- nping/NEPContext.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nping/NEPContext.cc b/nping/NEPContext.cc index 0c562c4e7..bc07702f5 100644 --- a/nping/NEPContext.cc +++ b/nping/NEPContext.cc @@ -617,6 +617,6 @@ bool NEPContext::isDuplicateFieldSpec(u8 test_field){ * with clients that send multiple NEP_PACKET_SPEC messages, so only the last * PacketSpec is taken into account. */ int NEPContext::resetClientFieldSpecs(){ - this->fspecs.empty(); + this->fspecs.clear(); return OP_SUCCESS; -} /* End of resetClientFieldSpecs() */ \ No newline at end of file +} /* End of resetClientFieldSpecs() */