Use automatic allocation and std::move for RPN bytes (#1336)

This commit is contained in:
Sylvie
2024-03-09 11:12:34 -05:00
committed by GitHub
parent 4a7d333891
commit 5681be1fd8
4 changed files with 92 additions and 90 deletions

View File

@@ -276,7 +276,7 @@ static void initpatch(Patch &patch, uint32_t type, Expression const &expr, uint3
patch.rpn[4] = (uint32_t)expr.val >> 24;
} else {
patch.rpn.resize(expr.rpnPatchSize);
writerpn(patch.rpn, *expr.rpn);
writerpn(patch.rpn, expr.rpn);
}
}