[PATCH] covoar/CoverageMapBase: Use reference for iteration in validAddress
Chris Johns
chrisj at rtems.org
Fri Jun 18 00:58:52 UTC 2021
Ok
On 18/6/21 7:13 am, Alex White wrote:
> ---
> 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;
>
More information about the devel
mailing list