summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-08-30 05:22:39 +0200
committerGitHub <noreply@github.com>2020-08-30 05:22:39 +0200
commit37faf24c3f5e234060348fd20b40b8b803d34257 (patch)
treeeae29fc85a994585aa6aa30a2814ef2fa246e5a2
parentMerge pull request #4604 from lioncash/lifetime (diff)
parentbootmanager: Prevent unnecessary copies in TouchUpdateEvent() (diff)
downloadyuzu-37faf24c3f5e234060348fd20b40b8b803d34257.tar
yuzu-37faf24c3f5e234060348fd20b40b8b803d34257.tar.gz
yuzu-37faf24c3f5e234060348fd20b40b8b803d34257.tar.bz2
yuzu-37faf24c3f5e234060348fd20b40b8b803d34257.tar.lz
yuzu-37faf24c3f5e234060348fd20b40b8b803d34257.tar.xz
yuzu-37faf24c3f5e234060348fd20b40b8b803d34257.tar.zst
yuzu-37faf24c3f5e234060348fd20b40b8b803d34257.zip
-rw-r--r--src/yuzu/bootmanager.cpp2
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();