Bug 1337358 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in tools/ r=froydnj

MozReview-Commit-ID: GdeCzDXjzzg

--HG--
extra : rebase_source : b00971238ff78d23d9bcec31f905ec268a614527
This commit is contained in:
Sylvestre Ledru 2017-02-08 12:04:50 +01:00
Родитель 2ca789788b
Коммит 5941aa8f13
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -719,8 +719,8 @@ Finish()
// |n - 1|, and would be appropriate if we were using a random sample of a
// larger population.
double sumOfSquaredDeviations = 0;
for (auto iter = gTotals_W.begin(); iter != gTotals_W.end(); ++iter) {
double deviation = (*iter - mean);
for (double & iter : gTotals_W) {
double deviation = (iter - mean);
sumOfSquaredDeviations += deviation * deviation;
}
double popStdDev = sqrt(sumOfSquaredDeviations / n);