From: Konstantinos Margaritis Date: Wed, 15 May 2024 07:44:15 +0000 (+0300) Subject: Merge pull request #277 from isildur-g/wip-cppcheck271 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93239afa3a7e15f1672fe8bf08a8ebf933060200;p=thirdparty%2Fvectorscan.git Merge pull request #277 from isildur-g/wip-cppcheck271 phase 1 of addressing cppcheck useStlAlgorithm warnings for fill and copy operations --- 93239afa3a7e15f1672fe8bf08a8ebf933060200 diff --cc src/nfagraph/ng_extparam.cpp index abfe367e,7f2065d5..6fa4b962 --- a/src/nfagraph/ng_extparam.cpp +++ b/src/nfagraph/ng_extparam.cpp @@@ -569,8 -569,11 +569,11 @@@ bool transformMinLengthToRepeat(NGHolde return true; } - vector preds; + vector predcs; vector dead; + auto deads = [&g=g](const NFAEdge &e) { + return (target(e, g) != g.startDs); + }; for (auto u : inv_adjacent_vertices_range(cyclic, g)) { DEBUG_PRINTF("pred %zu\n", g[u].index); if (u == cyclic) {