GUI: Mark var as const

This commit is contained in:
lb_ii 2021-06-05 01:10:30 +03:00 committed by lolbot-iichan
parent 6d6a6d2bc6
commit 7d0a96818d

View File

@ -1275,7 +1275,7 @@ void OptionsDialog::addStatisticsControls(GuiObject *boss, const Common::String
for (uint16 idx = 0; idx < nMax ; idx++) {
const Common::StatDescription *descr = AchMan.getStatDescription(idx);
Common::String key = descr->comment.empty() ? descr->id : descr->comment;
const Common::String &key = descr->comment.empty() ? descr->id : descr->comment;
Common::String value = AchMan.getStatRaw(descr->id);
Common::U32String str = Common::U32String::format("%s: %s", key.c_str(), value.c_str());