mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 10:10:35 +03:00
first batch of cppcheck disables and a few more stl-ifications,
involving use of accumulate() .
This commit is contained in:
@@ -50,6 +50,7 @@ namespace ue2 {
|
||||
|
||||
template<typename VarP, typename VarQ>
|
||||
void emplace_back_all_raw(vector<VarP> *out, const vector<VarQ> &in) {
|
||||
// cppcheck-suppress useStlAlgorithm
|
||||
for (const auto &var : in) {
|
||||
out->emplace_back(var.get());
|
||||
}
|
||||
@@ -380,6 +381,7 @@ template<typename VarP>
|
||||
void add_to_dom_ordering(const vector<VarP> &vars,
|
||||
vector<GoughSSAVar *> *out) {
|
||||
for (const auto &var : vars) {
|
||||
// cppcheck-suppress useStlAlgorithm
|
||||
out->emplace_back(var.get());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user