diff --git a/editor/echo/Editor/UI/ShaderEditor/DataModel/Uniforms/ShaderUniformDataModel.cpp b/editor/echo/Editor/UI/ShaderEditor/DataModel/Uniforms/ShaderUniformDataModel.cpp index 55770098d..38e310e9e 100644 --- a/editor/echo/Editor/UI/ShaderEditor/DataModel/Uniforms/ShaderUniformDataModel.cpp +++ b/editor/echo/Editor/UI/ShaderEditor/DataModel/Uniforms/ShaderUniformDataModel.cpp @@ -26,13 +26,13 @@ namespace DataFlowProgramming return getDefaultVariableName(); } - void ShaderUniformDataModel::saveUniformConfig(QJsonObject const& p) const + void ShaderUniformDataModel::saveUniformConfig(QJsonObject& p) const { p["isParameter"] = Echo::StringUtil::ToString(m_isParameter).c_str(); p["variableName"] = getVariableName().c_str(); } - void ShaderUniformDataModel::restoreUniformConfig(QJsonObject const& p) + void ShaderUniformDataModel::restoreUniformConfig(QJsonObject const &p) { QJsonValue v = p["isParameter"]; if (!v.isUndefined()) diff --git a/editor/echo/Editor/UI/ShaderEditor/DataModel/Uniforms/ShaderUniformDataModel.h b/editor/echo/Editor/UI/ShaderEditor/DataModel/Uniforms/ShaderUniformDataModel.h index 0d1a3f705..baa8b1dfb 100644 --- a/editor/echo/Editor/UI/ShaderEditor/DataModel/Uniforms/ShaderUniformDataModel.h +++ b/editor/echo/Editor/UI/ShaderEditor/DataModel/Uniforms/ShaderUniformDataModel.h @@ -41,7 +41,7 @@ namespace DataFlowProgramming virtual void showMenu(const QPointF& pos); // uniform config - void saveUniformConfig(QJsonObject const& p) const; + void saveUniformConfig(QJsonObject& p) const; void restoreUniformConfig(QJsonObject const& p); public: