mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	clang-tidy: apply modernize-loop-convert fix (see https://clang.llvm.org/extra/clang-tidy/checks/modernize-loop-convert.html)
This commit is contained in:
		| @@ -248,9 +248,9 @@ char Nmea_Printer::checkSum(std::string sentence) | ||||
| { | ||||
|     char check = 0; | ||||
|     // iterate over the string, XOR each byte with the total sum: | ||||
|     for (unsigned int c = 0; c < sentence.length(); c++) | ||||
|     for (char c : sentence) | ||||
|         { | ||||
|             check = char(check ^ sentence.at(c)); | ||||
|             check = char(check ^ c); | ||||
|         } | ||||
|     // return the result | ||||
|     return check; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez