Skip to content
Snippets Groups Projects
Unverified Commit 37faf24c authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #4605 from lioncash/copy3

bootmanager: Prevent unnecessary copies in TouchUpdateEvent()
parents ce43139e 1aba91e9
No related branches found
No related tags found
No related merge requests found
...@@ -452,7 +452,7 @@ void GRenderWindow::TouchUpdateEvent(const QTouchEvent* event) { ...@@ -452,7 +452,7 @@ void GRenderWindow::TouchUpdateEvent(const QTouchEvent* event) {
int active_points = 0; int active_points = 0;
// average all active touch points // 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)) { if (tp.state() & (Qt::TouchPointPressed | Qt::TouchPointMoved | Qt::TouchPointStationary)) {
active_points++; active_points++;
pos += tp.pos(); pos += tp.pos();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment