[Bf-blender-cvs] [e2f9602be2b] temp-ui-cpp: Remove designated initializer

Hans Goudey noreply at git.blender.org
Sat Nov 20 21:59:13 CET 2021


Commit: e2f9602be2b29d7f75119fd5b437465b14fb7c53
Author: Hans Goudey
Date:   Sat Nov 20 15:59:05 2021 -0500
Branches: temp-ui-cpp
https://developer.blender.org/rBe2f9602be2b29d7f75119fd5b437465b14fb7c53

Remove designated initializer

===================================================================

M	source/blender/editors/interface/interface_template_search_menu.cc

===================================================================

diff --git a/source/blender/editors/interface/interface_template_search_menu.cc b/source/blender/editors/interface/interface_template_search_menu.cc
index b5266e6ffb9..64468f4a812 100644
--- a/source/blender/editors/interface/interface_template_search_menu.cc
+++ b/source/blender/editors/interface/interface_template_search_menu.cc
@@ -519,11 +519,10 @@ static MenuSearch_Data *menu_items_from_ui_create(
     PropertyRNA *prop_ui_type = nullptr;
     {
       /* This must be a valid pointer, with only it's type checked. */
-      ScrArea area_dummy = {
-          /* Anything besides #SPACE_EMPTY is fine,
-           * as this value is only included in the enum when set. */
-          .spacetype = SPACE_TOPBAR,
-      };
+      ScrArea area_dummy = {nullptr};
+      /* Anything besides #SPACE_EMPTY is fine,
+       * as this value is only included in the enum when set. */
+      area_dummy.spacetype = SPACE_TOPBAR;
       PointerRNA ptr;
       RNA_pointer_create(&screen->id, &RNA_Area, &area_dummy, &ptr);
       prop_ui_type = RNA_struct_find_property(&ptr, "ui_type");



More information about the Bf-blender-cvs mailing list