diff options
author | Julian Eisel <julian@blender.org> | 2022-01-13 18:58:38 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-01-13 19:01:47 +0300 |
commit | 22dc865a86520e70ce05bd099ddc3b2053c1bb60 (patch) | |
tree | b8b063c9f833d85118dca1c8c32ebe945dd983bf /source/blender/editors/space_outliner/outliner_sync.cc | |
parent | 039cc329178e9f7b14f514850479648c38fe1ea3 (diff) |
Cleanup: Use `nullptr` in new Outliner C++ files
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_sync.cc')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_sync.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_outliner/outliner_sync.cc b/source/blender/editors/space_outliner/outliner_sync.cc index e4af3030f7b..b312a262253 100644 --- a/source/blender/editors/space_outliner/outliner_sync.cc +++ b/source/blender/editors/space_outliner/outliner_sync.cc @@ -189,9 +189,9 @@ static void selected_items_init(SelectedItems *selected_items) static void selected_items_free(SelectedItems *selected_items) { - BLI_gset_free(selected_items->objects, NULL); - BLI_gset_free(selected_items->edit_bones, NULL); - BLI_gset_free(selected_items->pose_bones, NULL); + BLI_gset_free(selected_items->objects, nullptr); + BLI_gset_free(selected_items->edit_bones, nullptr); + BLI_gset_free(selected_items->pose_bones, nullptr); } /* Check if an instance of this object been selected by the sync */ @@ -404,7 +404,7 @@ static void outliner_select_sync_from_object(ViewLayer *view_layer, Object *ob = (Object *)tselem->id; Base *base = (te->directdata) ? (Base *)te->directdata : BKE_view_layer_base_find(view_layer, ob); - const bool is_selected = (base != NULL) && ((base->flag & BASE_SELECTED) != 0); + const bool is_selected = (base != nullptr) && ((base->flag & BASE_SELECTED) != 0); if (base && (ob == obact)) { tselem->flag |= TSE_ACTIVE; |