Minor perf optimization suggested by Clazy
This commit is contained in:
parent
06bc05b708
commit
3da505c4c6
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ public:
|
||||||
|
|
||||||
QString getCurrentAppName() const
|
QString getCurrentAppName() const
|
||||||
{
|
{
|
||||||
for (NvApp app : m_Computer->appList) {
|
for (const NvApp& app : m_Computer->appList) {
|
||||||
if (m_Computer->currentGameId == app.id) {
|
if (m_Computer->currentGameId == app.id) {
|
||||||
return app.name;
|
return app.name;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue