Cleanup: Replace reinterp cast with static cast.
Conversion of void* should not use the unsafe reinterp cast.
This commit is contained in:
parent
1b1693d43f
commit
a54142f3f1
|
@ -424,7 +424,7 @@ static void outliner_id_remap(ScrArea *area, SpaceLink *slink, ID *old_id, ID *n
|
|||
bool changed = false;
|
||||
|
||||
BLI_mempool_iternew(space_outliner->treestore, &iter);
|
||||
while ((tselem = reinterpret_cast<TreeStoreElem *>(BLI_mempool_iterstep(&iter)))) {
|
||||
while ((tselem = static_cast<TreeStoreElem *>(BLI_mempool_iterstep(&iter)))) {
|
||||
if (tselem->id == old_id) {
|
||||
tselem->id = new_id;
|
||||
changed = true;
|
||||
|
|
Loading…
Reference in New Issue