[Bf-blender-cvs] [a54142f3f1d] master: Cleanup: Replace reinterp cast with static cast.
Jeroen Bakker
noreply at git.blender.org
Tue Jan 25 10:19:36 CET 2022
Commit: a54142f3f1de827bb2005998190c81c0c3cec8ca
Author: Jeroen Bakker
Date: Tue Jan 25 10:18:32 2022 +0100
Branches: master
https://developer.blender.org/rBa54142f3f1de827bb2005998190c81c0c3cec8ca
Cleanup: Replace reinterp cast with static cast.
Conversion of void* should not use the unsafe reinterp cast.
===================================================================
M source/blender/editors/space_outliner/space_outliner.cc
===================================================================
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;
More information about the Bf-blender-cvs
mailing list