diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-01-25 12:18:32 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-01-25 12:18:32 +0300 |
commit | a54142f3f1de827bb2005998190c81c0c3cec8ca (patch) | |
tree | 77f91722d0b299cf4b9e8975bc8bb33169f1128f /source/blender/editors/space_outliner | |
parent | 1b1693d43f125e8b542bc298dcc6e5360c2a4d11 (diff) |
Cleanup: Replace reinterp cast with static cast.
Conversion of void* should not use the unsafe reinterp cast.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/space_outliner.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/space_outliner.cc b/source/blender/editors/space_outliner/space_outliner.cc index ea07f1d4611..bb4e57a79da 100644 --- a/source/blender/editors/space_outliner/space_outliner.cc +++ b/source/blender/editors/space_outliner/space_outliner.cc @@ -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; |