diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-10-24 12:41:08 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-11-28 16:34:26 +0000 |
commit | 40a8302115d6bcc171b314c7d3b4e574b08b66b0 (patch) | |
tree | feea53dcd14aa0d37a5adb76da64f58569b2a665 /src/plugins/platforms/qnx/qqnxglcontext.cpp | |
parent | a4ecd5f1b336629c3f1e0224e28c639a9d56757e (diff) |
QtBase: remove explicit function info from qWarning() etc
This information is already registered by the QMessageLogger ctor.
Where, by dropping the << Q_FUNC_INFO in ostream-style qDebug(), only
a string literal remained, converted to printf-style qDebug() on the
go.
Change-Id: I3f261c98fd7bcfa1fead381a75a82713bb75e6f3
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxglcontext.cpp')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxglcontext.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/platforms/qnx/qqnxglcontext.cpp b/src/plugins/platforms/qnx/qqnxglcontext.cpp index deac419a36..5ef8d72926 100644 --- a/src/plugins/platforms/qnx/qqnxglcontext.cpp +++ b/src/plugins/platforms/qnx/qqnxglcontext.cpp @@ -56,7 +56,7 @@ QQnxGLContext::QQnxGLContext(QOpenGLContext *glContext) m_glContext(glContext), m_currentEglSurface(EGL_NO_SURFACE) { - qGLContextDebug() << Q_FUNC_INFO; + qGLContextDebug(); QSurfaceFormat format = m_glContext->format(); // Set current rendering API @@ -132,7 +132,7 @@ QQnxGLContext::QQnxGLContext(QOpenGLContext *glContext) QQnxGLContext::~QQnxGLContext() { - qGLContextDebug() << Q_FUNC_INFO; + qGLContextDebug(); // Cleanup EGL context if it exists if (m_eglContext != EGL_NO_CONTEXT) @@ -166,7 +166,7 @@ EGLenum QQnxGLContext::checkEGLError(const char *msg) void QQnxGLContext::initializeContext() { - qGLContextDebug() << Q_FUNC_INFO; + qGLContextDebug(); // Initialize connection to EGL ms_eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); @@ -184,7 +184,7 @@ void QQnxGLContext::initializeContext() void QQnxGLContext::shutdownContext() { - qGLContextDebug() << Q_FUNC_INFO; + qGLContextDebug(); // Close connection to EGL eglTerminate(ms_eglDisplay); @@ -192,7 +192,7 @@ void QQnxGLContext::shutdownContext() bool QQnxGLContext::makeCurrent(QPlatformSurface *surface) { - qGLContextDebug() << Q_FUNC_INFO; + qGLContextDebug(); Q_ASSERT(surface->surface()->surfaceType() == QSurface::OpenGLSurface); @@ -223,7 +223,7 @@ bool QQnxGLContext::makeCurrent(QPlatformSurface *surface) void QQnxGLContext::doneCurrent() { - qGLContextDebug() << Q_FUNC_INFO; + qGLContextDebug(); // set current rendering API EGLBoolean eglResult = eglBindAPI(EGL_OPENGL_ES_API); @@ -238,7 +238,7 @@ void QQnxGLContext::doneCurrent() void QQnxGLContext::swapBuffers(QPlatformSurface *surface) { - qGLContextDebug() << Q_FUNC_INFO; + qGLContextDebug(); QQnxEglWindow *platformWindow = dynamic_cast<QQnxEglWindow*>(surface); if (!platformWindow) return; @@ -248,7 +248,7 @@ void QQnxGLContext::swapBuffers(QPlatformSurface *surface) QFunctionPointer QQnxGLContext::getProcAddress(const QByteArray &procName) { - qGLContextDebug() << Q_FUNC_INFO; + qGLContextDebug(); // Set current rendering API EGLBoolean eglResult = eglBindAPI(EGL_OPENGL_ES_API); @@ -270,7 +270,7 @@ EGLDisplay QQnxGLContext::getEglDisplay() { EGLint *QQnxGLContext::contextAttrs(const QSurfaceFormat &format) { - qGLContextDebug() << Q_FUNC_INFO; + qGLContextDebug(); // Choose EGL settings based on OpenGL version #if defined(QT_OPENGL_ES_2) |