зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2ca789788b
Коммит
5941aa8f13
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче