summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-01-27 11:36:20 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-01-27 12:42:46 (GMT)
commitc8684662c20deacb791afb4ae3169af997793c2a (patch)
treeb3b8badf78f3e56d07ec96e574d1071a7a38935b
parentb0390e68893dd04076434695be5e676b87bc067c (diff)
downloadQt-c8684662c20deacb791afb4ae3169af997793c2a.zip
Qt-c8684662c20deacb791afb4ae3169af997793c2a.tar.gz
Qt-c8684662c20deacb791afb4ae3169af997793c2a.tar.bz2
Only const_cast can remove const :)
-rw-r--r--src/plugins/platforms/testlite/qtestliteintegration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/testlite/qtestliteintegration.cpp b/src/plugins/platforms/testlite/qtestliteintegration.cpp
index 9b641d1..dc8a6d7 100644
--- a/src/plugins/platforms/testlite/qtestliteintegration.cpp
+++ b/src/plugins/platforms/testlite/qtestliteintegration.cpp
@@ -140,7 +140,7 @@ bool QTestLiteIntegration::hasOpenGL() const
static bool wasEglInitialized = false;
if (!eglHasbeenInitialized) {
eglHasbeenInitialized = true;
- QTestLiteScreen *screen = static_cast<const QTestLiteScreen *>(mScreens.at(0));
+ const QTestLiteScreen *screen = static_cast<const QTestLiteScreen *>(mScreens.at(0));
EGLint major, minor;
eglBindAPI(EGL_OPENGL_ES_API);
EGLDisplay disp = eglGetDisplay(screen->display());