Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2022-01-25 12:18:32 +0300
committerJeroen Bakker <jeroen@blender.org>2022-01-25 12:18:32 +0300
commita54142f3f1de827bb2005998190c81c0c3cec8ca (patch)
tree77f91722d0b299cf4b9e8975bc8bb33169f1128f
parent1b1693d43f125e8b542bc298dcc6e5360c2a4d11 (diff)
Cleanup: Replace reinterp cast with static cast.
Conversion of void* should not use the unsafe reinterp cast.
-rw-r--r--source/blender/editors/space_outliner/space_outliner.cc2
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;