Blender Git Loki

Git Commits -> Revision 62e06f1

Revision 62e06f1 by Julian Eisel (asset-browser)
November 30, 2020, 12:48 (GMT)
Compile BKE icons source file with C++

That way we can use scoped mutex locks, which should make code cleaner/saver
and avoids the annoying unlock calls for every early-exit. Will happen in a
followup commit.

Mostly had to address casts from `void *` of course. Used C style casts, almost
all of the file still uses C style coding anyway.
`BKE_icon_geom_from_memory()` was using `goto`s for cleanup logic which
wouldn't compile with C++. Changed to RAII based resource handling.

Commit Details:

Full Hash: 62e06f1c892028323653a43e6d8b75a298b99e11
Parent Commit: 709831e
Lines Changed: +1067, -1064

1 Added Path:

/source/blender/blenkernel/intern/icons.cc (+1066, -0) (View)

1 Deleted Path:

/source/blender/blenkernel/intern/icons.c (+0, -1063)

1 Modified Path:

/source/blender/blenkernel/CMakeLists.txt (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021