summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopenglengineshadermanager.cpp
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-04-25 10:42:03 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-04-26 07:00:43 +0000
commitc1db1788c0471d371b25733fffd19ae2c8631a23 (patch)
treeaa07b157cc53f257854d25e30b9523aecafa8cfe /src/opengl/qopenglengineshadermanager.cpp
parent1ed449e168af133184633d174fd7339a13d1d595 (diff)
OpenGL: port away from QLatin1String
Replace the uses of QLatin1String with corresponding string literals where applies, or with QLatin1StringView. As a drive-by, fix formatting of a warning message in qopenglengineshadermanager.cpp. Task-number: QTBUG-98434 Change-Id: I12f4479637a8fe265138f240a1310d2d576454a7 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/opengl/qopenglengineshadermanager.cpp')
-rw-r--r--src/opengl/qopenglengineshadermanager.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/opengl/qopenglengineshadermanager.cpp b/src/opengl/qopenglengineshadermanager.cpp
index cf7424adb1..679c39385d 100644
--- a/src/opengl/qopenglengineshadermanager.cpp
+++ b/src/opengl/qopenglengineshadermanager.cpp
@@ -454,11 +454,9 @@ QOpenGLEngineShaderProg *QOpenGLEngineSharedShaders::findProgramInCache(const QO
if (!inCache)
shaderCache.store(newProg->program, QOpenGLContext::currentContext());
} else {
- QString error;
- error = QLatin1String("Shader program failed to link")
- + QLatin1String(" Error Log:\n")
- + QLatin1String(" ") + newProg->program->log();
- qWarning() << error;
+ qWarning("Shader program failed to link\n"
+ " Error Log:\n"
+ " %ls", qUtf16Printable(newProg->program->log()));
break;
}