Commit f8ab6143 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

renderviewjobutils.cpp: Remove unnecessary string conversion



Remove call to toLatin1(), fixing:
enderers/opengl/jobs/renderviewjobutils.cpp: In member function 'void Qt3DRender::Render::UniformBlockValueBuilder::buildActiveUniformNameValueMapHelper(Qt3DRender::Render::ShaderData*, const QString&, const QString&, const QVariant&)':
renderers/opengl/jobs/renderviewjobutils.cpp:516:126: warning: 'QString::QString(const QByteArray&)' is deprecated: Use fromUtf8, QStringLiteral, or QLatin1String [-Wdeprecated-declarations]

Change-Id: I71afa2b29e7af6cb3acad008822b369acc66bed3
Reviewed-by: Paul Lemire's avatarPaul Lemire <paul.lemire@kdab.com>
parent c8134efd
......@@ -513,7 +513,7 @@ void UniformBlockValueBuilder::buildActiveUniformNameValueMapHelper(ShaderData *
// the shaderdata cannot hold transformed properties for multiple
// thread contexts at once
activeUniformNamesToValue.insert(StringToInt::lookupId(varName),
currentShaderData->getTransformedProperty(qmlPropertyName.toLatin1(), viewMatrix));
currentShaderData->getTransformedProperty(qmlPropertyName, viewMatrix));
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment