This is my attempt of adding defaults for the space clip editor struct (in line with https://developer.blender.org/T80164)
It adds the default allocation for SpaceClip and node_composite_movieclip.cc.
This also solves the error below (for cpp files using the DNA_default_alloc), which was put forward by @Sergey Sharybin (sergey).
error: invalid conversion from ‘const void*’ to ‘const char*’ [-fpermissive]
49 | DNA_default_table[SDNA_TYPE_FROM_STRUCT(struct_name)], sizeof(struct_name), __func__)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
| |
| const void*
blender/source/blender/nodes/composite/nodes/node_composite_movieclip.cc:48:25: note: in expansion of macro ‘DNA_struct_default_alloc’
48 | MovieClipUser *user = DNA_struct_default_alloc(MovieClipUser);
| ^~~~~~~~~~~~~~~~~~~~~~~~
blender/source/blender/makesdna/DNA_defaults.h:39:50: note: initializing argument 1 of ‘char* _DNA_struct_default_alloc_impl(const char*, size_t, const char*)’
39 | char *_DNA_struct_default_alloc_impl(const char *data_src, size_t size, const char *alloc_str);
| ~~~~~~~~~~~~^~~~~~~~