Use std::move in a few places instead of copying a pass-by-value argument (performance-unnecessary-value-param)

This commit is contained in:
Tim Wojtulewicz 2020-02-03 17:23:31 -05:00
parent 5a237d3a3f
commit d23b15c08f
4 changed files with 4 additions and 4 deletions

View file

@ -62,7 +62,7 @@ RuleHdrTest::RuleHdrTest(Prot arg_prot, Comp arg_comp, vector<IPPrefix> arg_v)
size = 0;
comp = arg_comp;
vals = new maskedvalue_list;
prefix_vals = arg_v;
prefix_vals = std::move(arg_v);
sibling = 0;
child = 0;
pattern_rules = 0;