summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp
diff options
context:
space:
mode:
authorAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-10-19 14:27:51 +0300
committerAnton Kudryavtsev <antkudr@mail.ru>2016-10-25 05:12:29 +0000
commitc30e62c7750b804bfe6f3ed29914ebb42890230d (patch)
tree7b1ed8128eccae36b574b04586dea8d9cdb791c0 /src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp
parent26ac91c832c2a8db1327e24e6ff88eef82cc4530 (diff)
Plugins: use const (and const APIs) more
For CoW types, prefer const methods to avoid needless detach()ing. Change-Id: I625d57c0c19e87ac2de681bb16d0cc5a7a59b366 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp')
-rw-r--r--src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp b/src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp
index 48e0af5479..3e1e93f1e4 100644
--- a/src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp
+++ b/src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp
@@ -199,7 +199,7 @@ void QEglFSDeviceIntegration::screenDestroy()
QEglFSIntegration *platformIntegration = static_cast<QEglFSIntegration *>(
QGuiApplicationPrivate::platformIntegration());
while (!app->screens().isEmpty())
- platformIntegration->removeScreen(app->screens().last()->handle());
+ platformIntegration->removeScreen(app->screens().constLast()->handle());
}
QSizeF QEglFSDeviceIntegration::physicalScreenSize() const