Skip to content

Commit eaa27e0

Browse files
committed
Fix detached containers warning
1 parent e8cd4cc commit eaa27e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ClassSimZ80.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ inline void ClassSimZ80::recalcNet(net_t n)
416416
net.state = newState;
417417

418418
if (net.state)
419-
for (Trans *t : net.gates)
419+
for (Trans *&t : net.gates)
420420
{
421421
if (!t->on)
422422
{
@@ -425,7 +425,7 @@ inline void ClassSimZ80::recalcNet(net_t n)
425425
}
426426
}
427427
else
428-
for (Trans *t : net.gates)
428+
for (Trans *&t : net.gates)
429429
{
430430
if (t->on)
431431
{

0 commit comments

Comments
 (0)