Page MenuHome

Cleanup: Improve const correctness of ID functions
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on May 13 2022, 4:48 PM.

Details

Summary

These functions don't change their inputs, so they can be const,
which is a bit more intuitive and clean to use for callers.

Originally I just wanted BKE_id_is_editable to have const inputs,
but it makes sense to change a few more similar functions too.

Diff Detail

Repository
rB Blender

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.May 13 2022, 4:48 PM
Hans Goudey (HooglyBoogly) created this revision.
  • Add mockup with C++ function override
  • Add const casts as necessary
This revision is now accepted and ready to land.May 31 2022, 5:17 PM