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:
authorHans Goudey <h.goudey@me.com>2021-07-15 20:36:40 +0300
committerHans Goudey <h.goudey@me.com>2021-07-15 20:36:40 +0300
commita566dc25aacde568194e202a7d75ea26b948a4ce (patch)
treedfe27a7425135b323f2da248f89204da92856b81
parent9d9c879f4bdf05c92826023131e7eb2a57c06102 (diff)
Cleanup: Remove use of designated initializers in C++ code
Does not compile on Windows.
-rw-r--r--source/blender/editors/interface/interface_template_list.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/editors/interface/interface_template_list.cc b/source/blender/editors/interface/interface_template_list.cc
index dfbf64b79af..45f848ed96f 100644
--- a/source/blender/editors/interface/interface_template_list.cc
+++ b/source/blender/editors/interface/interface_template_list.cc
@@ -1211,13 +1211,12 @@ uiList *uiTemplateList_ex(uiLayout *layout,
TemplateListItems items;
ui_template_list_collect_display_items(C, ui_list, &input_data, filter_items, &items);
- TemplateListLayoutDrawData layout_data = {
- .draw_item = draw_item,
- .draw_filter = draw_filter,
- .rows = rows,
- .maxrows = maxrows,
- .columns = columns,
- };
+ TemplateListLayoutDrawData layout_data;
+ layout_data.draw_item = draw_item;
+ layout_data.draw_filter = draw_filter;
+ layout_data.rows = rows;
+ layout_data.maxrows = maxrows;
+ layout_data.columns = columns;
ui_template_list_layout_draw(C, ui_list, layout, &input_data, &items, &layout_data, flags);