Const is good. Use it for viewer stats.

This commit is contained in:
Shyotl
2019-07-25 22:30:44 -05:00
parent ea2b1e179e
commit 6dc9210a7e
7 changed files with 764 additions and 581 deletions

View File

@@ -66,7 +66,7 @@ LLStatView::~LLStatView()
}
}
LLStatBar *LLStatView::addStat(const std::string& name, LLStat *statp,
LLStatBar *LLStatView::addStat(const std::string& name, LLStat *statp, const LLStatBar::Parameters& parameters,
const std::string& setting, BOOL default_bar, BOOL default_history)
{
LLStatBar *stat_barp;
@@ -74,8 +74,7 @@ LLStatBar *LLStatView::addStat(const std::string& name, LLStat *statp,
mNumStatBars++;
stat_barp = new LLStatBar(name, r, setting, default_bar, default_history);
stat_barp->mStatp = statp;
stat_barp = new LLStatBar(name, r, statp, parameters, setting, default_bar, default_history);
stat_barp->setVisible(mDisplayChildren);
addChildInBack(stat_barp);