diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-11-03 11:11:50 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-11-03 12:20:49 (GMT) |
commit | 0a24f29a0f53716f9c9e000f5bb55ac5d925df5c (patch) | |
tree | ed92f1fbd44835b2dfdac23596a34cde81ddf50e /src/opengl/gl2paintengineex | |
parent | 6ec05db9b819a23ebac5a5908b8e3ca56b251e28 (diff) | |
download | Qt-0a24f29a0f53716f9c9e000f5bb55ac5d925df5c.zip Qt-0a24f29a0f53716f9c9e000f5bb55ac5d925df5c.tar.gz Qt-0a24f29a0f53716f9c9e000f5bb55ac5d925df5c.tar.bz2 |
Fixed some compiler warnings.
Reviewed-by: Trond
Diffstat (limited to 'src/opengl/gl2paintengineex')
-rw-r--r-- | src/opengl/gl2paintengineex/qglengineshadermanager.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/opengl/gl2paintengineex/qglengineshadermanager.cpp b/src/opengl/gl2paintengineex/qglengineshadermanager.cpp index 34c448f..40a6241 100644 --- a/src/opengl/gl2paintengineex/qglengineshadermanager.cpp +++ b/src/opengl/gl2paintengineex/qglengineshadermanager.cpp @@ -153,13 +153,8 @@ QGLEngineSharedShaders::QGLEngineSharedShaders(const QGLContext* context) // Check that all the elements have been filled: for (int i = 0; i < TotalSnippetCount; ++i) { if (qShaderSnippets[i] == 0) { - QByteArray msg; - msg.append("Fatal: Shader Snippet for "); - msg.append(snippetNameStr(SnippetName(i))); - msg.append(" ("); - msg.append(QByteArray::number(i)); - msg.append(") is missing!"); - qFatal(msg.constData()); + qFatal("Shader snippet for %s (#%d) is missing!", + snippetNameStr(SnippetName(i)).constData(), i); } } #endif |