Skip to content

Commit 2eade6e

Browse files
committed
CppCodeGenerator: Make return string pointer mutable
1 parent d13335e commit 2eade6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/engine/internal/codegen/cpp/cppcodegenerator.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void CppCodeGenerator::createCall(const std::string &name, CppIdentifier::Type r
231231
std::unique_ptr<CppAssignment> strAssignment;
232232

233233
if (retType != CppIdentifier::Type::StringPtr) {
234-
strAssignment = std::make_unique<CppAssignment>(m_codeStream, getNamedIdentifier(retValue, retType, "ret", false));
234+
strAssignment = std::make_unique<CppAssignment>(m_codeStream, getNamedIdentifier(retValue, retType, "ret", true));
235235
}
236236

237237
createCall(name, strRet, ctxArg, targetArg, args);

0 commit comments

Comments
 (0)