Some miscellaneous cleanups left over from a fix/cleanup combo:
- Use const variables
- Use the C++ math namespace functions
- Use std::array for arrays with size known at compile time
- Use MutableSpan instead of reference to array
Differential D17094
Cleanup: Array types, const, math API in workbench code Authored by Hans Goudey (HooglyBoogly) on Mon, Jan 23, 8:53 PM.
Details Some miscellaneous cleanups left over from a fix/cleanup combo:
Diff Detail
Event TimelineComment Actions Use std::array, which is better than Array in this case because the size is known at compile time. Comment Actions Since this patch is not trivially correct, I'll commit a simplified fix for now. The cleanup can be done separately. I can't start a debug build with --debug currently.
Comment Actions @Jacques Lucke (JacquesLucke) Sorry for the trouble! About the cleanup itself, I'm ok with it.
| ||||||||||||