mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 20:42:12 +02:00
Pass px userData by const ref
This commit is contained in:
parent
64042327ec
commit
505ae71e30
2 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ bool Procedural::parseTextures(const QJsonArray& channels) {
|
|||
return true;
|
||||
}
|
||||
|
||||
void Procedural::parse(QJsonObject proceduralData) {
|
||||
void Procedural::parse(const QJsonObject& proceduralData) {
|
||||
_enabled = false;
|
||||
|
||||
if (proceduralData.isEmpty()) {
|
||||
|
|
|
@ -93,7 +93,7 @@ protected:
|
|||
|
||||
private:
|
||||
// This should only be called from the render thread, as it shares data with Procedural::prepare
|
||||
void parse(QJsonObject);
|
||||
void parse(const QJsonObject&);
|
||||
bool parseVersion(const QJsonValue& version);
|
||||
bool parseUrl(const QUrl& url);
|
||||
bool parseUniforms(const QJsonObject& uniforms);
|
||||
|
|
Loading…
Reference in a new issue