From 32999378a7e48e1839382c6d84ca2d041dbcdca1 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Fri, 14 Jan 2022 09:37:25 +0900 Subject: [PATCH] Don't pass non-const refs. Non-const refs are not allowed by style guide. This was just an oversight. Test: m bpf_existence_test Change-Id: I8947118618dd5beef7f5643475d348f709799922 --- tests/mts/bpf_existence_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mts/bpf_existence_test.cpp b/tests/mts/bpf_existence_test.cpp index ac8096c558..142e01334d 100644 --- a/tests/mts/bpf_existence_test.cpp +++ b/tests/mts/bpf_existence_test.cpp @@ -92,7 +92,7 @@ void addAll(set* a, const set& b) { a->insert(b.begin(), b.end()); } -void removeAll(set* a, const set b) { +void removeAll(set* a, const set& b) { for (const auto& toRemove : b) { a->erase(toRemove); }