From de185fe1a97d9640810d9e882cae511f512bc992 Mon Sep 17 00:00:00 2001 From: Alex White Date: Mon, 5 Apr 2021 11:29:25 -0500 Subject: covoar: Use range-based for loops in ReportsBase Some of the loops in the ReportsBase::Write* methods contained both regular and range-based for loops. This changes them to use only range- based for loops. Closes #4374 --- tester/covoar/ReportsBase.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tester/covoar/ReportsBase.h') diff --git a/tester/covoar/ReportsBase.h b/tester/covoar/ReportsBase.h index 5eff76c..ab8f8dd 100644 --- a/tester/covoar/ReportsBase.h +++ b/tester/covoar/ReportsBase.h @@ -328,14 +328,14 @@ class ReportsBase { * @param[in] number identifies the line number. * @param[in] symbolName is the symbol's name. * @param[in] symbolInfo is the symbol's information. - * @param[in] rangePtr is a pointer to the range information. + * @param[in] range is the range information. */ virtual bool PutBranchEntry( FILE* report, unsigned int number, const std::string& symbolName, const SymbolInformation& symbolInfo, - Coverage::CoverageRanges::ranges_t::iterator rangePtr + const CoverageRanges::coverageRange_t& range )=0; /*! @@ -360,14 +360,14 @@ class ReportsBase { * @param[in] number identifies the line number. * @param[in] symbolName is the symbol's name. * @param[in] symbolInfo is the symbol's information. - * @param[in] ritr is a iterator to the range information. + * @param[in] range is the range information. */ virtual bool PutCoverageLine( FILE* report, unsigned int number, const std::string& symbolName, const SymbolInformation& symbolInfo, - Coverage::CoverageRanges::ranges_t::iterator ritr + const CoverageRanges::coverageRange_t& range )=0; /*! @@ -376,13 +376,13 @@ class ReportsBase { * @param[in] report identifies the size report file name * @param[in] number identifies the line number. * @param[in] symbolName is the symbol's name. - * @param[in] range is a iterator to the range information. + * @param[in] range is the range information. */ virtual bool PutSizeLine( FILE* report, unsigned int number, const std::string& symbolName, - Coverage::CoverageRanges::ranges_t::iterator range + const CoverageRanges::coverageRange_t& range )=0; /*! -- cgit v1.2.3