Skip to content

Commit 8cad319

Browse files
committed
viewer#2921 - small changes per code review
1 parent 1633271 commit 8cad319

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

indra/llcommon/llstatsaccumulator.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ class LLStatsAccumulator
5959

6060
inline F32 getSum() const
6161
{
62-
return (F32) mSum;
62+
return F32(mSum);
6363
}
6464

6565
inline F32 getSumOfSquares() const
6666
{
67-
return (F32) mSumOfSquares;
67+
return F32(mSumOfSquares);
6868
}
6969

7070
inline F32 getMean() const
@@ -113,7 +113,7 @@ class LLStatsAccumulator
113113
inline LLSD asLLSD() const
114114
{
115115
LLSD data;
116-
data["count"] = (S32) getCount();
116+
data["count"] = S32(getCount());
117117
data["sum"] = getSum();
118118
data["sum_of_squares"] = getSumOfSquares();
119119
data["mean"] = getMean();

indra/newview/llviewerstats.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,11 @@ void LLViewerStats::updateFrameStats(const F64Seconds time_diff)
277277

278278
if (gFocusMgr.getAppHasFocus())
279279
{
280-
mForegroundFrameStats.push(F32(F64(time_diff)));
280+
mForegroundFrameStats.push(F32(time_diff));
281281
}
282282
else
283283
{
284-
mBackgroundFrameStats.push(F32(F64(time_diff)));
284+
mBackgroundFrameStats.push(F32(time_diff));
285285
}
286286

287287
}

0 commit comments

Comments
 (0)