diff options
author | 2020-10-14 22:06:08 +0200 | |
---|---|---|
committer | 2020-10-16 14:26:37 -0700 | |
commit | 0c769b04b72a1805e1ffa32b4fca5f59fc98431a (patch) | |
tree | 78055261fc6358648d2b2d566c17ad27a5e51c01 /tests | |
parent | 8549f24c915b05e0e84e73d3d99e7888d3c7c063 (diff) | |
download | subsurface-0c769b04b72a1805e1ffa32b4fca5f59fc98431a.tar.gz |
cleanup: replace std::find_if by std::any_of
To search for devices with the same model, we used find_if().
However, that was only to check whether such a thing exists,
not to actually do something with said device.
Therefore, change this to std::any_of() to make it clear what
the purpose of the statement is.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions