Cleanup: simplify struct declarations

This commit is contained in:
Campbell Barton 2023-08-23 13:30:56 +10:00
parent f66fa32ada
commit c52965e9c7
4 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@
/* For obscure full screen mode stuff
* lifted verbatim from blut. */
using MotifWmHints = struct {
struct MotifWmHints {
long flags;
long functions;
long decorations;

View File

@ -3193,7 +3193,7 @@ void DepsgraphRelationBuilder::build_sound(bSound *sound)
add_relation(parameters_key, audio_key, "Parameters -> Audio");
}
using Seq_build_prop_cb_data = struct Seq_build_prop_cb_data {
struct Seq_build_prop_cb_data {
DepsgraphRelationBuilder *builder;
ComponentKey sequencer_key;
bool has_audio_strips;

View File

@ -2594,7 +2594,7 @@ void OUTLINER_OT_object_operation(wmOperatorType *ot)
using OutlinerDeleteFn = void (*)(bContext *C, ReportList *reports, Scene *scene, Object *ob);
using ObjectEditData = struct ObjectEditData {
struct ObjectEditData {
GSet *objects_set;
bool is_liboverride_allowed;
bool is_liboverride_hierarchy_root_allowed;

View File

@ -4357,7 +4357,7 @@ void WM_event_add_fileselect(bContext *C, wmOperator *op)
/** \name Consecutive Event Access
* \{ */
using wmEvent_ConsecutiveData = struct wmEvent_ConsecutiveData {
struct wmEvent_ConsecutiveData {
/** Owned custom-data. */
void *custom_data;
/** Unique identifier per struct type. */