mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 14:52:45 +01:00
Merge pull request #4605 from lioncash/copy3
bootmanager: Prevent unnecessary copies in TouchUpdateEvent()
This commit is contained in:
commit
37faf24c3f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue