@@ -1227,7 +1227,7 @@ void findMaskedCompressionStates(const build_info &args,
12271227 if (!inspects_states_for_accepts (h)
12281228 && !hasInitDsStates (h, args.state_ids )) {
12291229 NFAStateSet nonleaf (args.num_states );
1230- for (const auto & e : edges_range (h)) {
1230+ for (const auto e : edges_range (h)) {
12311231 u32 from = args.state_ids .at (source (e, h));
12321232 u32 to = args.state_ids .at (target (e, h));
12331233 if (from == NO_STATE) {
@@ -1447,7 +1447,7 @@ u32 buildExceptionMap(const build_info &args, ReportListCache &reports_cache,
14471447 }
14481448
14491449 // are we a non-limited transition?
1450- for (const auto & oe : out_edges_range (v, h)) {
1450+ for (const auto oe : out_edges_range (v, h)) {
14511451 if (contains (exceptional, oe)) {
14521452 NFAVertex w = target (oe, h);
14531453 u32 w_idx = args.state_ids .at (w);
@@ -1538,7 +1538,7 @@ static
15381538u32 findMaxVarShift (const build_info &args, u32 nShifts) {
15391539 const NGHolder &h = args.h ;
15401540 u32 shiftMask = 0 ;
1541- for (const auto & e : edges_range (h)) {
1541+ for (const auto e : edges_range (h)) {
15421542 u32 from = args.state_ids .at (source (e, h));
15431543 u32 to = args.state_ids .at (target (e, h));
15441544 if (from == NO_STATE || to == NO_STATE) {
@@ -1567,7 +1567,7 @@ int getLimexScore(const build_info &args, u32 nShifts) {
15671567 maxVarShift = findMaxVarShift (args, nShifts);
15681568
15691569 NFAStateSet exceptionalStates (args.num_states );
1570- for (const auto & e : edges_range (h)) {
1570+ for (const auto e : edges_range (h)) {
15711571 u32 from = args.state_ids .at (source (e, h));
15721572 u32 to = args.state_ids .at (target (e, h));
15731573 if (from == NO_STATE || to == NO_STATE) {
@@ -1858,7 +1858,7 @@ struct Factory {
18581858 u32 shiftMask = 0 ;
18591859 int shiftMaskIdx = 0 ;
18601860
1861- for (const auto & e : edges_range (h)) {
1861+ for (const auto e : edges_range (h)) {
18621862 u32 from = args.state_ids .at (source (e, h));
18631863 u32 to = args.state_ids .at (target (e, h));
18641864 if (from == NO_STATE || to == NO_STATE) {
@@ -1896,7 +1896,7 @@ struct Factory {
18961896 u32 maxShift) {
18971897 const NGHolder &h = args.h ;
18981898
1899- for (const auto & e : edges_range (h)) {
1899+ for (const auto e : edges_range (h)) {
19001900 u32 from = args.state_ids .at (source (e, h));
19011901 u32 to = args.state_ids .at (target (e, h));
19021902 if (from == NO_STATE || to == NO_STATE) {
0 commit comments