Skip to content

Commit

Permalink
Make return value const in generated dispatch code
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Jul 24, 2024
1 parent 4fa67ad commit ebe18c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/slice2cpp/Gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3140,7 +3140,7 @@ Slice::Gen::InterfaceVisitor::visitOperation(const OperationPtr& p)
writeAllocateCode(C, outParams, nullptr, interfaceScope, _useWstring);
if (ret)
{
C << nl << retS << " ret = ";
C << nl << "const " << retS << " ret = ";
}
else
{
Expand Down

0 comments on commit ebe18c6

Please sign in to comment.