Fix more defects detected by Coverity Scan

This commit is contained in:
Carles Fernandez 2023-12-03 11:42:30 +01:00
parent e836d8f471
commit 906d717381
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
1 changed files with 6 additions and 6 deletions

View File

@ -20,8 +20,8 @@
#include <limits> // for numeric_limits
#include <map> // for map
#include <random> // for random_device, default_random_engine, uniform_real_distribution
#include <vector> // for vector
#include <utility>
#include <vector> // for vector
template <typename T>
void random_values(T *buf, unsigned int n, std::default_random_engine &e1)
@ -946,14 +946,14 @@ bool run_volk_gnsssdr_tests(volk_gnsssdr_func_desc_t desc,
if (puppet_master_name == "NULL")
{
results->back().config_name = name;
results->back().config_name = std::move(name);
}
else
{
results->back().config_name = puppet_master_name;
results->back().config_name = std::move(puppet_master_name);
}
results->back().best_arch_a = best_arch_a;
results->back().best_arch_u = best_arch_u;
results->back().best_arch_a = std::move(best_arch_a);
results->back().best_arch_u = std::move(best_arch_u);
return fail_global;
}