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:
@@ -200,6 +200,8 @@ public:
|
||||
|
||||
/// Are no bits set?
|
||||
bool none() const {
|
||||
// cppcheck-suppress useStlAlgorithm
|
||||
// XXX maybe do this one..
|
||||
for (const auto &e : bits) {
|
||||
if (e != 0) {
|
||||
return false;
|
||||
|
||||
@@ -616,12 +616,14 @@ public:
|
||||
vertex_descriptor v) const {
|
||||
if (in_degree_impl(v) < out_degree_impl(u)) {
|
||||
for (const edge_descriptor &e : in_edges_range(v, *this)) {
|
||||
// cppcheck-suppress useStlAlgorithm
|
||||
if (source_impl(e) == u) {
|
||||
return {e, true};
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (const edge_descriptor &e : out_edges_range(u, *this)) {
|
||||
// cppcheck-suppress useStlAlgorithm
|
||||
if (target_impl(e) == v) {
|
||||
return {e, true};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user