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 | ac1a7c7a55242ffccd776a479aab1a2c7ff1b806 (patch) | |
| tree | eae29fc85a994585aa6aa30a2814ef2fa246e5a2 /src/yuzu/bootmanager.cpp | |
| parent | 437bc3c1993684cf618da99eccf8480bf99e509b (diff) | |
| parent | 428c1071f822ecb9a01fb881486d51ec1c10e898 (diff) | |
Merge pull request #4605 from lioncash/copy3
bootmanager: Prevent unnecessary copies in TouchUpdateEvent()
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
| -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 32b548c56b..21707e451e 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(); |
