Page MenuHome

Cleanup: const, autoreleasepool, remove unneeded cast.
ClosedPublic

Authored by Ankit Meel (ankitm) on Nov 13 2021, 12:48 PM.

Details

Summary

De-duplicate getSystemDir and getUserDir also.


Not sure why this file has NSASCIIStringEncoding all over. Change it to UTF8 ?

Diff Detail

Repository
rB Blender

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Nov 13 2021, 12:48 PM
Ankit Meel (ankitm) created this revision.
Ankit Meel (ankitm) planned changes to this revision.Nov 26 2021, 2:41 PM

need to check if static char tempPath[512] = ""; works the same or not since there's one function now
Maybe I'll allocate it in caller.

Brecht Van Lommel (brecht) requested changes to this revision.Nov 26 2021, 2:44 PM
Brecht Van Lommel (brecht) added inline comments.
intern/ghost/intern/GHOST_SystemPathsCocoa.mm
43–48

Don't share the same static variable for all paths, there should be one per path so they don't overwrite each other.

separate arrays

Ankit Meel (ankitm) marked an inline comment as done.Dec 2 2021, 6:47 PM
This revision is now accepted and ready to land.Dec 9 2021, 9:03 PM