diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2011-01-27 11:36:20 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-01-27 12:42:46 (GMT) |
commit | c8684662c20deacb791afb4ae3169af997793c2a (patch) | |
tree | b3b8badf78f3e56d07ec96e574d1071a7a38935b /src/plugins | |
parent | b0390e68893dd04076434695be5e676b87bc067c (diff) | |
download | Qt-c8684662c20deacb791afb4ae3169af997793c2a.zip Qt-c8684662c20deacb791afb4ae3169af997793c2a.tar.gz Qt-c8684662c20deacb791afb4ae3169af997793c2a.tar.bz2 |
Only const_cast can remove const :)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/testlite/qtestliteintegration.cpp | 2 |
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()); |