* Reduces scope of variables * Joins declaration and assignment where possible * Uses static_cast and reinterpret_cast instead of C-style cast * Uses const where possible * Uses reference instead of pointer where possible Pull Request: https://projects.blender.org/blender/blender/pulls/134816