mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-04-07 03:07:02 +00:00
Fix more defects detected by Coverity Scan
This commit is contained in:
parent
e836d8f471
commit
906d717381
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user