diff options
author | bunnei <bunneidev@gmail.com> | 2020-08-29 23:22:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-29 23:22:39 -0400 |
commit | 37faf24c3f5e234060348fd20b40b8b803d34257 (patch) | |
tree | eae29fc85a994585aa6aa30a2814ef2fa246e5a2 /src | |
parent | ce43139eb7f347c853713699dfe05a500dc7f240 (diff) | |
parent | 1aba91e993d933c30c4201a3ada3ea6dea96eebb (diff) |
Merge pull request #4605 from lioncash/copy3
bootmanager: Prevent unnecessary copies in TouchUpdateEvent()
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/bootmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 32b548c56..21707e451 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -452,7 +452,7 @@ void GRenderWindow::TouchUpdateEvent(const QTouchEvent* event) { int active_points = 0; // average all active touch points - for (const auto tp : event->touchPoints()) { + for (const auto& tp : event->touchPoints()) { if (tp.state() & (Qt::TouchPointPressed | Qt::TouchPointMoved | Qt::TouchPointStationary)) { active_points++; pos += tp.pos(); |