[PATCH] covoar/CoverageMapBase: Use reference for iteration in validAddress
Alex White
alex.white at oarcorp.com
Thu Jun 17 21:13:37 UTC 2021
---
tester/covoar/CoverageMapBase.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tester/covoar/CoverageMapBase.cc b/tester/covoar/CoverageMapBase.cc
index 6ca5cf7..f0b5890 100644
--- a/tester/covoar/CoverageMapBase.cc
+++ b/tester/covoar/CoverageMapBase.cc
@@ -121,7 +121,7 @@ namespace Coverage {
bool CoverageMapBase::validAddress( const uint32_t address ) const
{
- for ( auto r : Ranges )
+ for ( auto& r : Ranges )
if (r.inside( address ))
return true;
return false;
--
2.27.0
More information about the devel
mailing list