timer.h: Improved const correctness of local variable.
This commit is contained in:
parent
d013cb2f0d
commit
9bf604c46c
|
@ -50,7 +50,7 @@ struct TimerResultsData {
|
||||||
}
|
}
|
||||||
|
|
||||||
double seconds() const {
|
double seconds() const {
|
||||||
double ret = (double)((unsigned long)_clocks) / (double)CLOCKS_PER_SEC;
|
const double ret = (double)((unsigned long)_clocks) / (double)CLOCKS_PER_SEC;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue