* Uses references where possible * Adds const where appropriate This commit only modifies the internal methods, and does not touch any of the function signatures or areas that interface with other parts of the codebase. Pull Request: https://projects.blender.org/blender/blender/pulls/140326