Use range-based loops when possible.

This commit is contained in:
Jim Evins
2017-12-30 22:09:48 -05:00
parent 9a135f8971
commit ff003e5b17
8 changed files with 48 additions and 48 deletions
+3 -3
View File
@@ -61,11 +61,11 @@ namespace glbarcode
{
std::string cookedData;
for ( unsigned int i = 0; i < rawData.size(); i++ )
for (char c : rawData)
{
if ( isdigit( rawData[i] ) )
if ( isdigit( c ) )
{
cookedData += rawData[i];
cookedData += c;
}
}