QString::arg usage optimization

This commit is contained in:
Ilya Fedin 2023-12-22 03:43:14 +04:00 committed by John Preston
parent d95f9e778b
commit 83f12e2dd0

View file

@ -199,9 +199,9 @@ not_null<QOpenGLShader*> MakeShader(
const QString &source) {
const auto result = new QOpenGLShader(type, program);
if (!result->compileSourceCode(source)) {
LOG(("Shader Compilation Failed: %1, error %2."
).arg(source
).arg(result->log()));
LOG(("Shader Compilation Failed: %1, error %2.").arg(
source,
result->log()));
}
program->addShader(result);
return result;