- Reduce variables scope
- Use some const
- initialize variables at declaration
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- copy-cleanup (branched from master)
- Build Status
Buildable 9737 Build 9737: arc lint + arc unit
Event Timeline
Comment Actions
Thanks for doing this. One one hand it's pretty surface level stuff, but IMO it's also a good first step in reducing the messiness of this code. Just a few notes:
| source/blender/editors/interface/interface_handlers.c | ||
|---|---|---|
| 1633–1634 | You should be able to use LISTBASE_FOREACH_INDEX here, which I just recently added. | |
| 2773–2774 | I think it would be best if you move it just a bit further, into the for loop. | |
| 4939 | You could just remove this | |
Comment Actions
- Adressed comment
- Also added few checks to false instead of 0 for bool value, sorry I didn't added them in the first pass