Cleanup: Replace reinterp cast with static cast.

Conversion of void* should not use the unsafe reinterp cast.
This commit is contained in:
Jeroen Bakker 2022-01-25 10:18:32 +01:00
parent 1b1693d43f
commit a54142f3f1
1 changed files with 1 additions and 1 deletions

View File

@ -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;