forked from ShuriZma/suyu
1
0
Fork 0

Merge pull request #4605 from lioncash/copy3

bootmanager: Prevent unnecessary copies in TouchUpdateEvent()
This commit is contained in:
bunnei 2020-08-29 23:22:39 -04:00 committed by GitHub
commit 37faf24c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();