[Bf-blender-cvs] [2b85151a329] master: Cleanup: Braces around initialization of subobject

Sergey Sharybin noreply at git.blender.org
Tue Nov 29 11:04:04 CET 2022


Commit: 2b85151a32971cf2add1f60e46cbc2f480b950ed
Author: Sergey Sharybin
Date:   Tue Nov 29 11:03:48 2022 +0100
Branches: master
https://developer.blender.org/rB2b85151a32971cf2add1f60e46cbc2f480b950ed

Cleanup: Braces around initialization of subobject

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

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

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

diff --git a/source/blender/editors/interface/interface_templates.cc b/source/blender/editors/interface/interface_templates.cc
index ece2939bc0b..e4fdd431567 100644
--- a/source/blender/editors/interface/interface_templates.cc
+++ b/source/blender/editors/interface/interface_templates.cc
@@ -516,7 +516,7 @@ static ARegion *template_ID_search_menu_item_tooltip(
   ID *active_id = static_cast<ID *>(active);
   StructRNA *type = RNA_property_pointer_type(&template_ui->ptr, template_ui->prop);
 
-  uiSearchItemTooltipData tooltip_data = {0};
+  uiSearchItemTooltipData tooltip_data = {{0}};
 
   tooltip_data.name = active_id->name + 2;
   BLI_snprintf(tooltip_data.description,



More information about the Bf-blender-cvs mailing list