diff --git a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.go b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.go index c47db279..ebbbfa77 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.go +++ b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.go @@ -77,7 +77,6 @@ func (this *QsciAbstractAPIs) Lexer() *QsciLexer { } func (this *QsciAbstractAPIs) UpdateAutoCompletionList(context []string, list []string) { - // For the C ABI, malloc a C array of structs context_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(context)))) defer C.free(unsafe.Pointer(context_CArray)) for i := range context { @@ -89,7 +88,6 @@ func (this *QsciAbstractAPIs) UpdateAutoCompletionList(context []string, list [] } context_ma := &C.struct_miqt_array{len: C.size_t(len(context)), data: unsafe.Pointer(context_CArray)} defer runtime.KeepAlive(unsafe.Pointer(context_ma)) - // For the C ABI, malloc a C array of structs list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { @@ -113,7 +111,6 @@ func (this *QsciAbstractAPIs) AutoCompletionSelected(selection string) { } func (this *QsciAbstractAPIs) CallTips(context []string, commas int, style QsciScintilla__CallTipsStyle, shifts []int) []string { - // For the C ABI, malloc a C array of structs context_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(context)))) defer C.free(unsafe.Pointer(context_CArray)) for i := range context { @@ -125,7 +122,6 @@ func (this *QsciAbstractAPIs) CallTips(context []string, commas int, style QsciS } context_ma := &C.struct_miqt_array{len: C.size_t(len(context)), data: unsafe.Pointer(context_CArray)} defer runtime.KeepAlive(unsafe.Pointer(context_ma)) - // For the C ABI, malloc a C array of raw pointers shifts_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(shifts)))) defer C.free(unsafe.Pointer(shifts_CArray)) for i := range shifts { diff --git a/qt-restricted-extras/qscintilla/gen_qsciapis.go b/qt-restricted-extras/qscintilla/gen_qsciapis.go index 5019e893..7e4bad13 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciapis.go +++ b/qt-restricted-extras/qscintilla/gen_qsciapis.go @@ -135,7 +135,6 @@ func (this *QsciAPIs) SavePrepared() bool { } func (this *QsciAPIs) UpdateAutoCompletionList(context []string, list []string) { - // For the C ABI, malloc a C array of structs context_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(context)))) defer C.free(unsafe.Pointer(context_CArray)) for i := range context { @@ -147,7 +146,6 @@ func (this *QsciAPIs) UpdateAutoCompletionList(context []string, list []string) } context_ma := &C.struct_miqt_array{len: C.size_t(len(context)), data: unsafe.Pointer(context_CArray)} defer runtime.KeepAlive(unsafe.Pointer(context_ma)) - // For the C ABI, malloc a C array of structs list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { @@ -171,7 +169,6 @@ func (this *QsciAPIs) AutoCompletionSelected(sel string) { } func (this *QsciAPIs) CallTips(context []string, commas int, style QsciScintilla__CallTipsStyle, shifts []int) []string { - // For the C ABI, malloc a C array of structs context_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(context)))) defer C.free(unsafe.Pointer(context_CArray)) for i := range context { @@ -183,7 +180,6 @@ func (this *QsciAPIs) CallTips(context []string, commas int, style QsciScintilla } context_ma := &C.struct_miqt_array{len: C.size_t(len(context)), data: unsafe.Pointer(context_CArray)} defer runtime.KeepAlive(unsafe.Pointer(context_ma)) - // For the C ABI, malloc a C array of raw pointers shifts_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(shifts)))) defer C.free(unsafe.Pointer(shifts_CArray)) for i := range shifts { diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintilla.go b/qt-restricted-extras/qscintilla/gen_qsciscintilla.go index ec20e678..50495a61 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciscintilla.go +++ b/qt-restricted-extras/qscintilla/gen_qsciscintilla.go @@ -786,7 +786,6 @@ func (this *QsciScintilla) SetAutoCompletionFillups(fillups string) { } func (this *QsciScintilla) SetAutoCompletionWordSeparators(separators []string) { - // For the C ABI, malloc a C array of structs separators_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(separators)))) defer C.free(unsafe.Pointer(separators_CArray)) for i := range separators { @@ -826,7 +825,6 @@ func (this *QsciScintilla) SetCallTipsVisible(nr int) { } func (this *QsciScintilla) SetContractedFolds(folds []int) { - // For the C ABI, malloc a C array of raw pointers folds_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(folds)))) defer C.free(unsafe.Pointer(folds_CArray)) for i := range folds { @@ -1041,7 +1039,6 @@ func (this *QsciScintilla) SetWrapIndentMode(mode QsciScintilla__WrapIndentMode) } func (this *QsciScintilla) ShowUserList(id int, list []string) { - // For the C ABI, malloc a C array of structs list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt/gen_qabstractitemmodel.go b/qt/gen_qabstractitemmodel.go index 8114f47e..17e99cfb 100644 --- a/qt/gen_qabstractitemmodel.go +++ b/qt/gen_qabstractitemmodel.go @@ -463,7 +463,6 @@ func (this *QAbstractItemModel) MimeTypes() []string { } func (this *QAbstractItemModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { @@ -831,7 +830,6 @@ func (this *QAbstractItemModel) CheckIndex2(index *QModelIndex, options QAbstrac } func (this *QAbstractItemModel) DataChanged3(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int) { - // For the C ABI, malloc a C array of raw pointers roles_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(roles)))) defer C.free(unsafe.Pointer(roles_CArray)) for i := range roles { @@ -868,7 +866,6 @@ func miqt_exec_callback_QAbstractItemModel_DataChanged3(cb C.intptr_t, topLeft * } func (this *QAbstractItemModel) LayoutChanged1(parents []QPersistentModelIndex) { - // For the C ABI, malloc a C array of raw pointers parents_CArray := (*[0xffff]*C.QPersistentModelIndex)(C.malloc(C.size_t(8 * len(parents)))) defer C.free(unsafe.Pointer(parents_CArray)) for i := range parents { @@ -906,7 +903,6 @@ func miqt_exec_callback_QAbstractItemModel_LayoutChanged1(cb C.intptr_t, parents } func (this *QAbstractItemModel) LayoutChanged2(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint) { - // For the C ABI, malloc a C array of raw pointers parents_CArray := (*[0xffff]*C.QPersistentModelIndex)(C.malloc(C.size_t(8 * len(parents)))) defer C.free(unsafe.Pointer(parents_CArray)) for i := range parents { @@ -946,7 +942,6 @@ func miqt_exec_callback_QAbstractItemModel_LayoutChanged2(cb C.intptr_t, parents } func (this *QAbstractItemModel) LayoutAboutToBeChanged1(parents []QPersistentModelIndex) { - // For the C ABI, malloc a C array of raw pointers parents_CArray := (*[0xffff]*C.QPersistentModelIndex)(C.malloc(C.size_t(8 * len(parents)))) defer C.free(unsafe.Pointer(parents_CArray)) for i := range parents { @@ -984,7 +979,6 @@ func miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged1(cb C.intptr_t } func (this *QAbstractItemModel) LayoutAboutToBeChanged2(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint) { - // For the C ABI, malloc a C array of raw pointers parents_CArray := (*[0xffff]*C.QPersistentModelIndex)(C.malloc(C.size_t(8 * len(parents)))) defer C.free(unsafe.Pointer(parents_CArray)) for i := range parents { diff --git a/qt/gen_qabstractproxymodel.go b/qt/gen_qabstractproxymodel.go index 5e057a03..cda12b6e 100644 --- a/qt/gen_qabstractproxymodel.go +++ b/qt/gen_qabstractproxymodel.go @@ -165,7 +165,6 @@ func (this *QAbstractProxyModel) Sibling(row int, column int, idx *QModelIndex) } func (this *QAbstractProxyModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { diff --git a/qt/gen_qabstracttransition.go b/qt/gen_qabstracttransition.go index b5e95694..a0bea35d 100644 --- a/qt/gen_qabstracttransition.go +++ b/qt/gen_qabstracttransition.go @@ -102,7 +102,6 @@ func (this *QAbstractTransition) TargetStates() []*QAbstractState { } func (this *QAbstractTransition) SetTargetStates(targets []*QAbstractState) { - // For the C ABI, malloc a C array of raw pointers targets_CArray := (*[0xffff]*C.QAbstractState)(C.malloc(C.size_t(8 * len(targets)))) defer C.free(unsafe.Pointer(targets_CArray)) for i := range targets { diff --git a/qt/gen_qaction.go b/qt/gen_qaction.go index 9bc430d5..7702648d 100644 --- a/qt/gen_qaction.go +++ b/qt/gen_qaction.go @@ -281,7 +281,6 @@ func (this *QAction) Shortcut() *QKeySequence { } func (this *QAction) SetShortcuts(shortcuts []QKeySequence) { - // For the C ABI, malloc a C array of raw pointers shortcuts_CArray := (*[0xffff]*C.QKeySequence)(C.malloc(C.size_t(8 * len(shortcuts)))) defer C.free(unsafe.Pointer(shortcuts_CArray)) for i := range shortcuts { diff --git a/qt/gen_qcborarray.go b/qt/gen_qcborarray.go index 01654287..000722bc 100644 --- a/qt/gen_qcborarray.go +++ b/qt/gen_qcborarray.go @@ -329,7 +329,6 @@ func (this *QCborArray) OperatorShiftLeft(v *QCborValue) *QCborArray { } func QCborArray_FromStringList(list []string) *QCborArray { - // For the C ABI, malloc a C array of structs list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt/gen_qcolumnview.go b/qt/gen_qcolumnview.go index 90bc7ff9..8de74748 100644 --- a/qt/gen_qcolumnview.go +++ b/qt/gen_qcolumnview.go @@ -162,7 +162,6 @@ func (this *QColumnView) SetPreviewWidget(widget *QWidget) { } func (this *QColumnView) SetColumnWidths(list []int) { - // For the C ABI, malloc a C array of raw pointers list_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt/gen_qcombobox.go b/qt/gen_qcombobox.go index da901e96..b45f5e2c 100644 --- a/qt/gen_qcombobox.go +++ b/qt/gen_qcombobox.go @@ -342,7 +342,6 @@ func (this *QComboBox) AddItem2(icon *QIcon, text string) { } func (this *QComboBox) AddItems(texts []string) { - // For the C ABI, malloc a C array of structs texts_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(texts)))) defer C.free(unsafe.Pointer(texts_CArray)) for i := range texts { @@ -374,7 +373,6 @@ func (this *QComboBox) InsertItem2(index int, icon *QIcon, text string) { } func (this *QComboBox) InsertItems(index int, texts []string) { - // For the C ABI, malloc a C array of structs texts_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(texts)))) defer C.free(unsafe.Pointer(texts_CArray)) for i := range texts { diff --git a/qt/gen_qcommandlineoption.go b/qt/gen_qcommandlineoption.go index 0120734b..71f8d605 100644 --- a/qt/gen_qcommandlineoption.go +++ b/qt/gen_qcommandlineoption.go @@ -61,7 +61,6 @@ func NewQCommandLineOption(name string) *QCommandLineOption { // NewQCommandLineOption2 constructs a new QCommandLineOption object. func NewQCommandLineOption2(names []string) *QCommandLineOption { - // For the C ABI, malloc a C array of structs names_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(names)))) defer C.free(unsafe.Pointer(names_CArray)) for i := range names { @@ -93,7 +92,6 @@ func NewQCommandLineOption3(name string, description string) *QCommandLineOption // NewQCommandLineOption4 constructs a new QCommandLineOption object. func NewQCommandLineOption4(names []string, description string) *QCommandLineOption { - // For the C ABI, malloc a C array of structs names_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(names)))) defer C.free(unsafe.Pointer(names_CArray)) for i := range names { @@ -161,7 +159,6 @@ func NewQCommandLineOption7(name string, description string, valueName string, d // NewQCommandLineOption8 constructs a new QCommandLineOption object. func NewQCommandLineOption8(names []string, description string, valueName string) *QCommandLineOption { - // For the C ABI, malloc a C array of structs names_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(names)))) defer C.free(unsafe.Pointer(names_CArray)) for i := range names { @@ -187,7 +184,6 @@ func NewQCommandLineOption8(names []string, description string, valueName string // NewQCommandLineOption9 constructs a new QCommandLineOption object. func NewQCommandLineOption9(names []string, description string, valueName string, defaultValue string) *QCommandLineOption { - // For the C ABI, malloc a C array of structs names_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(names)))) defer C.free(unsafe.Pointer(names_CArray)) for i := range names { @@ -276,7 +272,6 @@ func (this *QCommandLineOption) SetDefaultValue(defaultValue string) { } func (this *QCommandLineOption) SetDefaultValues(defaultValues []string) { - // For the C ABI, malloc a C array of structs defaultValues_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(defaultValues)))) defer C.free(unsafe.Pointer(defaultValues_CArray)) for i := range defaultValues { diff --git a/qt/gen_qcommandlineparser.go b/qt/gen_qcommandlineparser.go index 2a9047af..ffa752ee 100644 --- a/qt/gen_qcommandlineparser.go +++ b/qt/gen_qcommandlineparser.go @@ -93,7 +93,6 @@ func (this *QCommandLineParser) AddOption(commandLineOption *QCommandLineOption) } func (this *QCommandLineParser) AddOptions(options []QCommandLineOption) bool { - // For the C ABI, malloc a C array of raw pointers options_CArray := (*[0xffff]*C.QCommandLineOption)(C.malloc(C.size_t(8 * len(options)))) defer C.free(unsafe.Pointer(options_CArray)) for i := range options { @@ -150,7 +149,6 @@ func (this *QCommandLineParser) ClearPositionalArguments() { } func (this *QCommandLineParser) Process(arguments []string) { - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -170,7 +168,6 @@ func (this *QCommandLineParser) ProcessWithApp(app *QCoreApplication) { } func (this *QCommandLineParser) Parse(arguments []string) bool { - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { diff --git a/qt/gen_qcompleter.go b/qt/gen_qcompleter.go index d61884f5..e87558fe 100644 --- a/qt/gen_qcompleter.go +++ b/qt/gen_qcompleter.go @@ -74,7 +74,6 @@ func NewQCompleter2(model *QAbstractItemModel) *QCompleter { // NewQCompleter3 constructs a new QCompleter object. func NewQCompleter3(completions []string) *QCompleter { - // For the C ABI, malloc a C array of structs completions_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(completions)))) defer C.free(unsafe.Pointer(completions_CArray)) for i := range completions { @@ -104,7 +103,6 @@ func NewQCompleter5(model *QAbstractItemModel, parent *QObject) *QCompleter { // NewQCompleter6 constructs a new QCompleter object. func NewQCompleter6(completions []string, parent *QObject) *QCompleter { - // For the C ABI, malloc a C array of structs completions_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(completions)))) defer C.free(unsafe.Pointer(completions_CArray)) for i := range completions { diff --git a/qt/gen_qconcatenatetablesproxymodel.go b/qt/gen_qconcatenatetablesproxymodel.go index 8b1f4151..33efbca0 100644 --- a/qt/gen_qconcatenatetablesproxymodel.go +++ b/qt/gen_qconcatenatetablesproxymodel.go @@ -175,7 +175,6 @@ func (this *QConcatenateTablesProxyModel) MimeTypes() []string { } func (this *QConcatenateTablesProxyModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { diff --git a/qt/gen_qcoreapplication.go b/qt/gen_qcoreapplication.go index 5df3c2e5..5023245b 100644 --- a/qt/gen_qcoreapplication.go +++ b/qt/gen_qcoreapplication.go @@ -273,7 +273,6 @@ func QCoreApplication_ApplicationPid() int64 { } func QCoreApplication_SetLibraryPaths(libraryPaths []string) { - // For the C ABI, malloc a C array of structs libraryPaths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(libraryPaths)))) defer C.free(unsafe.Pointer(libraryPaths_CArray)) for i := range libraryPaths { diff --git a/qt/gen_qdir.go b/qt/gen_qdir.go index a121e13a..909aae5e 100644 --- a/qt/gen_qdir.go +++ b/qt/gen_qdir.go @@ -206,7 +206,6 @@ func QDir_SetSearchPaths(prefix string, searchPaths []string) { prefix_ms.data = C.CString(prefix) prefix_ms.len = C.size_t(len(prefix)) defer C.free(unsafe.Pointer(prefix_ms.data)) - // For the C ABI, malloc a C array of structs searchPaths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(searchPaths)))) defer C.free(unsafe.Pointer(searchPaths_CArray)) for i := range searchPaths { @@ -340,7 +339,6 @@ func (this *QDir) NameFilters() []string { } func (this *QDir) SetNameFilters(nameFilters []string) { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -419,7 +417,6 @@ func (this *QDir) EntryList() []string { } func (this *QDir) EntryListWithNameFilters(nameFilters []string) []string { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -459,7 +456,6 @@ func (this *QDir) EntryInfoList() []QFileInfo { } func (this *QDir) EntryInfoListWithNameFilters(nameFilters []string) []QFileInfo { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -689,7 +685,6 @@ func QDir_TempPath() string { } func QDir_Match(filters []string, fileName string) bool { - // For the C ABI, malloc a C array of structs filters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(filters)))) defer C.free(unsafe.Pointer(filters_CArray)) for i := range filters { @@ -768,7 +763,6 @@ func (this *QDir) EntryList2(filters QDir__Filter, sort QDir__SortFlag) []string } func (this *QDir) EntryList22(nameFilters []string, filters QDir__Filter) []string { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -794,7 +788,6 @@ func (this *QDir) EntryList22(nameFilters []string, filters QDir__Filter) []stri } func (this *QDir) EntryList3(nameFilters []string, filters QDir__Filter, sort QDir__SortFlag) []string { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -848,7 +841,6 @@ func (this *QDir) EntryInfoList2(filters QDir__Filter, sort QDir__SortFlag) []QF } func (this *QDir) EntryInfoList22(nameFilters []string, filters QDir__Filter) []QFileInfo { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -874,7 +866,6 @@ func (this *QDir) EntryInfoList22(nameFilters []string, filters QDir__Filter) [] } func (this *QDir) EntryInfoList3(nameFilters []string, filters QDir__Filter, sort QDir__SortFlag) []QFileInfo { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { diff --git a/qt/gen_qdiriterator.go b/qt/gen_qdiriterator.go index fabb3bbe..e76bb27d 100644 --- a/qt/gen_qdiriterator.go +++ b/qt/gen_qdiriterator.go @@ -82,7 +82,6 @@ func NewQDirIterator4(path string, nameFilters []string) *QDirIterator { path_ms.data = C.CString(path) path_ms.len = C.size_t(len(path)) defer C.free(unsafe.Pointer(path_ms.data)) - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -130,7 +129,6 @@ func NewQDirIterator8(path string, nameFilters []string, filters QDir__Filter) * path_ms.data = C.CString(path) path_ms.len = C.size_t(len(path)) defer C.free(unsafe.Pointer(path_ms.data)) - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -152,7 +150,6 @@ func NewQDirIterator9(path string, nameFilters []string, filters QDir__Filter, f path_ms.data = C.CString(path) path_ms.len = C.size_t(len(path)) defer C.free(unsafe.Pointer(path_ms.data)) - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { diff --git a/qt/gen_qdirmodel.go b/qt/gen_qdirmodel.go index 03d575aa..9728dfe7 100644 --- a/qt/gen_qdirmodel.go +++ b/qt/gen_qdirmodel.go @@ -53,7 +53,6 @@ func UnsafeNewQDirModel(h unsafe.Pointer) *QDirModel { // NewQDirModel constructs a new QDirModel object. func NewQDirModel(nameFilters []string, filters QDir__Filter, sort QDir__SortFlag) *QDirModel { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -77,7 +76,6 @@ func NewQDirModel2() *QDirModel { // NewQDirModel3 constructs a new QDirModel object. func NewQDirModel3(nameFilters []string, filters QDir__Filter, sort QDir__SortFlag, parent *QObject) *QDirModel { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -194,7 +192,6 @@ func (this *QDirModel) MimeTypes() []string { } func (this *QDirModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { @@ -222,7 +219,6 @@ func (this *QDirModel) IconProvider() *QFileIconProvider { } func (this *QDirModel) SetNameFilters(filters []string) { - // For the C ABI, malloc a C array of structs filters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(filters)))) defer C.free(unsafe.Pointer(filters_CArray)) for i := range filters { diff --git a/qt/gen_qevent.go b/qt/gen_qevent.go index 70f42076..63c1a7c4 100644 --- a/qt/gen_qevent.go +++ b/qt/gen_qevent.go @@ -1863,7 +1863,6 @@ func NewQInputMethodEvent2(preeditText string, attributes []QInputMethodEvent__A preeditText_ms.data = C.CString(preeditText) preeditText_ms.len = C.size_t(len(preeditText)) defer C.free(unsafe.Pointer(preeditText_ms.data)) - // For the C ABI, malloc a C array of raw pointers attributes_CArray := (*[0xffff]*C.QInputMethodEvent__Attribute)(C.malloc(C.size_t(8 * len(attributes)))) defer C.free(unsafe.Pointer(attributes_CArray)) for i := range attributes { @@ -3048,7 +3047,6 @@ func NewQTouchEvent5(eventType QEvent__Type, device *QTouchDevice, modifiers Key // NewQTouchEvent6 constructs a new QTouchEvent object. func NewQTouchEvent6(eventType QEvent__Type, device *QTouchDevice, modifiers KeyboardModifier, touchPointStates TouchPointState, touchPoints []QTouchEvent__TouchPoint) *QTouchEvent { - // For the C ABI, malloc a C array of raw pointers touchPoints_CArray := (*[0xffff]*C.QTouchEvent__TouchPoint)(C.malloc(C.size_t(8 * len(touchPoints)))) defer C.free(unsafe.Pointer(touchPoints_CArray)) for i := range touchPoints { @@ -3103,7 +3101,6 @@ func (this *QTouchEvent) SetTouchPointStates(aTouchPointStates TouchPointState) } func (this *QTouchEvent) SetTouchPoints(atouchPoints []QTouchEvent__TouchPoint) { - // For the C ABI, malloc a C array of raw pointers atouchPoints_CArray := (*[0xffff]*C.QTouchEvent__TouchPoint)(C.malloc(C.size_t(8 * len(atouchPoints)))) defer C.free(unsafe.Pointer(atouchPoints_CArray)) for i := range atouchPoints { @@ -3799,7 +3796,6 @@ func (this *QTouchEvent__TouchPoint) SetFlags(flags QTouchEvent__TouchPoint__Inf } func (this *QTouchEvent__TouchPoint) SetRawScreenPositions(positions []QPointF) { - // For the C ABI, malloc a C array of raw pointers positions_CArray := (*[0xffff]*C.QPointF)(C.malloc(C.size_t(8 * len(positions)))) defer C.free(unsafe.Pointer(positions_CArray)) for i := range positions { diff --git a/qt/gen_qfiledialog.go b/qt/gen_qfiledialog.go index 9221270b..4e34b371 100644 --- a/qt/gen_qfiledialog.go +++ b/qt/gen_qfiledialog.go @@ -266,7 +266,6 @@ func (this *QFileDialog) SetNameFilter(filter string) { } func (this *QFileDialog) SetNameFilters(filters []string) { - // For the C ABI, malloc a C array of structs filters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(filters)))) defer C.free(unsafe.Pointer(filters_CArray)) for i := range filters { @@ -318,7 +317,6 @@ func (this *QFileDialog) SelectedNameFilter() string { } func (this *QFileDialog) SetMimeTypeFilters(filters []string) { - // For the C ABI, malloc a C array of structs filters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(filters)))) defer C.free(unsafe.Pointer(filters_CArray)) for i := range filters { @@ -404,7 +402,6 @@ func (this *QFileDialog) ResolveSymlinks() bool { } func (this *QFileDialog) SetSidebarUrls(urls []QUrl) { - // For the C ABI, malloc a C array of raw pointers urls_CArray := (*[0xffff]*C.QUrl)(C.malloc(C.size_t(8 * len(urls)))) defer C.free(unsafe.Pointer(urls_CArray)) for i := range urls { @@ -467,7 +464,6 @@ func (this *QFileDialog) DefaultSuffix() string { } func (this *QFileDialog) SetHistory(paths []string) { - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { @@ -528,7 +524,6 @@ func (this *QFileDialog) LabelText(label QFileDialog__DialogLabel) string { } func (this *QFileDialog) SetSupportedSchemes(schemes []string) { - // For the C ABI, malloc a C array of structs schemes_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(schemes)))) defer C.free(unsafe.Pointer(schemes_CArray)) for i := range schemes { @@ -613,7 +608,6 @@ func miqt_exec_callback_QFileDialog_FileSelected(cb C.intptr_t, file C.struct_mi } func (this *QFileDialog) FilesSelected(files []string) { - // For the C ABI, malloc a C array of structs files_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(files)))) defer C.free(unsafe.Pointer(files_CArray)) for i := range files { @@ -729,7 +723,6 @@ func miqt_exec_callback_QFileDialog_UrlSelected(cb C.intptr_t, url *C.QUrl) { } func (this *QFileDialog) UrlsSelected(urls []QUrl) { - // For the C ABI, malloc a C array of raw pointers urls_CArray := (*[0xffff]*C.QUrl)(C.malloc(C.size_t(8 * len(urls)))) defer C.free(unsafe.Pointer(urls_CArray)) for i := range urls { @@ -1247,7 +1240,6 @@ func QFileDialog_GetExistingDirectoryUrl5(parent *QWidget, caption string, dir * caption_ms.data = C.CString(caption) caption_ms.len = C.size_t(len(caption)) defer C.free(unsafe.Pointer(caption_ms.data)) - // For the C ABI, malloc a C array of structs supportedSchemes_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(supportedSchemes)))) defer C.free(unsafe.Pointer(supportedSchemes_CArray)) for i := range supportedSchemes { diff --git a/qt/gen_qfileselector.go b/qt/gen_qfileselector.go index 913f8367..e83aa591 100644 --- a/qt/gen_qfileselector.go +++ b/qt/gen_qfileselector.go @@ -116,7 +116,6 @@ func (this *QFileSelector) ExtraSelectors() []string { } func (this *QFileSelector) SetExtraSelectors(list []string) { - // For the C ABI, malloc a C array of structs list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt/gen_qfilesystemmodel.go b/qt/gen_qfilesystemmodel.go index 6c52c7fb..7f88efa8 100644 --- a/qt/gen_qfilesystemmodel.go +++ b/qt/gen_qfilesystemmodel.go @@ -298,7 +298,6 @@ func (this *QFileSystemModel) MimeTypes() []string { } func (this *QFileSystemModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { @@ -383,7 +382,6 @@ func (this *QFileSystemModel) NameFilterDisables() bool { } func (this *QFileSystemModel) SetNameFilters(filters []string) { - // For the C ABI, malloc a C array of structs filters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(filters)))) defer C.free(unsafe.Pointer(filters_CArray)) for i := range filters { diff --git a/qt/gen_qfilesystemwatcher.go b/qt/gen_qfilesystemwatcher.go index 008492e8..8dd85b3a 100644 --- a/qt/gen_qfilesystemwatcher.go +++ b/qt/gen_qfilesystemwatcher.go @@ -51,7 +51,6 @@ func NewQFileSystemWatcher() *QFileSystemWatcher { // NewQFileSystemWatcher2 constructs a new QFileSystemWatcher object. func NewQFileSystemWatcher2(paths []string) *QFileSystemWatcher { - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { @@ -75,7 +74,6 @@ func NewQFileSystemWatcher3(parent *QObject) *QFileSystemWatcher { // NewQFileSystemWatcher4 constructs a new QFileSystemWatcher object. func NewQFileSystemWatcher4(paths []string, parent *QObject) *QFileSystemWatcher { - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { @@ -128,7 +126,6 @@ func (this *QFileSystemWatcher) AddPath(file string) bool { } func (this *QFileSystemWatcher) AddPaths(files []string) []string { - // For the C ABI, malloc a C array of structs files_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(files)))) defer C.free(unsafe.Pointer(files_CArray)) for i := range files { @@ -162,7 +159,6 @@ func (this *QFileSystemWatcher) RemovePath(file string) bool { } func (this *QFileSystemWatcher) RemovePaths(files []string) []string { - // For the C ABI, malloc a C array of structs files_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(files)))) defer C.free(unsafe.Pointer(files_CArray)) for i := range files { diff --git a/qt/gen_qfont.go b/qt/gen_qfont.go index 82bc3ff3..529bcdd8 100644 --- a/qt/gen_qfont.go +++ b/qt/gen_qfont.go @@ -265,7 +265,6 @@ func (this *QFont) Families() []string { } func (this *QFont) SetFamilies(families []string) { - // For the C ABI, malloc a C array of structs families_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(families)))) defer C.free(unsafe.Pointer(families_CArray)) for i := range families { @@ -580,7 +579,6 @@ func QFont_InsertSubstitutions(param1 string, param2 []string) { param1_ms.data = C.CString(param1) param1_ms.len = C.size_t(len(param1)) defer C.free(unsafe.Pointer(param1_ms.data)) - // For the C ABI, malloc a C array of structs param2_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(param2)))) defer C.free(unsafe.Pointer(param2_CArray)) for i := range param2 { diff --git a/qt/gen_qgesture.go b/qt/gen_qgesture.go index fc042bda..bc452caf 100644 --- a/qt/gen_qgesture.go +++ b/qt/gen_qgesture.go @@ -1053,7 +1053,6 @@ func UnsafeNewQGestureEvent(h unsafe.Pointer) *QGestureEvent { // NewQGestureEvent constructs a new QGestureEvent object. func NewQGestureEvent(gestures []*QGesture) *QGestureEvent { - // For the C ABI, malloc a C array of raw pointers gestures_CArray := (*[0xffff]*C.QGesture)(C.malloc(C.size_t(8 * len(gestures)))) defer C.free(unsafe.Pointer(gestures_CArray)) for i := range gestures { diff --git a/qt/gen_qglyphrun.go b/qt/gen_qglyphrun.go index e0f709be..4ebcbda2 100644 --- a/qt/gen_qglyphrun.go +++ b/qt/gen_qglyphrun.go @@ -99,7 +99,6 @@ func (this *QGlyphRun) GlyphIndexes() []uint { } func (this *QGlyphRun) SetGlyphIndexes(glyphIndexes []uint) { - // For the C ABI, malloc a C array of raw pointers glyphIndexes_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(glyphIndexes)))) defer C.free(unsafe.Pointer(glyphIndexes_CArray)) for i := range glyphIndexes { @@ -125,7 +124,6 @@ func (this *QGlyphRun) Positions() []QPointF { } func (this *QGlyphRun) SetPositions(positions []QPointF) { - // For the C ABI, malloc a C array of raw pointers positions_CArray := (*[0xffff]*C.QPointF)(C.malloc(C.size_t(8 * len(positions)))) defer C.free(unsafe.Pointer(positions_CArray)) for i := range positions { diff --git a/qt/gen_qgraphicsitem.go b/qt/gen_qgraphicsitem.go index 2590f78e..a81956c5 100644 --- a/qt/gen_qgraphicsitem.go +++ b/qt/gen_qgraphicsitem.go @@ -625,7 +625,6 @@ func (this *QGraphicsItem) Transformations() []*QGraphicsTransform { } func (this *QGraphicsItem) SetTransformations(transformations []*QGraphicsTransform) { - // For the C ABI, malloc a C array of raw pointers transformations_CArray := (*[0xffff]*C.QGraphicsTransform)(C.malloc(C.size_t(8 * len(transformations)))) defer C.free(unsafe.Pointer(transformations_CArray)) for i := range transformations { diff --git a/qt/gen_qgraphicsscene.go b/qt/gen_qgraphicsscene.go index cd1590fb..6fdf4b18 100644 --- a/qt/gen_qgraphicsscene.go +++ b/qt/gen_qgraphicsscene.go @@ -287,7 +287,6 @@ func (this *QGraphicsScene) SetSelectionArea2(path *QPainterPath, selectionOpera } func (this *QGraphicsScene) CreateItemGroup(items []*QGraphicsItem) *QGraphicsItemGroup { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QGraphicsItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -533,7 +532,6 @@ func (this *QGraphicsScene) Clear() { } func (this *QGraphicsScene) Changed(region []QRectF) { - // For the C ABI, malloc a C array of raw pointers region_CArray := (*[0xffff]*C.QRectF)(C.malloc(C.size_t(8 * len(region)))) defer C.free(unsafe.Pointer(region_CArray)) for i := range region { diff --git a/qt/gen_qgraphicsview.go b/qt/gen_qgraphicsview.go index ae00cc3a..d8e603b8 100644 --- a/qt/gen_qgraphicsview.go +++ b/qt/gen_qgraphicsview.go @@ -510,7 +510,6 @@ func (this *QGraphicsView) SetForegroundBrush(brush *QBrush) { } func (this *QGraphicsView) UpdateScene(rects []QRectF) { - // For the C ABI, malloc a C array of raw pointers rects_CArray := (*[0xffff]*C.QRectF)(C.malloc(C.size_t(8 * len(rects)))) defer C.free(unsafe.Pointer(rects_CArray)) for i := range rects { diff --git a/qt/gen_qgraphicswidget.go b/qt/gen_qgraphicswidget.go index fc5cf9de..df4865da 100644 --- a/qt/gen_qgraphicswidget.go +++ b/qt/gen_qgraphicswidget.go @@ -299,7 +299,6 @@ func (this *QGraphicsWidget) AddAction(action *QAction) { } func (this *QGraphicsWidget) AddActions(actions []*QAction) { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { @@ -311,7 +310,6 @@ func (this *QGraphicsWidget) AddActions(actions []*QAction) { } func (this *QGraphicsWidget) InsertActions(before *QAction, actions []*QAction) { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { diff --git a/qt/gen_qicon.go b/qt/gen_qicon.go index 67342c76..dd42c226 100644 --- a/qt/gen_qicon.go +++ b/qt/gen_qicon.go @@ -252,7 +252,6 @@ func QIcon_ThemeSearchPaths() []string { } func QIcon_SetThemeSearchPaths(searchpath []string) { - // For the C ABI, malloc a C array of structs searchpath_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(searchpath)))) defer C.free(unsafe.Pointer(searchpath_CArray)) for i := range searchpath { @@ -282,7 +281,6 @@ func QIcon_FallbackSearchPaths() []string { } func QIcon_SetFallbackSearchPaths(paths []string) { - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { diff --git a/qt/gen_qimage.go b/qt/gen_qimage.go index 5bea9ee8..0a951063 100644 --- a/qt/gen_qimage.go +++ b/qt/gen_qimage.go @@ -214,7 +214,6 @@ func (this *QImage) ConvertToFormat(f QImage__Format) *QImage { } func (this *QImage) ConvertToFormat2(f QImage__Format, colorTable []uint) *QImage { - // For the C ABI, malloc a C array of raw pointers colorTable_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(colorTable)))) defer C.free(unsafe.Pointer(colorTable_CArray)) for i := range colorTable { @@ -392,7 +391,6 @@ func (this *QImage) ColorTable() []uint { } func (this *QImage) SetColorTable(colors []uint) { - // For the C ABI, malloc a C array of raw pointers colors_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(colors)))) defer C.free(unsafe.Pointer(colors_CArray)) for i := range colors { @@ -714,7 +712,6 @@ func (this *QImage) ConvertToFormat22(f QImage__Format, flags ImageConversionFla } func (this *QImage) ConvertToFormat3(f QImage__Format, colorTable []uint, flags ImageConversionFlag) *QImage { - // For the C ABI, malloc a C array of raw pointers colorTable_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(colorTable)))) defer C.free(unsafe.Pointer(colorTable_CArray)) for i := range colorTable { diff --git a/qt/gen_qinputdialog.go b/qt/gen_qinputdialog.go index 9d804899..ad4b82f9 100644 --- a/qt/gen_qinputdialog.go +++ b/qt/gen_qinputdialog.go @@ -177,7 +177,6 @@ func (this *QInputDialog) IsComboBoxEditable() bool { } func (this *QInputDialog) SetComboBoxItems(items []string) { - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -365,7 +364,6 @@ func QInputDialog_GetItem(parent *QWidget, title string, label string, items []s label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -789,7 +787,6 @@ func QInputDialog_GetItem5(parent *QWidget, title string, label string, items [] label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -816,7 +813,6 @@ func QInputDialog_GetItem6(parent *QWidget, title string, label string, items [] label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -843,7 +839,6 @@ func QInputDialog_GetItem7(parent *QWidget, title string, label string, items [] label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -870,7 +865,6 @@ func QInputDialog_GetItem8(parent *QWidget, title string, label string, items [] label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -897,7 +891,6 @@ func QInputDialog_GetItem9(parent *QWidget, title string, label string, items [] label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { diff --git a/qt/gen_qjsonarray.go b/qt/gen_qjsonarray.go index 8083d7af..e8bb128c 100644 --- a/qt/gen_qjsonarray.go +++ b/qt/gen_qjsonarray.go @@ -59,7 +59,6 @@ func (this *QJsonArray) OperatorAssign(other *QJsonArray) { } func QJsonArray_FromStringList(list []string) *QJsonArray { - // For the C ABI, malloc a C array of structs list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt/gen_qkeysequence.go b/qt/gen_qkeysequence.go index 07a8ad4b..81028af1 100644 --- a/qt/gen_qkeysequence.go +++ b/qt/gen_qkeysequence.go @@ -240,7 +240,6 @@ func QKeySequence_ListFromString(str string) []QKeySequence { } func QKeySequence_ListToString(list []QKeySequence) string { - // For the C ABI, malloc a C array of raw pointers list_CArray := (*[0xffff]*C.QKeySequence)(C.malloc(C.size_t(8 * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { @@ -360,7 +359,6 @@ func QKeySequence_ListFromString2(str string, format QKeySequence__SequenceForma } func QKeySequence_ListToString2(list []QKeySequence, format QKeySequence__SequenceFormat) string { - // For the C ABI, malloc a C array of raw pointers list_CArray := (*[0xffff]*C.QKeySequence)(C.malloc(C.size_t(8 * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt/gen_qlistview.go b/qt/gen_qlistview.go index 8e12290e..ea1c2489 100644 --- a/qt/gen_qlistview.go +++ b/qt/gen_qlistview.go @@ -278,7 +278,6 @@ func (this *QListView) SetRootIndex(index *QModelIndex) { } func (this *QListView) IndexesMoved(indexes []QModelIndex) { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { diff --git a/qt/gen_qlistwidget.go b/qt/gen_qlistwidget.go index c1fdb9b6..08be5f0c 100644 --- a/qt/gen_qlistwidget.go +++ b/qt/gen_qlistwidget.go @@ -459,7 +459,6 @@ func (this *QListWidget) InsertItem2(row int, label string) { } func (this *QListWidget) InsertItems(row int, labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { @@ -487,7 +486,6 @@ func (this *QListWidget) AddItemWithItem(item *QListWidgetItem) { } func (this *QListWidget) AddItems(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { diff --git a/qt/gen_qlocale.go b/qt/gen_qlocale.go index dc68310d..1ba53af5 100644 --- a/qt/gen_qlocale.go +++ b/qt/gen_qlocale.go @@ -1751,7 +1751,6 @@ func (this *QLocale) QuoteString(str string) string { } func (this *QLocale) CreateSeparatedList(strl []string) string { - // For the C ABI, malloc a C array of structs strl_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strl)))) defer C.free(unsafe.Pointer(strl_CArray)) for i := range strl { diff --git a/qt/gen_qmainwindow.go b/qt/gen_qmainwindow.go index 0750f66e..97588e73 100644 --- a/qt/gen_qmainwindow.go +++ b/qt/gen_qmainwindow.go @@ -296,7 +296,6 @@ func (this *QMainWindow) DockWidgetArea(dockwidget *QDockWidget) DockWidgetArea } func (this *QMainWindow) ResizeDocks(docks []*QDockWidget, sizes []int, orientation Orientation) { - // For the C ABI, malloc a C array of raw pointers docks_CArray := (*[0xffff]*C.QDockWidget)(C.malloc(C.size_t(8 * len(docks)))) defer C.free(unsafe.Pointer(docks_CArray)) for i := range docks { @@ -304,7 +303,6 @@ func (this *QMainWindow) ResizeDocks(docks []*QDockWidget, sizes []int, orientat } docks_ma := &C.struct_miqt_array{len: C.size_t(len(docks)), data: unsafe.Pointer(docks_CArray)} defer runtime.KeepAlive(unsafe.Pointer(docks_ma)) - // For the C ABI, malloc a C array of raw pointers sizes_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(sizes)))) defer C.free(unsafe.Pointer(sizes_CArray)) for i := range sizes { diff --git a/qt/gen_qmenu.go b/qt/gen_qmenu.go index 8a6ed053..ba9b58e7 100644 --- a/qt/gen_qmenu.go +++ b/qt/gen_qmenu.go @@ -245,7 +245,6 @@ func (this *QMenu) ExecWithPos(pos *QPoint) *QAction { } func QMenu_Exec2(actions []*QAction, pos *QPoint) *QAction { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { @@ -451,7 +450,6 @@ func (this *QMenu) Exec22(pos *QPoint, at *QAction) *QAction { } func QMenu_Exec3(actions []*QAction, pos *QPoint, at *QAction) *QAction { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { @@ -463,7 +461,6 @@ func QMenu_Exec3(actions []*QAction, pos *QPoint, at *QAction) *QAction { } func QMenu_Exec4(actions []*QAction, pos *QPoint, at *QAction, parent *QWidget) *QAction { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { diff --git a/qt/gen_qmimedata.go b/qt/gen_qmimedata.go index 29a2174a..2deafa9b 100644 --- a/qt/gen_qmimedata.go +++ b/qt/gen_qmimedata.go @@ -92,7 +92,6 @@ func (this *QMimeData) Urls() []QUrl { } func (this *QMimeData) SetUrls(urls []QUrl) { - // For the C ABI, malloc a C array of raw pointers urls_CArray := (*[0xffff]*C.QUrl)(C.malloc(C.size_t(8 * len(urls)))) defer C.free(unsafe.Pointer(urls_CArray)) for i := range urls { diff --git a/qt/gen_qpainter.go b/qt/gen_qpainter.go index 61d1c4da..6bead644 100644 --- a/qt/gen_qpainter.go +++ b/qt/gen_qpainter.go @@ -490,7 +490,6 @@ func (this *QPainter) DrawLines(lines *QLineF, lineCount int) { } func (this *QPainter) DrawLinesWithLines(lines []QLineF) { - // For the C ABI, malloc a C array of raw pointers lines_CArray := (*[0xffff]*C.QLineF)(C.malloc(C.size_t(8 * len(lines)))) defer C.free(unsafe.Pointer(lines_CArray)) for i := range lines { @@ -506,7 +505,6 @@ func (this *QPainter) DrawLines2(pointPairs *QPointF, lineCount int) { } func (this *QPainter) DrawLinesWithPointPairs(pointPairs []QPointF) { - // For the C ABI, malloc a C array of raw pointers pointPairs_CArray := (*[0xffff]*C.QPointF)(C.malloc(C.size_t(8 * len(pointPairs)))) defer C.free(unsafe.Pointer(pointPairs_CArray)) for i := range pointPairs { @@ -522,7 +520,6 @@ func (this *QPainter) DrawLines3(lines *QLine, lineCount int) { } func (this *QPainter) DrawLines4(lines []QLine) { - // For the C ABI, malloc a C array of raw pointers lines_CArray := (*[0xffff]*C.QLine)(C.malloc(C.size_t(8 * len(lines)))) defer C.free(unsafe.Pointer(lines_CArray)) for i := range lines { @@ -538,7 +535,6 @@ func (this *QPainter) DrawLines5(pointPairs *QPoint, lineCount int) { } func (this *QPainter) DrawLines6(pointPairs []QPoint) { - // For the C ABI, malloc a C array of raw pointers pointPairs_CArray := (*[0xffff]*C.QPoint)(C.malloc(C.size_t(8 * len(pointPairs)))) defer C.free(unsafe.Pointer(pointPairs_CArray)) for i := range pointPairs { @@ -566,7 +562,6 @@ func (this *QPainter) DrawRects(rects *QRectF, rectCount int) { } func (this *QPainter) DrawRectsWithRectangles(rectangles []QRectF) { - // For the C ABI, malloc a C array of raw pointers rectangles_CArray := (*[0xffff]*C.QRectF)(C.malloc(C.size_t(8 * len(rectangles)))) defer C.free(unsafe.Pointer(rectangles_CArray)) for i := range rectangles { @@ -582,7 +577,6 @@ func (this *QPainter) DrawRects2(rects *QRect, rectCount int) { } func (this *QPainter) DrawRects3(rectangles []QRect) { - // For the C ABI, malloc a C array of raw pointers rectangles_CArray := (*[0xffff]*C.QRect)(C.malloc(C.size_t(8 * len(rectangles)))) defer C.free(unsafe.Pointer(rectangles_CArray)) for i := range rectangles { diff --git a/qt/gen_qpainterpath.go b/qt/gen_qpainterpath.go index f46a65ec..f5fdaa3d 100644 --- a/qt/gen_qpainterpath.go +++ b/qt/gen_qpainterpath.go @@ -528,7 +528,6 @@ func (this *QPainterPathStroker) SetDashPattern(dashPattern PenStyle) { } func (this *QPainterPathStroker) SetDashPatternWithDashPattern(dashPattern []float64) { - // For the C ABI, malloc a C array of raw pointers dashPattern_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8 * len(dashPattern)))) defer C.free(unsafe.Pointer(dashPattern_CArray)) for i := range dashPattern { diff --git a/qt/gen_qpen.go b/qt/gen_qpen.go index a81be865..921924f4 100644 --- a/qt/gen_qpen.go +++ b/qt/gen_qpen.go @@ -118,7 +118,6 @@ func (this *QPen) DashPattern() []float64 { } func (this *QPen) SetDashPattern(pattern []float64) { - // For the C ABI, malloc a C array of raw pointers pattern_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8 * len(pattern)))) defer C.free(unsafe.Pointer(pattern_CArray)) for i := range pattern { diff --git a/qt/gen_qplaintextedit.go b/qt/gen_qplaintextedit.go index a6afa003..930886b8 100644 --- a/qt/gen_qplaintextedit.go +++ b/qt/gen_qplaintextedit.go @@ -350,7 +350,6 @@ func (this *QPlainTextEdit) SetCursorWidth(width int) { } func (this *QPlainTextEdit) SetExtraSelections(selections []QTextEdit__ExtraSelection) { - // For the C ABI, malloc a C array of raw pointers selections_CArray := (*[0xffff]*C.QTextEdit__ExtraSelection)(C.malloc(C.size_t(8 * len(selections)))) defer C.free(unsafe.Pointer(selections_CArray)) for i := range selections { diff --git a/qt/gen_qprocess.go b/qt/gen_qprocess.go index 2f728739..83fab889 100644 --- a/qt/gen_qprocess.go +++ b/qt/gen_qprocess.go @@ -311,7 +311,6 @@ func (this *QProcess) Start(program string, arguments []string) { program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -376,7 +375,6 @@ func (this *QProcess) Arguments() []string { } func (this *QProcess) SetArguments(arguments []string) { - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -475,7 +473,6 @@ func (this *QProcess) SetWorkingDirectory(dir string) { } func (this *QProcess) SetEnvironment(environment []string) { - // For the C ABI, malloc a C array of structs environment_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(environment)))) defer C.free(unsafe.Pointer(environment_CArray)) for i := range environment { @@ -602,7 +599,6 @@ func QProcess_Execute(program string, arguments []string) int { program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -630,7 +626,6 @@ func QProcess_StartDetached2(program string, arguments []string, workingDirector program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -654,7 +649,6 @@ func QProcess_StartDetached3(program string, arguments []string) bool { program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -837,7 +831,6 @@ func (this *QProcess) Start3(program string, arguments []string, mode QIODevice_ program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -909,7 +902,6 @@ func QProcess_StartDetached4(program string, arguments []string, workingDirector program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { diff --git a/qt/gen_qrawfont.go b/qt/gen_qrawfont.go index 787c3090..16b2bb37 100644 --- a/qt/gen_qrawfont.go +++ b/qt/gen_qrawfont.go @@ -165,7 +165,6 @@ func (this *QRawFont) GlyphIndexesForString(text string) []uint { } func (this *QRawFont) AdvancesForGlyphIndexes(glyphIndexes []uint) []QPointF { - // For the C ABI, malloc a C array of raw pointers glyphIndexes_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(glyphIndexes)))) defer C.free(unsafe.Pointer(glyphIndexes_CArray)) for i := range glyphIndexes { @@ -187,7 +186,6 @@ func (this *QRawFont) AdvancesForGlyphIndexes(glyphIndexes []uint) []QPointF { } func (this *QRawFont) AdvancesForGlyphIndexes2(glyphIndexes []uint, layoutFlags QRawFont__LayoutFlag) []QPointF { - // For the C ABI, malloc a C array of raw pointers glyphIndexes_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(glyphIndexes)))) defer C.free(unsafe.Pointer(glyphIndexes_CArray)) for i := range glyphIndexes { diff --git a/qt/gen_qscroller.go b/qt/gen_qscroller.go index d7fee1e7..303a0e92 100644 --- a/qt/gen_qscroller.go +++ b/qt/gen_qscroller.go @@ -178,7 +178,6 @@ func (this *QScroller) ScrollerProperties() *QScrollerProperties { } func (this *QScroller) SetSnapPositionsX(positions []float64) { - // For the C ABI, malloc a C array of raw pointers positions_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8 * len(positions)))) defer C.free(unsafe.Pointer(positions_CArray)) for i := range positions { @@ -194,7 +193,6 @@ func (this *QScroller) SetSnapPositionsX2(first float64, interval float64) { } func (this *QScroller) SetSnapPositionsY(positions []float64) { - // For the C ABI, malloc a C array of raw pointers positions_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8 * len(positions)))) defer C.free(unsafe.Pointer(positions_CArray)) for i := range positions { diff --git a/qt/gen_qsessionmanager.go b/qt/gen_qsessionmanager.go index e188d832..82d2fa72 100644 --- a/qt/gen_qsessionmanager.go +++ b/qt/gen_qsessionmanager.go @@ -119,7 +119,6 @@ func (this *QSessionManager) RestartHint() QSessionManager__RestartHint { } func (this *QSessionManager) SetRestartCommand(restartCommand []string) { - // For the C ABI, malloc a C array of structs restartCommand_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(restartCommand)))) defer C.free(unsafe.Pointer(restartCommand_CArray)) for i := range restartCommand { @@ -149,7 +148,6 @@ func (this *QSessionManager) RestartCommand() []string { } func (this *QSessionManager) SetDiscardCommand(discardCommand []string) { - // For the C ABI, malloc a C array of structs discardCommand_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(discardCommand)))) defer C.free(unsafe.Pointer(discardCommand_CArray)) for i := range discardCommand { @@ -195,7 +193,6 @@ func (this *QSessionManager) SetManagerProperty2(name string, value []string) { name_ms.data = C.CString(name) name_ms.len = C.size_t(len(name)) defer C.free(unsafe.Pointer(name_ms.data)) - // For the C ABI, malloc a C array of structs value_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(value)))) defer C.free(unsafe.Pointer(value_CArray)) for i := range value { diff --git a/qt/gen_qsortfilterproxymodel.go b/qt/gen_qsortfilterproxymodel.go index d5392867..0b392010 100644 --- a/qt/gen_qsortfilterproxymodel.go +++ b/qt/gen_qsortfilterproxymodel.go @@ -292,7 +292,6 @@ func (this *QSortFilterProxyModel) SetHeaderData(section int, orientation Orient } func (this *QSortFilterProxyModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { diff --git a/qt/gen_qsplitter.go b/qt/gen_qsplitter.go index 8f5d4672..8ac78fe4 100644 --- a/qt/gen_qsplitter.go +++ b/qt/gen_qsplitter.go @@ -170,7 +170,6 @@ func (this *QSplitter) Sizes() []int { } func (this *QSplitter) SetSizes(list []int) { - // For the C ABI, malloc a C array of raw pointers list_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt/gen_qstandarditemmodel.go b/qt/gen_qstandarditemmodel.go index 58c4ffb9..9d16f103 100644 --- a/qt/gen_qstandarditemmodel.go +++ b/qt/gen_qstandarditemmodel.go @@ -400,7 +400,6 @@ func (this *QStandardItem) SetChild2(row int, item *QStandardItem) { } func (this *QStandardItem) InsertRow(row int, items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -412,7 +411,6 @@ func (this *QStandardItem) InsertRow(row int, items []*QStandardItem) { } func (this *QStandardItem) InsertColumn(column int, items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -424,7 +422,6 @@ func (this *QStandardItem) InsertColumn(column int, items []*QStandardItem) { } func (this *QStandardItem) InsertRows(row int, items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -460,7 +457,6 @@ func (this *QStandardItem) RemoveColumns(column int, count int) { } func (this *QStandardItem) AppendRow(items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -472,7 +468,6 @@ func (this *QStandardItem) AppendRow(items []*QStandardItem) { } func (this *QStandardItem) AppendRows(items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -484,7 +479,6 @@ func (this *QStandardItem) AppendRows(items []*QStandardItem) { } func (this *QStandardItem) AppendColumn(items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -807,7 +801,6 @@ func (this *QStandardItemModel) SetVerticalHeaderItem(row int, item *QStandardIt } func (this *QStandardItemModel) SetHorizontalHeaderLabels(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { @@ -823,7 +816,6 @@ func (this *QStandardItemModel) SetHorizontalHeaderLabels(labels []string) { } func (this *QStandardItemModel) SetVerticalHeaderLabels(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { @@ -847,7 +839,6 @@ func (this *QStandardItemModel) SetColumnCount(columns int) { } func (this *QStandardItemModel) AppendRow(items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -859,7 +850,6 @@ func (this *QStandardItemModel) AppendRow(items []*QStandardItem) { } func (this *QStandardItemModel) AppendColumn(items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -875,7 +865,6 @@ func (this *QStandardItemModel) AppendRowWithItem(item *QStandardItem) { } func (this *QStandardItemModel) InsertRow(row int, items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -887,7 +876,6 @@ func (this *QStandardItemModel) InsertRow(row int, items []*QStandardItem) { } func (this *QStandardItemModel) InsertColumn(column int, items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -990,7 +978,6 @@ func (this *QStandardItemModel) MimeTypes() []string { } func (this *QStandardItemModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { diff --git a/qt/gen_qstandardpaths.go b/qt/gen_qstandardpaths.go index 6837d1b6..342e3c4e 100644 --- a/qt/gen_qstandardpaths.go +++ b/qt/gen_qstandardpaths.go @@ -188,7 +188,6 @@ func QStandardPaths_FindExecutable2(executableName string, paths []string) strin executableName_ms.data = C.CString(executableName) executableName_ms.len = C.size_t(len(executableName)) defer C.free(unsafe.Pointer(executableName_ms.data)) - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { diff --git a/qt/gen_qstringlistmodel.go b/qt/gen_qstringlistmodel.go index e8a8cd92..5b1b1507 100644 --- a/qt/gen_qstringlistmodel.go +++ b/qt/gen_qstringlistmodel.go @@ -51,7 +51,6 @@ func NewQStringListModel() *QStringListModel { // NewQStringListModel2 constructs a new QStringListModel object. func NewQStringListModel2(strings []string) *QStringListModel { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -75,7 +74,6 @@ func NewQStringListModel3(parent *QObject) *QStringListModel { // NewQStringListModel4 constructs a new QStringListModel object. func NewQStringListModel4(strings []string, parent *QObject) *QStringListModel { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -176,7 +174,6 @@ func (this *QStringListModel) StringList() []string { } func (this *QStringListModel) SetStringList(strings []string) { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { diff --git a/qt/gen_qtablewidget.go b/qt/gen_qtablewidget.go index 0288da6a..c45631b3 100644 --- a/qt/gen_qtablewidget.go +++ b/qt/gen_qtablewidget.go @@ -570,7 +570,6 @@ func (this *QTableWidget) TakeHorizontalHeaderItem(column int) *QTableWidgetItem } func (this *QTableWidget) SetVerticalHeaderLabels(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { @@ -586,7 +585,6 @@ func (this *QTableWidget) SetVerticalHeaderLabels(labels []string) { } func (this *QTableWidget) SetHorizontalHeaderLabels(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { diff --git a/qt/gen_qtextbrowser.go b/qt/gen_qtextbrowser.go index 91a07e47..b16c42a9 100644 --- a/qt/gen_qtextbrowser.go +++ b/qt/gen_qtextbrowser.go @@ -110,7 +110,6 @@ func (this *QTextBrowser) SearchPaths() []string { } func (this *QTextBrowser) SetSearchPaths(paths []string) { - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { diff --git a/qt/gen_qtextedit.go b/qt/gen_qtextedit.go index 0e01d77c..385c3786 100644 --- a/qt/gen_qtextedit.go +++ b/qt/gen_qtextedit.go @@ -422,7 +422,6 @@ func (this *QTextEdit) SetAcceptRichText(accept bool) { } func (this *QTextEdit) SetExtraSelections(selections []QTextEdit__ExtraSelection) { - // For the C ABI, malloc a C array of raw pointers selections_CArray := (*[0xffff]*C.QTextEdit__ExtraSelection)(C.malloc(C.size_t(8 * len(selections)))) defer C.free(unsafe.Pointer(selections_CArray)) for i := range selections { diff --git a/qt/gen_qtextformat.go b/qt/gen_qtextformat.go index 52d9f445..ad8036e6 100644 --- a/qt/gen_qtextformat.go +++ b/qt/gen_qtextformat.go @@ -490,7 +490,6 @@ func (this *QTextFormat) LengthVectorProperty(propertyId int) []QTextLength { } func (this *QTextFormat) SetProperty2(propertyId int, lengths []QTextLength) { - // For the C ABI, malloc a C array of raw pointers lengths_CArray := (*[0xffff]*C.QTextLength)(C.malloc(C.size_t(8 * len(lengths)))) defer C.free(unsafe.Pointer(lengths_CArray)) for i := range lengths { @@ -727,7 +726,6 @@ func (this *QTextCharFormat) FontFamily() string { } func (this *QTextCharFormat) SetFontFamilies(families []string) { - // For the C ABI, malloc a C array of structs families_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(families)))) defer C.free(unsafe.Pointer(families_CArray)) for i := range families { @@ -984,7 +982,6 @@ func (this *QTextCharFormat) AnchorName() string { } func (this *QTextCharFormat) SetAnchorNames(names []string) { - // For the C ABI, malloc a C array of structs names_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(names)))) defer C.free(unsafe.Pointer(names_CArray)) for i := range names { @@ -1190,7 +1187,6 @@ func (this *QTextBlockFormat) PageBreakPolicy() QTextFormat__PageBreakFlag { } func (this *QTextBlockFormat) SetTabPositions(tabs []QTextOption__Tab) { - // For the C ABI, malloc a C array of raw pointers tabs_CArray := (*[0xffff]*C.QTextOption__Tab)(C.malloc(C.size_t(8 * len(tabs)))) defer C.free(unsafe.Pointer(tabs_CArray)) for i := range tabs { @@ -1670,7 +1666,6 @@ func (this *QTextTableFormat) SetColumns(columns int) { } func (this *QTextTableFormat) SetColumnWidthConstraints(constraints []QTextLength) { - // For the C ABI, malloc a C array of raw pointers constraints_CArray := (*[0xffff]*C.QTextLength)(C.malloc(C.size_t(8 * len(constraints)))) defer C.free(unsafe.Pointer(constraints_CArray)) for i := range constraints { diff --git a/qt/gen_qtextlayout.go b/qt/gen_qtextlayout.go index 372cc375..8520fc7b 100644 --- a/qt/gen_qtextlayout.go +++ b/qt/gen_qtextlayout.go @@ -270,7 +270,6 @@ func (this *QTextLayout) PreeditAreaText() string { } func (this *QTextLayout) SetAdditionalFormats(overrides []QTextLayout__FormatRange) { - // For the C ABI, malloc a C array of raw pointers overrides_CArray := (*[0xffff]*C.QTextLayout__FormatRange)(C.malloc(C.size_t(8 * len(overrides)))) defer C.free(unsafe.Pointer(overrides_CArray)) for i := range overrides { @@ -300,7 +299,6 @@ func (this *QTextLayout) ClearAdditionalFormats() { } func (this *QTextLayout) SetFormats(overrides []QTextLayout__FormatRange) { - // For the C ABI, malloc a C array of raw pointers overrides_CArray := (*[0xffff]*C.QTextLayout__FormatRange)(C.malloc(C.size_t(8 * len(overrides)))) defer C.free(unsafe.Pointer(overrides_CArray)) for i := range overrides { @@ -467,7 +465,6 @@ func (this *QTextLayout) PreviousCursorPosition2(oldPos int, mode QTextLayout__C } func (this *QTextLayout) Draw3(p *QPainter, pos *QPointF, selections []QTextLayout__FormatRange) { - // For the C ABI, malloc a C array of raw pointers selections_CArray := (*[0xffff]*C.QTextLayout__FormatRange)(C.malloc(C.size_t(8 * len(selections)))) defer C.free(unsafe.Pointer(selections_CArray)) for i := range selections { @@ -479,7 +476,6 @@ func (this *QTextLayout) Draw3(p *QPainter, pos *QPointF, selections []QTextLayo } func (this *QTextLayout) Draw4(p *QPainter, pos *QPointF, selections []QTextLayout__FormatRange, clip *QRectF) { - // For the C ABI, malloc a C array of raw pointers selections_CArray := (*[0xffff]*C.QTextLayout__FormatRange)(C.malloc(C.size_t(8 * len(selections)))) defer C.free(unsafe.Pointer(selections_CArray)) for i := range selections { diff --git a/qt/gen_qtextoption.go b/qt/gen_qtextoption.go index 483bf188..1e313be6 100644 --- a/qt/gen_qtextoption.go +++ b/qt/gen_qtextoption.go @@ -143,7 +143,6 @@ func (this *QTextOption) TabStopDistance() float64 { } func (this *QTextOption) SetTabArray(tabStops []float64) { - // For the C ABI, malloc a C array of raw pointers tabStops_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8 * len(tabStops)))) defer C.free(unsafe.Pointer(tabStops_CArray)) for i := range tabStops { @@ -166,7 +165,6 @@ func (this *QTextOption) TabArray() []float64 { } func (this *QTextOption) SetTabs(tabStops []QTextOption__Tab) { - // For the C ABI, malloc a C array of raw pointers tabStops_CArray := (*[0xffff]*C.QTextOption__Tab)(C.malloc(C.size_t(8 * len(tabStops)))) defer C.free(unsafe.Pointer(tabStops_CArray)) for i := range tabStops { diff --git a/qt/gen_qtreeview.go b/qt/gen_qtreeview.go index b1b18d3c..51298040 100644 --- a/qt/gen_qtreeview.go +++ b/qt/gen_qtreeview.go @@ -441,7 +441,6 @@ func (this *QTreeView) ScrollTo2(index *QModelIndex, hint QAbstractItemView__Scr } func (this *QTreeView) DataChanged3(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int) { - // For the C ABI, malloc a C array of raw pointers roles_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(roles)))) defer C.free(unsafe.Pointer(roles_CArray)) for i := range roles { diff --git a/qt/gen_qtreewidget.go b/qt/gen_qtreewidget.go index ab087e9a..3f7f29eb 100644 --- a/qt/gen_qtreewidget.go +++ b/qt/gen_qtreewidget.go @@ -66,7 +66,6 @@ func NewQTreeWidgetItem() *QTreeWidgetItem { // NewQTreeWidgetItem2 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem2(strings []string) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -90,7 +89,6 @@ func NewQTreeWidgetItem3(treeview *QTreeWidget) *QTreeWidgetItem { // NewQTreeWidgetItem4 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem4(treeview *QTreeWidget, strings []string) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -120,7 +118,6 @@ func NewQTreeWidgetItem6(parent *QTreeWidgetItem) *QTreeWidgetItem { // NewQTreeWidgetItem7 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem7(parent *QTreeWidgetItem, strings []string) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -156,7 +153,6 @@ func NewQTreeWidgetItem10(typeVal int) *QTreeWidgetItem { // NewQTreeWidgetItem11 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem11(strings []string, typeVal int) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -180,7 +176,6 @@ func NewQTreeWidgetItem12(treeview *QTreeWidget, typeVal int) *QTreeWidgetItem { // NewQTreeWidgetItem13 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem13(treeview *QTreeWidget, strings []string, typeVal int) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -210,7 +205,6 @@ func NewQTreeWidgetItem15(parent *QTreeWidgetItem, typeVal int) *QTreeWidgetItem // NewQTreeWidgetItem16 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem16(parent *QTreeWidgetItem, strings []string, typeVal int) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -513,7 +507,6 @@ func (this *QTreeWidgetItem) TakeChild(index int) *QTreeWidgetItem { } func (this *QTreeWidgetItem) AddChildren(children []*QTreeWidgetItem) { - // For the C ABI, malloc a C array of raw pointers children_CArray := (*[0xffff]*C.QTreeWidgetItem)(C.malloc(C.size_t(8 * len(children)))) defer C.free(unsafe.Pointer(children_CArray)) for i := range children { @@ -525,7 +518,6 @@ func (this *QTreeWidgetItem) AddChildren(children []*QTreeWidgetItem) { } func (this *QTreeWidgetItem) InsertChildren(index int, children []*QTreeWidgetItem) { - // For the C ABI, malloc a C array of raw pointers children_CArray := (*[0xffff]*C.QTreeWidgetItem)(C.malloc(C.size_t(8 * len(children)))) defer C.free(unsafe.Pointer(children_CArray)) for i := range children { @@ -676,7 +668,6 @@ func (this *QTreeWidget) IndexOfTopLevelItem(item *QTreeWidgetItem) int { } func (this *QTreeWidget) InsertTopLevelItems(index int, items []*QTreeWidgetItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QTreeWidgetItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -688,7 +679,6 @@ func (this *QTreeWidget) InsertTopLevelItems(index int, items []*QTreeWidgetItem } func (this *QTreeWidget) AddTopLevelItems(items []*QTreeWidgetItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QTreeWidgetItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -708,7 +698,6 @@ func (this *QTreeWidget) SetHeaderItem(item *QTreeWidgetItem) { } func (this *QTreeWidget) SetHeaderLabels(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { diff --git a/qt/gen_qurl.go b/qt/gen_qurl.go index 9aac2147..40a57fd5 100644 --- a/qt/gen_qurl.go +++ b/qt/gen_qurl.go @@ -510,7 +510,6 @@ func QUrl_IdnWhitelist() []string { } func QUrl_ToStringList(uris []QUrl) []string { - // For the C ABI, malloc a C array of raw pointers uris_CArray := (*[0xffff]*C.QUrl)(C.malloc(C.size_t(8 * len(uris)))) defer C.free(unsafe.Pointer(uris_CArray)) for i := range uris { @@ -532,7 +531,6 @@ func QUrl_ToStringList(uris []QUrl) []string { } func QUrl_FromStringList(uris []string) []QUrl { - // For the C ABI, malloc a C array of structs uris_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(uris)))) defer C.free(unsafe.Pointer(uris_CArray)) for i := range uris { @@ -558,7 +556,6 @@ func QUrl_FromStringList(uris []string) []QUrl { } func QUrl_SetIdnWhitelist(idnWhitelist []string) { - // For the C ABI, malloc a C array of structs idnWhitelist_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(idnWhitelist)))) defer C.free(unsafe.Pointer(idnWhitelist_CArray)) for i := range idnWhitelist { @@ -776,7 +773,6 @@ func QUrl_ToPercentEncoding3(param1 string, exclude []byte, include []byte) []by } func QUrl_FromStringList2(uris []string, mode QUrl__ParsingMode) []QUrl { - // For the C ABI, malloc a C array of structs uris_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(uris)))) defer C.free(unsafe.Pointer(uris_CArray)) for i := range uris { diff --git a/qt/gen_qvariant.go b/qt/gen_qvariant.go index 8c67a7d6..63b03480 100644 --- a/qt/gen_qvariant.go +++ b/qt/gen_qvariant.go @@ -222,7 +222,6 @@ func NewQVariant17(stringVal string) *QVariant { // NewQVariant18 constructs a new QVariant object. func NewQVariant18(stringlist []string) *QVariant { - // For the C ABI, malloc a C array of structs stringlist_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(stringlist)))) defer C.free(unsafe.Pointer(stringlist_CArray)) for i := range stringlist { diff --git a/qt/gen_qversionnumber.go b/qt/gen_qversionnumber.go index c151c0b5..41f4cb03 100644 --- a/qt/gen_qversionnumber.go +++ b/qt/gen_qversionnumber.go @@ -50,7 +50,6 @@ func NewQVersionNumber() *QVersionNumber { // NewQVersionNumber2 constructs a new QVersionNumber object. func NewQVersionNumber2(seg []int) *QVersionNumber { - // For the C ABI, malloc a C array of raw pointers seg_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(seg)))) defer C.free(unsafe.Pointer(seg_CArray)) for i := range seg { diff --git a/qt/gen_qwidget.go b/qt/gen_qwidget.go index 87a587b1..bd5a8243 100644 --- a/qt/gen_qwidget.go +++ b/qt/gen_qwidget.go @@ -1198,7 +1198,6 @@ func (this *QWidget) AddAction(action *QAction) { } func (this *QWidget) AddActions(actions []*QAction) { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { @@ -1210,7 +1209,6 @@ func (this *QWidget) AddActions(actions []*QAction) { } func (this *QWidget) InsertActions(before *QAction, actions []*QAction) { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { diff --git a/qt/gen_qwizard.go b/qt/gen_qwizard.go index b68b53c0..6b99ddc5 100644 --- a/qt/gen_qwizard.go +++ b/qt/gen_qwizard.go @@ -286,7 +286,6 @@ func (this *QWizard) ButtonText(which QWizard__WizardButton) string { } func (this *QWizard) SetButtonLayout(layout []QWizard__WizardButton) { - // For the C ABI, malloc a C array of raw pointers layout_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(layout)))) defer C.free(unsafe.Pointer(layout_CArray)) for i := range layout { diff --git a/qt/gen_qxmlstream.go b/qt/gen_qxmlstream.go index 0661050c..5f026c5b 100644 --- a/qt/gen_qxmlstream.go +++ b/qt/gen_qxmlstream.go @@ -752,7 +752,6 @@ func (this *QXmlStreamReader) AddExtraNamespaceDeclaration(extraNamespaceDeclara } func (this *QXmlStreamReader) AddExtraNamespaceDeclarations(extraNamespaceDeclaractions []QXmlStreamNamespaceDeclaration) { - // For the C ABI, malloc a C array of raw pointers extraNamespaceDeclaractions_CArray := (*[0xffff]*C.QXmlStreamNamespaceDeclaration)(C.malloc(C.size_t(8 * len(extraNamespaceDeclaractions)))) defer C.free(unsafe.Pointer(extraNamespaceDeclaractions_CArray)) for i := range extraNamespaceDeclaractions { diff --git a/qt/qprintsupport/gen_qabstractprintdialog.go b/qt/qprintsupport/gen_qabstractprintdialog.go index cab6a6e2..4235864e 100644 --- a/qt/qprintsupport/gen_qabstractprintdialog.go +++ b/qt/qprintsupport/gen_qabstractprintdialog.go @@ -123,7 +123,6 @@ func (this *QAbstractPrintDialog) IsOptionEnabled(option QAbstractPrintDialog__P } func (this *QAbstractPrintDialog) SetOptionTabs(tabs []*qt.QWidget) { - // For the C ABI, malloc a C array of raw pointers tabs_CArray := (*[0xffff]*C.QWidget)(C.malloc(C.size_t(8 * len(tabs)))) defer C.free(unsafe.Pointer(tabs_CArray)) for i := range tabs { diff --git a/qt6/gen_qabstractitemmodel.go b/qt6/gen_qabstractitemmodel.go index 53f4ad91..52889ac0 100644 --- a/qt6/gen_qabstractitemmodel.go +++ b/qt6/gen_qabstractitemmodel.go @@ -630,7 +630,6 @@ func (this *QAbstractItemModel) MimeTypes() []string { } func (this *QAbstractItemModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { @@ -980,7 +979,6 @@ func (this *QAbstractItemModel) CheckIndex2(index *QModelIndex, options QAbstrac } func (this *QAbstractItemModel) DataChanged3(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int) { - // For the C ABI, malloc a C array of raw pointers roles_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(roles)))) defer C.free(unsafe.Pointer(roles_CArray)) for i := range roles { @@ -1017,7 +1015,6 @@ func miqt_exec_callback_QAbstractItemModel_DataChanged3(cb C.intptr_t, topLeft * } func (this *QAbstractItemModel) LayoutChanged1(parents []QPersistentModelIndex) { - // For the C ABI, malloc a C array of raw pointers parents_CArray := (*[0xffff]*C.QPersistentModelIndex)(C.malloc(C.size_t(8 * len(parents)))) defer C.free(unsafe.Pointer(parents_CArray)) for i := range parents { @@ -1055,7 +1052,6 @@ func miqt_exec_callback_QAbstractItemModel_LayoutChanged1(cb C.intptr_t, parents } func (this *QAbstractItemModel) LayoutChanged2(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint) { - // For the C ABI, malloc a C array of raw pointers parents_CArray := (*[0xffff]*C.QPersistentModelIndex)(C.malloc(C.size_t(8 * len(parents)))) defer C.free(unsafe.Pointer(parents_CArray)) for i := range parents { @@ -1095,7 +1091,6 @@ func miqt_exec_callback_QAbstractItemModel_LayoutChanged2(cb C.intptr_t, parents } func (this *QAbstractItemModel) LayoutAboutToBeChanged1(parents []QPersistentModelIndex) { - // For the C ABI, malloc a C array of raw pointers parents_CArray := (*[0xffff]*C.QPersistentModelIndex)(C.malloc(C.size_t(8 * len(parents)))) defer C.free(unsafe.Pointer(parents_CArray)) for i := range parents { @@ -1133,7 +1128,6 @@ func miqt_exec_callback_QAbstractItemModel_LayoutAboutToBeChanged1(cb C.intptr_t } func (this *QAbstractItemModel) LayoutAboutToBeChanged2(parents []QPersistentModelIndex, hint QAbstractItemModel__LayoutChangeHint) { - // For the C ABI, malloc a C array of raw pointers parents_CArray := (*[0xffff]*C.QPersistentModelIndex)(C.malloc(C.size_t(8 * len(parents)))) defer C.free(unsafe.Pointer(parents_CArray)) for i := range parents { diff --git a/qt6/gen_qabstractproxymodel.go b/qt6/gen_qabstractproxymodel.go index 6f40bc7a..d9571d64 100644 --- a/qt6/gen_qabstractproxymodel.go +++ b/qt6/gen_qabstractproxymodel.go @@ -160,7 +160,6 @@ func (this *QAbstractProxyModel) Sibling(row int, column int, idx *QModelIndex) } func (this *QAbstractProxyModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { diff --git a/qt6/gen_qaction.go b/qt6/gen_qaction.go index f343dd6e..ff514f37 100644 --- a/qt6/gen_qaction.go +++ b/qt6/gen_qaction.go @@ -275,7 +275,6 @@ func (this *QAction) Shortcut() *QKeySequence { } func (this *QAction) SetShortcuts(shortcuts []QKeySequence) { - // For the C ABI, malloc a C array of raw pointers shortcuts_CArray := (*[0xffff]*C.QKeySequence)(C.malloc(C.size_t(8 * len(shortcuts)))) defer C.free(unsafe.Pointer(shortcuts_CArray)) for i := range shortcuts { diff --git a/qt6/gen_qcborarray.go b/qt6/gen_qcborarray.go index 2b646005..ad010479 100644 --- a/qt6/gen_qcborarray.go +++ b/qt6/gen_qcborarray.go @@ -329,7 +329,6 @@ func (this *QCborArray) OperatorShiftLeft(v *QCborValue) *QCborArray { } func QCborArray_FromStringList(list []string) *QCborArray { - // For the C ABI, malloc a C array of structs list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt6/gen_qcolorspace.go b/qt6/gen_qcolorspace.go index cc6cd600..3c741d9e 100644 --- a/qt6/gen_qcolorspace.go +++ b/qt6/gen_qcolorspace.go @@ -98,7 +98,6 @@ func NewQColorSpace4(primaries QColorSpace__Primaries, gamma float32) *QColorSpa // NewQColorSpace5 constructs a new QColorSpace object. func NewQColorSpace5(primaries QColorSpace__Primaries, transferFunctionTable []uint16) *QColorSpace { - // For the C ABI, malloc a C array of raw pointers transferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(transferFunctionTable)))) defer C.free(unsafe.Pointer(transferFunctionTable_CArray)) for i := range transferFunctionTable { @@ -118,7 +117,6 @@ func NewQColorSpace6(whitePoint *QPointF, redPoint *QPointF, greenPoint *QPointF // NewQColorSpace7 constructs a new QColorSpace object. func NewQColorSpace7(whitePoint *QPointF, redPoint *QPointF, greenPoint *QPointF, bluePoint *QPointF, transferFunctionTable []uint16) *QColorSpace { - // For the C ABI, malloc a C array of raw pointers transferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(transferFunctionTable)))) defer C.free(unsafe.Pointer(transferFunctionTable_CArray)) for i := range transferFunctionTable { @@ -132,7 +130,6 @@ func NewQColorSpace7(whitePoint *QPointF, redPoint *QPointF, greenPoint *QPointF // NewQColorSpace8 constructs a new QColorSpace object. func NewQColorSpace8(whitePoint *QPointF, redPoint *QPointF, greenPoint *QPointF, bluePoint *QPointF, redTransferFunctionTable []uint16, greenTransferFunctionTable []uint16, blueTransferFunctionTable []uint16) *QColorSpace { - // For the C ABI, malloc a C array of raw pointers redTransferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(redTransferFunctionTable)))) defer C.free(unsafe.Pointer(redTransferFunctionTable_CArray)) for i := range redTransferFunctionTable { @@ -140,7 +137,6 @@ func NewQColorSpace8(whitePoint *QPointF, redPoint *QPointF, greenPoint *QPointF } redTransferFunctionTable_ma := &C.struct_miqt_array{len: C.size_t(len(redTransferFunctionTable)), data: unsafe.Pointer(redTransferFunctionTable_CArray)} defer runtime.KeepAlive(unsafe.Pointer(redTransferFunctionTable_ma)) - // For the C ABI, malloc a C array of raw pointers greenTransferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(greenTransferFunctionTable)))) defer C.free(unsafe.Pointer(greenTransferFunctionTable_CArray)) for i := range greenTransferFunctionTable { @@ -148,7 +144,6 @@ func NewQColorSpace8(whitePoint *QPointF, redPoint *QPointF, greenPoint *QPointF } greenTransferFunctionTable_ma := &C.struct_miqt_array{len: C.size_t(len(greenTransferFunctionTable)), data: unsafe.Pointer(greenTransferFunctionTable_CArray)} defer runtime.KeepAlive(unsafe.Pointer(greenTransferFunctionTable_ma)) - // For the C ABI, malloc a C array of raw pointers blueTransferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(blueTransferFunctionTable)))) defer C.free(unsafe.Pointer(blueTransferFunctionTable_CArray)) for i := range blueTransferFunctionTable { @@ -218,7 +213,6 @@ func (this *QColorSpace) SetTransferFunction(transferFunction QColorSpace__Trans } func (this *QColorSpace) SetTransferFunctionWithTransferFunctionTable(transferFunctionTable []uint16) { - // For the C ABI, malloc a C array of raw pointers transferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(transferFunctionTable)))) defer C.free(unsafe.Pointer(transferFunctionTable_CArray)) for i := range transferFunctionTable { @@ -230,7 +224,6 @@ func (this *QColorSpace) SetTransferFunctionWithTransferFunctionTable(transferFu } func (this *QColorSpace) SetTransferFunctions(redTransferFunctionTable []uint16, greenTransferFunctionTable []uint16, blueTransferFunctionTable []uint16) { - // For the C ABI, malloc a C array of raw pointers redTransferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(redTransferFunctionTable)))) defer C.free(unsafe.Pointer(redTransferFunctionTable_CArray)) for i := range redTransferFunctionTable { @@ -238,7 +231,6 @@ func (this *QColorSpace) SetTransferFunctions(redTransferFunctionTable []uint16, } redTransferFunctionTable_ma := &C.struct_miqt_array{len: C.size_t(len(redTransferFunctionTable)), data: unsafe.Pointer(redTransferFunctionTable_CArray)} defer runtime.KeepAlive(unsafe.Pointer(redTransferFunctionTable_ma)) - // For the C ABI, malloc a C array of raw pointers greenTransferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(greenTransferFunctionTable)))) defer C.free(unsafe.Pointer(greenTransferFunctionTable_CArray)) for i := range greenTransferFunctionTable { @@ -246,7 +238,6 @@ func (this *QColorSpace) SetTransferFunctions(redTransferFunctionTable []uint16, } greenTransferFunctionTable_ma := &C.struct_miqt_array{len: C.size_t(len(greenTransferFunctionTable)), data: unsafe.Pointer(greenTransferFunctionTable_CArray)} defer runtime.KeepAlive(unsafe.Pointer(greenTransferFunctionTable_ma)) - // For the C ABI, malloc a C array of raw pointers blueTransferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(blueTransferFunctionTable)))) defer C.free(unsafe.Pointer(blueTransferFunctionTable_CArray)) for i := range blueTransferFunctionTable { @@ -265,7 +256,6 @@ func (this *QColorSpace) WithTransferFunction(transferFunction QColorSpace__Tran } func (this *QColorSpace) WithTransferFunctionWithTransferFunctionTable(transferFunctionTable []uint16) *QColorSpace { - // For the C ABI, malloc a C array of raw pointers transferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(transferFunctionTable)))) defer C.free(unsafe.Pointer(transferFunctionTable_CArray)) for i := range transferFunctionTable { @@ -280,7 +270,6 @@ func (this *QColorSpace) WithTransferFunctionWithTransferFunctionTable(transferF } func (this *QColorSpace) WithTransferFunctions(redTransferFunctionTable []uint16, greenTransferFunctionTable []uint16, blueTransferFunctionTable []uint16) *QColorSpace { - // For the C ABI, malloc a C array of raw pointers redTransferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(redTransferFunctionTable)))) defer C.free(unsafe.Pointer(redTransferFunctionTable_CArray)) for i := range redTransferFunctionTable { @@ -288,7 +277,6 @@ func (this *QColorSpace) WithTransferFunctions(redTransferFunctionTable []uint16 } redTransferFunctionTable_ma := &C.struct_miqt_array{len: C.size_t(len(redTransferFunctionTable)), data: unsafe.Pointer(redTransferFunctionTable_CArray)} defer runtime.KeepAlive(unsafe.Pointer(redTransferFunctionTable_ma)) - // For the C ABI, malloc a C array of raw pointers greenTransferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(greenTransferFunctionTable)))) defer C.free(unsafe.Pointer(greenTransferFunctionTable_CArray)) for i := range greenTransferFunctionTable { @@ -296,7 +284,6 @@ func (this *QColorSpace) WithTransferFunctions(redTransferFunctionTable []uint16 } greenTransferFunctionTable_ma := &C.struct_miqt_array{len: C.size_t(len(greenTransferFunctionTable)), data: unsafe.Pointer(greenTransferFunctionTable_CArray)} defer runtime.KeepAlive(unsafe.Pointer(greenTransferFunctionTable_ma)) - // For the C ABI, malloc a C array of raw pointers blueTransferFunctionTable_CArray := (*[0xffff]C.uint16_t)(C.malloc(C.size_t(8 * len(blueTransferFunctionTable)))) defer C.free(unsafe.Pointer(blueTransferFunctionTable_CArray)) for i := range blueTransferFunctionTable { diff --git a/qt6/gen_qcolumnview.go b/qt6/gen_qcolumnview.go index 4eff4676..f94e4e62 100644 --- a/qt6/gen_qcolumnview.go +++ b/qt6/gen_qcolumnview.go @@ -153,7 +153,6 @@ func (this *QColumnView) SetPreviewWidget(widget *QWidget) { } func (this *QColumnView) SetColumnWidths(list []int) { - // For the C ABI, malloc a C array of raw pointers list_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt6/gen_qcombobox.go b/qt6/gen_qcombobox.go index a5c6e736..8547cd07 100644 --- a/qt6/gen_qcombobox.go +++ b/qt6/gen_qcombobox.go @@ -316,7 +316,6 @@ func (this *QComboBox) AddItem2(icon *QIcon, text string) { } func (this *QComboBox) AddItems(texts []string) { - // For the C ABI, malloc a C array of structs texts_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(texts)))) defer C.free(unsafe.Pointer(texts_CArray)) for i := range texts { @@ -348,7 +347,6 @@ func (this *QComboBox) InsertItem2(index int, icon *QIcon, text string) { } func (this *QComboBox) InsertItems(index int, texts []string) { - // For the C ABI, malloc a C array of structs texts_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(texts)))) defer C.free(unsafe.Pointer(texts_CArray)) for i := range texts { diff --git a/qt6/gen_qcommandlineoption.go b/qt6/gen_qcommandlineoption.go index 0bcd990b..2d65de87 100644 --- a/qt6/gen_qcommandlineoption.go +++ b/qt6/gen_qcommandlineoption.go @@ -61,7 +61,6 @@ func NewQCommandLineOption(name string) *QCommandLineOption { // NewQCommandLineOption2 constructs a new QCommandLineOption object. func NewQCommandLineOption2(names []string) *QCommandLineOption { - // For the C ABI, malloc a C array of structs names_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(names)))) defer C.free(unsafe.Pointer(names_CArray)) for i := range names { @@ -93,7 +92,6 @@ func NewQCommandLineOption3(name string, description string) *QCommandLineOption // NewQCommandLineOption4 constructs a new QCommandLineOption object. func NewQCommandLineOption4(names []string, description string) *QCommandLineOption { - // For the C ABI, malloc a C array of structs names_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(names)))) defer C.free(unsafe.Pointer(names_CArray)) for i := range names { @@ -161,7 +159,6 @@ func NewQCommandLineOption7(name string, description string, valueName string, d // NewQCommandLineOption8 constructs a new QCommandLineOption object. func NewQCommandLineOption8(names []string, description string, valueName string) *QCommandLineOption { - // For the C ABI, malloc a C array of structs names_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(names)))) defer C.free(unsafe.Pointer(names_CArray)) for i := range names { @@ -187,7 +184,6 @@ func NewQCommandLineOption8(names []string, description string, valueName string // NewQCommandLineOption9 constructs a new QCommandLineOption object. func NewQCommandLineOption9(names []string, description string, valueName string, defaultValue string) *QCommandLineOption { - // For the C ABI, malloc a C array of structs names_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(names)))) defer C.free(unsafe.Pointer(names_CArray)) for i := range names { @@ -276,7 +272,6 @@ func (this *QCommandLineOption) SetDefaultValue(defaultValue string) { } func (this *QCommandLineOption) SetDefaultValues(defaultValues []string) { - // For the C ABI, malloc a C array of structs defaultValues_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(defaultValues)))) defer C.free(unsafe.Pointer(defaultValues_CArray)) for i := range defaultValues { diff --git a/qt6/gen_qcommandlineparser.go b/qt6/gen_qcommandlineparser.go index d50a2db7..3a22818c 100644 --- a/qt6/gen_qcommandlineparser.go +++ b/qt6/gen_qcommandlineparser.go @@ -84,7 +84,6 @@ func (this *QCommandLineParser) AddOption(commandLineOption *QCommandLineOption) } func (this *QCommandLineParser) AddOptions(options []QCommandLineOption) bool { - // For the C ABI, malloc a C array of raw pointers options_CArray := (*[0xffff]*C.QCommandLineOption)(C.malloc(C.size_t(8 * len(options)))) defer C.free(unsafe.Pointer(options_CArray)) for i := range options { @@ -141,7 +140,6 @@ func (this *QCommandLineParser) ClearPositionalArguments() { } func (this *QCommandLineParser) Process(arguments []string) { - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -161,7 +159,6 @@ func (this *QCommandLineParser) ProcessWithApp(app *QCoreApplication) { } func (this *QCommandLineParser) Parse(arguments []string) bool { - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { diff --git a/qt6/gen_qcompleter.go b/qt6/gen_qcompleter.go index 3a394b38..f63fd818 100644 --- a/qt6/gen_qcompleter.go +++ b/qt6/gen_qcompleter.go @@ -74,7 +74,6 @@ func NewQCompleter2(model *QAbstractItemModel) *QCompleter { // NewQCompleter3 constructs a new QCompleter object. func NewQCompleter3(completions []string) *QCompleter { - // For the C ABI, malloc a C array of structs completions_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(completions)))) defer C.free(unsafe.Pointer(completions_CArray)) for i := range completions { @@ -104,7 +103,6 @@ func NewQCompleter5(model *QAbstractItemModel, parent *QObject) *QCompleter { // NewQCompleter6 constructs a new QCompleter object. func NewQCompleter6(completions []string, parent *QObject) *QCompleter { - // For the C ABI, malloc a C array of structs completions_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(completions)))) defer C.free(unsafe.Pointer(completions_CArray)) for i := range completions { diff --git a/qt6/gen_qconcatenatetablesproxymodel.go b/qt6/gen_qconcatenatetablesproxymodel.go index c521dafe..703b1724 100644 --- a/qt6/gen_qconcatenatetablesproxymodel.go +++ b/qt6/gen_qconcatenatetablesproxymodel.go @@ -166,7 +166,6 @@ func (this *QConcatenateTablesProxyModel) MimeTypes() []string { } func (this *QConcatenateTablesProxyModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { diff --git a/qt6/gen_qcoreapplication.go b/qt6/gen_qcoreapplication.go index a0ea43a3..4b546491 100644 --- a/qt6/gen_qcoreapplication.go +++ b/qt6/gen_qcoreapplication.go @@ -256,7 +256,6 @@ func QCoreApplication_ApplicationPid() int64 { } func QCoreApplication_SetLibraryPaths(libraryPaths []string) { - // For the C ABI, malloc a C array of structs libraryPaths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(libraryPaths)))) defer C.free(unsafe.Pointer(libraryPaths_CArray)) for i := range libraryPaths { diff --git a/qt6/gen_qdir.go b/qt6/gen_qdir.go index a9383071..e1e2b892 100644 --- a/qt6/gen_qdir.go +++ b/qt6/gen_qdir.go @@ -190,7 +190,6 @@ func QDir_SetSearchPaths(prefix string, searchPaths []string) { prefix_ms.data = C.CString(prefix) prefix_ms.len = C.size_t(len(prefix)) defer C.free(unsafe.Pointer(prefix_ms.data)) - // For the C ABI, malloc a C array of structs searchPaths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(searchPaths)))) defer C.free(unsafe.Pointer(searchPaths_CArray)) for i := range searchPaths { @@ -324,7 +323,6 @@ func (this *QDir) NameFilters() []string { } func (this *QDir) SetNameFilters(nameFilters []string) { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -403,7 +401,6 @@ func (this *QDir) EntryList() []string { } func (this *QDir) EntryListWithNameFilters(nameFilters []string) []string { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -443,7 +440,6 @@ func (this *QDir) EntryInfoList() []QFileInfo { } func (this *QDir) EntryInfoListWithNameFilters(nameFilters []string) []QFileInfo { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -681,7 +677,6 @@ func QDir_TempPath() string { } func QDir_Match(filters []string, fileName string) bool { - // For the C ABI, malloc a C array of structs filters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(filters)))) defer C.free(unsafe.Pointer(filters_CArray)) for i := range filters { @@ -760,7 +755,6 @@ func (this *QDir) EntryList2(filters QDir__Filter, sort QDir__SortFlag) []string } func (this *QDir) EntryList22(nameFilters []string, filters QDir__Filter) []string { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -786,7 +780,6 @@ func (this *QDir) EntryList22(nameFilters []string, filters QDir__Filter) []stri } func (this *QDir) EntryList3(nameFilters []string, filters QDir__Filter, sort QDir__SortFlag) []string { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -840,7 +833,6 @@ func (this *QDir) EntryInfoList2(filters QDir__Filter, sort QDir__SortFlag) []QF } func (this *QDir) EntryInfoList22(nameFilters []string, filters QDir__Filter) []QFileInfo { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -866,7 +858,6 @@ func (this *QDir) EntryInfoList22(nameFilters []string, filters QDir__Filter) [] } func (this *QDir) EntryInfoList3(nameFilters []string, filters QDir__Filter, sort QDir__SortFlag) []QFileInfo { - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { diff --git a/qt6/gen_qdiriterator.go b/qt6/gen_qdiriterator.go index cbaaf308..3d999d17 100644 --- a/qt6/gen_qdiriterator.go +++ b/qt6/gen_qdiriterator.go @@ -82,7 +82,6 @@ func NewQDirIterator4(path string, nameFilters []string) *QDirIterator { path_ms.data = C.CString(path) path_ms.len = C.size_t(len(path)) defer C.free(unsafe.Pointer(path_ms.data)) - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -130,7 +129,6 @@ func NewQDirIterator8(path string, nameFilters []string, filters QDir__Filter) * path_ms.data = C.CString(path) path_ms.len = C.size_t(len(path)) defer C.free(unsafe.Pointer(path_ms.data)) - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { @@ -152,7 +150,6 @@ func NewQDirIterator9(path string, nameFilters []string, filters QDir__Filter, f path_ms.data = C.CString(path) path_ms.len = C.size_t(len(path)) defer C.free(unsafe.Pointer(path_ms.data)) - // For the C ABI, malloc a C array of structs nameFilters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(nameFilters)))) defer C.free(unsafe.Pointer(nameFilters_CArray)) for i := range nameFilters { diff --git a/qt6/gen_qevent.go b/qt6/gen_qevent.go index 90acfa45..a8945d3f 100644 --- a/qt6/gen_qevent.go +++ b/qt6/gen_qevent.go @@ -180,7 +180,6 @@ func NewQPointerEvent2(typeVal QEvent__Type, dev *QPointingDevice, modifiers Key // NewQPointerEvent3 constructs a new QPointerEvent object. func NewQPointerEvent3(typeVal QEvent__Type, dev *QPointingDevice, modifiers KeyboardModifier, points []QEventPoint) *QPointerEvent { - // For the C ABI, malloc a C array of raw pointers points_CArray := (*[0xffff]*C.QEventPoint)(C.malloc(C.size_t(8 * len(points)))) defer C.free(unsafe.Pointer(points_CArray)) for i := range points { @@ -2045,7 +2044,6 @@ func NewQInputMethodEvent2(preeditText string, attributes []QInputMethodEvent__A preeditText_ms.data = C.CString(preeditText) preeditText_ms.len = C.size_t(len(preeditText)) defer C.free(unsafe.Pointer(preeditText_ms.data)) - // For the C ABI, malloc a C array of raw pointers attributes_CArray := (*[0xffff]*C.QInputMethodEvent__Attribute)(C.malloc(C.size_t(8 * len(attributes)))) defer C.free(unsafe.Pointer(attributes_CArray)) for i := range attributes { @@ -3132,7 +3130,6 @@ func NewQTouchEvent4(eventType QEvent__Type, device *QPointingDevice, modifiers // NewQTouchEvent5 constructs a new QTouchEvent object. func NewQTouchEvent5(eventType QEvent__Type, device *QPointingDevice, modifiers KeyboardModifier, touchPoints []QEventPoint) *QTouchEvent { - // For the C ABI, malloc a C array of raw pointers touchPoints_CArray := (*[0xffff]*C.QEventPoint)(C.malloc(C.size_t(8 * len(touchPoints)))) defer C.free(unsafe.Pointer(touchPoints_CArray)) for i := range touchPoints { @@ -3146,7 +3143,6 @@ func NewQTouchEvent5(eventType QEvent__Type, device *QPointingDevice, modifiers // NewQTouchEvent6 constructs a new QTouchEvent object. func NewQTouchEvent6(eventType QEvent__Type, device *QPointingDevice, modifiers KeyboardModifier, touchPointStates QEventPoint__State, touchPoints []QEventPoint) *QTouchEvent { - // For the C ABI, malloc a C array of raw pointers touchPoints_CArray := (*[0xffff]*C.QEventPoint)(C.malloc(C.size_t(8 * len(touchPoints)))) defer C.free(unsafe.Pointer(touchPoints_CArray)) for i := range touchPoints { diff --git a/qt6/gen_qfiledialog.go b/qt6/gen_qfiledialog.go index ecf18200..5c4e0e7b 100644 --- a/qt6/gen_qfiledialog.go +++ b/qt6/gen_qfiledialog.go @@ -247,7 +247,6 @@ func (this *QFileDialog) SetNameFilter(filter string) { } func (this *QFileDialog) SetNameFilters(filters []string) { - // For the C ABI, malloc a C array of structs filters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(filters)))) defer C.free(unsafe.Pointer(filters_CArray)) for i := range filters { @@ -299,7 +298,6 @@ func (this *QFileDialog) SelectedNameFilter() string { } func (this *QFileDialog) SetMimeTypeFilters(filters []string) { - // For the C ABI, malloc a C array of structs filters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(filters)))) defer C.free(unsafe.Pointer(filters_CArray)) for i := range filters { @@ -369,7 +367,6 @@ func (this *QFileDialog) AcceptMode() QFileDialog__AcceptMode { } func (this *QFileDialog) SetSidebarUrls(urls []QUrl) { - // For the C ABI, malloc a C array of raw pointers urls_CArray := (*[0xffff]*C.QUrl)(C.malloc(C.size_t(8 * len(urls)))) defer C.free(unsafe.Pointer(urls_CArray)) for i := range urls { @@ -424,7 +421,6 @@ func (this *QFileDialog) DefaultSuffix() string { } func (this *QFileDialog) SetHistory(paths []string) { - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { @@ -485,7 +481,6 @@ func (this *QFileDialog) LabelText(label QFileDialog__DialogLabel) string { } func (this *QFileDialog) SetSupportedSchemes(schemes []string) { - // For the C ABI, malloc a C array of structs schemes_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(schemes)))) defer C.free(unsafe.Pointer(schemes_CArray)) for i := range schemes { @@ -570,7 +565,6 @@ func miqt_exec_callback_QFileDialog_FileSelected(cb C.intptr_t, file C.struct_mi } func (this *QFileDialog) FilesSelected(files []string) { - // For the C ABI, malloc a C array of structs files_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(files)))) defer C.free(unsafe.Pointer(files_CArray)) for i := range files { @@ -686,7 +680,6 @@ func miqt_exec_callback_QFileDialog_UrlSelected(cb C.intptr_t, url *C.QUrl) { } func (this *QFileDialog) UrlsSelected(urls []QUrl) { - // For the C ABI, malloc a C array of raw pointers urls_CArray := (*[0xffff]*C.QUrl)(C.malloc(C.size_t(8 * len(urls)))) defer C.free(unsafe.Pointer(urls_CArray)) for i := range urls { @@ -1182,7 +1175,6 @@ func QFileDialog_GetExistingDirectoryUrl5(parent *QWidget, caption string, dir * caption_ms.data = C.CString(caption) caption_ms.len = C.size_t(len(caption)) defer C.free(unsafe.Pointer(caption_ms.data)) - // For the C ABI, malloc a C array of structs supportedSchemes_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(supportedSchemes)))) defer C.free(unsafe.Pointer(supportedSchemes_CArray)) for i := range supportedSchemes { diff --git a/qt6/gen_qfileselector.go b/qt6/gen_qfileselector.go index 8811d8b3..eaaf0943 100644 --- a/qt6/gen_qfileselector.go +++ b/qt6/gen_qfileselector.go @@ -107,7 +107,6 @@ func (this *QFileSelector) ExtraSelectors() []string { } func (this *QFileSelector) SetExtraSelectors(list []string) { - // For the C ABI, malloc a C array of structs list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt6/gen_qfilesystemmodel.go b/qt6/gen_qfilesystemmodel.go index 6435bfb5..78e4a4a6 100644 --- a/qt6/gen_qfilesystemmodel.go +++ b/qt6/gen_qfilesystemmodel.go @@ -289,7 +289,6 @@ func (this *QFileSystemModel) MimeTypes() []string { } func (this *QFileSystemModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { @@ -374,7 +373,6 @@ func (this *QFileSystemModel) NameFilterDisables() bool { } func (this *QFileSystemModel) SetNameFilters(filters []string) { - // For the C ABI, malloc a C array of structs filters_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(filters)))) defer C.free(unsafe.Pointer(filters_CArray)) for i := range filters { diff --git a/qt6/gen_qfilesystemwatcher.go b/qt6/gen_qfilesystemwatcher.go index 2cdd6c19..fef81b3a 100644 --- a/qt6/gen_qfilesystemwatcher.go +++ b/qt6/gen_qfilesystemwatcher.go @@ -51,7 +51,6 @@ func NewQFileSystemWatcher() *QFileSystemWatcher { // NewQFileSystemWatcher2 constructs a new QFileSystemWatcher object. func NewQFileSystemWatcher2(paths []string) *QFileSystemWatcher { - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { @@ -75,7 +74,6 @@ func NewQFileSystemWatcher3(parent *QObject) *QFileSystemWatcher { // NewQFileSystemWatcher4 constructs a new QFileSystemWatcher object. func NewQFileSystemWatcher4(paths []string, parent *QObject) *QFileSystemWatcher { - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { @@ -119,7 +117,6 @@ func (this *QFileSystemWatcher) AddPath(file string) bool { } func (this *QFileSystemWatcher) AddPaths(files []string) []string { - // For the C ABI, malloc a C array of structs files_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(files)))) defer C.free(unsafe.Pointer(files_CArray)) for i := range files { @@ -153,7 +150,6 @@ func (this *QFileSystemWatcher) RemovePath(file string) bool { } func (this *QFileSystemWatcher) RemovePaths(files []string) []string { - // For the C ABI, malloc a C array of structs files_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(files)))) defer C.free(unsafe.Pointer(files_CArray)) for i := range files { diff --git a/qt6/gen_qfont.go b/qt6/gen_qfont.go index 46f68bc4..f7fdc429 100644 --- a/qt6/gen_qfont.go +++ b/qt6/gen_qfont.go @@ -183,7 +183,6 @@ func NewQFont2(family string) *QFont { // NewQFont3 constructs a new QFont object. func NewQFont3(families []string) *QFont { - // For the C ABI, malloc a C array of structs families_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(families)))) defer C.free(unsafe.Pointer(families_CArray)) for i := range families { @@ -243,7 +242,6 @@ func NewQFont8(family string, pointSize int, weight int, italic bool) *QFont { // NewQFont9 constructs a new QFont object. func NewQFont9(families []string, pointSize int) *QFont { - // For the C ABI, malloc a C array of structs families_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(families)))) defer C.free(unsafe.Pointer(families_CArray)) for i := range families { @@ -261,7 +259,6 @@ func NewQFont9(families []string, pointSize int) *QFont { // NewQFont10 constructs a new QFont object. func NewQFont10(families []string, pointSize int, weight int) *QFont { - // For the C ABI, malloc a C array of structs families_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(families)))) defer C.free(unsafe.Pointer(families_CArray)) for i := range families { @@ -279,7 +276,6 @@ func NewQFont10(families []string, pointSize int, weight int) *QFont { // NewQFont11 constructs a new QFont object. func NewQFont11(families []string, pointSize int, weight int, italic bool) *QFont { - // For the C ABI, malloc a C array of structs families_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(families)))) defer C.free(unsafe.Pointer(families_CArray)) for i := range families { @@ -329,7 +325,6 @@ func (this *QFont) Families() []string { } func (this *QFont) SetFamilies(families []string) { - // For the C ABI, malloc a C array of structs families_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(families)))) defer C.free(unsafe.Pointer(families_CArray)) for i := range families { @@ -621,7 +616,6 @@ func QFont_InsertSubstitutions(param1 string, param2 []string) { param1_ms.data = C.CString(param1) param1_ms.len = C.size_t(len(param1)) defer C.free(unsafe.Pointer(param1_ms.data)) - // For the C ABI, malloc a C array of structs param2_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(param2)))) defer C.free(unsafe.Pointer(param2_CArray)) for i := range param2 { diff --git a/qt6/gen_qgesture.go b/qt6/gen_qgesture.go index c57517e3..5d55ef57 100644 --- a/qt6/gen_qgesture.go +++ b/qt6/gen_qgesture.go @@ -867,7 +867,6 @@ func UnsafeNewQGestureEvent(h unsafe.Pointer) *QGestureEvent { // NewQGestureEvent constructs a new QGestureEvent object. func NewQGestureEvent(gestures []*QGesture) *QGestureEvent { - // For the C ABI, malloc a C array of raw pointers gestures_CArray := (*[0xffff]*C.QGesture)(C.malloc(C.size_t(8 * len(gestures)))) defer C.free(unsafe.Pointer(gestures_CArray)) for i := range gestures { diff --git a/qt6/gen_qglyphrun.go b/qt6/gen_qglyphrun.go index 9e6458c8..dd68e214 100644 --- a/qt6/gen_qglyphrun.go +++ b/qt6/gen_qglyphrun.go @@ -99,7 +99,6 @@ func (this *QGlyphRun) GlyphIndexes() []uint { } func (this *QGlyphRun) SetGlyphIndexes(glyphIndexes []uint) { - // For the C ABI, malloc a C array of raw pointers glyphIndexes_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(glyphIndexes)))) defer C.free(unsafe.Pointer(glyphIndexes_CArray)) for i := range glyphIndexes { @@ -125,7 +124,6 @@ func (this *QGlyphRun) Positions() []QPointF { } func (this *QGlyphRun) SetPositions(positions []QPointF) { - // For the C ABI, malloc a C array of raw pointers positions_CArray := (*[0xffff]*C.QPointF)(C.malloc(C.size_t(8 * len(positions)))) defer C.free(unsafe.Pointer(positions_CArray)) for i := range positions { diff --git a/qt6/gen_qgraphicsitem.go b/qt6/gen_qgraphicsitem.go index 2265161c..cdd816df 100644 --- a/qt6/gen_qgraphicsitem.go +++ b/qt6/gen_qgraphicsitem.go @@ -602,7 +602,6 @@ func (this *QGraphicsItem) Transformations() []*QGraphicsTransform { } func (this *QGraphicsItem) SetTransformations(transformations []*QGraphicsTransform) { - // For the C ABI, malloc a C array of raw pointers transformations_CArray := (*[0xffff]*C.QGraphicsTransform)(C.malloc(C.size_t(8 * len(transformations)))) defer C.free(unsafe.Pointer(transformations_CArray)) for i := range transformations { diff --git a/qt6/gen_qgraphicsscene.go b/qt6/gen_qgraphicsscene.go index 6173be95..2b9266bc 100644 --- a/qt6/gen_qgraphicsscene.go +++ b/qt6/gen_qgraphicsscene.go @@ -266,7 +266,6 @@ func (this *QGraphicsScene) SetSelectionAreaWithPath(path *QPainterPath) { } func (this *QGraphicsScene) CreateItemGroup(items []*QGraphicsItem) *QGraphicsItemGroup { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QGraphicsItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -512,7 +511,6 @@ func (this *QGraphicsScene) Clear() { } func (this *QGraphicsScene) Changed(region []QRectF) { - // For the C ABI, malloc a C array of raw pointers region_CArray := (*[0xffff]*C.QRectF)(C.malloc(C.size_t(8 * len(region)))) defer C.free(unsafe.Pointer(region_CArray)) for i := range region { diff --git a/qt6/gen_qgraphicsview.go b/qt6/gen_qgraphicsview.go index 491b908f..12cd73ae 100644 --- a/qt6/gen_qgraphicsview.go +++ b/qt6/gen_qgraphicsview.go @@ -485,7 +485,6 @@ func (this *QGraphicsView) SetForegroundBrush(brush *QBrush) { } func (this *QGraphicsView) UpdateScene(rects []QRectF) { - // For the C ABI, malloc a C array of raw pointers rects_CArray := (*[0xffff]*C.QRectF)(C.malloc(C.size_t(8 * len(rects)))) defer C.free(unsafe.Pointer(rects_CArray)) for i := range rects { diff --git a/qt6/gen_qgraphicswidget.go b/qt6/gen_qgraphicswidget.go index 960a3ea4..b1eeb70a 100644 --- a/qt6/gen_qgraphicswidget.go +++ b/qt6/gen_qgraphicswidget.go @@ -290,7 +290,6 @@ func (this *QGraphicsWidget) AddAction(action *QAction) { } func (this *QGraphicsWidget) AddActions(actions []*QAction) { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { @@ -302,7 +301,6 @@ func (this *QGraphicsWidget) AddActions(actions []*QAction) { } func (this *QGraphicsWidget) InsertActions(before *QAction, actions []*QAction) { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { diff --git a/qt6/gen_qicon.go b/qt6/gen_qicon.go index c906a0ab..b31389b4 100644 --- a/qt6/gen_qicon.go +++ b/qt6/gen_qicon.go @@ -259,7 +259,6 @@ func QIcon_ThemeSearchPaths() []string { } func QIcon_SetThemeSearchPaths(searchpath []string) { - // For the C ABI, malloc a C array of structs searchpath_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(searchpath)))) defer C.free(unsafe.Pointer(searchpath_CArray)) for i := range searchpath { @@ -289,7 +288,6 @@ func QIcon_FallbackSearchPaths() []string { } func QIcon_SetFallbackSearchPaths(paths []string) { - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { diff --git a/qt6/gen_qimage.go b/qt6/gen_qimage.go index e80cd617..684b288e 100644 --- a/qt6/gen_qimage.go +++ b/qt6/gen_qimage.go @@ -220,7 +220,6 @@ func (this *QImage) ConvertToFormat(f QImage__Format) *QImage { } func (this *QImage) ConvertToFormat2(f QImage__Format, colorTable []uint) *QImage { - // For the C ABI, malloc a C array of raw pointers colorTable_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(colorTable)))) defer C.free(unsafe.Pointer(colorTable_CArray)) for i := range colorTable { @@ -401,7 +400,6 @@ func (this *QImage) ColorTable() []uint { } func (this *QImage) SetColorTable(colors []uint) { - // For the C ABI, malloc a C array of raw pointers colors_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(colors)))) defer C.free(unsafe.Pointer(colors_CArray)) for i := range colors { @@ -735,7 +733,6 @@ func (this *QImage) ConvertToFormat22(f QImage__Format, flags ImageConversionFla } func (this *QImage) ConvertToFormat3(f QImage__Format, colorTable []uint, flags ImageConversionFlag) *QImage { - // For the C ABI, malloc a C array of raw pointers colorTable_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(colorTable)))) defer C.free(unsafe.Pointer(colorTable_CArray)) for i := range colorTable { diff --git a/qt6/gen_qinputdialog.go b/qt6/gen_qinputdialog.go index e8bb3748..837f8432 100644 --- a/qt6/gen_qinputdialog.go +++ b/qt6/gen_qinputdialog.go @@ -168,7 +168,6 @@ func (this *QInputDialog) IsComboBoxEditable() bool { } func (this *QInputDialog) SetComboBoxItems(items []string) { - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -356,7 +355,6 @@ func QInputDialog_GetItem(parent *QWidget, title string, label string, items []s label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -746,7 +744,6 @@ func QInputDialog_GetItem5(parent *QWidget, title string, label string, items [] label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -773,7 +770,6 @@ func QInputDialog_GetItem6(parent *QWidget, title string, label string, items [] label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -800,7 +796,6 @@ func QInputDialog_GetItem7(parent *QWidget, title string, label string, items [] label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -827,7 +822,6 @@ func QInputDialog_GetItem8(parent *QWidget, title string, label string, items [] label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -854,7 +848,6 @@ func QInputDialog_GetItem9(parent *QWidget, title string, label string, items [] label_ms.data = C.CString(label) label_ms.len = C.size_t(len(label)) defer C.free(unsafe.Pointer(label_ms.data)) - // For the C ABI, malloc a C array of structs items_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { diff --git a/qt6/gen_qjsonarray.go b/qt6/gen_qjsonarray.go index 9079ad80..45e9d540 100644 --- a/qt6/gen_qjsonarray.go +++ b/qt6/gen_qjsonarray.go @@ -59,7 +59,6 @@ func (this *QJsonArray) OperatorAssign(other *QJsonArray) { } func QJsonArray_FromStringList(list []string) *QJsonArray { - // For the C ABI, malloc a C array of structs list_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt6/gen_qkeysequence.go b/qt6/gen_qkeysequence.go index 64882915..76d8a84c 100644 --- a/qt6/gen_qkeysequence.go +++ b/qt6/gen_qkeysequence.go @@ -264,7 +264,6 @@ func QKeySequence_ListFromString(str string) []QKeySequence { } func QKeySequence_ListToString(list []QKeySequence) string { - // For the C ABI, malloc a C array of raw pointers list_CArray := (*[0xffff]*C.QKeySequence)(C.malloc(C.size_t(8 * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { @@ -387,7 +386,6 @@ func QKeySequence_ListFromString2(str string, format QKeySequence__SequenceForma } func QKeySequence_ListToString2(list []QKeySequence, format QKeySequence__SequenceFormat) string { - // For the C ABI, malloc a C array of raw pointers list_CArray := (*[0xffff]*C.QKeySequence)(C.malloc(C.size_t(8 * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt6/gen_qlistview.go b/qt6/gen_qlistview.go index edaa6905..f78a4ffc 100644 --- a/qt6/gen_qlistview.go +++ b/qt6/gen_qlistview.go @@ -269,7 +269,6 @@ func (this *QListView) SetRootIndex(index *QModelIndex) { } func (this *QListView) IndexesMoved(indexes []QModelIndex) { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { diff --git a/qt6/gen_qlistwidget.go b/qt6/gen_qlistwidget.go index 8a7b9f25..ba212faf 100644 --- a/qt6/gen_qlistwidget.go +++ b/qt6/gen_qlistwidget.go @@ -436,7 +436,6 @@ func (this *QListWidget) InsertItem2(row int, label string) { } func (this *QListWidget) InsertItems(row int, labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { @@ -464,7 +463,6 @@ func (this *QListWidget) AddItemWithItem(item *QListWidgetItem) { } func (this *QListWidget) AddItems(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { diff --git a/qt6/gen_qlocale.go b/qt6/gen_qlocale.go index a72444b3..fcceb363 100644 --- a/qt6/gen_qlocale.go +++ b/qt6/gen_qlocale.go @@ -1738,7 +1738,6 @@ func (this *QLocale) QuoteString(str string) string { } func (this *QLocale) CreateSeparatedList(strl []string) string { - // For the C ABI, malloc a C array of structs strl_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strl)))) defer C.free(unsafe.Pointer(strl_CArray)) for i := range strl { diff --git a/qt6/gen_qmainwindow.go b/qt6/gen_qmainwindow.go index f466be88..b7ed1a06 100644 --- a/qt6/gen_qmainwindow.go +++ b/qt6/gen_qmainwindow.go @@ -287,7 +287,6 @@ func (this *QMainWindow) DockWidgetArea(dockwidget *QDockWidget) DockWidgetArea } func (this *QMainWindow) ResizeDocks(docks []*QDockWidget, sizes []int, orientation Orientation) { - // For the C ABI, malloc a C array of raw pointers docks_CArray := (*[0xffff]*C.QDockWidget)(C.malloc(C.size_t(8 * len(docks)))) defer C.free(unsafe.Pointer(docks_CArray)) for i := range docks { @@ -295,7 +294,6 @@ func (this *QMainWindow) ResizeDocks(docks []*QDockWidget, sizes []int, orientat } docks_ma := &C.struct_miqt_array{len: C.size_t(len(docks)), data: unsafe.Pointer(docks_CArray)} defer runtime.KeepAlive(unsafe.Pointer(docks_ma)) - // For the C ABI, malloc a C array of raw pointers sizes_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(sizes)))) defer C.free(unsafe.Pointer(sizes_CArray)) for i := range sizes { diff --git a/qt6/gen_qmenu.go b/qt6/gen_qmenu.go index 259dbd30..4674a7ae 100644 --- a/qt6/gen_qmenu.go +++ b/qt6/gen_qmenu.go @@ -220,7 +220,6 @@ func (this *QMenu) ExecWithPos(pos *QPoint) *QAction { } func QMenu_Exec2(actions []*QAction, pos *QPoint) *QAction { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { @@ -408,7 +407,6 @@ func (this *QMenu) Exec22(pos *QPoint, at *QAction) *QAction { } func QMenu_Exec3(actions []*QAction, pos *QPoint, at *QAction) *QAction { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { @@ -420,7 +418,6 @@ func QMenu_Exec3(actions []*QAction, pos *QPoint, at *QAction) *QAction { } func QMenu_Exec4(actions []*QAction, pos *QPoint, at *QAction, parent *QWidget) *QAction { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { diff --git a/qt6/gen_qmimedata.go b/qt6/gen_qmimedata.go index 81da5ce7..358386e0 100644 --- a/qt6/gen_qmimedata.go +++ b/qt6/gen_qmimedata.go @@ -83,7 +83,6 @@ func (this *QMimeData) Urls() []QUrl { } func (this *QMimeData) SetUrls(urls []QUrl) { - // For the C ABI, malloc a C array of raw pointers urls_CArray := (*[0xffff]*C.QUrl)(C.malloc(C.size_t(8 * len(urls)))) defer C.free(unsafe.Pointer(urls_CArray)) for i := range urls { diff --git a/qt6/gen_qpainter.go b/qt6/gen_qpainter.go index 39c3a7fd..4a53e780 100644 --- a/qt6/gen_qpainter.go +++ b/qt6/gen_qpainter.go @@ -446,7 +446,6 @@ func (this *QPainter) DrawLines(lines *QLineF, lineCount int) { } func (this *QPainter) DrawLinesWithLines(lines []QLineF) { - // For the C ABI, malloc a C array of raw pointers lines_CArray := (*[0xffff]*C.QLineF)(C.malloc(C.size_t(8 * len(lines)))) defer C.free(unsafe.Pointer(lines_CArray)) for i := range lines { @@ -462,7 +461,6 @@ func (this *QPainter) DrawLines2(pointPairs *QPointF, lineCount int) { } func (this *QPainter) DrawLinesWithPointPairs(pointPairs []QPointF) { - // For the C ABI, malloc a C array of raw pointers pointPairs_CArray := (*[0xffff]*C.QPointF)(C.malloc(C.size_t(8 * len(pointPairs)))) defer C.free(unsafe.Pointer(pointPairs_CArray)) for i := range pointPairs { @@ -478,7 +476,6 @@ func (this *QPainter) DrawLines3(lines *QLine, lineCount int) { } func (this *QPainter) DrawLines4(lines []QLine) { - // For the C ABI, malloc a C array of raw pointers lines_CArray := (*[0xffff]*C.QLine)(C.malloc(C.size_t(8 * len(lines)))) defer C.free(unsafe.Pointer(lines_CArray)) for i := range lines { @@ -494,7 +491,6 @@ func (this *QPainter) DrawLines5(pointPairs *QPoint, lineCount int) { } func (this *QPainter) DrawLines6(pointPairs []QPoint) { - // For the C ABI, malloc a C array of raw pointers pointPairs_CArray := (*[0xffff]*C.QPoint)(C.malloc(C.size_t(8 * len(pointPairs)))) defer C.free(unsafe.Pointer(pointPairs_CArray)) for i := range pointPairs { @@ -522,7 +518,6 @@ func (this *QPainter) DrawRects(rects *QRectF, rectCount int) { } func (this *QPainter) DrawRectsWithRectangles(rectangles []QRectF) { - // For the C ABI, malloc a C array of raw pointers rectangles_CArray := (*[0xffff]*C.QRectF)(C.malloc(C.size_t(8 * len(rectangles)))) defer C.free(unsafe.Pointer(rectangles_CArray)) for i := range rectangles { @@ -538,7 +533,6 @@ func (this *QPainter) DrawRects2(rects *QRect, rectCount int) { } func (this *QPainter) DrawRects3(rectangles []QRect) { - // For the C ABI, malloc a C array of raw pointers rectangles_CArray := (*[0xffff]*C.QRect)(C.malloc(C.size_t(8 * len(rectangles)))) defer C.free(unsafe.Pointer(rectangles_CArray)) for i := range rectangles { diff --git a/qt6/gen_qpainterpath.go b/qt6/gen_qpainterpath.go index f102c016..87feb1e3 100644 --- a/qt6/gen_qpainterpath.go +++ b/qt6/gen_qpainterpath.go @@ -505,7 +505,6 @@ func (this *QPainterPathStroker) SetDashPattern(dashPattern PenStyle) { } func (this *QPainterPathStroker) SetDashPatternWithDashPattern(dashPattern []float64) { - // For the C ABI, malloc a C array of raw pointers dashPattern_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8 * len(dashPattern)))) defer C.free(unsafe.Pointer(dashPattern_CArray)) for i := range dashPattern { diff --git a/qt6/gen_qpen.go b/qt6/gen_qpen.go index 36d79196..acf80be9 100644 --- a/qt6/gen_qpen.go +++ b/qt6/gen_qpen.go @@ -118,7 +118,6 @@ func (this *QPen) DashPattern() []float64 { } func (this *QPen) SetDashPattern(pattern []float64) { - // For the C ABI, malloc a C array of raw pointers pattern_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8 * len(pattern)))) defer C.free(unsafe.Pointer(pattern_CArray)) for i := range pattern { diff --git a/qt6/gen_qplaintextedit.go b/qt6/gen_qplaintextedit.go index 07a78e6d..14429502 100644 --- a/qt6/gen_qplaintextedit.go +++ b/qt6/gen_qplaintextedit.go @@ -329,7 +329,6 @@ func (this *QPlainTextEdit) SetCursorWidth(width int) { } func (this *QPlainTextEdit) SetExtraSelections(selections []QTextEdit__ExtraSelection) { - // For the C ABI, malloc a C array of raw pointers selections_CArray := (*[0xffff]*C.QTextEdit__ExtraSelection)(C.malloc(C.size_t(8 * len(selections)))) defer C.free(unsafe.Pointer(selections_CArray)) for i := range selections { diff --git a/qt6/gen_qprocess.go b/qt6/gen_qprocess.go index aae24e32..bf237fd8 100644 --- a/qt6/gen_qprocess.go +++ b/qt6/gen_qprocess.go @@ -371,7 +371,6 @@ func (this *QProcess) Arguments() []string { } func (this *QProcess) SetArguments(arguments []string) { - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -462,7 +461,6 @@ func (this *QProcess) SetWorkingDirectory(dir string) { } func (this *QProcess) SetEnvironment(environment []string) { - // For the C ABI, malloc a C array of structs environment_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(environment)))) defer C.free(unsafe.Pointer(environment_CArray)) for i := range environment { @@ -676,7 +674,6 @@ func (this *QProcess) Start22(program string, arguments []string) { program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -696,7 +693,6 @@ func (this *QProcess) Start3(program string, arguments []string, mode QIODeviceB program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -768,7 +764,6 @@ func QProcess_Execute2(program string, arguments []string) int { program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -788,7 +783,6 @@ func QProcess_StartDetached2(program string, arguments []string) bool { program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -808,7 +802,6 @@ func QProcess_StartDetached3(program string, arguments []string, workingDirector program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { @@ -832,7 +825,6 @@ func QProcess_StartDetached4(program string, arguments []string, workingDirector program_ms.data = C.CString(program) program_ms.len = C.size_t(len(program)) defer C.free(unsafe.Pointer(program_ms.data)) - // For the C ABI, malloc a C array of structs arguments_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(arguments)))) defer C.free(unsafe.Pointer(arguments_CArray)) for i := range arguments { diff --git a/qt6/gen_qrawfont.go b/qt6/gen_qrawfont.go index c9b03b30..778224c4 100644 --- a/qt6/gen_qrawfont.go +++ b/qt6/gen_qrawfont.go @@ -165,7 +165,6 @@ func (this *QRawFont) GlyphIndexesForString(text string) []uint { } func (this *QRawFont) AdvancesForGlyphIndexes(glyphIndexes []uint) []QPointF { - // For the C ABI, malloc a C array of raw pointers glyphIndexes_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(glyphIndexes)))) defer C.free(unsafe.Pointer(glyphIndexes_CArray)) for i := range glyphIndexes { @@ -187,7 +186,6 @@ func (this *QRawFont) AdvancesForGlyphIndexes(glyphIndexes []uint) []QPointF { } func (this *QRawFont) AdvancesForGlyphIndexes2(glyphIndexes []uint, layoutFlags QRawFont__LayoutFlag) []QPointF { - // For the C ABI, malloc a C array of raw pointers glyphIndexes_CArray := (*[0xffff]C.uint)(C.malloc(C.size_t(8 * len(glyphIndexes)))) defer C.free(unsafe.Pointer(glyphIndexes_CArray)) for i := range glyphIndexes { diff --git a/qt6/gen_qscroller.go b/qt6/gen_qscroller.go index a7ee0d5c..3a0105aa 100644 --- a/qt6/gen_qscroller.go +++ b/qt6/gen_qscroller.go @@ -169,7 +169,6 @@ func (this *QScroller) ScrollerProperties() *QScrollerProperties { } func (this *QScroller) SetSnapPositionsX(positions []float64) { - // For the C ABI, malloc a C array of raw pointers positions_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8 * len(positions)))) defer C.free(unsafe.Pointer(positions_CArray)) for i := range positions { @@ -185,7 +184,6 @@ func (this *QScroller) SetSnapPositionsX2(first float64, interval float64) { } func (this *QScroller) SetSnapPositionsY(positions []float64) { - // For the C ABI, malloc a C array of raw pointers positions_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8 * len(positions)))) defer C.free(unsafe.Pointer(positions_CArray)) for i := range positions { diff --git a/qt6/gen_qsessionmanager.go b/qt6/gen_qsessionmanager.go index b46a8ed6..a6793598 100644 --- a/qt6/gen_qsessionmanager.go +++ b/qt6/gen_qsessionmanager.go @@ -110,7 +110,6 @@ func (this *QSessionManager) RestartHint() QSessionManager__RestartHint { } func (this *QSessionManager) SetRestartCommand(restartCommand []string) { - // For the C ABI, malloc a C array of structs restartCommand_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(restartCommand)))) defer C.free(unsafe.Pointer(restartCommand_CArray)) for i := range restartCommand { @@ -140,7 +139,6 @@ func (this *QSessionManager) RestartCommand() []string { } func (this *QSessionManager) SetDiscardCommand(discardCommand []string) { - // For the C ABI, malloc a C array of structs discardCommand_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(discardCommand)))) defer C.free(unsafe.Pointer(discardCommand_CArray)) for i := range discardCommand { @@ -186,7 +184,6 @@ func (this *QSessionManager) SetManagerProperty2(name string, value []string) { name_ms.data = C.CString(name) name_ms.len = C.size_t(len(name)) defer C.free(unsafe.Pointer(name_ms.data)) - // For the C ABI, malloc a C array of structs value_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(value)))) defer C.free(unsafe.Pointer(value_CArray)) for i := range value { diff --git a/qt6/gen_qshortcut.go b/qt6/gen_qshortcut.go index b32d2f20..4be44865 100644 --- a/qt6/gen_qshortcut.go +++ b/qt6/gen_qshortcut.go @@ -153,7 +153,6 @@ func (this *QShortcut) SetKeys(key QKeySequence__StandardKey) { } func (this *QShortcut) SetKeysWithKeys(keys []QKeySequence) { - // For the C ABI, malloc a C array of raw pointers keys_CArray := (*[0xffff]*C.QKeySequence)(C.malloc(C.size_t(8 * len(keys)))) defer C.free(unsafe.Pointer(keys_CArray)) for i := range keys { diff --git a/qt6/gen_qsortfilterproxymodel.go b/qt6/gen_qsortfilterproxymodel.go index 9aa911f6..f3aed713 100644 --- a/qt6/gen_qsortfilterproxymodel.go +++ b/qt6/gen_qsortfilterproxymodel.go @@ -268,7 +268,6 @@ func (this *QSortFilterProxyModel) SetHeaderData(section int, orientation Orient } func (this *QSortFilterProxyModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { diff --git a/qt6/gen_qsplitter.go b/qt6/gen_qsplitter.go index c2b5ef2f..9b507e6e 100644 --- a/qt6/gen_qsplitter.go +++ b/qt6/gen_qsplitter.go @@ -161,7 +161,6 @@ func (this *QSplitter) Sizes() []int { } func (this *QSplitter) SetSizes(list []int) { - // For the C ABI, malloc a C array of raw pointers list_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(list)))) defer C.free(unsafe.Pointer(list_CArray)) for i := range list { diff --git a/qt6/gen_qstandarditemmodel.go b/qt6/gen_qstandarditemmodel.go index 45755b27..6a2b0a8f 100644 --- a/qt6/gen_qstandarditemmodel.go +++ b/qt6/gen_qstandarditemmodel.go @@ -396,7 +396,6 @@ func (this *QStandardItem) SetChild2(row int, item *QStandardItem) { } func (this *QStandardItem) InsertRow(row int, items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -408,7 +407,6 @@ func (this *QStandardItem) InsertRow(row int, items []*QStandardItem) { } func (this *QStandardItem) InsertColumn(column int, items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -420,7 +418,6 @@ func (this *QStandardItem) InsertColumn(column int, items []*QStandardItem) { } func (this *QStandardItem) InsertRows(row int, items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -456,7 +453,6 @@ func (this *QStandardItem) RemoveColumns(column int, count int) { } func (this *QStandardItem) AppendRow(items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -468,7 +464,6 @@ func (this *QStandardItem) AppendRow(items []*QStandardItem) { } func (this *QStandardItem) AppendRows(items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -480,7 +475,6 @@ func (this *QStandardItem) AppendRows(items []*QStandardItem) { } func (this *QStandardItem) AppendColumn(items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -791,7 +785,6 @@ func (this *QStandardItemModel) SetVerticalHeaderItem(row int, item *QStandardIt } func (this *QStandardItemModel) SetHorizontalHeaderLabels(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { @@ -807,7 +800,6 @@ func (this *QStandardItemModel) SetHorizontalHeaderLabels(labels []string) { } func (this *QStandardItemModel) SetVerticalHeaderLabels(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { @@ -831,7 +823,6 @@ func (this *QStandardItemModel) SetColumnCount(columns int) { } func (this *QStandardItemModel) AppendRow(items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -843,7 +834,6 @@ func (this *QStandardItemModel) AppendRow(items []*QStandardItem) { } func (this *QStandardItemModel) AppendColumn(items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -859,7 +849,6 @@ func (this *QStandardItemModel) AppendRowWithItem(item *QStandardItem) { } func (this *QStandardItemModel) InsertRow(row int, items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -871,7 +860,6 @@ func (this *QStandardItemModel) InsertRow(row int, items []*QStandardItem) { } func (this *QStandardItemModel) InsertColumn(column int, items []*QStandardItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QStandardItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -974,7 +962,6 @@ func (this *QStandardItemModel) MimeTypes() []string { } func (this *QStandardItemModel) MimeData(indexes []QModelIndex) *QMimeData { - // For the C ABI, malloc a C array of raw pointers indexes_CArray := (*[0xffff]*C.QModelIndex)(C.malloc(C.size_t(8 * len(indexes)))) defer C.free(unsafe.Pointer(indexes_CArray)) for i := range indexes { diff --git a/qt6/gen_qstandardpaths.go b/qt6/gen_qstandardpaths.go index abc965a2..7881107c 100644 --- a/qt6/gen_qstandardpaths.go +++ b/qt6/gen_qstandardpaths.go @@ -185,7 +185,6 @@ func QStandardPaths_FindExecutable2(executableName string, paths []string) strin executableName_ms.data = C.CString(executableName) executableName_ms.len = C.size_t(len(executableName)) defer C.free(unsafe.Pointer(executableName_ms.data)) - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { diff --git a/qt6/gen_qstringlistmodel.go b/qt6/gen_qstringlistmodel.go index 276d0bf7..a5584e2b 100644 --- a/qt6/gen_qstringlistmodel.go +++ b/qt6/gen_qstringlistmodel.go @@ -51,7 +51,6 @@ func NewQStringListModel() *QStringListModel { // NewQStringListModel2 constructs a new QStringListModel object. func NewQStringListModel2(strings []string) *QStringListModel { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -75,7 +74,6 @@ func NewQStringListModel3(parent *QObject) *QStringListModel { // NewQStringListModel4 constructs a new QStringListModel object. func NewQStringListModel4(strings []string, parent *QObject) *QStringListModel { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -171,7 +169,6 @@ func (this *QStringListModel) StringList() []string { } func (this *QStringListModel) SetStringList(strings []string) { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { diff --git a/qt6/gen_qtablewidget.go b/qt6/gen_qtablewidget.go index cebb677a..d4d91c93 100644 --- a/qt6/gen_qtablewidget.go +++ b/qt6/gen_qtablewidget.go @@ -559,7 +559,6 @@ func (this *QTableWidget) TakeHorizontalHeaderItem(column int) *QTableWidgetItem } func (this *QTableWidget) SetVerticalHeaderLabels(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { @@ -575,7 +574,6 @@ func (this *QTableWidget) SetVerticalHeaderLabels(labels []string) { } func (this *QTableWidget) SetHorizontalHeaderLabels(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { diff --git a/qt6/gen_qtextbrowser.go b/qt6/gen_qtextbrowser.go index ffbb3e8e..2ff9feb4 100644 --- a/qt6/gen_qtextbrowser.go +++ b/qt6/gen_qtextbrowser.go @@ -101,7 +101,6 @@ func (this *QTextBrowser) SearchPaths() []string { } func (this *QTextBrowser) SetSearchPaths(paths []string) { - // For the C ABI, malloc a C array of structs paths_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(paths)))) defer C.free(unsafe.Pointer(paths_CArray)) for i := range paths { diff --git a/qt6/gen_qtextedit.go b/qt6/gen_qtextedit.go index e7a9c947..9b4031c1 100644 --- a/qt6/gen_qtextedit.go +++ b/qt6/gen_qtextedit.go @@ -401,7 +401,6 @@ func (this *QTextEdit) SetAcceptRichText(accept bool) { } func (this *QTextEdit) SetExtraSelections(selections []QTextEdit__ExtraSelection) { - // For the C ABI, malloc a C array of raw pointers selections_CArray := (*[0xffff]*C.QTextEdit__ExtraSelection)(C.malloc(C.size_t(8 * len(selections)))) defer C.free(unsafe.Pointer(selections_CArray)) for i := range selections { diff --git a/qt6/gen_qtextformat.go b/qt6/gen_qtextformat.go index be6de2a3..f725af69 100644 --- a/qt6/gen_qtextformat.go +++ b/qt6/gen_qtextformat.go @@ -496,7 +496,6 @@ func (this *QTextFormat) LengthVectorProperty(propertyId int) []QTextLength { } func (this *QTextFormat) SetProperty2(propertyId int, lengths []QTextLength) { - // For the C ABI, malloc a C array of raw pointers lengths_CArray := (*[0xffff]*C.QTextLength)(C.malloc(C.size_t(8 * len(lengths)))) defer C.free(unsafe.Pointer(lengths_CArray)) for i := range lengths { @@ -729,7 +728,6 @@ func (this *QTextCharFormat) FontFamily() string { } func (this *QTextCharFormat) SetFontFamilies(families []string) { - // For the C ABI, malloc a C array of structs families_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(families)))) defer C.free(unsafe.Pointer(families_CArray)) for i := range families { @@ -995,7 +993,6 @@ func (this *QTextCharFormat) AnchorHref() string { } func (this *QTextCharFormat) SetAnchorNames(names []string) { - // For the C ABI, malloc a C array of structs names_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(names)))) defer C.free(unsafe.Pointer(names_CArray)) for i := range names { @@ -1205,7 +1202,6 @@ func (this *QTextBlockFormat) PageBreakPolicy() QTextFormat__PageBreakFlag { } func (this *QTextBlockFormat) SetTabPositions(tabs []QTextOption__Tab) { - // For the C ABI, malloc a C array of raw pointers tabs_CArray := (*[0xffff]*C.QTextOption__Tab)(C.malloc(C.size_t(8 * len(tabs)))) defer C.free(unsafe.Pointer(tabs_CArray)) for i := range tabs { @@ -1685,7 +1681,6 @@ func (this *QTextTableFormat) SetColumns(columns int) { } func (this *QTextTableFormat) SetColumnWidthConstraints(constraints []QTextLength) { - // For the C ABI, malloc a C array of raw pointers constraints_CArray := (*[0xffff]*C.QTextLength)(C.malloc(C.size_t(8 * len(constraints)))) defer C.free(unsafe.Pointer(constraints_CArray)) for i := range constraints { diff --git a/qt6/gen_qtextlayout.go b/qt6/gen_qtextlayout.go index ad4a9f9a..36e151d9 100644 --- a/qt6/gen_qtextlayout.go +++ b/qt6/gen_qtextlayout.go @@ -270,7 +270,6 @@ func (this *QTextLayout) PreeditAreaText() string { } func (this *QTextLayout) SetFormats(overrides []QTextLayout__FormatRange) { - // For the C ABI, malloc a C array of raw pointers overrides_CArray := (*[0xffff]*C.QTextLayout__FormatRange)(C.malloc(C.size_t(8 * len(overrides)))) defer C.free(unsafe.Pointer(overrides_CArray)) for i := range overrides { @@ -437,7 +436,6 @@ func (this *QTextLayout) PreviousCursorPosition2(oldPos int, mode QTextLayout__C } func (this *QTextLayout) Draw3(p *QPainter, pos *QPointF, selections []QTextLayout__FormatRange) { - // For the C ABI, malloc a C array of raw pointers selections_CArray := (*[0xffff]*C.QTextLayout__FormatRange)(C.malloc(C.size_t(8 * len(selections)))) defer C.free(unsafe.Pointer(selections_CArray)) for i := range selections { @@ -449,7 +447,6 @@ func (this *QTextLayout) Draw3(p *QPainter, pos *QPointF, selections []QTextLayo } func (this *QTextLayout) Draw4(p *QPainter, pos *QPointF, selections []QTextLayout__FormatRange, clip *QRectF) { - // For the C ABI, malloc a C array of raw pointers selections_CArray := (*[0xffff]*C.QTextLayout__FormatRange)(C.malloc(C.size_t(8 * len(selections)))) defer C.free(unsafe.Pointer(selections_CArray)) for i := range selections { diff --git a/qt6/gen_qtextoption.go b/qt6/gen_qtextoption.go index 6d781db6..44cfe083 100644 --- a/qt6/gen_qtextoption.go +++ b/qt6/gen_qtextoption.go @@ -135,7 +135,6 @@ func (this *QTextOption) TabStopDistance() float64 { } func (this *QTextOption) SetTabArray(tabStops []float64) { - // For the C ABI, malloc a C array of raw pointers tabStops_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8 * len(tabStops)))) defer C.free(unsafe.Pointer(tabStops_CArray)) for i := range tabStops { @@ -158,7 +157,6 @@ func (this *QTextOption) TabArray() []float64 { } func (this *QTextOption) SetTabs(tabStops []QTextOption__Tab) { - // For the C ABI, malloc a C array of raw pointers tabStops_CArray := (*[0xffff]*C.QTextOption__Tab)(C.malloc(C.size_t(8 * len(tabStops)))) defer C.free(unsafe.Pointer(tabStops_CArray)) for i := range tabStops { diff --git a/qt6/gen_qtreeview.go b/qt6/gen_qtreeview.go index 8dbaa1a4..7a840e3f 100644 --- a/qt6/gen_qtreeview.go +++ b/qt6/gen_qtreeview.go @@ -406,7 +406,6 @@ func (this *QTreeView) ScrollTo2(index *QModelIndex, hint QAbstractItemView__Scr } func (this *QTreeView) DataChanged3(topLeft *QModelIndex, bottomRight *QModelIndex, roles []int) { - // For the C ABI, malloc a C array of raw pointers roles_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(roles)))) defer C.free(unsafe.Pointer(roles_CArray)) for i := range roles { diff --git a/qt6/gen_qtreewidget.go b/qt6/gen_qtreewidget.go index 79fce455..d7889788 100644 --- a/qt6/gen_qtreewidget.go +++ b/qt6/gen_qtreewidget.go @@ -66,7 +66,6 @@ func NewQTreeWidgetItem() *QTreeWidgetItem { // NewQTreeWidgetItem2 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem2(strings []string) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -90,7 +89,6 @@ func NewQTreeWidgetItem3(treeview *QTreeWidget) *QTreeWidgetItem { // NewQTreeWidgetItem4 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem4(treeview *QTreeWidget, strings []string) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -120,7 +118,6 @@ func NewQTreeWidgetItem6(parent *QTreeWidgetItem) *QTreeWidgetItem { // NewQTreeWidgetItem7 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem7(parent *QTreeWidgetItem, strings []string) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -156,7 +153,6 @@ func NewQTreeWidgetItem10(typeVal int) *QTreeWidgetItem { // NewQTreeWidgetItem11 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem11(strings []string, typeVal int) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -180,7 +176,6 @@ func NewQTreeWidgetItem12(treeview *QTreeWidget, typeVal int) *QTreeWidgetItem { // NewQTreeWidgetItem13 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem13(treeview *QTreeWidget, strings []string, typeVal int) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -210,7 +205,6 @@ func NewQTreeWidgetItem15(parent *QTreeWidgetItem, typeVal int) *QTreeWidgetItem // NewQTreeWidgetItem16 constructs a new QTreeWidgetItem object. func NewQTreeWidgetItem16(parent *QTreeWidgetItem, strings []string, typeVal int) *QTreeWidgetItem { - // For the C ABI, malloc a C array of structs strings_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(strings)))) defer C.free(unsafe.Pointer(strings_CArray)) for i := range strings { @@ -499,7 +493,6 @@ func (this *QTreeWidgetItem) TakeChild(index int) *QTreeWidgetItem { } func (this *QTreeWidgetItem) AddChildren(children []*QTreeWidgetItem) { - // For the C ABI, malloc a C array of raw pointers children_CArray := (*[0xffff]*C.QTreeWidgetItem)(C.malloc(C.size_t(8 * len(children)))) defer C.free(unsafe.Pointer(children_CArray)) for i := range children { @@ -511,7 +504,6 @@ func (this *QTreeWidgetItem) AddChildren(children []*QTreeWidgetItem) { } func (this *QTreeWidgetItem) InsertChildren(index int, children []*QTreeWidgetItem) { - // For the C ABI, malloc a C array of raw pointers children_CArray := (*[0xffff]*C.QTreeWidgetItem)(C.malloc(C.size_t(8 * len(children)))) defer C.free(unsafe.Pointer(children_CArray)) for i := range children { @@ -653,7 +645,6 @@ func (this *QTreeWidget) IndexOfTopLevelItem(item *QTreeWidgetItem) int { } func (this *QTreeWidget) InsertTopLevelItems(index int, items []*QTreeWidgetItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QTreeWidgetItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -665,7 +656,6 @@ func (this *QTreeWidget) InsertTopLevelItems(index int, items []*QTreeWidgetItem } func (this *QTreeWidget) AddTopLevelItems(items []*QTreeWidgetItem) { - // For the C ABI, malloc a C array of raw pointers items_CArray := (*[0xffff]*C.QTreeWidgetItem)(C.malloc(C.size_t(8 * len(items)))) defer C.free(unsafe.Pointer(items_CArray)) for i := range items { @@ -685,7 +675,6 @@ func (this *QTreeWidget) SetHeaderItem(item *QTreeWidgetItem) { } func (this *QTreeWidget) SetHeaderLabels(labels []string) { - // For the C ABI, malloc a C array of structs labels_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(labels)))) defer C.free(unsafe.Pointer(labels_CArray)) for i := range labels { diff --git a/qt6/gen_qurl.go b/qt6/gen_qurl.go index 65e9c945..07a4ddfe 100644 --- a/qt6/gen_qurl.go +++ b/qt6/gen_qurl.go @@ -495,7 +495,6 @@ func QUrl_IdnWhitelist() []string { } func QUrl_ToStringList(uris []QUrl) []string { - // For the C ABI, malloc a C array of raw pointers uris_CArray := (*[0xffff]*C.QUrl)(C.malloc(C.size_t(8 * len(uris)))) defer C.free(unsafe.Pointer(uris_CArray)) for i := range uris { @@ -517,7 +516,6 @@ func QUrl_ToStringList(uris []QUrl) []string { } func QUrl_FromStringList(uris []string) []QUrl { - // For the C ABI, malloc a C array of structs uris_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(uris)))) defer C.free(unsafe.Pointer(uris_CArray)) for i := range uris { @@ -543,7 +541,6 @@ func QUrl_FromStringList(uris []string) []QUrl { } func QUrl_SetIdnWhitelist(idnWhitelist []string) { - // For the C ABI, malloc a C array of structs idnWhitelist_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(idnWhitelist)))) defer C.free(unsafe.Pointer(idnWhitelist_CArray)) for i := range idnWhitelist { @@ -790,7 +787,6 @@ func QUrl_ToAce2(domain string, options QUrl__AceProcessingOption) []byte { } func QUrl_FromStringList2(uris []string, mode QUrl__ParsingMode) []QUrl { - // For the C ABI, malloc a C array of structs uris_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(uris)))) defer C.free(unsafe.Pointer(uris_CArray)) for i := range uris { diff --git a/qt6/gen_qvariant.go b/qt6/gen_qvariant.go index d498c60a..bbab9519 100644 --- a/qt6/gen_qvariant.go +++ b/qt6/gen_qvariant.go @@ -202,7 +202,6 @@ func NewQVariant14(stringVal string) *QVariant { // NewQVariant15 constructs a new QVariant object. func NewQVariant15(stringlist []string) *QVariant { - // For the C ABI, malloc a C array of structs stringlist_CArray := (*[0xffff]C.struct_miqt_string)(C.malloc(C.size_t(int(unsafe.Sizeof(C.struct_miqt_string{})) * len(stringlist)))) defer C.free(unsafe.Pointer(stringlist_CArray)) for i := range stringlist { diff --git a/qt6/gen_qversionnumber.go b/qt6/gen_qversionnumber.go index 1ba2d1c1..02b5c98c 100644 --- a/qt6/gen_qversionnumber.go +++ b/qt6/gen_qversionnumber.go @@ -50,7 +50,6 @@ func NewQVersionNumber() *QVersionNumber { // NewQVersionNumber2 constructs a new QVersionNumber object. func NewQVersionNumber2(seg []int) *QVersionNumber { - // For the C ABI, malloc a C array of raw pointers seg_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(seg)))) defer C.free(unsafe.Pointer(seg_CArray)) for i := range seg { diff --git a/qt6/gen_qwidget.go b/qt6/gen_qwidget.go index ae4e60e0..f64240e4 100644 --- a/qt6/gen_qwidget.go +++ b/qt6/gen_qwidget.go @@ -1223,7 +1223,6 @@ func (this *QWidget) AddAction(action *QAction) { } func (this *QWidget) AddActions(actions []*QAction) { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { @@ -1235,7 +1234,6 @@ func (this *QWidget) AddActions(actions []*QAction) { } func (this *QWidget) InsertActions(before *QAction, actions []*QAction) { - // For the C ABI, malloc a C array of raw pointers actions_CArray := (*[0xffff]*C.QAction)(C.malloc(C.size_t(8 * len(actions)))) defer C.free(unsafe.Pointer(actions_CArray)) for i := range actions { diff --git a/qt6/gen_qwizard.go b/qt6/gen_qwizard.go index 2587e78b..f73238f1 100644 --- a/qt6/gen_qwizard.go +++ b/qt6/gen_qwizard.go @@ -266,7 +266,6 @@ func (this *QWizard) ButtonText(which QWizard__WizardButton) string { } func (this *QWizard) SetButtonLayout(layout []QWizard__WizardButton) { - // For the C ABI, malloc a C array of raw pointers layout_CArray := (*[0xffff]C.int)(C.malloc(C.size_t(8 * len(layout)))) defer C.free(unsafe.Pointer(layout_CArray)) for i := range layout { diff --git a/qt6/gen_qxmlstream.go b/qt6/gen_qxmlstream.go index 122ca4e8..8be98901 100644 --- a/qt6/gen_qxmlstream.go +++ b/qt6/gen_qxmlstream.go @@ -701,7 +701,6 @@ func (this *QXmlStreamReader) AddExtraNamespaceDeclaration(extraNamespaceDeclara } func (this *QXmlStreamReader) AddExtraNamespaceDeclarations(extraNamespaceDeclaractions []QXmlStreamNamespaceDeclaration) { - // For the C ABI, malloc a C array of raw pointers extraNamespaceDeclaractions_CArray := (*[0xffff]*C.QXmlStreamNamespaceDeclaration)(C.malloc(C.size_t(8 * len(extraNamespaceDeclaractions)))) defer C.free(unsafe.Pointer(extraNamespaceDeclaractions_CArray)) for i := range extraNamespaceDeclaractions { diff --git a/qt6/qprintsupport/gen_qabstractprintdialog.go b/qt6/qprintsupport/gen_qabstractprintdialog.go index 7713de02..49367dd7 100644 --- a/qt6/qprintsupport/gen_qabstractprintdialog.go +++ b/qt6/qprintsupport/gen_qabstractprintdialog.go @@ -96,7 +96,6 @@ func QAbstractPrintDialog_Tr(s string) string { } func (this *QAbstractPrintDialog) SetOptionTabs(tabs []*qt6.QWidget) { - // For the C ABI, malloc a C array of raw pointers tabs_CArray := (*[0xffff]*C.QWidget)(C.malloc(C.size_t(8 * len(tabs)))) defer C.free(unsafe.Pointer(tabs_CArray)) for i := range tabs {