diff --git a/qt-extras/scintillaedit/gen_ScintillaEdit.cpp b/qt-extras/scintillaedit/gen_ScintillaEdit.cpp index cab09bc6..211f0688 100644 --- a/qt-extras/scintillaedit/gen_ScintillaEdit.cpp +++ b/qt-extras/scintillaedit/gen_ScintillaEdit.cpp @@ -255,12 +255,8 @@ Scintilla__Internal__Point* Scintilla__Internal__Point_OperatorMinus(const Scint return new Scintilla::Internal::Point(self->operator-(*other)); } -void Scintilla__Internal__Point_Delete(Scintilla__Internal__Point* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__Point_Delete(Scintilla__Internal__Point* self) { + delete self; } bool Scintilla__Internal__Interval_OperatorEqual(const Scintilla__Internal__Interval* self, Scintilla__Internal__Interval* other) { @@ -284,12 +280,8 @@ Scintilla__Internal__Interval* Scintilla__Internal__Interval_Offset(const Scinti return new Scintilla::Internal::Interval(self->Offset(static_cast(offset))); } -void Scintilla__Internal__Interval_Delete(Scintilla__Internal__Interval* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__Interval_Delete(Scintilla__Internal__Interval* self) { + delete self; } Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new() { @@ -378,12 +370,8 @@ bool Scintilla__Internal__PRectangle_Empty(const Scintilla__Internal__PRectangle return self->Empty(); } -void Scintilla__Internal__PRectangle_Delete(Scintilla__Internal__PRectangle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__PRectangle_Delete(Scintilla__Internal__PRectangle* self) { + delete self; } Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new() { @@ -494,12 +482,8 @@ Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_Grey2(unsigned return new Scintilla::Internal::ColourRGBA(Scintilla::Internal::ColourRGBA::Grey(static_cast(grey), static_cast(alpha))); } -void Scintilla__Internal__ColourRGBA_Delete(Scintilla__Internal__ColourRGBA* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__ColourRGBA_Delete(Scintilla__Internal__ColourRGBA* self) { + delete self; } Scintilla__Internal__Stroke* Scintilla__Internal__Stroke_new(Scintilla__Internal__ColourRGBA* colour_) { @@ -518,12 +502,8 @@ float Scintilla__Internal__Stroke_WidthF(const Scintilla__Internal__Stroke* self return self->WidthF(); } -void Scintilla__Internal__Stroke_Delete(Scintilla__Internal__Stroke* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__Stroke_Delete(Scintilla__Internal__Stroke* self) { + delete self; } Scintilla__Internal__Fill* Scintilla__Internal__Fill_new(Scintilla__Internal__ColourRGBA* colour_) { @@ -534,12 +514,8 @@ Scintilla__Internal__Fill* Scintilla__Internal__Fill_new2(Scintilla__Internal__F return new Scintilla::Internal::Fill(*param1); } -void Scintilla__Internal__Fill_Delete(Scintilla__Internal__Fill* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__Fill_Delete(Scintilla__Internal__Fill* self) { + delete self; } Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new(Scintilla__Internal__ColourRGBA* colourFill_, Scintilla__Internal__ColourRGBA* colourStroke_) { @@ -558,112 +534,60 @@ Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new4(Scintilla_ return new Scintilla::Internal::FillStroke(*colourBoth, static_cast(widthStroke_)); } -void Scintilla__Internal__FillStroke_Delete(Scintilla__Internal__FillStroke* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__FillStroke_Delete(Scintilla__Internal__FillStroke* self) { + delete self; } Scintilla__Internal__ColourStop* Scintilla__Internal__ColourStop_new(double position_, Scintilla__Internal__ColourRGBA* colour_) { return new Scintilla::Internal::ColourStop(static_cast(position_), *colour_); } -void Scintilla__Internal__ColourStop_Delete(Scintilla__Internal__ColourStop* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__ColourStop_Delete(Scintilla__Internal__ColourStop* self) { + delete self; } -void Scintilla__CharacterRange_Delete(Scintilla__CharacterRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__CharacterRange_Delete(Scintilla__CharacterRange* self) { + delete self; } -void Scintilla__CharacterRangeFull_Delete(Scintilla__CharacterRangeFull* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__CharacterRangeFull_Delete(Scintilla__CharacterRangeFull* self) { + delete self; } -void Scintilla__TextRange_Delete(Scintilla__TextRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__TextRange_Delete(Scintilla__TextRange* self) { + delete self; } -void Scintilla__TextRangeFull_Delete(Scintilla__TextRangeFull* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__TextRangeFull_Delete(Scintilla__TextRangeFull* self) { + delete self; } -void Scintilla__TextToFind_Delete(Scintilla__TextToFind* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__TextToFind_Delete(Scintilla__TextToFind* self) { + delete self; } -void Scintilla__TextToFindFull_Delete(Scintilla__TextToFindFull* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__TextToFindFull_Delete(Scintilla__TextToFindFull* self) { + delete self; } -void Scintilla__Rectangle_Delete(Scintilla__Rectangle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Rectangle_Delete(Scintilla__Rectangle* self) { + delete self; } -void Scintilla__RangeToFormat_Delete(Scintilla__RangeToFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__RangeToFormat_Delete(Scintilla__RangeToFormat* self) { + delete self; } -void Scintilla__RangeToFormatFull_Delete(Scintilla__RangeToFormatFull* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__RangeToFormatFull_Delete(Scintilla__RangeToFormatFull* self) { + delete self; } -void Scintilla__NotifyHeader_Delete(Scintilla__NotifyHeader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__NotifyHeader_Delete(Scintilla__NotifyHeader* self) { + delete self; } -void Scintilla__NotificationData_Delete(Scintilla__NotificationData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__NotificationData_Delete(Scintilla__NotificationData* self) { + delete self; } Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new(const char* faceName_) { @@ -702,24 +626,16 @@ Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new9(co return new Scintilla::Internal::FontParameters(faceName_, static_cast(size_), static_cast(weight_), italic_, static_cast(extraFontFlag_), static_cast(technology_), static_cast(characterSet_), localeName_, static_cast(stretch_)); } -void Scintilla__Internal__FontParameters_Delete(Scintilla__Internal__FontParameters* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__FontParameters_Delete(Scintilla__Internal__FontParameters* self) { + delete self; } Scintilla__Internal__Font* Scintilla__Internal__Font_new() { return new Scintilla::Internal::Font(); } -void Scintilla__Internal__Font_Delete(Scintilla__Internal__Font* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__Font_Delete(Scintilla__Internal__Font* self) { + delete self; } size_t Scintilla__Internal__IScreenLine_Length(const Scintilla__Internal__IScreenLine* self) { @@ -768,12 +684,8 @@ void Scintilla__Internal__IScreenLine_OperatorAssign(Scintilla__Internal__IScree self->operator=(*param1); } -void Scintilla__Internal__IScreenLine_Delete(Scintilla__Internal__IScreenLine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__IScreenLine_Delete(Scintilla__Internal__IScreenLine* self) { + delete self; } size_t Scintilla__Internal__IScreenLineLayout_PositionFromX(Scintilla__Internal__IScreenLineLayout* self, double xDistance, bool charPosition) { @@ -789,12 +701,8 @@ void Scintilla__Internal__IScreenLineLayout_OperatorAssign(Scintilla__Internal__ self->operator=(*param1); } -void Scintilla__Internal__IScreenLineLayout_Delete(Scintilla__Internal__IScreenLineLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__IScreenLineLayout_Delete(Scintilla__Internal__IScreenLineLayout* self) { + delete self; } Scintilla__Internal__SurfaceMode* Scintilla__Internal__SurfaceMode_new() { @@ -805,20 +713,16 @@ Scintilla__Internal__SurfaceMode* Scintilla__Internal__SurfaceMode_new2(int code return new Scintilla::Internal::SurfaceMode(static_cast(codePage_), bidiR2L_); } -void Scintilla__Internal__SurfaceMode_Delete(Scintilla__Internal__SurfaceMode* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__SurfaceMode_Delete(Scintilla__Internal__SurfaceMode* self) { + delete self; } -class MiqtVirtualScintillaInternalSurface : public virtual Scintilla::Internal::Surface { +class MiqtVirtualScintillaInternalSurface final : public Scintilla::Internal::Surface { public: MiqtVirtualScintillaInternalSurface(): Scintilla::Internal::Surface() {}; - virtual ~MiqtVirtualScintillaInternalSurface() = default; + virtual ~MiqtVirtualScintillaInternalSurface() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Init = 0; @@ -1625,12 +1529,8 @@ void Scintilla__Internal__Surface_override_virtual_FlushDrawing(void* self, intp dynamic_cast( (Scintilla__Internal__Surface*)(self) )->handle__FlushDrawing = slot; } -void Scintilla__Internal__Surface_Delete(Scintilla__Internal__Surface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__Surface_Delete(Scintilla__Internal__Surface* self) { + delete self; } Scintilla__Internal__Window* Scintilla__Internal__Window_new() { @@ -1694,24 +1594,16 @@ void Scintilla__Internal__Window_Show1(Scintilla__Internal__Window* self, bool s self->Show(show); } -void Scintilla__Internal__Window_Delete(Scintilla__Internal__Window* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__Window_Delete(Scintilla__Internal__Window* self) { + delete self; } Scintilla__Internal__ListBoxEvent* Scintilla__Internal__ListBoxEvent_new(int event_) { return new Scintilla::Internal::ListBoxEvent(static_cast(event_)); } -void Scintilla__Internal__ListBoxEvent_Delete(Scintilla__Internal__ListBoxEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__ListBoxEvent_Delete(Scintilla__Internal__ListBoxEvent* self) { + delete self; } void Scintilla__Internal__IListBoxDelegate_ListNotify(Scintilla__Internal__IListBoxDelegate* self, Scintilla__Internal__ListBoxEvent* plbe) { @@ -1722,28 +1614,20 @@ void Scintilla__Internal__IListBoxDelegate_OperatorAssign(Scintilla__Internal__I self->operator=(*param1); } -void Scintilla__Internal__IListBoxDelegate_Delete(Scintilla__Internal__IListBoxDelegate* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__IListBoxDelegate_Delete(Scintilla__Internal__IListBoxDelegate* self) { + delete self; } -void Scintilla__Internal__ListOptions_Delete(Scintilla__Internal__ListOptions* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__ListOptions_Delete(Scintilla__Internal__ListOptions* self) { + delete self; } -class MiqtVirtualScintillaInternalListBox : public virtual Scintilla::Internal::ListBox { +class MiqtVirtualScintillaInternalListBox final : public Scintilla::Internal::ListBox { public: MiqtVirtualScintillaInternalListBox(): Scintilla::Internal::ListBox() {}; - virtual ~MiqtVirtualScintillaInternalListBox() = default; + virtual ~MiqtVirtualScintillaInternalListBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFont = 0; @@ -2219,12 +2103,8 @@ void Scintilla__Internal__ListBox_override_virtual_SetOptions(void* self, intptr dynamic_cast( (Scintilla__Internal__ListBox*)(self) )->handle__SetOptions = slot; } -void Scintilla__Internal__ListBox_Delete(Scintilla__Internal__ListBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__ListBox_Delete(Scintilla__Internal__ListBox* self) { + delete self; } Scintilla__Internal__Menu* Scintilla__Internal__Menu_new() { @@ -2248,109 +2128,61 @@ void Scintilla__Internal__Menu_Show(Scintilla__Internal__Menu* self, Scintilla__ self->Show(*pt, *w); } -void Scintilla__Internal__Menu_Delete(Scintilla__Internal__Menu* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Scintilla__Internal__Menu_Delete(Scintilla__Internal__Menu* self) { + delete self; } -void Sci_CharacterRange_Delete(Sci_CharacterRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Sci_CharacterRange_Delete(Sci_CharacterRange* self) { + delete self; } -void Sci_CharacterRangeFull_Delete(Sci_CharacterRangeFull* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Sci_CharacterRangeFull_Delete(Sci_CharacterRangeFull* self) { + delete self; } -void Sci_TextRange_Delete(Sci_TextRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Sci_TextRange_Delete(Sci_TextRange* self) { + delete self; } -void Sci_TextRangeFull_Delete(Sci_TextRangeFull* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Sci_TextRangeFull_Delete(Sci_TextRangeFull* self) { + delete self; } -void Sci_TextToFind_Delete(Sci_TextToFind* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Sci_TextToFind_Delete(Sci_TextToFind* self) { + delete self; } -void Sci_TextToFindFull_Delete(Sci_TextToFindFull* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Sci_TextToFindFull_Delete(Sci_TextToFindFull* self) { + delete self; } -void Sci_Rectangle_Delete(Sci_Rectangle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Sci_Rectangle_Delete(Sci_Rectangle* self) { + delete self; } -void Sci_RangeToFormat_Delete(Sci_RangeToFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Sci_RangeToFormat_Delete(Sci_RangeToFormat* self) { + delete self; } -void Sci_RangeToFormatFull_Delete(Sci_RangeToFormatFull* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Sci_RangeToFormatFull_Delete(Sci_RangeToFormatFull* self) { + delete self; } -void Sci_NotifyHeader_Delete(Sci_NotifyHeader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Sci_NotifyHeader_Delete(Sci_NotifyHeader* self) { + delete self; } -void SCNotification_Delete(SCNotification* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void SCNotification_Delete(SCNotification* self) { + delete self; } -class MiqtVirtualScintillaEditBase : public virtual ScintillaEditBase { +class MiqtVirtualScintillaEditBase final : public ScintillaEditBase { public: MiqtVirtualScintillaEditBase(QWidget* parent): ScintillaEditBase(parent) {}; MiqtVirtualScintillaEditBase(): ScintillaEditBase() {}; - virtual ~MiqtVirtualScintillaEditBase() = default; + virtual ~MiqtVirtualScintillaEditBase() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Send = 0; @@ -3801,22 +3633,18 @@ QSize* ScintillaEditBase_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualScintillaEditBase*)(self) )->virtualbase_ViewportSizeHint(); } -void ScintillaEditBase_Delete(ScintillaEditBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void ScintillaEditBase_Delete(ScintillaEditBase* self) { + delete self; } -class MiqtVirtualScintillaDocument : public virtual ScintillaDocument { +class MiqtVirtualScintillaDocument final : public ScintillaDocument { public: MiqtVirtualScintillaDocument(): ScintillaDocument() {}; MiqtVirtualScintillaDocument(QObject* parent): ScintillaDocument(parent) {}; MiqtVirtualScintillaDocument(QObject* parent, void* pdoc_): ScintillaDocument(parent, pdoc_) {}; - virtual ~MiqtVirtualScintillaDocument() = default; + virtual ~MiqtVirtualScintillaDocument() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -4374,21 +4202,17 @@ void ScintillaDocument_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualScintillaDocument*)(self) )->virtualbase_DisconnectNotify(signal); } -void ScintillaDocument_Delete(ScintillaDocument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void ScintillaDocument_Delete(ScintillaDocument* self) { + delete self; } -class MiqtVirtualScintillaEdit : public virtual ScintillaEdit { +class MiqtVirtualScintillaEdit final : public ScintillaEdit { public: MiqtVirtualScintillaEdit(QWidget* parent): ScintillaEdit(parent) {}; MiqtVirtualScintillaEdit(): ScintillaEdit() {}; - virtual ~MiqtVirtualScintillaEdit() = default; + virtual ~MiqtVirtualScintillaEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Send = 0; @@ -8843,11 +8667,7 @@ void ScintillaEdit_virtualbase_ScrollContentsBy(void* self, int param1, int para ( (MiqtVirtualScintillaEdit*)(self) )->virtualbase_ScrollContentsBy(param1, param2); } -void ScintillaEdit_Delete(ScintillaEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void ScintillaEdit_Delete(ScintillaEdit* self) { + delete self; } diff --git a/qt-extras/scintillaedit/gen_ScintillaEdit.go b/qt-extras/scintillaedit/gen_ScintillaEdit.go index c4454f3a..77a63758 100644 --- a/qt-extras/scintillaedit/gen_ScintillaEdit.go +++ b/qt-extras/scintillaedit/gen_ScintillaEdit.go @@ -1799,7 +1799,7 @@ func (this *Scintilla__Internal__Point) OperatorMinus(other Scintilla__Internal_ // Delete this object from C++ memory. func (this *Scintilla__Internal__Point) Delete() { - C.Scintilla__Internal__Point_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__Point_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1868,7 +1868,7 @@ func (this *Scintilla__Internal__Interval) Offset(offset float64) *Scintilla__In // Delete this object from C++ memory. func (this *Scintilla__Internal__Interval) Delete() { - C.Scintilla__Internal__Interval_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__Interval_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2033,7 +2033,7 @@ func (this *Scintilla__Internal__PRectangle) Empty() bool { // Delete this object from C++ memory. func (this *Scintilla__Internal__PRectangle) Delete() { - C.Scintilla__Internal__PRectangle_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__PRectangle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2228,7 +2228,7 @@ func Scintilla__Internal__ColourRGBA_Grey2(grey uint, alpha uint) *Scintilla__In // Delete this object from C++ memory. func (this *Scintilla__Internal__ColourRGBA) Delete() { - C.Scintilla__Internal__ColourRGBA_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__ColourRGBA_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2303,7 +2303,7 @@ func (this *Scintilla__Internal__Stroke) WidthF() float32 { // Delete this object from C++ memory. func (this *Scintilla__Internal__Stroke) Delete() { - C.Scintilla__Internal__Stroke_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__Stroke_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2366,7 +2366,7 @@ func NewScintilla__Internal__Fill2(param1 *Scintilla__Internal__Fill) *Scintilla // Delete this object from C++ memory. func (this *Scintilla__Internal__Fill) Delete() { - C.Scintilla__Internal__Fill_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__Fill_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2445,7 +2445,7 @@ func NewScintilla__Internal__FillStroke4(colourBoth Scintilla__Internal__ColourR // Delete this object from C++ memory. func (this *Scintilla__Internal__FillStroke) Delete() { - C.Scintilla__Internal__FillStroke_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__FillStroke_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2500,7 +2500,7 @@ func NewScintilla__Internal__ColourStop(position_ float64, colour_ Scintilla__In // Delete this object from C++ memory. func (this *Scintilla__Internal__ColourStop) Delete() { - C.Scintilla__Internal__ColourStop_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__ColourStop_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2547,7 +2547,7 @@ func UnsafeNewScintilla__CharacterRange(h unsafe.Pointer) *Scintilla__CharacterR // Delete this object from C++ memory. func (this *Scintilla__CharacterRange) Delete() { - C.Scintilla__CharacterRange_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__CharacterRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2594,7 +2594,7 @@ func UnsafeNewScintilla__CharacterRangeFull(h unsafe.Pointer) *Scintilla__Charac // Delete this object from C++ memory. func (this *Scintilla__CharacterRangeFull) Delete() { - C.Scintilla__CharacterRangeFull_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__CharacterRangeFull_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2641,7 +2641,7 @@ func UnsafeNewScintilla__TextRange(h unsafe.Pointer) *Scintilla__TextRange { // Delete this object from C++ memory. func (this *Scintilla__TextRange) Delete() { - C.Scintilla__TextRange_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__TextRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2688,7 +2688,7 @@ func UnsafeNewScintilla__TextRangeFull(h unsafe.Pointer) *Scintilla__TextRangeFu // Delete this object from C++ memory. func (this *Scintilla__TextRangeFull) Delete() { - C.Scintilla__TextRangeFull_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__TextRangeFull_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2735,7 +2735,7 @@ func UnsafeNewScintilla__TextToFind(h unsafe.Pointer) *Scintilla__TextToFind { // Delete this object from C++ memory. func (this *Scintilla__TextToFind) Delete() { - C.Scintilla__TextToFind_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__TextToFind_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2782,7 +2782,7 @@ func UnsafeNewScintilla__TextToFindFull(h unsafe.Pointer) *Scintilla__TextToFind // Delete this object from C++ memory. func (this *Scintilla__TextToFindFull) Delete() { - C.Scintilla__TextToFindFull_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__TextToFindFull_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2829,7 +2829,7 @@ func UnsafeNewScintilla__Rectangle(h unsafe.Pointer) *Scintilla__Rectangle { // Delete this object from C++ memory. func (this *Scintilla__Rectangle) Delete() { - C.Scintilla__Rectangle_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Rectangle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2876,7 +2876,7 @@ func UnsafeNewScintilla__RangeToFormat(h unsafe.Pointer) *Scintilla__RangeToForm // Delete this object from C++ memory. func (this *Scintilla__RangeToFormat) Delete() { - C.Scintilla__RangeToFormat_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__RangeToFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2923,7 +2923,7 @@ func UnsafeNewScintilla__RangeToFormatFull(h unsafe.Pointer) *Scintilla__RangeTo // Delete this object from C++ memory. func (this *Scintilla__RangeToFormatFull) Delete() { - C.Scintilla__RangeToFormatFull_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__RangeToFormatFull_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2970,7 +2970,7 @@ func UnsafeNewScintilla__NotifyHeader(h unsafe.Pointer) *Scintilla__NotifyHeader // Delete this object from C++ memory. func (this *Scintilla__NotifyHeader) Delete() { - C.Scintilla__NotifyHeader_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__NotifyHeader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3017,7 +3017,7 @@ func UnsafeNewScintilla__NotificationData(h unsafe.Pointer) *Scintilla__Notifica // Delete this object from C++ memory. func (this *Scintilla__NotificationData) Delete() { - C.Scintilla__NotificationData_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__NotificationData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3158,7 +3158,7 @@ func NewScintilla__Internal__FontParameters9(faceName_ string, size_ float64, we // Delete this object from C++ memory. func (this *Scintilla__Internal__FontParameters) Delete() { - C.Scintilla__Internal__FontParameters_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__FontParameters_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3213,7 +3213,7 @@ func NewScintilla__Internal__Font() *Scintilla__Internal__Font { // Delete this object from C++ memory. func (this *Scintilla__Internal__Font) Delete() { - C.Scintilla__Internal__Font_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__Font_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3300,7 +3300,7 @@ func (this *Scintilla__Internal__IScreenLine) OperatorAssign(param1 *Scintilla__ // Delete this object from C++ memory. func (this *Scintilla__Internal__IScreenLine) Delete() { - C.Scintilla__Internal__IScreenLine_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__IScreenLine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3359,7 +3359,7 @@ func (this *Scintilla__Internal__IScreenLineLayout) OperatorAssign(param1 *Scint // Delete this object from C++ memory. func (this *Scintilla__Internal__IScreenLineLayout) Delete() { - C.Scintilla__Internal__IScreenLineLayout_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__IScreenLineLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3422,7 +3422,7 @@ func NewScintilla__Internal__SurfaceMode2(codePage_ int, bidiR2L_ bool) *Scintil // Delete this object from C++ memory. func (this *Scintilla__Internal__SurfaceMode) Delete() { - C.Scintilla__Internal__SurfaceMode_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__SurfaceMode_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4344,7 +4344,7 @@ func miqt_exec_callback_Scintilla__Internal__Surface_FlushDrawing(self *C.Scinti // Delete this object from C++ memory. func (this *Scintilla__Internal__Surface) Delete() { - C.Scintilla__Internal__Surface_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__Surface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4461,7 +4461,7 @@ func (this *Scintilla__Internal__Window) Show1(show bool) { // Delete this object from C++ memory. func (this *Scintilla__Internal__Window) Delete() { - C.Scintilla__Internal__Window_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__Window_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4516,7 +4516,7 @@ func NewScintilla__Internal__ListBoxEvent(event_ Scintilla__Internal__ListBoxEve // Delete this object from C++ memory. func (this *Scintilla__Internal__ListBoxEvent) Delete() { - C.Scintilla__Internal__ListBoxEvent_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__ListBoxEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4571,7 +4571,7 @@ func (this *Scintilla__Internal__IListBoxDelegate) OperatorAssign(param1 *Scinti // Delete this object from C++ memory. func (this *Scintilla__Internal__IListBoxDelegate) Delete() { - C.Scintilla__Internal__IListBoxDelegate_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__IListBoxDelegate_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4618,7 +4618,7 @@ func UnsafeNewScintilla__Internal__ListOptions(h unsafe.Pointer) *Scintilla__Int // Delete this object from C++ memory. func (this *Scintilla__Internal__ListOptions) Delete() { - C.Scintilla__Internal__ListOptions_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__ListOptions_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5166,7 +5166,7 @@ func miqt_exec_callback_Scintilla__Internal__ListBox_SetOptions(self *C.Scintill // Delete this object from C++ memory. func (this *Scintilla__Internal__ListBox) Delete() { - C.Scintilla__Internal__ListBox_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__ListBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5237,7 +5237,7 @@ func (this *Scintilla__Internal__Menu) Show(pt Scintilla__Internal__Point, w *Sc // Delete this object from C++ memory. func (this *Scintilla__Internal__Menu) Delete() { - C.Scintilla__Internal__Menu_Delete(this.h, C.bool(this.isSubclass)) + C.Scintilla__Internal__Menu_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5284,7 +5284,7 @@ func UnsafeNewSci_CharacterRange(h unsafe.Pointer) *Sci_CharacterRange { // Delete this object from C++ memory. func (this *Sci_CharacterRange) Delete() { - C.Sci_CharacterRange_Delete(this.h, C.bool(this.isSubclass)) + C.Sci_CharacterRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5331,7 +5331,7 @@ func UnsafeNewSci_CharacterRangeFull(h unsafe.Pointer) *Sci_CharacterRangeFull { // Delete this object from C++ memory. func (this *Sci_CharacterRangeFull) Delete() { - C.Sci_CharacterRangeFull_Delete(this.h, C.bool(this.isSubclass)) + C.Sci_CharacterRangeFull_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5378,7 +5378,7 @@ func UnsafeNewSci_TextRange(h unsafe.Pointer) *Sci_TextRange { // Delete this object from C++ memory. func (this *Sci_TextRange) Delete() { - C.Sci_TextRange_Delete(this.h, C.bool(this.isSubclass)) + C.Sci_TextRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5425,7 +5425,7 @@ func UnsafeNewSci_TextRangeFull(h unsafe.Pointer) *Sci_TextRangeFull { // Delete this object from C++ memory. func (this *Sci_TextRangeFull) Delete() { - C.Sci_TextRangeFull_Delete(this.h, C.bool(this.isSubclass)) + C.Sci_TextRangeFull_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5472,7 +5472,7 @@ func UnsafeNewSci_TextToFind(h unsafe.Pointer) *Sci_TextToFind { // Delete this object from C++ memory. func (this *Sci_TextToFind) Delete() { - C.Sci_TextToFind_Delete(this.h, C.bool(this.isSubclass)) + C.Sci_TextToFind_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5519,7 +5519,7 @@ func UnsafeNewSci_TextToFindFull(h unsafe.Pointer) *Sci_TextToFindFull { // Delete this object from C++ memory. func (this *Sci_TextToFindFull) Delete() { - C.Sci_TextToFindFull_Delete(this.h, C.bool(this.isSubclass)) + C.Sci_TextToFindFull_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5566,7 +5566,7 @@ func UnsafeNewSci_Rectangle(h unsafe.Pointer) *Sci_Rectangle { // Delete this object from C++ memory. func (this *Sci_Rectangle) Delete() { - C.Sci_Rectangle_Delete(this.h, C.bool(this.isSubclass)) + C.Sci_Rectangle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5613,7 +5613,7 @@ func UnsafeNewSci_RangeToFormat(h unsafe.Pointer) *Sci_RangeToFormat { // Delete this object from C++ memory. func (this *Sci_RangeToFormat) Delete() { - C.Sci_RangeToFormat_Delete(this.h, C.bool(this.isSubclass)) + C.Sci_RangeToFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5660,7 +5660,7 @@ func UnsafeNewSci_RangeToFormatFull(h unsafe.Pointer) *Sci_RangeToFormatFull { // Delete this object from C++ memory. func (this *Sci_RangeToFormatFull) Delete() { - C.Sci_RangeToFormatFull_Delete(this.h, C.bool(this.isSubclass)) + C.Sci_RangeToFormatFull_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5707,7 +5707,7 @@ func UnsafeNewSci_NotifyHeader(h unsafe.Pointer) *Sci_NotifyHeader { // Delete this object from C++ memory. func (this *Sci_NotifyHeader) Delete() { - C.Sci_NotifyHeader_Delete(this.h, C.bool(this.isSubclass)) + C.Sci_NotifyHeader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5754,7 +5754,7 @@ func UnsafeNewSCNotification(h unsafe.Pointer) *SCNotification { // Delete this object from C++ memory. func (this *SCNotification) Delete() { - C.SCNotification_Delete(this.h, C.bool(this.isSubclass)) + C.SCNotification_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -7435,7 +7435,7 @@ func miqt_exec_callback_ScintillaEditBase_ViewportSizeHint(self *C.ScintillaEdit // Delete this object from C++ memory. func (this *ScintillaEditBase) Delete() { - C.ScintillaEditBase_Delete(this.h, C.bool(this.isSubclass)) + C.ScintillaEditBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -8056,7 +8056,7 @@ func miqt_exec_callback_ScintillaDocument_DisconnectNotify(self *C.ScintillaDocu // Delete this object from C++ memory. func (this *ScintillaDocument) Delete() { - C.ScintillaDocument_Delete(this.h, C.bool(this.isSubclass)) + C.ScintillaDocument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -12261,7 +12261,7 @@ func miqt_exec_callback_ScintillaEdit_ScrollContentsBy(self *C.ScintillaEdit, cb // Delete this object from C++ memory. func (this *ScintillaEdit) Delete() { - C.ScintillaEdit_Delete(this.h, C.bool(this.isSubclass)) + C.ScintillaEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-extras/scintillaedit/gen_ScintillaEdit.h b/qt-extras/scintillaedit/gen_ScintillaEdit.h index 55f0df87..876293f8 100644 --- a/qt-extras/scintillaedit/gen_ScintillaEdit.h +++ b/qt-extras/scintillaedit/gen_ScintillaEdit.h @@ -293,14 +293,14 @@ bool Scintilla__Internal__Point_OperatorEqual(const Scintilla__Internal__Point* bool Scintilla__Internal__Point_OperatorNotEqual(const Scintilla__Internal__Point* self, Scintilla__Internal__Point* other); Scintilla__Internal__Point* Scintilla__Internal__Point_OperatorPlus(const Scintilla__Internal__Point* self, Scintilla__Internal__Point* other); Scintilla__Internal__Point* Scintilla__Internal__Point_OperatorMinus(const Scintilla__Internal__Point* self, Scintilla__Internal__Point* other); -void Scintilla__Internal__Point_Delete(Scintilla__Internal__Point* self, bool isSubclass); +void Scintilla__Internal__Point_Delete(Scintilla__Internal__Point* self); bool Scintilla__Internal__Interval_OperatorEqual(const Scintilla__Internal__Interval* self, Scintilla__Internal__Interval* other); double Scintilla__Internal__Interval_Width(const Scintilla__Internal__Interval* self); bool Scintilla__Internal__Interval_Empty(const Scintilla__Internal__Interval* self); bool Scintilla__Internal__Interval_Intersects(const Scintilla__Internal__Interval* self, Scintilla__Internal__Interval* other); Scintilla__Internal__Interval* Scintilla__Internal__Interval_Offset(const Scintilla__Internal__Interval* self, double offset); -void Scintilla__Internal__Interval_Delete(Scintilla__Internal__Interval* self, bool isSubclass); +void Scintilla__Internal__Interval_Delete(Scintilla__Internal__Interval* self); Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new(); Scintilla__Internal__PRectangle* Scintilla__Internal__PRectangle_new2(Scintilla__Internal__PRectangle* param1); @@ -323,7 +323,7 @@ Scintilla__Internal__Point* Scintilla__Internal__PRectangle_Centre(const Scintil double Scintilla__Internal__PRectangle_Width(const Scintilla__Internal__PRectangle* self); double Scintilla__Internal__PRectangle_Height(const Scintilla__Internal__PRectangle* self); bool Scintilla__Internal__PRectangle_Empty(const Scintilla__Internal__PRectangle* self); -void Scintilla__Internal__PRectangle_Delete(Scintilla__Internal__PRectangle* self, bool isSubclass); +void Scintilla__Internal__PRectangle_Delete(Scintilla__Internal__PRectangle* self); Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new(); Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_new2(unsigned int red, unsigned int green, unsigned int blue); @@ -352,48 +352,48 @@ Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_MixedWith(const Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_MixedWith2(const Scintilla__Internal__ColourRGBA* self, Scintilla__Internal__ColourRGBA* other, double proportion); void Scintilla__Internal__ColourRGBA_OperatorAssign(Scintilla__Internal__ColourRGBA* self, Scintilla__Internal__ColourRGBA* param1); Scintilla__Internal__ColourRGBA* Scintilla__Internal__ColourRGBA_Grey2(unsigned int grey, unsigned int alpha); -void Scintilla__Internal__ColourRGBA_Delete(Scintilla__Internal__ColourRGBA* self, bool isSubclass); +void Scintilla__Internal__ColourRGBA_Delete(Scintilla__Internal__ColourRGBA* self); Scintilla__Internal__Stroke* Scintilla__Internal__Stroke_new(Scintilla__Internal__ColourRGBA* colour_); Scintilla__Internal__Stroke* Scintilla__Internal__Stroke_new2(Scintilla__Internal__Stroke* param1); Scintilla__Internal__Stroke* Scintilla__Internal__Stroke_new3(Scintilla__Internal__ColourRGBA* colour_, double width_); float Scintilla__Internal__Stroke_WidthF(const Scintilla__Internal__Stroke* self); -void Scintilla__Internal__Stroke_Delete(Scintilla__Internal__Stroke* self, bool isSubclass); +void Scintilla__Internal__Stroke_Delete(Scintilla__Internal__Stroke* self); Scintilla__Internal__Fill* Scintilla__Internal__Fill_new(Scintilla__Internal__ColourRGBA* colour_); Scintilla__Internal__Fill* Scintilla__Internal__Fill_new2(Scintilla__Internal__Fill* param1); -void Scintilla__Internal__Fill_Delete(Scintilla__Internal__Fill* self, bool isSubclass); +void Scintilla__Internal__Fill_Delete(Scintilla__Internal__Fill* self); Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new(Scintilla__Internal__ColourRGBA* colourFill_, Scintilla__Internal__ColourRGBA* colourStroke_); Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new2(Scintilla__Internal__ColourRGBA* colourBoth); Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new3(Scintilla__Internal__ColourRGBA* colourFill_, Scintilla__Internal__ColourRGBA* colourStroke_, double widthStroke_); Scintilla__Internal__FillStroke* Scintilla__Internal__FillStroke_new4(Scintilla__Internal__ColourRGBA* colourBoth, double widthStroke_); -void Scintilla__Internal__FillStroke_Delete(Scintilla__Internal__FillStroke* self, bool isSubclass); +void Scintilla__Internal__FillStroke_Delete(Scintilla__Internal__FillStroke* self); Scintilla__Internal__ColourStop* Scintilla__Internal__ColourStop_new(double position_, Scintilla__Internal__ColourRGBA* colour_); -void Scintilla__Internal__ColourStop_Delete(Scintilla__Internal__ColourStop* self, bool isSubclass); +void Scintilla__Internal__ColourStop_Delete(Scintilla__Internal__ColourStop* self); -void Scintilla__CharacterRange_Delete(Scintilla__CharacterRange* self, bool isSubclass); +void Scintilla__CharacterRange_Delete(Scintilla__CharacterRange* self); -void Scintilla__CharacterRangeFull_Delete(Scintilla__CharacterRangeFull* self, bool isSubclass); +void Scintilla__CharacterRangeFull_Delete(Scintilla__CharacterRangeFull* self); -void Scintilla__TextRange_Delete(Scintilla__TextRange* self, bool isSubclass); +void Scintilla__TextRange_Delete(Scintilla__TextRange* self); -void Scintilla__TextRangeFull_Delete(Scintilla__TextRangeFull* self, bool isSubclass); +void Scintilla__TextRangeFull_Delete(Scintilla__TextRangeFull* self); -void Scintilla__TextToFind_Delete(Scintilla__TextToFind* self, bool isSubclass); +void Scintilla__TextToFind_Delete(Scintilla__TextToFind* self); -void Scintilla__TextToFindFull_Delete(Scintilla__TextToFindFull* self, bool isSubclass); +void Scintilla__TextToFindFull_Delete(Scintilla__TextToFindFull* self); -void Scintilla__Rectangle_Delete(Scintilla__Rectangle* self, bool isSubclass); +void Scintilla__Rectangle_Delete(Scintilla__Rectangle* self); -void Scintilla__RangeToFormat_Delete(Scintilla__RangeToFormat* self, bool isSubclass); +void Scintilla__RangeToFormat_Delete(Scintilla__RangeToFormat* self); -void Scintilla__RangeToFormatFull_Delete(Scintilla__RangeToFormatFull* self, bool isSubclass); +void Scintilla__RangeToFormatFull_Delete(Scintilla__RangeToFormatFull* self); -void Scintilla__NotifyHeader_Delete(Scintilla__NotifyHeader* self, bool isSubclass); +void Scintilla__NotifyHeader_Delete(Scintilla__NotifyHeader* self); -void Scintilla__NotificationData_Delete(Scintilla__NotificationData* self, bool isSubclass); +void Scintilla__NotificationData_Delete(Scintilla__NotificationData* self); Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new(const char* faceName_); Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new2(const char* faceName_, double size_); @@ -404,10 +404,10 @@ Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new6(co Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new7(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_, int technology_, int characterSet_); Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new8(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_, int technology_, int characterSet_, const char* localeName_); Scintilla__Internal__FontParameters* Scintilla__Internal__FontParameters_new9(const char* faceName_, double size_, int weight_, bool italic_, int extraFontFlag_, int technology_, int characterSet_, const char* localeName_, int stretch_); -void Scintilla__Internal__FontParameters_Delete(Scintilla__Internal__FontParameters* self, bool isSubclass); +void Scintilla__Internal__FontParameters_Delete(Scintilla__Internal__FontParameters* self); Scintilla__Internal__Font* Scintilla__Internal__Font_new(); -void Scintilla__Internal__Font_Delete(Scintilla__Internal__Font* self, bool isSubclass); +void Scintilla__Internal__Font_Delete(Scintilla__Internal__Font* self); size_t Scintilla__Internal__IScreenLine_Length(const Scintilla__Internal__IScreenLine* self); size_t Scintilla__Internal__IScreenLine_RepresentationCount(const Scintilla__Internal__IScreenLine* self); @@ -419,16 +419,16 @@ Scintilla__Internal__Font* Scintilla__Internal__IScreenLine_FontOfPosition(const double Scintilla__Internal__IScreenLine_RepresentationWidth(const Scintilla__Internal__IScreenLine* self, size_t position); double Scintilla__Internal__IScreenLine_TabPositionAfter(const Scintilla__Internal__IScreenLine* self, double xPosition); void Scintilla__Internal__IScreenLine_OperatorAssign(Scintilla__Internal__IScreenLine* self, Scintilla__Internal__IScreenLine* param1); -void Scintilla__Internal__IScreenLine_Delete(Scintilla__Internal__IScreenLine* self, bool isSubclass); +void Scintilla__Internal__IScreenLine_Delete(Scintilla__Internal__IScreenLine* self); size_t Scintilla__Internal__IScreenLineLayout_PositionFromX(Scintilla__Internal__IScreenLineLayout* self, double xDistance, bool charPosition); double Scintilla__Internal__IScreenLineLayout_XFromPosition(Scintilla__Internal__IScreenLineLayout* self, size_t caretPosition); void Scintilla__Internal__IScreenLineLayout_OperatorAssign(Scintilla__Internal__IScreenLineLayout* self, Scintilla__Internal__IScreenLineLayout* param1); -void Scintilla__Internal__IScreenLineLayout_Delete(Scintilla__Internal__IScreenLineLayout* self, bool isSubclass); +void Scintilla__Internal__IScreenLineLayout_Delete(Scintilla__Internal__IScreenLineLayout* self); Scintilla__Internal__SurfaceMode* Scintilla__Internal__SurfaceMode_new(); Scintilla__Internal__SurfaceMode* Scintilla__Internal__SurfaceMode_new2(int codePage_, bool bidiR2L_); -void Scintilla__Internal__SurfaceMode_Delete(Scintilla__Internal__SurfaceMode* self, bool isSubclass); +void Scintilla__Internal__SurfaceMode_Delete(Scintilla__Internal__SurfaceMode* self); Scintilla__Internal__Surface* Scintilla__Internal__Surface_new(); void Scintilla__Internal__Surface_Init(Scintilla__Internal__Surface* self, void* wid); @@ -527,7 +527,7 @@ void Scintilla__Internal__Surface_override_virtual_FlushCachedState(void* self, void Scintilla__Internal__Surface_virtualbase_FlushCachedState(void* self); void Scintilla__Internal__Surface_override_virtual_FlushDrawing(void* self, intptr_t slot); void Scintilla__Internal__Surface_virtualbase_FlushDrawing(void* self); -void Scintilla__Internal__Surface_Delete(Scintilla__Internal__Surface* self, bool isSubclass); +void Scintilla__Internal__Surface_Delete(Scintilla__Internal__Surface* self); Scintilla__Internal__Window* Scintilla__Internal__Window_new(); void Scintilla__Internal__Window_OperatorAssign(Scintilla__Internal__Window* self, void* wid_); @@ -544,16 +544,16 @@ void Scintilla__Internal__Window_InvalidateRectangle(Scintilla__Internal__Window void Scintilla__Internal__Window_SetCursor(Scintilla__Internal__Window* self, int curs); Scintilla__Internal__PRectangle* Scintilla__Internal__Window_GetMonitorRect(Scintilla__Internal__Window* self, Scintilla__Internal__Point* pt); void Scintilla__Internal__Window_Show1(Scintilla__Internal__Window* self, bool show); -void Scintilla__Internal__Window_Delete(Scintilla__Internal__Window* self, bool isSubclass); +void Scintilla__Internal__Window_Delete(Scintilla__Internal__Window* self); Scintilla__Internal__ListBoxEvent* Scintilla__Internal__ListBoxEvent_new(int event_); -void Scintilla__Internal__ListBoxEvent_Delete(Scintilla__Internal__ListBoxEvent* self, bool isSubclass); +void Scintilla__Internal__ListBoxEvent_Delete(Scintilla__Internal__ListBoxEvent* self); void Scintilla__Internal__IListBoxDelegate_ListNotify(Scintilla__Internal__IListBoxDelegate* self, Scintilla__Internal__ListBoxEvent* plbe); void Scintilla__Internal__IListBoxDelegate_OperatorAssign(Scintilla__Internal__IListBoxDelegate* self, Scintilla__Internal__IListBoxDelegate* param1); -void Scintilla__Internal__IListBoxDelegate_Delete(Scintilla__Internal__IListBoxDelegate* self, bool isSubclass); +void Scintilla__Internal__IListBoxDelegate_Delete(Scintilla__Internal__IListBoxDelegate* self); -void Scintilla__Internal__ListOptions_Delete(Scintilla__Internal__ListOptions* self, bool isSubclass); +void Scintilla__Internal__ListOptions_Delete(Scintilla__Internal__ListOptions* self); Scintilla__Internal__ListBox* Scintilla__Internal__ListBox_new(); void Scintilla__Internal__ListBox_virtbase(Scintilla__Internal__ListBox* src, Scintilla__Internal__Window** outptr_Scintilla__Internal__Window); @@ -614,36 +614,36 @@ void Scintilla__Internal__ListBox_override_virtual_SetList(void* self, intptr_t void Scintilla__Internal__ListBox_virtualbase_SetList(void* self, const char* list, char separator, char typesep); void Scintilla__Internal__ListBox_override_virtual_SetOptions(void* self, intptr_t slot); void Scintilla__Internal__ListBox_virtualbase_SetOptions(void* self, Scintilla__Internal__ListOptions* options_); -void Scintilla__Internal__ListBox_Delete(Scintilla__Internal__ListBox* self, bool isSubclass); +void Scintilla__Internal__ListBox_Delete(Scintilla__Internal__ListBox* self); Scintilla__Internal__Menu* Scintilla__Internal__Menu_new(); void* Scintilla__Internal__Menu_GetID(const Scintilla__Internal__Menu* self); void Scintilla__Internal__Menu_CreatePopUp(Scintilla__Internal__Menu* self); void Scintilla__Internal__Menu_Destroy(Scintilla__Internal__Menu* self); void Scintilla__Internal__Menu_Show(Scintilla__Internal__Menu* self, Scintilla__Internal__Point* pt, Scintilla__Internal__Window* w); -void Scintilla__Internal__Menu_Delete(Scintilla__Internal__Menu* self, bool isSubclass); +void Scintilla__Internal__Menu_Delete(Scintilla__Internal__Menu* self); -void Sci_CharacterRange_Delete(Sci_CharacterRange* self, bool isSubclass); +void Sci_CharacterRange_Delete(Sci_CharacterRange* self); -void Sci_CharacterRangeFull_Delete(Sci_CharacterRangeFull* self, bool isSubclass); +void Sci_CharacterRangeFull_Delete(Sci_CharacterRangeFull* self); -void Sci_TextRange_Delete(Sci_TextRange* self, bool isSubclass); +void Sci_TextRange_Delete(Sci_TextRange* self); -void Sci_TextRangeFull_Delete(Sci_TextRangeFull* self, bool isSubclass); +void Sci_TextRangeFull_Delete(Sci_TextRangeFull* self); -void Sci_TextToFind_Delete(Sci_TextToFind* self, bool isSubclass); +void Sci_TextToFind_Delete(Sci_TextToFind* self); -void Sci_TextToFindFull_Delete(Sci_TextToFindFull* self, bool isSubclass); +void Sci_TextToFindFull_Delete(Sci_TextToFindFull* self); -void Sci_Rectangle_Delete(Sci_Rectangle* self, bool isSubclass); +void Sci_Rectangle_Delete(Sci_Rectangle* self); -void Sci_RangeToFormat_Delete(Sci_RangeToFormat* self, bool isSubclass); +void Sci_RangeToFormat_Delete(Sci_RangeToFormat* self); -void Sci_RangeToFormatFull_Delete(Sci_RangeToFormatFull* self, bool isSubclass); +void Sci_RangeToFormatFull_Delete(Sci_RangeToFormatFull* self); -void Sci_NotifyHeader_Delete(Sci_NotifyHeader* self, bool isSubclass); +void Sci_NotifyHeader_Delete(Sci_NotifyHeader* self); -void SCNotification_Delete(SCNotification* self, bool isSubclass); +void SCNotification_Delete(SCNotification* self); ScintillaEditBase* ScintillaEditBase_new(QWidget* parent); ScintillaEditBase* ScintillaEditBase_new2(); @@ -809,7 +809,7 @@ void ScintillaEditBase_override_virtual_ViewportEvent(void* self, intptr_t slot) bool ScintillaEditBase_virtualbase_ViewportEvent(void* self, QEvent* param1); void ScintillaEditBase_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* ScintillaEditBase_virtualbase_ViewportSizeHint(const void* self); -void ScintillaEditBase_Delete(ScintillaEditBase* self, bool isSubclass); +void ScintillaEditBase_Delete(ScintillaEditBase* self); ScintillaDocument* ScintillaDocument_new(); ScintillaDocument* ScintillaDocument_new2(QObject* parent); @@ -888,7 +888,7 @@ void ScintillaDocument_override_virtual_ConnectNotify(void* self, intptr_t slot) void ScintillaDocument_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void ScintillaDocument_override_virtual_DisconnectNotify(void* self, intptr_t slot); void ScintillaDocument_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void ScintillaDocument_Delete(ScintillaDocument* self, bool isSubclass); +void ScintillaDocument_Delete(ScintillaDocument* self); ScintillaEdit* ScintillaEdit_new(QWidget* parent); ScintillaEdit* ScintillaEdit_new2(); @@ -1752,7 +1752,7 @@ void ScintillaEdit_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* ScintillaEdit_virtualbase_InputMethodQuery(const void* self, int query); void ScintillaEdit_override_virtual_ScrollContentsBy(void* self, intptr_t slot); void ScintillaEdit_virtualbase_ScrollContentsBy(void* self, int param1, int param2); -void ScintillaEdit_Delete(ScintillaEdit* self, bool isSubclass); +void ScintillaEdit_Delete(ScintillaEdit* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp index 4ba95f01..0c1033eb 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp +++ b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.cpp @@ -29,12 +29,12 @@ void miqt_exec_callback_QsciAbstractAPIs_DisconnectNotify(void*, intptr_t, QMeta } /* extern C */ #endif -class MiqtVirtualQsciAbstractAPIs : public virtual QsciAbstractAPIs { +class MiqtVirtualQsciAbstractAPIs final : public QsciAbstractAPIs { public: MiqtVirtualQsciAbstractAPIs(QsciLexer* lexer): QsciAbstractAPIs(lexer) {}; - virtual ~MiqtVirtualQsciAbstractAPIs() = default; + virtual ~MiqtVirtualQsciAbstractAPIs() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__UpdateAutoCompletionList = 0; @@ -556,11 +556,7 @@ void QsciAbstractAPIs_virtualbase_DisconnectNotify(void* self, QMetaMethod* sign ( (MiqtVirtualQsciAbstractAPIs*)(self) )->virtualbase_DisconnectNotify(signal); } -void QsciAbstractAPIs_Delete(QsciAbstractAPIs* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciAbstractAPIs_Delete(QsciAbstractAPIs* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.go b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.go index 6df99846..4dc13a99 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.go +++ b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.go @@ -513,7 +513,7 @@ func miqt_exec_callback_QsciAbstractAPIs_DisconnectNotify(self *C.QsciAbstractAP // Delete this object from C++ memory. func (this *QsciAbstractAPIs) Delete() { - C.QsciAbstractAPIs_Delete(this.h, C.bool(this.isSubclass)) + C.QsciAbstractAPIs_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.h b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.h index c3384a9c..d093eda4 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciabstractapis.h +++ b/qt-restricted-extras/qscintilla/gen_qsciabstractapis.h @@ -68,7 +68,7 @@ void QsciAbstractAPIs_override_virtual_ConnectNotify(void* self, intptr_t slot); void QsciAbstractAPIs_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QsciAbstractAPIs_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QsciAbstractAPIs_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QsciAbstractAPIs_Delete(QsciAbstractAPIs* self, bool isSubclass); +void QsciAbstractAPIs_Delete(QsciAbstractAPIs* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qsciapis.cpp b/qt-restricted-extras/qscintilla/gen_qsciapis.cpp index 4f454e68..1d2aa3b8 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciapis.cpp +++ b/qt-restricted-extras/qscintilla/gen_qsciapis.cpp @@ -23,12 +23,12 @@ bool miqt_exec_callback_QsciAPIs_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQsciAPIs : public virtual QsciAPIs { +class MiqtVirtualQsciAPIs final : public QsciAPIs { public: MiqtVirtualQsciAPIs(QsciLexer* lexer): QsciAPIs(lexer) {}; - virtual ~MiqtVirtualQsciAPIs() = default; + virtual ~MiqtVirtualQsciAPIs() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__UpdateAutoCompletionList = 0; @@ -535,11 +535,7 @@ bool QsciAPIs_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQsciAPIs*)(self) )->virtualbase_Event(e); } -void QsciAPIs_Delete(QsciAPIs* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciAPIs_Delete(QsciAPIs* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qsciapis.go b/qt-restricted-extras/qscintilla/gen_qsciapis.go index 383df06f..fe5ea528 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciapis.go +++ b/qt-restricted-extras/qscintilla/gen_qsciapis.go @@ -553,7 +553,7 @@ func miqt_exec_callback_QsciAPIs_Event(self *C.QsciAPIs, cb C.intptr_t, e *C.QEv // Delete this object from C++ memory. func (this *QsciAPIs) Delete() { - C.QsciAPIs_Delete(this.h, C.bool(this.isSubclass)) + C.QsciAPIs_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qsciapis.h b/qt-restricted-extras/qscintilla/gen_qsciapis.h index 6424a45e..c70b68f7 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciapis.h +++ b/qt-restricted-extras/qscintilla/gen_qsciapis.h @@ -72,7 +72,7 @@ void QsciAPIs_override_virtual_CallTips(void* self, intptr_t slot); struct miqt_array /* of struct miqt_string */ QsciAPIs_virtualbase_CallTips(void* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts); void QsciAPIs_override_virtual_Event(void* self, intptr_t slot); bool QsciAPIs_virtualbase_Event(void* self, QEvent* e); -void QsciAPIs_Delete(QsciAPIs* self, bool isSubclass); +void QsciAPIs_Delete(QsciAPIs* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscicommand.cpp b/qt-restricted-extras/qscintilla/gen_qscicommand.cpp index 08e09fe2..57d7ffac 100644 --- a/qt-restricted-extras/qscintilla/gen_qscicommand.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscicommand.cpp @@ -52,11 +52,7 @@ struct miqt_string QsciCommand_Description(const QsciCommand* self) { return _ms; } -void QsciCommand_Delete(QsciCommand* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciCommand_Delete(QsciCommand* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscicommand.go b/qt-restricted-extras/qscintilla/gen_qscicommand.go index 0ee6a89a..fc2cd736 100644 --- a/qt-restricted-extras/qscintilla/gen_qscicommand.go +++ b/qt-restricted-extras/qscintilla/gen_qscicommand.go @@ -187,7 +187,7 @@ func (this *QsciCommand) Description() string { // Delete this object from C++ memory. func (this *QsciCommand) Delete() { - C.QsciCommand_Delete(this.h, C.bool(this.isSubclass)) + C.QsciCommand_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscicommand.h b/qt-restricted-extras/qscintilla/gen_qscicommand.h index f36ed8e3..96e8a88a 100644 --- a/qt-restricted-extras/qscintilla/gen_qscicommand.h +++ b/qt-restricted-extras/qscintilla/gen_qscicommand.h @@ -28,7 +28,7 @@ int QsciCommand_Key(const QsciCommand* self); int QsciCommand_AlternateKey(const QsciCommand* self); bool QsciCommand_ValidKey(int key); struct miqt_string QsciCommand_Description(const QsciCommand* self); -void QsciCommand_Delete(QsciCommand* self, bool isSubclass); +void QsciCommand_Delete(QsciCommand* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscidocument.cpp b/qt-restricted-extras/qscintilla/gen_qscidocument.cpp index 41e20bb2..b46c8a7d 100644 --- a/qt-restricted-extras/qscintilla/gen_qscidocument.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscidocument.cpp @@ -21,11 +21,7 @@ void QsciDocument_OperatorAssign(QsciDocument* self, QsciDocument* param1) { self->operator=(*param1); } -void QsciDocument_Delete(QsciDocument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciDocument_Delete(QsciDocument* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscidocument.go b/qt-restricted-extras/qscintilla/gen_qscidocument.go index aee76e62..ca75399e 100644 --- a/qt-restricted-extras/qscintilla/gen_qscidocument.go +++ b/qt-restricted-extras/qscintilla/gen_qscidocument.go @@ -68,7 +68,7 @@ func (this *QsciDocument) OperatorAssign(param1 *QsciDocument) { // Delete this object from C++ memory. func (this *QsciDocument) Delete() { - C.QsciDocument_Delete(this.h, C.bool(this.isSubclass)) + C.QsciDocument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscidocument.h b/qt-restricted-extras/qscintilla/gen_qscidocument.h index b0c7b945..4fc35618 100644 --- a/qt-restricted-extras/qscintilla/gen_qscidocument.h +++ b/qt-restricted-extras/qscintilla/gen_qscidocument.h @@ -23,7 +23,7 @@ typedef struct QsciDocument QsciDocument; QsciDocument* QsciDocument_new(); QsciDocument* QsciDocument_new2(QsciDocument* param1); void QsciDocument_OperatorAssign(QsciDocument* self, QsciDocument* param1); -void QsciDocument_Delete(QsciDocument* self, bool isSubclass); +void QsciDocument_Delete(QsciDocument* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexer.cpp b/qt-restricted-extras/qscintilla/gen_qscilexer.cpp index b6d46bc2..672c786c 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexer.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexer.cpp @@ -68,13 +68,13 @@ void miqt_exec_callback_QsciLexer_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQsciLexer : public virtual QsciLexer { +class MiqtVirtualQsciLexer final : public QsciLexer { public: MiqtVirtualQsciLexer(): QsciLexer() {}; MiqtVirtualQsciLexer(QObject* parent): QsciLexer(parent) {}; - virtual ~MiqtVirtualQsciLexer() = default; + virtual ~MiqtVirtualQsciLexer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1746,11 +1746,7 @@ void QsciLexer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQsciLexer*)(self) )->virtualbase_DisconnectNotify(signal); } -void QsciLexer_Delete(QsciLexer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexer_Delete(QsciLexer* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexer.go b/qt-restricted-extras/qscintilla/gen_qscilexer.go index 61a25a96..865f9767 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexer.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexer.go @@ -1643,7 +1643,7 @@ func miqt_exec_callback_QsciLexer_DisconnectNotify(self *C.QsciLexer, cb C.intpt // Delete this object from C++ memory. func (this *QsciLexer) Delete() { - C.QsciLexer_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexer.h b/qt-restricted-extras/qscintilla/gen_qscilexer.h index beb68e27..5b9ea0ac 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexer.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexer.h @@ -193,7 +193,7 @@ void QsciLexer_override_virtual_ConnectNotify(void* self, intptr_t slot); void QsciLexer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QsciLexer_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QsciLexer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QsciLexer_Delete(QsciLexer* self, bool isSubclass); +void QsciLexer_Delete(QsciLexer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeravs.cpp b/qt-restricted-extras/qscintilla/gen_qscilexeravs.cpp index d2ad8e97..cca9ff11 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeravs.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexeravs.cpp @@ -54,13 +54,13 @@ bool miqt_exec_callback_QsciLexerAVS_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerAVS : public virtual QsciLexerAVS { +class MiqtVirtualQsciLexerAVS final : public QsciLexerAVS { public: MiqtVirtualQsciLexerAVS(): QsciLexerAVS() {}; MiqtVirtualQsciLexerAVS(QObject* parent): QsciLexerAVS(parent) {}; - virtual ~MiqtVirtualQsciLexerAVS() = default; + virtual ~MiqtVirtualQsciLexerAVS() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1355,11 +1355,7 @@ bool QsciLexerAVS_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerAVS*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerAVS_Delete(QsciLexerAVS* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerAVS_Delete(QsciLexerAVS* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeravs.go b/qt-restricted-extras/qscintilla/gen_qscilexeravs.go index a132c671..ea8306ec 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeravs.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexeravs.go @@ -1248,7 +1248,7 @@ func miqt_exec_callback_QsciLexerAVS_WriteProperties(self *C.QsciLexerAVS, cb C. // Delete this object from C++ memory. func (this *QsciLexerAVS) Delete() { - C.QsciLexerAVS_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerAVS_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeravs.h b/qt-restricted-extras/qscintilla/gen_qscilexeravs.h index e465dac8..b982b264 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeravs.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexeravs.h @@ -130,7 +130,7 @@ void QsciLexerAVS_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerAVS_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerAVS_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerAVS_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerAVS_Delete(QsciLexerAVS* self, bool isSubclass); +void QsciLexerAVS_Delete(QsciLexerAVS* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbash.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerbash.cpp index eecfe478..26848d80 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerbash.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbash.cpp @@ -54,13 +54,13 @@ bool miqt_exec_callback_QsciLexerBash_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerBash : public virtual QsciLexerBash { +class MiqtVirtualQsciLexerBash final : public QsciLexerBash { public: MiqtVirtualQsciLexerBash(): QsciLexerBash() {}; MiqtVirtualQsciLexerBash(QObject* parent): QsciLexerBash(parent) {}; - virtual ~MiqtVirtualQsciLexerBash() = default; + virtual ~MiqtVirtualQsciLexerBash() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1363,11 +1363,7 @@ bool QsciLexerBash_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerBash*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerBash_Delete(QsciLexerBash* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerBash_Delete(QsciLexerBash* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbash.go b/qt-restricted-extras/qscintilla/gen_qscilexerbash.go index b9f046f1..e798fa92 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerbash.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbash.go @@ -1257,7 +1257,7 @@ func miqt_exec_callback_QsciLexerBash_WriteProperties(self *C.QsciLexerBash, cb // Delete this object from C++ memory. func (this *QsciLexerBash) Delete() { - C.QsciLexerBash_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerBash_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbash.h b/qt-restricted-extras/qscintilla/gen_qscilexerbash.h index a31847e7..0ac47198 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerbash.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbash.h @@ -132,7 +132,7 @@ void QsciLexerBash_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerBash_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerBash_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerBash_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerBash_Delete(QsciLexerBash* self, bool isSubclass); +void QsciLexerBash_Delete(QsciLexerBash* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbatch.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.cpp index 8f83a604..089d629f 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerbatch.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerBatch_WriteProperties(void*, intptr_t, QSetting } /* extern C */ #endif -class MiqtVirtualQsciLexerBatch : public virtual QsciLexerBatch { +class MiqtVirtualQsciLexerBatch final : public QsciLexerBatch { public: MiqtVirtualQsciLexerBatch(): QsciLexerBatch() {}; MiqtVirtualQsciLexerBatch(QObject* parent): QsciLexerBatch(parent) {}; - virtual ~MiqtVirtualQsciLexerBatch() = default; + virtual ~MiqtVirtualQsciLexerBatch() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1277,11 +1277,7 @@ bool QsciLexerBatch_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerBatch*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerBatch_Delete(QsciLexerBatch* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerBatch_Delete(QsciLexerBatch* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbatch.go b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.go index 3c7440c9..63ef2c72 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerbatch.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.go @@ -1179,7 +1179,7 @@ func miqt_exec_callback_QsciLexerBatch_WriteProperties(self *C.QsciLexerBatch, c // Delete this object from C++ memory. func (this *QsciLexerBatch) Delete() { - C.QsciLexerBatch_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerBatch_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerbatch.h b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.h index 56fce44d..6a74165c 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerbatch.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerbatch.h @@ -123,7 +123,7 @@ void QsciLexerBatch_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerBatch_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerBatch_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerBatch_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerBatch_Delete(QsciLexerBatch* self, bool isSubclass); +void QsciLexerBatch_Delete(QsciLexerBatch* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercmake.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercmake.cpp index e272f710..5877e992 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercmake.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexercmake.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerCMake_WriteProperties(void*, intptr_t, QSetting } /* extern C */ #endif -class MiqtVirtualQsciLexerCMake : public virtual QsciLexerCMake { +class MiqtVirtualQsciLexerCMake final : public QsciLexerCMake { public: MiqtVirtualQsciLexerCMake(): QsciLexerCMake() {}; MiqtVirtualQsciLexerCMake(QObject* parent): QsciLexerCMake(parent) {}; - virtual ~MiqtVirtualQsciLexerCMake() = default; + virtual ~MiqtVirtualQsciLexerCMake() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -1310,11 +1310,7 @@ bool QsciLexerCMake_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerCMake*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerCMake_Delete(QsciLexerCMake* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCMake_Delete(QsciLexerCMake* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercmake.go b/qt-restricted-extras/qscintilla/gen_qscilexercmake.go index 93def7b2..71b70c21 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercmake.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexercmake.go @@ -1211,7 +1211,7 @@ func miqt_exec_callback_QsciLexerCMake_WriteProperties(self *C.QsciLexerCMake, c // Delete this object from C++ memory. func (this *QsciLexerCMake) Delete() { - C.QsciLexerCMake_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCMake_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercmake.h b/qt-restricted-extras/qscintilla/gen_qscilexercmake.h index cc691588..433d8936 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercmake.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercmake.h @@ -125,7 +125,7 @@ void QsciLexerCMake_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerCMake_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerCMake_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerCMake_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerCMake_Delete(QsciLexerCMake* self, bool isSubclass); +void QsciLexerCMake_Delete(QsciLexerCMake* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp index e34e4fba..182e1926 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerCoffeeScript_WriteProperties(void*, intptr_t, Q } /* extern C */ #endif -class MiqtVirtualQsciLexerCoffeeScript : public virtual QsciLexerCoffeeScript { +class MiqtVirtualQsciLexerCoffeeScript final : public QsciLexerCoffeeScript { public: MiqtVirtualQsciLexerCoffeeScript(): QsciLexerCoffeeScript() {}; MiqtVirtualQsciLexerCoffeeScript(QObject* parent): QsciLexerCoffeeScript(parent) {}; - virtual ~MiqtVirtualQsciLexerCoffeeScript() = default; + virtual ~MiqtVirtualQsciLexerCoffeeScript() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1357,11 +1357,7 @@ bool QsciLexerCoffeeScript_virtualbase_WriteProperties(const void* self, QSettin return ( (const MiqtVirtualQsciLexerCoffeeScript*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerCoffeeScript_Delete(QsciLexerCoffeeScript* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCoffeeScript_Delete(QsciLexerCoffeeScript* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.go b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.go index 2ece2594..9c6155d1 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.go @@ -1274,7 +1274,7 @@ func miqt_exec_callback_QsciLexerCoffeeScript_WriteProperties(self *C.QsciLexerC // Delete this object from C++ memory. func (this *QsciLexerCoffeeScript) Delete() { - C.QsciLexerCoffeeScript_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCoffeeScript_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h index 0d4bb984..6b7c99d5 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercoffeescript.h @@ -139,7 +139,7 @@ void QsciLexerCoffeeScript_override_virtual_ReadProperties(void* self, intptr_t bool QsciLexerCoffeeScript_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerCoffeeScript_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerCoffeeScript_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerCoffeeScript_Delete(QsciLexerCoffeeScript* self, bool isSubclass); +void QsciLexerCoffeeScript_Delete(QsciLexerCoffeeScript* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp index 2cf34da0..4a04f391 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexercpp.cpp @@ -57,14 +57,14 @@ bool miqt_exec_callback_QsciLexerCPP_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerCPP : public virtual QsciLexerCPP { +class MiqtVirtualQsciLexerCPP final : public QsciLexerCPP { public: MiqtVirtualQsciLexerCPP(): QsciLexerCPP() {}; MiqtVirtualQsciLexerCPP(QObject* parent): QsciLexerCPP(parent) {}; MiqtVirtualQsciLexerCPP(QObject* parent, bool caseInsensitiveKeywords): QsciLexerCPP(parent, caseInsensitiveKeywords) {}; - virtual ~MiqtVirtualQsciLexerCPP() = default; + virtual ~MiqtVirtualQsciLexerCPP() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -1583,11 +1583,7 @@ bool QsciLexerCPP_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerCPP*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerCPP_Delete(QsciLexerCPP* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCPP_Delete(QsciLexerCPP* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercpp.go b/qt-restricted-extras/qscintilla/gen_qscilexercpp.go index 4a4cb151..858817cf 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercpp.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexercpp.go @@ -1500,7 +1500,7 @@ func miqt_exec_callback_QsciLexerCPP_WriteProperties(self *C.QsciLexerCPP, cb C. // Delete this object from C++ memory. func (this *QsciLexerCPP) Delete() { - C.QsciLexerCPP_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCPP_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercpp.h b/qt-restricted-extras/qscintilla/gen_qscilexercpp.h index 5924dc9c..cdc8ff1b 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercpp.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercpp.h @@ -164,7 +164,7 @@ void QsciLexerCPP_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerCPP_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerCPP_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerCPP_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerCPP_Delete(QsciLexerCPP* self, bool isSubclass); +void QsciLexerCPP_Delete(QsciLexerCPP* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercsharp.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.cpp index 32226ae2..6b11dfcb 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercsharp.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.cpp @@ -21,13 +21,13 @@ void miqt_exec_callback_QsciLexerCSharp_SetStylePreprocessor(void*, intptr_t, bo } /* extern C */ #endif -class MiqtVirtualQsciLexerCSharp : public virtual QsciLexerCSharp { +class MiqtVirtualQsciLexerCSharp final : public QsciLexerCSharp { public: MiqtVirtualQsciLexerCSharp(): QsciLexerCSharp() {}; MiqtVirtualQsciLexerCSharp(QObject* parent): QsciLexerCSharp(parent) {}; - virtual ~MiqtVirtualQsciLexerCSharp() = default; + virtual ~MiqtVirtualQsciLexerCSharp() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -312,11 +312,7 @@ void QsciLexerCSharp_virtualbase_SetStylePreprocessor(void* self, bool style) { ( (MiqtVirtualQsciLexerCSharp*)(self) )->virtualbase_SetStylePreprocessor(style); } -void QsciLexerCSharp_Delete(QsciLexerCSharp* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCSharp_Delete(QsciLexerCSharp* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercsharp.go b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.go index cddd6b4f..9a9606ad 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercsharp.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.go @@ -311,7 +311,7 @@ func miqt_exec_callback_QsciLexerCSharp_SetStylePreprocessor(self *C.QsciLexerCS // Delete this object from C++ memory. func (this *QsciLexerCSharp) Delete() { - C.QsciLexerCSharp_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCSharp_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercsharp.h b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.h index 20461db5..04b0613b 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercsharp.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercsharp.h @@ -60,7 +60,7 @@ void QsciLexerCSharp_override_virtual_SetFoldPreprocessor(void* self, intptr_t s void QsciLexerCSharp_virtualbase_SetFoldPreprocessor(void* self, bool fold); void QsciLexerCSharp_override_virtual_SetStylePreprocessor(void* self, intptr_t slot); void QsciLexerCSharp_virtualbase_SetStylePreprocessor(void* self, bool style); -void QsciLexerCSharp_Delete(QsciLexerCSharp* self, bool isSubclass); +void QsciLexerCSharp_Delete(QsciLexerCSharp* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercss.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercss.cpp index 32f92b36..5f2087b2 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercss.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexercss.cpp @@ -54,13 +54,13 @@ bool miqt_exec_callback_QsciLexerCSS_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerCSS : public virtual QsciLexerCSS { +class MiqtVirtualQsciLexerCSS final : public QsciLexerCSS { public: MiqtVirtualQsciLexerCSS(): QsciLexerCSS() {}; MiqtVirtualQsciLexerCSS(QObject* parent): QsciLexerCSS(parent) {}; - virtual ~MiqtVirtualQsciLexerCSS() = default; + virtual ~MiqtVirtualQsciLexerCSS() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1391,11 +1391,7 @@ bool QsciLexerCSS_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerCSS*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerCSS_Delete(QsciLexerCSS* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCSS_Delete(QsciLexerCSS* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercss.go b/qt-restricted-extras/qscintilla/gen_qscilexercss.go index f7fd98fc..d2a25dd1 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercss.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexercss.go @@ -1297,7 +1297,7 @@ func miqt_exec_callback_QsciLexerCSS_WriteProperties(self *C.QsciLexerCSS, cb C. // Delete this object from C++ memory. func (this *QsciLexerCSS) Delete() { - C.QsciLexerCSS_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCSS_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercss.h b/qt-restricted-extras/qscintilla/gen_qscilexercss.h index 5621f680..d2db39ab 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercss.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercss.h @@ -139,7 +139,7 @@ void QsciLexerCSS_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerCSS_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerCSS_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerCSS_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerCSS_Delete(QsciLexerCSS* self, bool isSubclass); +void QsciLexerCSS_Delete(QsciLexerCSS* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercustom.cpp b/qt-restricted-extras/qscintilla/gen_qscilexercustom.cpp index ddfa06ff..e9faac76 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercustom.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexercustom.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerCustom_WriteProperties(void*, intptr_t, QSettin } /* extern C */ #endif -class MiqtVirtualQsciLexerCustom : public virtual QsciLexerCustom { +class MiqtVirtualQsciLexerCustom final : public QsciLexerCustom { public: MiqtVirtualQsciLexerCustom(): QsciLexerCustom() {}; MiqtVirtualQsciLexerCustom(QObject* parent): QsciLexerCustom(parent) {}; - virtual ~MiqtVirtualQsciLexerCustom() = default; + virtual ~MiqtVirtualQsciLexerCustom() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__StyleText = 0; @@ -1280,11 +1280,7 @@ bool QsciLexerCustom_virtualbase_WriteProperties(const void* self, QSettings* qs return ( (const MiqtVirtualQsciLexerCustom*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerCustom_Delete(QsciLexerCustom* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCustom_Delete(QsciLexerCustom* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercustom.go b/qt-restricted-extras/qscintilla/gen_qscilexercustom.go index 7156ba5b..16303676 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercustom.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexercustom.go @@ -1163,7 +1163,7 @@ func miqt_exec_callback_QsciLexerCustom_WriteProperties(self *C.QsciLexerCustom, // Delete this object from C++ memory. func (this *QsciLexerCustom) Delete() { - C.QsciLexerCustom_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCustom_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexercustom.h b/qt-restricted-extras/qscintilla/gen_qscilexercustom.h index 7bea4aa1..f55dc828 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexercustom.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexercustom.h @@ -124,7 +124,7 @@ void QsciLexerCustom_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerCustom_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerCustom_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerCustom_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerCustom_Delete(QsciLexerCustom* self, bool isSubclass); +void QsciLexerCustom_Delete(QsciLexerCustom* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerd.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerd.cpp index 70e16f63..f41e2ceb 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerd.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerd.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerD_WriteProperties(void*, intptr_t, QSettings*, } /* extern C */ #endif -class MiqtVirtualQsciLexerD : public virtual QsciLexerD { +class MiqtVirtualQsciLexerD final : public QsciLexerD { public: MiqtVirtualQsciLexerD(): QsciLexerD() {}; MiqtVirtualQsciLexerD(QObject* parent): QsciLexerD(parent) {}; - virtual ~MiqtVirtualQsciLexerD() = default; + virtual ~MiqtVirtualQsciLexerD() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -1448,11 +1448,7 @@ bool QsciLexerD_virtualbase_WriteProperties(const void* self, QSettings* qs, str return ( (const MiqtVirtualQsciLexerD*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerD_Delete(QsciLexerD* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerD_Delete(QsciLexerD* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerd.go b/qt-restricted-extras/qscintilla/gen_qscilexerd.go index da0fdf6f..f33eff6a 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerd.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerd.go @@ -1343,7 +1343,7 @@ func miqt_exec_callback_QsciLexerD_WriteProperties(self *C.QsciLexerD, cb C.intp // Delete this object from C++ memory. func (this *QsciLexerD) Delete() { - C.QsciLexerD_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerD_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerd.h b/qt-restricted-extras/qscintilla/gen_qscilexerd.h index 3c0b60f5..2921d094 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerd.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerd.h @@ -143,7 +143,7 @@ void QsciLexerD_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerD_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerD_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerD_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerD_Delete(QsciLexerD* self, bool isSubclass); +void QsciLexerD_Delete(QsciLexerD* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerdiff.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.cpp index 3affd993..0bdb89d4 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerdiff.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerDiff_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerDiff : public virtual QsciLexerDiff { +class MiqtVirtualQsciLexerDiff final : public QsciLexerDiff { public: MiqtVirtualQsciLexerDiff(): QsciLexerDiff() {}; MiqtVirtualQsciLexerDiff(QObject* parent): QsciLexerDiff(parent) {}; - virtual ~MiqtVirtualQsciLexerDiff() = default; + virtual ~MiqtVirtualQsciLexerDiff() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1257,11 +1257,7 @@ bool QsciLexerDiff_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerDiff*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerDiff_Delete(QsciLexerDiff* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerDiff_Delete(QsciLexerDiff* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerdiff.go b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.go index d91d7c9e..ba54a8b4 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerdiff.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.go @@ -1158,7 +1158,7 @@ func miqt_exec_callback_QsciLexerDiff_WriteProperties(self *C.QsciLexerDiff, cb // Delete this object from C++ memory. func (this *QsciLexerDiff) Delete() { - C.QsciLexerDiff_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerDiff_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerdiff.h b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.h index 23a4df44..62e5bccf 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerdiff.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerdiff.h @@ -118,7 +118,7 @@ void QsciLexerDiff_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerDiff_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerDiff_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerDiff_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerDiff_Delete(QsciLexerDiff* self, bool isSubclass); +void QsciLexerDiff_Delete(QsciLexerDiff* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeredifact.cpp b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.cpp index f64cc693..1cf5da46 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeredifact.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerEDIFACT_WriteProperties(void*, intptr_t, QSetti } /* extern C */ #endif -class MiqtVirtualQsciLexerEDIFACT : public virtual QsciLexerEDIFACT { +class MiqtVirtualQsciLexerEDIFACT final : public QsciLexerEDIFACT { public: MiqtVirtualQsciLexerEDIFACT(): QsciLexerEDIFACT() {}; MiqtVirtualQsciLexerEDIFACT(QObject* parent): QsciLexerEDIFACT(parent) {}; - virtual ~MiqtVirtualQsciLexerEDIFACT() = default; + virtual ~MiqtVirtualQsciLexerEDIFACT() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1253,11 +1253,7 @@ bool QsciLexerEDIFACT_virtualbase_WriteProperties(const void* self, QSettings* q return ( (const MiqtVirtualQsciLexerEDIFACT*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerEDIFACT_Delete(QsciLexerEDIFACT* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerEDIFACT_Delete(QsciLexerEDIFACT* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeredifact.go b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.go index 96af0f8b..473e83d9 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeredifact.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.go @@ -1150,7 +1150,7 @@ func miqt_exec_callback_QsciLexerEDIFACT_WriteProperties(self *C.QsciLexerEDIFAC // Delete this object from C++ memory. func (this *QsciLexerEDIFACT) Delete() { - C.QsciLexerEDIFACT_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerEDIFACT_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeredifact.h b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.h index 263cc69c..6bb13491 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeredifact.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexeredifact.h @@ -117,7 +117,7 @@ void QsciLexerEDIFACT_override_virtual_ReadProperties(void* self, intptr_t slot) bool QsciLexerEDIFACT_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerEDIFACT_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerEDIFACT_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerEDIFACT_Delete(QsciLexerEDIFACT* self, bool isSubclass); +void QsciLexerEDIFACT_Delete(QsciLexerEDIFACT* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.cpp index 0e440f91..d21af621 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerfortran.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.cpp @@ -15,13 +15,13 @@ void miqt_exec_callback_QsciLexerFortran_SetFoldCompact(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQsciLexerFortran : public virtual QsciLexerFortran { +class MiqtVirtualQsciLexerFortran final : public QsciLexerFortran { public: MiqtVirtualQsciLexerFortran(): QsciLexerFortran() {}; MiqtVirtualQsciLexerFortran(QObject* parent): QsciLexerFortran(parent) {}; - virtual ~MiqtVirtualQsciLexerFortran() = default; + virtual ~MiqtVirtualQsciLexerFortran() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -155,11 +155,7 @@ void QsciLexerFortran_virtualbase_SetFoldCompact(void* self, bool fold) { ( (MiqtVirtualQsciLexerFortran*)(self) )->virtualbase_SetFoldCompact(fold); } -void QsciLexerFortran_Delete(QsciLexerFortran* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerFortran_Delete(QsciLexerFortran* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran.go b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.go index 9c06326a..4922ea45 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerfortran.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.go @@ -183,7 +183,7 @@ func miqt_exec_callback_QsciLexerFortran_SetFoldCompact(self *C.QsciLexerFortran // Delete this object from C++ memory. func (this *QsciLexerFortran) Delete() { - C.QsciLexerFortran_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerFortran_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran.h b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.h index 6204c258..567f2e6a 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerfortran.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran.h @@ -44,7 +44,7 @@ struct miqt_string QsciLexerFortran_TrUtf82(const char* s, const char* c); struct miqt_string QsciLexerFortran_TrUtf83(const char* s, const char* c, int n); void QsciLexerFortran_override_virtual_SetFoldCompact(void* self, intptr_t slot); void QsciLexerFortran_virtualbase_SetFoldCompact(void* self, bool fold); -void QsciLexerFortran_Delete(QsciLexerFortran* self, bool isSubclass); +void QsciLexerFortran_Delete(QsciLexerFortran* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.cpp index 428531a8..61cdff7e 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerFortran77_WriteProperties(void*, intptr_t, QSet } /* extern C */ #endif -class MiqtVirtualQsciLexerFortran77 : public virtual QsciLexerFortran77 { +class MiqtVirtualQsciLexerFortran77 final : public QsciLexerFortran77 { public: MiqtVirtualQsciLexerFortran77(): QsciLexerFortran77() {}; MiqtVirtualQsciLexerFortran77(QObject* parent): QsciLexerFortran77(parent) {}; - virtual ~MiqtVirtualQsciLexerFortran77() = default; + virtual ~MiqtVirtualQsciLexerFortran77() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -1318,11 +1318,7 @@ bool QsciLexerFortran77_virtualbase_WriteProperties(const void* self, QSettings* return ( (const MiqtVirtualQsciLexerFortran77*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerFortran77_Delete(QsciLexerFortran77* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerFortran77_Delete(QsciLexerFortran77* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.go b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.go index 30260d94..9633fdd4 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.go @@ -1219,7 +1219,7 @@ func miqt_exec_callback_QsciLexerFortran77_WriteProperties(self *C.QsciLexerFort // Delete this object from C++ memory. func (this *QsciLexerFortran77) Delete() { - C.QsciLexerFortran77_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerFortran77_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h index 661382d0..a08cedaa 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerfortran77.h @@ -127,7 +127,7 @@ void QsciLexerFortran77_override_virtual_ReadProperties(void* self, intptr_t slo bool QsciLexerFortran77_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerFortran77_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerFortran77_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerFortran77_Delete(QsciLexerFortran77* self, bool isSubclass); +void QsciLexerFortran77_Delete(QsciLexerFortran77* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerhtml.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.cpp index b5efc0d5..b27f983a 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerhtml.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerHTML_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerHTML : public virtual QsciLexerHTML { +class MiqtVirtualQsciLexerHTML final : public QsciLexerHTML { public: MiqtVirtualQsciLexerHTML(): QsciLexerHTML() {}; MiqtVirtualQsciLexerHTML(QObject* parent): QsciLexerHTML(parent) {}; - virtual ~MiqtVirtualQsciLexerHTML() = default; + virtual ~MiqtVirtualQsciLexerHTML() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -1436,11 +1436,7 @@ bool QsciLexerHTML_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerHTML*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerHTML_Delete(QsciLexerHTML* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerHTML_Delete(QsciLexerHTML* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerhtml.go b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.go index 4049ebb2..e8843757 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerhtml.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.go @@ -1420,7 +1420,7 @@ func miqt_exec_callback_QsciLexerHTML_WriteProperties(self *C.QsciLexerHTML, cb // Delete this object from C++ memory. func (this *QsciLexerHTML) Delete() { - C.QsciLexerHTML_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerHTML_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerhtml.h b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.h index cb73c0fe..98fad601 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerhtml.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerhtml.h @@ -144,7 +144,7 @@ void QsciLexerHTML_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerHTML_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerHTML_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerHTML_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerHTML_Delete(QsciLexerHTML* self, bool isSubclass); +void QsciLexerHTML_Delete(QsciLexerHTML* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeridl.cpp b/qt-restricted-extras/qscintilla/gen_qscilexeridl.cpp index 9cda741e..b6c966e3 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeridl.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexeridl.cpp @@ -20,13 +20,13 @@ void miqt_exec_callback_QsciLexerIDL_SetStylePreprocessor(void*, intptr_t, bool) } /* extern C */ #endif -class MiqtVirtualQsciLexerIDL : public virtual QsciLexerIDL { +class MiqtVirtualQsciLexerIDL final : public QsciLexerIDL { public: MiqtVirtualQsciLexerIDL(): QsciLexerIDL() {}; MiqtVirtualQsciLexerIDL(QObject* parent): QsciLexerIDL(parent) {}; - virtual ~MiqtVirtualQsciLexerIDL() = default; + virtual ~MiqtVirtualQsciLexerIDL() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -299,11 +299,7 @@ void QsciLexerIDL_virtualbase_SetStylePreprocessor(void* self, bool style) { ( (MiqtVirtualQsciLexerIDL*)(self) )->virtualbase_SetStylePreprocessor(style); } -void QsciLexerIDL_Delete(QsciLexerIDL* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerIDL_Delete(QsciLexerIDL* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeridl.go b/qt-restricted-extras/qscintilla/gen_qscilexeridl.go index d625abdf..7090986e 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeridl.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexeridl.go @@ -295,7 +295,7 @@ func miqt_exec_callback_QsciLexerIDL_SetStylePreprocessor(self *C.QsciLexerIDL, // Delete this object from C++ memory. func (this *QsciLexerIDL) Delete() { - C.QsciLexerIDL_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerIDL_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeridl.h b/qt-restricted-extras/qscintilla/gen_qscilexeridl.h index a14c4307..63e1a28a 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeridl.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexeridl.h @@ -55,7 +55,7 @@ void QsciLexerIDL_override_virtual_SetFoldPreprocessor(void* self, intptr_t slot void QsciLexerIDL_virtualbase_SetFoldPreprocessor(void* self, bool fold); void QsciLexerIDL_override_virtual_SetStylePreprocessor(void* self, intptr_t slot); void QsciLexerIDL_virtualbase_SetStylePreprocessor(void* self, bool style); -void QsciLexerIDL_Delete(QsciLexerIDL* self, bool isSubclass); +void QsciLexerIDL_Delete(QsciLexerIDL* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjava.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerjava.cpp index c689f1b6..0498af85 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjava.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjava.cpp @@ -19,13 +19,13 @@ void miqt_exec_callback_QsciLexerJava_SetStylePreprocessor(void*, intptr_t, bool } /* extern C */ #endif -class MiqtVirtualQsciLexerJava : public virtual QsciLexerJava { +class MiqtVirtualQsciLexerJava final : public QsciLexerJava { public: MiqtVirtualQsciLexerJava(): QsciLexerJava() {}; MiqtVirtualQsciLexerJava(QObject* parent): QsciLexerJava(parent) {}; - virtual ~MiqtVirtualQsciLexerJava() = default; + virtual ~MiqtVirtualQsciLexerJava() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -283,11 +283,7 @@ void QsciLexerJava_virtualbase_SetStylePreprocessor(void* self, bool style) { ( (MiqtVirtualQsciLexerJava*)(self) )->virtualbase_SetStylePreprocessor(style); } -void QsciLexerJava_Delete(QsciLexerJava* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerJava_Delete(QsciLexerJava* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjava.go b/qt-restricted-extras/qscintilla/gen_qscilexerjava.go index 20da1dcc..46155ee7 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjava.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjava.go @@ -282,7 +282,7 @@ func miqt_exec_callback_QsciLexerJava_SetStylePreprocessor(self *C.QsciLexerJava // Delete this object from C++ memory. func (this *QsciLexerJava) Delete() { - C.QsciLexerJava_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerJava_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjava.h b/qt-restricted-extras/qscintilla/gen_qscilexerjava.h index 89489667..2a786bc7 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjava.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjava.h @@ -51,7 +51,7 @@ void QsciLexerJava_override_virtual_SetFoldPreprocessor(void* self, intptr_t slo void QsciLexerJava_virtualbase_SetFoldPreprocessor(void* self, bool fold); void QsciLexerJava_override_virtual_SetStylePreprocessor(void* self, intptr_t slot); void QsciLexerJava_virtualbase_SetStylePreprocessor(void* self, bool style); -void QsciLexerJava_Delete(QsciLexerJava* self, bool isSubclass); +void QsciLexerJava_Delete(QsciLexerJava* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.cpp index ff8ca2ff..ebef9c9d 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.cpp @@ -21,13 +21,13 @@ void miqt_exec_callback_QsciLexerJavaScript_SetStylePreprocessor(void*, intptr_t } /* extern C */ #endif -class MiqtVirtualQsciLexerJavaScript : public virtual QsciLexerJavaScript { +class MiqtVirtualQsciLexerJavaScript final : public QsciLexerJavaScript { public: MiqtVirtualQsciLexerJavaScript(): QsciLexerJavaScript() {}; MiqtVirtualQsciLexerJavaScript(QObject* parent): QsciLexerJavaScript(parent) {}; - virtual ~MiqtVirtualQsciLexerJavaScript() = default; + virtual ~MiqtVirtualQsciLexerJavaScript() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -312,11 +312,7 @@ void QsciLexerJavaScript_virtualbase_SetStylePreprocessor(void* self, bool style ( (MiqtVirtualQsciLexerJavaScript*)(self) )->virtualbase_SetStylePreprocessor(style); } -void QsciLexerJavaScript_Delete(QsciLexerJavaScript* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerJavaScript_Delete(QsciLexerJavaScript* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.go b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.go index 250a442d..13ac020d 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.go @@ -311,7 +311,7 @@ func miqt_exec_callback_QsciLexerJavaScript_SetStylePreprocessor(self *C.QsciLex // Delete this object from C++ memory. func (this *QsciLexerJavaScript) Delete() { - C.QsciLexerJavaScript_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerJavaScript_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h index 33b28c5b..140bab58 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjavascript.h @@ -60,7 +60,7 @@ void QsciLexerJavaScript_override_virtual_SetFoldPreprocessor(void* self, intptr void QsciLexerJavaScript_virtualbase_SetFoldPreprocessor(void* self, bool fold); void QsciLexerJavaScript_override_virtual_SetStylePreprocessor(void* self, intptr_t slot); void QsciLexerJavaScript_virtualbase_SetStylePreprocessor(void* self, bool style); -void QsciLexerJavaScript_Delete(QsciLexerJavaScript* self, bool isSubclass); +void QsciLexerJavaScript_Delete(QsciLexerJavaScript* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjson.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerjson.cpp index 0220e428..6b147d35 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjson.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjson.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerJSON_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerJSON : public virtual QsciLexerJSON { +class MiqtVirtualQsciLexerJSON final : public QsciLexerJSON { public: MiqtVirtualQsciLexerJSON(): QsciLexerJSON() {}; MiqtVirtualQsciLexerJSON(QObject* parent): QsciLexerJSON(parent) {}; - virtual ~MiqtVirtualQsciLexerJSON() = default; + virtual ~MiqtVirtualQsciLexerJSON() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1297,11 +1297,7 @@ bool QsciLexerJSON_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerJSON*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerJSON_Delete(QsciLexerJSON* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerJSON_Delete(QsciLexerJSON* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjson.go b/qt-restricted-extras/qscintilla/gen_qscilexerjson.go index c7955492..627a497e 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjson.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjson.go @@ -1204,7 +1204,7 @@ func miqt_exec_callback_QsciLexerJSON_WriteProperties(self *C.QsciLexerJSON, cb // Delete this object from C++ memory. func (this *QsciLexerJSON) Delete() { - C.QsciLexerJSON_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerJSON_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerjson.h b/qt-restricted-extras/qscintilla/gen_qscilexerjson.h index 28b28e4f..27245264 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerjson.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerjson.h @@ -128,7 +128,7 @@ void QsciLexerJSON_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerJSON_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerJSON_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerJSON_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerJSON_Delete(QsciLexerJSON* self, bool isSubclass); +void QsciLexerJSON_Delete(QsciLexerJSON* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp index 8e18b02e..f577e64c 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerlua.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerLua_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerLua : public virtual QsciLexerLua { +class MiqtVirtualQsciLexerLua final : public QsciLexerLua { public: MiqtVirtualQsciLexerLua(): QsciLexerLua() {}; MiqtVirtualQsciLexerLua(QObject* parent): QsciLexerLua(parent) {}; - virtual ~MiqtVirtualQsciLexerLua() = default; + virtual ~MiqtVirtualQsciLexerLua() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -1346,11 +1346,7 @@ bool QsciLexerLua_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerLua*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerLua_Delete(QsciLexerLua* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerLua_Delete(QsciLexerLua* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerlua.go b/qt-restricted-extras/qscintilla/gen_qscilexerlua.go index d2f2458f..00951c4e 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerlua.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerlua.go @@ -1247,7 +1247,7 @@ func miqt_exec_callback_QsciLexerLua_WriteProperties(self *C.QsciLexerLua, cb C. // Delete this object from C++ memory. func (this *QsciLexerLua) Delete() { - C.QsciLexerLua_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerLua_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerlua.h b/qt-restricted-extras/qscintilla/gen_qscilexerlua.h index 813ee6dc..defab86c 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerlua.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerlua.h @@ -130,7 +130,7 @@ void QsciLexerLua_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerLua_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerLua_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerLua_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerLua_Delete(QsciLexerLua* self, bool isSubclass); +void QsciLexerLua_Delete(QsciLexerLua* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermakefile.cpp b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.cpp index 1154065c..8225c4ff 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermakefile.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerMakefile_WriteProperties(void*, intptr_t, QSett } /* extern C */ #endif -class MiqtVirtualQsciLexerMakefile : public virtual QsciLexerMakefile { +class MiqtVirtualQsciLexerMakefile final : public QsciLexerMakefile { public: MiqtVirtualQsciLexerMakefile(): QsciLexerMakefile() {}; MiqtVirtualQsciLexerMakefile(QObject* parent): QsciLexerMakefile(parent) {}; - virtual ~MiqtVirtualQsciLexerMakefile() = default; + virtual ~MiqtVirtualQsciLexerMakefile() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1269,11 +1269,7 @@ bool QsciLexerMakefile_virtualbase_WriteProperties(const void* self, QSettings* return ( (const MiqtVirtualQsciLexerMakefile*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerMakefile_Delete(QsciLexerMakefile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerMakefile_Delete(QsciLexerMakefile* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermakefile.go b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.go index d8f26e92..bd981005 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermakefile.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.go @@ -1169,7 +1169,7 @@ func miqt_exec_callback_QsciLexerMakefile_WriteProperties(self *C.QsciLexerMakef // Delete this object from C++ memory. func (this *QsciLexerMakefile) Delete() { - C.QsciLexerMakefile_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerMakefile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermakefile.h b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.h index 27418a79..19caf1c1 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermakefile.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexermakefile.h @@ -121,7 +121,7 @@ void QsciLexerMakefile_override_virtual_ReadProperties(void* self, intptr_t slot bool QsciLexerMakefile_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerMakefile_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerMakefile_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerMakefile_Delete(QsciLexerMakefile* self, bool isSubclass); +void QsciLexerMakefile_Delete(QsciLexerMakefile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.cpp b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.cpp index 54faccf2..57ba6eab 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerMarkdown_WriteProperties(void*, intptr_t, QSett } /* extern C */ #endif -class MiqtVirtualQsciLexerMarkdown : public virtual QsciLexerMarkdown { +class MiqtVirtualQsciLexerMarkdown final : public QsciLexerMarkdown { public: MiqtVirtualQsciLexerMarkdown(): QsciLexerMarkdown() {}; MiqtVirtualQsciLexerMarkdown(QObject* parent): QsciLexerMarkdown(parent) {}; - virtual ~MiqtVirtualQsciLexerMarkdown() = default; + virtual ~MiqtVirtualQsciLexerMarkdown() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1261,11 +1261,7 @@ bool QsciLexerMarkdown_virtualbase_WriteProperties(const void* self, QSettings* return ( (const MiqtVirtualQsciLexerMarkdown*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerMarkdown_Delete(QsciLexerMarkdown* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerMarkdown_Delete(QsciLexerMarkdown* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.go b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.go index e4d041f5..eaa355f1 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.go @@ -1175,7 +1175,7 @@ func miqt_exec_callback_QsciLexerMarkdown_WriteProperties(self *C.QsciLexerMarkd // Delete this object from C++ memory. func (this *QsciLexerMarkdown) Delete() { - C.QsciLexerMarkdown_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerMarkdown_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h index 27b5dc82..be878492 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexermarkdown.h @@ -119,7 +119,7 @@ void QsciLexerMarkdown_override_virtual_ReadProperties(void* self, intptr_t slot bool QsciLexerMarkdown_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerMarkdown_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerMarkdown_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerMarkdown_Delete(QsciLexerMarkdown* self, bool isSubclass); +void QsciLexerMarkdown_Delete(QsciLexerMarkdown* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermatlab.cpp b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.cpp index 204c2789..2a3dc520 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermatlab.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerMatlab_WriteProperties(void*, intptr_t, QSettin } /* extern C */ #endif -class MiqtVirtualQsciLexerMatlab : public virtual QsciLexerMatlab { +class MiqtVirtualQsciLexerMatlab final : public QsciLexerMatlab { public: MiqtVirtualQsciLexerMatlab(): QsciLexerMatlab() {}; MiqtVirtualQsciLexerMatlab(QObject* parent): QsciLexerMatlab(parent) {}; - virtual ~MiqtVirtualQsciLexerMatlab() = default; + virtual ~MiqtVirtualQsciLexerMatlab() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1261,11 +1261,7 @@ bool QsciLexerMatlab_virtualbase_WriteProperties(const void* self, QSettings* qs return ( (const MiqtVirtualQsciLexerMatlab*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerMatlab_Delete(QsciLexerMatlab* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerMatlab_Delete(QsciLexerMatlab* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermatlab.go b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.go index 882cf254..c1e49ed0 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermatlab.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.go @@ -1161,7 +1161,7 @@ func miqt_exec_callback_QsciLexerMatlab_WriteProperties(self *C.QsciLexerMatlab, // Delete this object from C++ memory. func (this *QsciLexerMatlab) Delete() { - C.QsciLexerMatlab_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerMatlab_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexermatlab.h b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.h index e3b28593..119d997b 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexermatlab.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexermatlab.h @@ -119,7 +119,7 @@ void QsciLexerMatlab_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerMatlab_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerMatlab_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerMatlab_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerMatlab_Delete(QsciLexerMatlab* self, bool isSubclass); +void QsciLexerMatlab_Delete(QsciLexerMatlab* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeroctave.cpp b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.cpp index 4ba23a3f..8984678b 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeroctave.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.cpp @@ -112,11 +112,7 @@ struct miqt_string QsciLexerOctave_TrUtf83(const char* s, const char* c, int n) return _ms; } -void QsciLexerOctave_Delete(QsciLexerOctave* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerOctave_Delete(QsciLexerOctave* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeroctave.go b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.go index 80ecf9d4..3f4492a8 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeroctave.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.go @@ -156,7 +156,7 @@ func QsciLexerOctave_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QsciLexerOctave) Delete() { - C.QsciLexerOctave_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerOctave_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeroctave.h b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.h index 3841269a..8fde97c5 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeroctave.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexeroctave.h @@ -42,7 +42,7 @@ struct miqt_string QsciLexerOctave_Tr2(const char* s, const char* c); struct miqt_string QsciLexerOctave_Tr3(const char* s, const char* c, int n); struct miqt_string QsciLexerOctave_TrUtf82(const char* s, const char* c); struct miqt_string QsciLexerOctave_TrUtf83(const char* s, const char* c, int n); -void QsciLexerOctave_Delete(QsciLexerOctave* self, bool isSubclass); +void QsciLexerOctave_Delete(QsciLexerOctave* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp index 227af7b2..7b95c855 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerPascal_WriteProperties(void*, intptr_t, QSettin } /* extern C */ #endif -class MiqtVirtualQsciLexerPascal : public virtual QsciLexerPascal { +class MiqtVirtualQsciLexerPascal final : public QsciLexerPascal { public: MiqtVirtualQsciLexerPascal(): QsciLexerPascal() {}; MiqtVirtualQsciLexerPascal(QObject* parent): QsciLexerPascal(parent) {}; - virtual ~MiqtVirtualQsciLexerPascal() = default; + virtual ~MiqtVirtualQsciLexerPascal() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1452,11 +1452,7 @@ bool QsciLexerPascal_virtualbase_WriteProperties(const void* self, QSettings* qs return ( (const MiqtVirtualQsciLexerPascal*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPascal_Delete(QsciLexerPascal* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPascal_Delete(QsciLexerPascal* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.go b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.go index da2d5285..6378d875 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.go @@ -1338,7 +1338,7 @@ func miqt_exec_callback_QsciLexerPascal_WriteProperties(self *C.QsciLexerPascal, // Delete this object from C++ memory. func (this *QsciLexerPascal) Delete() { - C.QsciLexerPascal_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPascal_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.h b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.h index c1cacc45..c70edda5 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpascal.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpascal.h @@ -144,7 +144,7 @@ void QsciLexerPascal_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerPascal_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPascal_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPascal_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPascal_Delete(QsciLexerPascal* self, bool isSubclass); +void QsciLexerPascal_Delete(QsciLexerPascal* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp index 23799b17..c449eadf 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerperl.cpp @@ -54,13 +54,13 @@ bool miqt_exec_callback_QsciLexerPerl_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerPerl : public virtual QsciLexerPerl { +class MiqtVirtualQsciLexerPerl final : public QsciLexerPerl { public: MiqtVirtualQsciLexerPerl(): QsciLexerPerl() {}; MiqtVirtualQsciLexerPerl(QObject* parent): QsciLexerPerl(parent) {}; - virtual ~MiqtVirtualQsciLexerPerl() = default; + virtual ~MiqtVirtualQsciLexerPerl() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1423,11 +1423,7 @@ bool QsciLexerPerl_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerPerl*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPerl_Delete(QsciLexerPerl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPerl_Delete(QsciLexerPerl* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerperl.go b/qt-restricted-extras/qscintilla/gen_qscilexerperl.go index ea4656f1..0f13a48b 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerperl.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerperl.go @@ -1341,7 +1341,7 @@ func miqt_exec_callback_QsciLexerPerl_WriteProperties(self *C.QsciLexerPerl, cb // Delete this object from C++ memory. func (this *QsciLexerPerl) Delete() { - C.QsciLexerPerl_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPerl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerperl.h b/qt-restricted-extras/qscintilla/gen_qscilexerperl.h index 801a0d98..347e49e8 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerperl.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerperl.h @@ -143,7 +143,7 @@ void QsciLexerPerl_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerPerl_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPerl_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPerl_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPerl_Delete(QsciLexerPerl* self, bool isSubclass); +void QsciLexerPerl_Delete(QsciLexerPerl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpo.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpo.cpp index 486f1cc7..56da3181 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpo.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpo.cpp @@ -54,13 +54,13 @@ bool miqt_exec_callback_QsciLexerPO_WriteProperties(void*, intptr_t, QSettings*, } /* extern C */ #endif -class MiqtVirtualQsciLexerPO : public virtual QsciLexerPO { +class MiqtVirtualQsciLexerPO final : public QsciLexerPO { public: MiqtVirtualQsciLexerPO(): QsciLexerPO() {}; MiqtVirtualQsciLexerPO(QObject* parent): QsciLexerPO(parent) {}; - virtual ~MiqtVirtualQsciLexerPO() = default; + virtual ~MiqtVirtualQsciLexerPO() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1343,11 +1343,7 @@ bool QsciLexerPO_virtualbase_WriteProperties(const void* self, QSettings* qs, st return ( (const MiqtVirtualQsciLexerPO*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPO_Delete(QsciLexerPO* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPO_Delete(QsciLexerPO* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpo.go b/qt-restricted-extras/qscintilla/gen_qscilexerpo.go index bc28e872..83c086a5 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpo.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpo.go @@ -1234,7 +1234,7 @@ func miqt_exec_callback_QsciLexerPO_WriteProperties(self *C.QsciLexerPO, cb C.in // Delete this object from C++ memory. func (this *QsciLexerPO) Delete() { - C.QsciLexerPO_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPO_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpo.h b/qt-restricted-extras/qscintilla/gen_qscilexerpo.h index b0f98ae6..3039ca6b 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpo.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpo.h @@ -127,7 +127,7 @@ void QsciLexerPO_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerPO_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPO_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPO_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPO_Delete(QsciLexerPO* self, bool isSubclass); +void QsciLexerPO_Delete(QsciLexerPO* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.cpp index ccbc5b73..d0982d98 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.cpp @@ -56,13 +56,13 @@ bool miqt_exec_callback_QsciLexerPostScript_WriteProperties(void*, intptr_t, QSe } /* extern C */ #endif -class MiqtVirtualQsciLexerPostScript : public virtual QsciLexerPostScript { +class MiqtVirtualQsciLexerPostScript final : public QsciLexerPostScript { public: MiqtVirtualQsciLexerPostScript(): QsciLexerPostScript() {}; MiqtVirtualQsciLexerPostScript(QObject* parent): QsciLexerPostScript(parent) {}; - virtual ~MiqtVirtualQsciLexerPostScript() = default; + virtual ~MiqtVirtualQsciLexerPostScript() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetTokenize = 0; @@ -1437,11 +1437,7 @@ bool QsciLexerPostScript_virtualbase_WriteProperties(const void* self, QSettings return ( (const MiqtVirtualQsciLexerPostScript*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPostScript_Delete(QsciLexerPostScript* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPostScript_Delete(QsciLexerPostScript* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.go b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.go index 11e180c7..f746f5d7 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.go @@ -1318,7 +1318,7 @@ func miqt_exec_callback_QsciLexerPostScript_WriteProperties(self *C.QsciLexerPos // Delete this object from C++ memory. func (this *QsciLexerPostScript) Delete() { - C.QsciLexerPostScript_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPostScript_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h index 9f09e366..9ad8b817 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpostscript.h @@ -138,7 +138,7 @@ void QsciLexerPostScript_override_virtual_ReadProperties(void* self, intptr_t sl bool QsciLexerPostScript_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPostScript_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPostScript_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPostScript_Delete(QsciLexerPostScript* self, bool isSubclass); +void QsciLexerPostScript_Delete(QsciLexerPostScript* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpov.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpov.cpp index ae31edf4..d1d3ee24 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpov.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpov.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerPOV_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerPOV : public virtual QsciLexerPOV { +class MiqtVirtualQsciLexerPOV final : public QsciLexerPOV { public: MiqtVirtualQsciLexerPOV(): QsciLexerPOV() {}; MiqtVirtualQsciLexerPOV(QObject* parent): QsciLexerPOV(parent) {}; - virtual ~MiqtVirtualQsciLexerPOV() = default; + virtual ~MiqtVirtualQsciLexerPOV() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1404,11 +1404,7 @@ bool QsciLexerPOV_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerPOV*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPOV_Delete(QsciLexerPOV* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPOV_Delete(QsciLexerPOV* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpov.go b/qt-restricted-extras/qscintilla/gen_qscilexerpov.go index d676d6de..164748c3 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpov.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpov.go @@ -1294,7 +1294,7 @@ func miqt_exec_callback_QsciLexerPOV_WriteProperties(self *C.QsciLexerPOV, cb C. // Delete this object from C++ memory. func (this *QsciLexerPOV) Delete() { - C.QsciLexerPOV_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPOV_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpov.h b/qt-restricted-extras/qscintilla/gen_qscilexerpov.h index 0f00982e..290d9d63 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpov.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpov.h @@ -136,7 +136,7 @@ void QsciLexerPOV_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerPOV_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPOV_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPOV_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPOV_Delete(QsciLexerPOV* self, bool isSubclass); +void QsciLexerPOV_Delete(QsciLexerPOV* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerproperties.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.cpp index aa00ae76..d5883391 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerproperties.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerProperties_WriteProperties(void*, intptr_t, QSe } /* extern C */ #endif -class MiqtVirtualQsciLexerProperties : public virtual QsciLexerProperties { +class MiqtVirtualQsciLexerProperties final : public QsciLexerProperties { public: MiqtVirtualQsciLexerProperties(): QsciLexerProperties() {}; MiqtVirtualQsciLexerProperties(QObject* parent): QsciLexerProperties(parent) {}; - virtual ~MiqtVirtualQsciLexerProperties() = default; + virtual ~MiqtVirtualQsciLexerProperties() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -1322,11 +1322,7 @@ bool QsciLexerProperties_virtualbase_WriteProperties(const void* self, QSettings return ( (const MiqtVirtualQsciLexerProperties*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerProperties_Delete(QsciLexerProperties* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerProperties_Delete(QsciLexerProperties* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerproperties.go b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.go index 450b7089..cbfdc9ec 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerproperties.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.go @@ -1214,7 +1214,7 @@ func miqt_exec_callback_QsciLexerProperties_WriteProperties(self *C.QsciLexerPro // Delete this object from C++ memory. func (this *QsciLexerProperties) Delete() { - C.QsciLexerProperties_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerProperties_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerproperties.h b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.h index 8ba83cf0..618a9847 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerproperties.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerproperties.h @@ -128,7 +128,7 @@ void QsciLexerProperties_override_virtual_ReadProperties(void* self, intptr_t sl bool QsciLexerProperties_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerProperties_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerProperties_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerProperties_Delete(QsciLexerProperties* self, bool isSubclass); +void QsciLexerProperties_Delete(QsciLexerProperties* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp index 135ff8b1..cdd4f041 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpython.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerPython_WriteProperties(void*, intptr_t, QSettin } /* extern C */ #endif -class MiqtVirtualQsciLexerPython : public virtual QsciLexerPython { +class MiqtVirtualQsciLexerPython final : public QsciLexerPython { public: MiqtVirtualQsciLexerPython(): QsciLexerPython() {}; MiqtVirtualQsciLexerPython(QObject* parent): QsciLexerPython(parent) {}; - virtual ~MiqtVirtualQsciLexerPython() = default; + virtual ~MiqtVirtualQsciLexerPython() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IndentationGuideView = 0; @@ -1486,11 +1486,7 @@ bool QsciLexerPython_virtualbase_WriteProperties(const void* self, QSettings* qs return ( (const MiqtVirtualQsciLexerPython*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPython_Delete(QsciLexerPython* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPython_Delete(QsciLexerPython* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpython.go b/qt-restricted-extras/qscintilla/gen_qscilexerpython.go index 35cd6d90..68ffad98 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpython.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpython.go @@ -1381,7 +1381,7 @@ func miqt_exec_callback_QsciLexerPython_WriteProperties(self *C.QsciLexerPython, // Delete this object from C++ memory. func (this *QsciLexerPython) Delete() { - C.QsciLexerPython_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPython_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerpython.h b/qt-restricted-extras/qscintilla/gen_qscilexerpython.h index 3e7fdd5f..35163be2 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerpython.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerpython.h @@ -152,7 +152,7 @@ void QsciLexerPython_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerPython_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPython_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPython_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPython_Delete(QsciLexerPython* self, bool isSubclass); +void QsciLexerPython_Delete(QsciLexerPython* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerruby.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerruby.cpp index 69ee39ac..9ab6462a 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerruby.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerruby.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerRuby_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerRuby : public virtual QsciLexerRuby { +class MiqtVirtualQsciLexerRuby final : public QsciLexerRuby { public: MiqtVirtualQsciLexerRuby(): QsciLexerRuby() {}; MiqtVirtualQsciLexerRuby(QObject* parent): QsciLexerRuby(parent) {}; - virtual ~MiqtVirtualQsciLexerRuby() = default; + virtual ~MiqtVirtualQsciLexerRuby() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1317,11 +1317,7 @@ bool QsciLexerRuby_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerRuby*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerRuby_Delete(QsciLexerRuby* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerRuby_Delete(QsciLexerRuby* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerruby.go b/qt-restricted-extras/qscintilla/gen_qscilexerruby.go index c1049a9d..c9796587 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerruby.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerruby.go @@ -1247,7 +1247,7 @@ func miqt_exec_callback_QsciLexerRuby_WriteProperties(self *C.QsciLexerRuby, cb // Delete this object from C++ memory. func (this *QsciLexerRuby) Delete() { - C.QsciLexerRuby_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerRuby_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerruby.h b/qt-restricted-extras/qscintilla/gen_qscilexerruby.h index 229ac3cb..000235f8 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerruby.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerruby.h @@ -133,7 +133,7 @@ void QsciLexerRuby_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerRuby_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerRuby_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerRuby_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerRuby_Delete(QsciLexerRuby* self, bool isSubclass); +void QsciLexerRuby_Delete(QsciLexerRuby* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerspice.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerspice.cpp index 993df4ef..fc2bf19e 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerspice.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerspice.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerSpice_WriteProperties(void*, intptr_t, QSetting } /* extern C */ #endif -class MiqtVirtualQsciLexerSpice : public virtual QsciLexerSpice { +class MiqtVirtualQsciLexerSpice final : public QsciLexerSpice { public: MiqtVirtualQsciLexerSpice(): QsciLexerSpice() {}; MiqtVirtualQsciLexerSpice(QObject* parent): QsciLexerSpice(parent) {}; - virtual ~MiqtVirtualQsciLexerSpice() = default; + virtual ~MiqtVirtualQsciLexerSpice() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1265,11 +1265,7 @@ bool QsciLexerSpice_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerSpice*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerSpice_Delete(QsciLexerSpice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerSpice_Delete(QsciLexerSpice* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerspice.go b/qt-restricted-extras/qscintilla/gen_qscilexerspice.go index fd93ce29..0b47c006 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerspice.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerspice.go @@ -1165,7 +1165,7 @@ func miqt_exec_callback_QsciLexerSpice_WriteProperties(self *C.QsciLexerSpice, c // Delete this object from C++ memory. func (this *QsciLexerSpice) Delete() { - C.QsciLexerSpice_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerSpice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerspice.h b/qt-restricted-extras/qscintilla/gen_qscilexerspice.h index 2b4692b6..23ec3e04 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerspice.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerspice.h @@ -120,7 +120,7 @@ void QsciLexerSpice_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerSpice_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerSpice_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerSpice_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerSpice_Delete(QsciLexerSpice* self, bool isSubclass); +void QsciLexerSpice_Delete(QsciLexerSpice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexersql.cpp b/qt-restricted-extras/qscintilla/gen_qscilexersql.cpp index 6270ccbd..a59ee539 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexersql.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexersql.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerSQL_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerSQL : public virtual QsciLexerSQL { +class MiqtVirtualQsciLexerSQL final : public QsciLexerSQL { public: MiqtVirtualQsciLexerSQL(): QsciLexerSQL() {}; MiqtVirtualQsciLexerSQL(QObject* parent): QsciLexerSQL(parent) {}; - virtual ~MiqtVirtualQsciLexerSQL() = default; + virtual ~MiqtVirtualQsciLexerSQL() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetBackslashEscapes = 0; @@ -1440,11 +1440,7 @@ bool QsciLexerSQL_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerSQL*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerSQL_Delete(QsciLexerSQL* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerSQL_Delete(QsciLexerSQL* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexersql.go b/qt-restricted-extras/qscintilla/gen_qscilexersql.go index 718de844..85d5649b 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexersql.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexersql.go @@ -1334,7 +1334,7 @@ func miqt_exec_callback_QsciLexerSQL_WriteProperties(self *C.QsciLexerSQL, cb C. // Delete this object from C++ memory. func (this *QsciLexerSQL) Delete() { - C.QsciLexerSQL_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerSQL_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexersql.h b/qt-restricted-extras/qscintilla/gen_qscilexersql.h index 93e0d4d6..e83222b3 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexersql.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexersql.h @@ -145,7 +145,7 @@ void QsciLexerSQL_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerSQL_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerSQL_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerSQL_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerSQL_Delete(QsciLexerSQL* self, bool isSubclass); +void QsciLexerSQL_Delete(QsciLexerSQL* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertcl.cpp b/qt-restricted-extras/qscintilla/gen_qscilexertcl.cpp index 463953f5..d82a0fe1 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexertcl.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexertcl.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerTCL_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerTCL : public virtual QsciLexerTCL { +class MiqtVirtualQsciLexerTCL final : public QsciLexerTCL { public: MiqtVirtualQsciLexerTCL(): QsciLexerTCL() {}; MiqtVirtualQsciLexerTCL(QObject* parent): QsciLexerTCL(parent) {}; - virtual ~MiqtVirtualQsciLexerTCL() = default; + virtual ~MiqtVirtualQsciLexerTCL() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1285,11 +1285,7 @@ bool QsciLexerTCL_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerTCL*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerTCL_Delete(QsciLexerTCL* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerTCL_Delete(QsciLexerTCL* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertcl.go b/qt-restricted-extras/qscintilla/gen_qscilexertcl.go index 83eaf560..8247fc85 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexertcl.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexertcl.go @@ -1200,7 +1200,7 @@ func miqt_exec_callback_QsciLexerTCL_WriteProperties(self *C.QsciLexerTCL, cb C. // Delete this object from C++ memory. func (this *QsciLexerTCL) Delete() { - C.QsciLexerTCL_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerTCL_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertcl.h b/qt-restricted-extras/qscintilla/gen_qscilexertcl.h index 9e8bdbf3..f551be62 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexertcl.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexertcl.h @@ -125,7 +125,7 @@ void QsciLexerTCL_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerTCL_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerTCL_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerTCL_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerTCL_Delete(QsciLexerTCL* self, bool isSubclass); +void QsciLexerTCL_Delete(QsciLexerTCL* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertex.cpp b/qt-restricted-extras/qscintilla/gen_qscilexertex.cpp index 592faac0..610732fe 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexertex.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexertex.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerTeX_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerTeX : public virtual QsciLexerTeX { +class MiqtVirtualQsciLexerTeX final : public QsciLexerTeX { public: MiqtVirtualQsciLexerTeX(): QsciLexerTeX() {}; MiqtVirtualQsciLexerTeX(QObject* parent): QsciLexerTeX(parent) {}; - virtual ~MiqtVirtualQsciLexerTeX() = default; + virtual ~MiqtVirtualQsciLexerTeX() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1297,11 +1297,7 @@ bool QsciLexerTeX_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerTeX*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerTeX_Delete(QsciLexerTeX* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerTeX_Delete(QsciLexerTeX* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertex.go b/qt-restricted-extras/qscintilla/gen_qscilexertex.go index c5c934dd..12c780ab 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexertex.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexertex.go @@ -1193,7 +1193,7 @@ func miqt_exec_callback_QsciLexerTeX_WriteProperties(self *C.QsciLexerTeX, cb C. // Delete this object from C++ memory. func (this *QsciLexerTeX) Delete() { - C.QsciLexerTeX_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerTeX_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexertex.h b/qt-restricted-extras/qscintilla/gen_qscilexertex.h index c25a7ed6..bfc52174 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexertex.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexertex.h @@ -128,7 +128,7 @@ void QsciLexerTeX_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerTeX_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerTeX_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerTeX_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerTeX_Delete(QsciLexerTeX* self, bool isSubclass); +void QsciLexerTeX_Delete(QsciLexerTeX* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerverilog.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.cpp index c61e1189..8b21d305 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerverilog.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerVerilog_WriteProperties(void*, intptr_t, QSetti } /* extern C */ #endif -class MiqtVirtualQsciLexerVerilog : public virtual QsciLexerVerilog { +class MiqtVirtualQsciLexerVerilog final : public QsciLexerVerilog { public: MiqtVirtualQsciLexerVerilog(): QsciLexerVerilog() {}; MiqtVirtualQsciLexerVerilog(QObject* parent): QsciLexerVerilog(parent) {}; - virtual ~MiqtVirtualQsciLexerVerilog() = default; + virtual ~MiqtVirtualQsciLexerVerilog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1321,11 +1321,7 @@ bool QsciLexerVerilog_virtualbase_WriteProperties(const void* self, QSettings* q return ( (const MiqtVirtualQsciLexerVerilog*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerVerilog_Delete(QsciLexerVerilog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerVerilog_Delete(QsciLexerVerilog* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerverilog.go b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.go index 22fdb3ce..f9a1ab13 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerverilog.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.go @@ -1253,7 +1253,7 @@ func miqt_exec_callback_QsciLexerVerilog_WriteProperties(self *C.QsciLexerVerilo // Delete this object from C++ memory. func (this *QsciLexerVerilog) Delete() { - C.QsciLexerVerilog_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerVerilog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerverilog.h b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.h index df3aca3b..8483a0fa 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerverilog.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerverilog.h @@ -134,7 +134,7 @@ void QsciLexerVerilog_override_virtual_ReadProperties(void* self, intptr_t slot) bool QsciLexerVerilog_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerVerilog_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerVerilog_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerVerilog_Delete(QsciLexerVerilog* self, bool isSubclass); +void QsciLexerVerilog_Delete(QsciLexerVerilog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexervhdl.cpp b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.cpp index 34b1abed..d7ebc354 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexervhdl.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.cpp @@ -57,13 +57,13 @@ bool miqt_exec_callback_QsciLexerVHDL_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerVHDL : public virtual QsciLexerVHDL { +class MiqtVirtualQsciLexerVHDL final : public QsciLexerVHDL { public: MiqtVirtualQsciLexerVHDL(): QsciLexerVHDL() {}; MiqtVirtualQsciLexerVHDL(QObject* parent): QsciLexerVHDL(parent) {}; - virtual ~MiqtVirtualQsciLexerVHDL() = default; + virtual ~MiqtVirtualQsciLexerVHDL() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1482,11 +1482,7 @@ bool QsciLexerVHDL_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerVHDL*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerVHDL_Delete(QsciLexerVHDL* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerVHDL_Delete(QsciLexerVHDL* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexervhdl.go b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.go index 02e2bf52..794d8770 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexervhdl.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.go @@ -1356,7 +1356,7 @@ func miqt_exec_callback_QsciLexerVHDL_WriteProperties(self *C.QsciLexerVHDL, cb // Delete this object from C++ memory. func (this *QsciLexerVHDL) Delete() { - C.QsciLexerVHDL_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerVHDL_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexervhdl.h b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.h index 459d7718..9a03d19d 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexervhdl.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexervhdl.h @@ -143,7 +143,7 @@ void QsciLexerVHDL_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerVHDL_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerVHDL_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerVHDL_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerVHDL_Delete(QsciLexerVHDL* self, bool isSubclass); +void QsciLexerVHDL_Delete(QsciLexerVHDL* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerxml.cpp b/qt-restricted-extras/qscintilla/gen_qscilexerxml.cpp index 582a3b8f..2b1261c1 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerxml.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexerxml.cpp @@ -19,13 +19,13 @@ void miqt_exec_callback_QsciLexerXML_SetCaseSensitiveTags(void*, intptr_t, bool) } /* extern C */ #endif -class MiqtVirtualQsciLexerXML : public virtual QsciLexerXML { +class MiqtVirtualQsciLexerXML final : public QsciLexerXML { public: MiqtVirtualQsciLexerXML(): QsciLexerXML() {}; MiqtVirtualQsciLexerXML(QObject* parent): QsciLexerXML(parent) {}; - virtual ~MiqtVirtualQsciLexerXML() = default; + virtual ~MiqtVirtualQsciLexerXML() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -251,11 +251,7 @@ void QsciLexerXML_virtualbase_SetCaseSensitiveTags(void* self, bool sens) { ( (MiqtVirtualQsciLexerXML*)(self) )->virtualbase_SetCaseSensitiveTags(sens); } -void QsciLexerXML_Delete(QsciLexerXML* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerXML_Delete(QsciLexerXML* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerxml.go b/qt-restricted-extras/qscintilla/gen_qscilexerxml.go index 79a21301..46b7547b 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerxml.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexerxml.go @@ -269,7 +269,7 @@ func miqt_exec_callback_QsciLexerXML_SetCaseSensitiveTags(self *C.QsciLexerXML, // Delete this object from C++ memory. func (this *QsciLexerXML) Delete() { - C.QsciLexerXML_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerXML_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexerxml.h b/qt-restricted-extras/qscintilla/gen_qscilexerxml.h index c620bb6c..7e44983e 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexerxml.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexerxml.h @@ -59,7 +59,7 @@ void QsciLexerXML_override_virtual_SetFoldPreprocessor(void* self, intptr_t slot void QsciLexerXML_virtualbase_SetFoldPreprocessor(void* self, bool fold); void QsciLexerXML_override_virtual_SetCaseSensitiveTags(void* self, intptr_t slot); void QsciLexerXML_virtualbase_SetCaseSensitiveTags(void* self, bool sens); -void QsciLexerXML_Delete(QsciLexerXML* self, bool isSubclass); +void QsciLexerXML_Delete(QsciLexerXML* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeryaml.cpp b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.cpp index 5fc998b3..02fcf1ea 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeryaml.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerYAML_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerYAML : public virtual QsciLexerYAML { +class MiqtVirtualQsciLexerYAML final : public QsciLexerYAML { public: MiqtVirtualQsciLexerYAML(): QsciLexerYAML() {}; MiqtVirtualQsciLexerYAML(QObject* parent): QsciLexerYAML(parent) {}; - virtual ~MiqtVirtualQsciLexerYAML() = default; + virtual ~MiqtVirtualQsciLexerYAML() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1314,11 +1314,7 @@ bool QsciLexerYAML_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerYAML*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerYAML_Delete(QsciLexerYAML* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerYAML_Delete(QsciLexerYAML* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeryaml.go b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.go index 1e67b1b8..50134514 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeryaml.go +++ b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.go @@ -1210,7 +1210,7 @@ func miqt_exec_callback_QsciLexerYAML_WriteProperties(self *C.QsciLexerYAML, cb // Delete this object from C++ memory. func (this *QsciLexerYAML) Delete() { - C.QsciLexerYAML_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerYAML_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscilexeryaml.h b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.h index 3337fe4d..d6a0757f 100644 --- a/qt-restricted-extras/qscintilla/gen_qscilexeryaml.h +++ b/qt-restricted-extras/qscintilla/gen_qscilexeryaml.h @@ -126,7 +126,7 @@ void QsciLexerYAML_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerYAML_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerYAML_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerYAML_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerYAML_Delete(QsciLexerYAML* self, bool isSubclass); +void QsciLexerYAML_Delete(QsciLexerYAML* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscimacro.cpp b/qt-restricted-extras/qscintilla/gen_qscimacro.cpp index d047815e..0bdcf422 100644 --- a/qt-restricted-extras/qscintilla/gen_qscimacro.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscimacro.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QsciMacro_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQsciMacro : public virtual QsciMacro { +class MiqtVirtualQsciMacro final : public QsciMacro { public: MiqtVirtualQsciMacro(QsciScintilla* parent): QsciMacro(parent) {}; MiqtVirtualQsciMacro(const QString& asc, QsciScintilla* parent): QsciMacro(asc, parent) {}; - virtual ~MiqtVirtualQsciMacro() = default; + virtual ~MiqtVirtualQsciMacro() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Play = 0; @@ -477,11 +477,7 @@ void QsciMacro_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQsciMacro*)(self) )->virtualbase_DisconnectNotify(signal); } -void QsciMacro_Delete(QsciMacro* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciMacro_Delete(QsciMacro* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscimacro.go b/qt-restricted-extras/qscintilla/gen_qscimacro.go index 22feda81..980b5baa 100644 --- a/qt-restricted-extras/qscintilla/gen_qscimacro.go +++ b/qt-restricted-extras/qscintilla/gen_qscimacro.go @@ -434,7 +434,7 @@ func miqt_exec_callback_QsciMacro_DisconnectNotify(self *C.QsciMacro, cb C.intpt // Delete this object from C++ memory. func (this *QsciMacro) Delete() { - C.QsciMacro_Delete(this.h, C.bool(this.isSubclass)) + C.QsciMacro_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscimacro.h b/qt-restricted-extras/qscintilla/gen_qscimacro.h index f4710aa5..482742a8 100644 --- a/qt-restricted-extras/qscintilla/gen_qscimacro.h +++ b/qt-restricted-extras/qscintilla/gen_qscimacro.h @@ -71,7 +71,7 @@ void QsciMacro_override_virtual_ConnectNotify(void* self, intptr_t slot); void QsciMacro_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QsciMacro_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QsciMacro_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QsciMacro_Delete(QsciMacro* self, bool isSubclass); +void QsciMacro_Delete(QsciMacro* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qsciprinter.cpp b/qt-restricted-extras/qscintilla/gen_qsciprinter.cpp index d4bfb499..ecc265fa 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciprinter.cpp +++ b/qt-restricted-extras/qscintilla/gen_qsciprinter.cpp @@ -29,13 +29,13 @@ int miqt_exec_callback_QsciPrinter_Metric(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQsciPrinter : public virtual QsciPrinter { +class MiqtVirtualQsciPrinter final : public QsciPrinter { public: MiqtVirtualQsciPrinter(): QsciPrinter() {}; MiqtVirtualQsciPrinter(QPrinter::PrinterMode mode): QsciPrinter(mode) {}; - virtual ~MiqtVirtualQsciPrinter() = default; + virtual ~MiqtVirtualQsciPrinter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__FormatPage = 0; @@ -476,11 +476,7 @@ int QsciPrinter_virtualbase_Metric(const void* self, int param1) { return ( (const MiqtVirtualQsciPrinter*)(self) )->virtualbase_Metric(param1); } -void QsciPrinter_Delete(QsciPrinter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciPrinter_Delete(QsciPrinter* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qsciprinter.go b/qt-restricted-extras/qscintilla/gen_qsciprinter.go index 4137e577..33613121 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciprinter.go +++ b/qt-restricted-extras/qscintilla/gen_qsciprinter.go @@ -430,7 +430,7 @@ func miqt_exec_callback_QsciPrinter_Metric(self *C.QsciPrinter, cb C.intptr_t, p // Delete this object from C++ memory. func (this *QsciPrinter) Delete() { - C.QsciPrinter_Delete(this.h, C.bool(this.isSubclass)) + C.QsciPrinter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qsciprinter.h b/qt-restricted-extras/qscintilla/gen_qsciprinter.h index 78d835dc..ff2275b1 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciprinter.h +++ b/qt-restricted-extras/qscintilla/gen_qsciprinter.h @@ -76,7 +76,7 @@ void QsciPrinter_override_virtual_SetMargins(void* self, intptr_t slot); void QsciPrinter_virtualbase_SetMargins(void* self, QPagedPaintDevice__Margins* m); void QsciPrinter_override_virtual_Metric(void* self, intptr_t slot); int QsciPrinter_virtualbase_Metric(const void* self, int param1); -void QsciPrinter_Delete(QsciPrinter* self, bool isSubclass); +void QsciPrinter_Delete(QsciPrinter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp b/qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp index 50c38cce..a9f6ca26 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp +++ b/qt-restricted-extras/qscintilla/gen_qsciscintilla.cpp @@ -161,13 +161,13 @@ void miqt_exec_callback_QsciScintilla_ScrollContentsBy(void*, intptr_t, int, int } /* extern C */ #endif -class MiqtVirtualQsciScintilla : public virtual QsciScintilla { +class MiqtVirtualQsciScintilla final : public QsciScintilla { public: MiqtVirtualQsciScintilla(QWidget* parent): QsciScintilla(parent) {}; MiqtVirtualQsciScintilla(): QsciScintilla() {}; - virtual ~MiqtVirtualQsciScintilla() = default; + virtual ~MiqtVirtualQsciScintilla() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ApiContext = 0; @@ -5209,11 +5209,7 @@ void QsciScintilla_virtualbase_ScrollContentsBy(void* self, int dx, int dy) { ( (MiqtVirtualQsciScintilla*)(self) )->virtualbase_ScrollContentsBy(dx, dy); } -void QsciScintilla_Delete(QsciScintilla* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciScintilla_Delete(QsciScintilla* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintilla.go b/qt-restricted-extras/qscintilla/gen_qsciscintilla.go index 6d6640d7..1e9de483 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciscintilla.go +++ b/qt-restricted-extras/qscintilla/gen_qsciscintilla.go @@ -4747,7 +4747,7 @@ func miqt_exec_callback_QsciScintilla_ScrollContentsBy(self *C.QsciScintilla, cb // Delete this object from C++ memory. func (this *QsciScintilla) Delete() { - C.QsciScintilla_Delete(this.h, C.bool(this.isSubclass)) + C.QsciScintilla_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintilla.h b/qt-restricted-extras/qscintilla/gen_qsciscintilla.h index 7f69de93..2c893c71 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciscintilla.h +++ b/qt-restricted-extras/qscintilla/gen_qsciscintilla.h @@ -618,7 +618,7 @@ void QsciScintilla_override_virtual_ResizeEvent(void* self, intptr_t slot); void QsciScintilla_virtualbase_ResizeEvent(void* self, QResizeEvent* e); void QsciScintilla_override_virtual_ScrollContentsBy(void* self, intptr_t slot); void QsciScintilla_virtualbase_ScrollContentsBy(void* self, int dx, int dy); -void QsciScintilla_Delete(QsciScintilla* self, bool isSubclass); +void QsciScintilla_Delete(QsciScintilla* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.cpp b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.cpp index b61daaa7..76821b2a 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.cpp +++ b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.cpp @@ -108,13 +108,13 @@ QSize* miqt_exec_callback_QsciScintillaBase_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQsciScintillaBase : public virtual QsciScintillaBase { +class MiqtVirtualQsciScintillaBase final : public QsciScintillaBase { public: MiqtVirtualQsciScintillaBase(QWidget* parent): QsciScintillaBase(parent) {}; MiqtVirtualQsciScintillaBase(): QsciScintillaBase() {}; - virtual ~MiqtVirtualQsciScintillaBase() = default; + virtual ~MiqtVirtualQsciScintillaBase() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CanInsertFromMimeData = 0; @@ -1679,11 +1679,7 @@ QSize* QsciScintillaBase_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQsciScintillaBase*)(self) )->virtualbase_ViewportSizeHint(); } -void QsciScintillaBase_Delete(QsciScintillaBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciScintillaBase_Delete(QsciScintillaBase* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.go b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.go index 7d6833eb..bccb1e1d 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.go +++ b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.go @@ -3023,7 +3023,7 @@ func miqt_exec_callback_QsciScintillaBase_ViewportSizeHint(self *C.QsciScintilla // Delete this object from C++ memory. func (this *QsciScintillaBase) Delete() { - C.QsciScintillaBase_Delete(this.h, C.bool(this.isSubclass)) + C.QsciScintillaBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.h b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.h index 3a0af0e2..ea60af12 100644 --- a/qt-restricted-extras/qscintilla/gen_qsciscintillabase.h +++ b/qt-restricted-extras/qscintilla/gen_qsciscintillabase.h @@ -263,7 +263,7 @@ void QsciScintillaBase_override_virtual_WheelEvent(void* self, intptr_t slot); void QsciScintillaBase_virtualbase_WheelEvent(void* self, QWheelEvent* param1); void QsciScintillaBase_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QsciScintillaBase_virtualbase_ViewportSizeHint(const void* self); -void QsciScintillaBase_Delete(QsciScintillaBase* self, bool isSubclass); +void QsciScintillaBase_Delete(QsciScintillaBase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscistyle.cpp b/qt-restricted-extras/qscintilla/gen_qscistyle.cpp index a856dbc1..3047c396 100644 --- a/qt-restricted-extras/qscintilla/gen_qscistyle.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscistyle.cpp @@ -133,11 +133,7 @@ void QsciStyle_Refresh(QsciStyle* self) { self->refresh(); } -void QsciStyle_Delete(QsciStyle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciStyle_Delete(QsciStyle* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscistyle.go b/qt-restricted-extras/qscintilla/gen_qscistyle.go index 05f169e4..c3449ebb 100644 --- a/qt-restricted-extras/qscintilla/gen_qscistyle.go +++ b/qt-restricted-extras/qscintilla/gen_qscistyle.go @@ -206,7 +206,7 @@ func (this *QsciStyle) Refresh() { // Delete this object from C++ memory. func (this *QsciStyle) Delete() { - C.QsciStyle_Delete(this.h, C.bool(this.isSubclass)) + C.QsciStyle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscistyle.h b/qt-restricted-extras/qscintilla/gen_qscistyle.h index 9ca6d310..fa865299 100644 --- a/qt-restricted-extras/qscintilla/gen_qscistyle.h +++ b/qt-restricted-extras/qscintilla/gen_qscistyle.h @@ -53,7 +53,7 @@ bool QsciStyle_Changeable(const QsciStyle* self); void QsciStyle_SetHotspot(QsciStyle* self, bool hotspot); bool QsciStyle_Hotspot(const QsciStyle* self); void QsciStyle_Refresh(QsciStyle* self); -void QsciStyle_Delete(QsciStyle* self, bool isSubclass); +void QsciStyle_Delete(QsciStyle* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla/gen_qscistyledtext.cpp b/qt-restricted-extras/qscintilla/gen_qscistyledtext.cpp index 28e78713..298ef6de 100644 --- a/qt-restricted-extras/qscintilla/gen_qscistyledtext.cpp +++ b/qt-restricted-extras/qscintilla/gen_qscistyledtext.cpp @@ -45,11 +45,7 @@ int QsciStyledText_Style(const QsciStyledText* self) { return self->style(); } -void QsciStyledText_Delete(QsciStyledText* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciStyledText_Delete(QsciStyledText* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla/gen_qscistyledtext.go b/qt-restricted-extras/qscintilla/gen_qscistyledtext.go index c0eea240..882e6057 100644 --- a/qt-restricted-extras/qscintilla/gen_qscistyledtext.go +++ b/qt-restricted-extras/qscintilla/gen_qscistyledtext.go @@ -95,7 +95,7 @@ func (this *QsciStyledText) Style() int { // Delete this object from C++ memory. func (this *QsciStyledText) Delete() { - C.QsciStyledText_Delete(this.h, C.bool(this.isSubclass)) + C.QsciStyledText_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla/gen_qscistyledtext.h b/qt-restricted-extras/qscintilla/gen_qscistyledtext.h index c5aa47f2..5b006baf 100644 --- a/qt-restricted-extras/qscintilla/gen_qscistyledtext.h +++ b/qt-restricted-extras/qscintilla/gen_qscistyledtext.h @@ -30,7 +30,7 @@ QsciStyledText* QsciStyledText_new3(QsciStyledText* param1); void QsciStyledText_Apply(const QsciStyledText* self, QsciScintillaBase* sci); struct miqt_string QsciStyledText_Text(const QsciStyledText* self); int QsciStyledText_Style(const QsciStyledText* self); -void QsciStyledText_Delete(QsciStyledText* self, bool isSubclass); +void QsciStyledText_Delete(QsciStyledText* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.cpp b/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.cpp index 692a2096..55b22b17 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.cpp @@ -29,12 +29,12 @@ void miqt_exec_callback_QsciAbstractAPIs_DisconnectNotify(void*, intptr_t, QMeta } /* extern C */ #endif -class MiqtVirtualQsciAbstractAPIs : public virtual QsciAbstractAPIs { +class MiqtVirtualQsciAbstractAPIs final : public QsciAbstractAPIs { public: MiqtVirtualQsciAbstractAPIs(QsciLexer* lexer): QsciAbstractAPIs(lexer) {}; - virtual ~MiqtVirtualQsciAbstractAPIs() = default; + virtual ~MiqtVirtualQsciAbstractAPIs() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__UpdateAutoCompletionList = 0; @@ -523,11 +523,7 @@ void QsciAbstractAPIs_virtualbase_DisconnectNotify(void* self, QMetaMethod* sign ( (MiqtVirtualQsciAbstractAPIs*)(self) )->virtualbase_DisconnectNotify(signal); } -void QsciAbstractAPIs_Delete(QsciAbstractAPIs* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciAbstractAPIs_Delete(QsciAbstractAPIs* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.go b/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.go index f1edc7cd..71c18d3d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.go +++ b/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.go @@ -482,7 +482,7 @@ func miqt_exec_callback_QsciAbstractAPIs_DisconnectNotify(self *C.QsciAbstractAP // Delete this object from C++ memory. func (this *QsciAbstractAPIs) Delete() { - C.QsciAbstractAPIs_Delete(this.h, C.bool(this.isSubclass)) + C.QsciAbstractAPIs_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.h b/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.h index d2bad2bf..25ad4956 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.h +++ b/qt-restricted-extras/qscintilla6/gen_qsciabstractapis.h @@ -65,7 +65,7 @@ void QsciAbstractAPIs_override_virtual_ConnectNotify(void* self, intptr_t slot); void QsciAbstractAPIs_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QsciAbstractAPIs_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QsciAbstractAPIs_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QsciAbstractAPIs_Delete(QsciAbstractAPIs* self, bool isSubclass); +void QsciAbstractAPIs_Delete(QsciAbstractAPIs* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qsciapis.cpp b/qt-restricted-extras/qscintilla6/gen_qsciapis.cpp index e0fa2c82..a8629c32 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciapis.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qsciapis.cpp @@ -23,12 +23,12 @@ bool miqt_exec_callback_QsciAPIs_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQsciAPIs : public virtual QsciAPIs { +class MiqtVirtualQsciAPIs final : public QsciAPIs { public: MiqtVirtualQsciAPIs(QsciLexer* lexer): QsciAPIs(lexer) {}; - virtual ~MiqtVirtualQsciAPIs() = default; + virtual ~MiqtVirtualQsciAPIs() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__UpdateAutoCompletionList = 0; @@ -502,11 +502,7 @@ bool QsciAPIs_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQsciAPIs*)(self) )->virtualbase_Event(e); } -void QsciAPIs_Delete(QsciAPIs* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciAPIs_Delete(QsciAPIs* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qsciapis.go b/qt-restricted-extras/qscintilla6/gen_qsciapis.go index aaf6544f..eb5f6431 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciapis.go +++ b/qt-restricted-extras/qscintilla6/gen_qsciapis.go @@ -522,7 +522,7 @@ func miqt_exec_callback_QsciAPIs_Event(self *C.QsciAPIs, cb C.intptr_t, e *C.QEv // Delete this object from C++ memory. func (this *QsciAPIs) Delete() { - C.QsciAPIs_Delete(this.h, C.bool(this.isSubclass)) + C.QsciAPIs_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qsciapis.h b/qt-restricted-extras/qscintilla6/gen_qsciapis.h index ed0e764e..966395b8 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciapis.h +++ b/qt-restricted-extras/qscintilla6/gen_qsciapis.h @@ -69,7 +69,7 @@ void QsciAPIs_override_virtual_CallTips(void* self, intptr_t slot); struct miqt_array /* of struct miqt_string */ QsciAPIs_virtualbase_CallTips(void* self, struct miqt_array /* of struct miqt_string */ context, int commas, int style, struct miqt_array /* of int */ shifts); void QsciAPIs_override_virtual_Event(void* self, intptr_t slot); bool QsciAPIs_virtualbase_Event(void* self, QEvent* e); -void QsciAPIs_Delete(QsciAPIs* self, bool isSubclass); +void QsciAPIs_Delete(QsciAPIs* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscicommand.cpp b/qt-restricted-extras/qscintilla6/gen_qscicommand.cpp index 08e09fe2..57d7ffac 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscicommand.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscicommand.cpp @@ -52,11 +52,7 @@ struct miqt_string QsciCommand_Description(const QsciCommand* self) { return _ms; } -void QsciCommand_Delete(QsciCommand* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciCommand_Delete(QsciCommand* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscicommand.go b/qt-restricted-extras/qscintilla6/gen_qscicommand.go index 51ce91a1..f0bc862e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscicommand.go +++ b/qt-restricted-extras/qscintilla6/gen_qscicommand.go @@ -187,7 +187,7 @@ func (this *QsciCommand) Description() string { // Delete this object from C++ memory. func (this *QsciCommand) Delete() { - C.QsciCommand_Delete(this.h, C.bool(this.isSubclass)) + C.QsciCommand_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscicommand.h b/qt-restricted-extras/qscintilla6/gen_qscicommand.h index 27d350f9..0ea3de44 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscicommand.h +++ b/qt-restricted-extras/qscintilla6/gen_qscicommand.h @@ -28,7 +28,7 @@ int QsciCommand_Key(const QsciCommand* self); int QsciCommand_AlternateKey(const QsciCommand* self); bool QsciCommand_ValidKey(int key); struct miqt_string QsciCommand_Description(const QsciCommand* self); -void QsciCommand_Delete(QsciCommand* self, bool isSubclass); +void QsciCommand_Delete(QsciCommand* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscidocument.cpp b/qt-restricted-extras/qscintilla6/gen_qscidocument.cpp index 41e20bb2..b46c8a7d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscidocument.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscidocument.cpp @@ -21,11 +21,7 @@ void QsciDocument_OperatorAssign(QsciDocument* self, QsciDocument* param1) { self->operator=(*param1); } -void QsciDocument_Delete(QsciDocument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciDocument_Delete(QsciDocument* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscidocument.go b/qt-restricted-extras/qscintilla6/gen_qscidocument.go index b6f99c71..ea0ef404 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscidocument.go +++ b/qt-restricted-extras/qscintilla6/gen_qscidocument.go @@ -68,7 +68,7 @@ func (this *QsciDocument) OperatorAssign(param1 *QsciDocument) { // Delete this object from C++ memory. func (this *QsciDocument) Delete() { - C.QsciDocument_Delete(this.h, C.bool(this.isSubclass)) + C.QsciDocument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscidocument.h b/qt-restricted-extras/qscintilla6/gen_qscidocument.h index c309e910..afaba289 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscidocument.h +++ b/qt-restricted-extras/qscintilla6/gen_qscidocument.h @@ -23,7 +23,7 @@ typedef struct QsciDocument QsciDocument; QsciDocument* QsciDocument_new(); QsciDocument* QsciDocument_new2(QsciDocument* param1); void QsciDocument_OperatorAssign(QsciDocument* self, QsciDocument* param1); -void QsciDocument_Delete(QsciDocument* self, bool isSubclass); +void QsciDocument_Delete(QsciDocument* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexer.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexer.cpp index ab84e0c3..ddee0c15 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexer.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexer.cpp @@ -68,13 +68,13 @@ void miqt_exec_callback_QsciLexer_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQsciLexer : public virtual QsciLexer { +class MiqtVirtualQsciLexer final : public QsciLexer { public: MiqtVirtualQsciLexer(): QsciLexer() {}; MiqtVirtualQsciLexer(QObject* parent): QsciLexer(parent) {}; - virtual ~MiqtVirtualQsciLexer() = default; + virtual ~MiqtVirtualQsciLexer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1713,11 +1713,7 @@ void QsciLexer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQsciLexer*)(self) )->virtualbase_DisconnectNotify(signal); } -void QsciLexer_Delete(QsciLexer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexer_Delete(QsciLexer* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexer.go b/qt-restricted-extras/qscintilla6/gen_qscilexer.go index 0f50a2c7..9397241a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexer.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexer.go @@ -1612,7 +1612,7 @@ func miqt_exec_callback_QsciLexer_DisconnectNotify(self *C.QsciLexer, cb C.intpt // Delete this object from C++ memory. func (this *QsciLexer) Delete() { - C.QsciLexer_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexer.h b/qt-restricted-extras/qscintilla6/gen_qscilexer.h index 7f1beab4..8d6a9d34 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexer.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexer.h @@ -190,7 +190,7 @@ void QsciLexer_override_virtual_ConnectNotify(void* self, intptr_t slot); void QsciLexer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QsciLexer_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QsciLexer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QsciLexer_Delete(QsciLexer* self, bool isSubclass); +void QsciLexer_Delete(QsciLexer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeravs.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexeravs.cpp index 93c1103a..4feafff9 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeravs.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeravs.cpp @@ -54,13 +54,13 @@ bool miqt_exec_callback_QsciLexerAVS_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerAVS : public virtual QsciLexerAVS { +class MiqtVirtualQsciLexerAVS final : public QsciLexerAVS { public: MiqtVirtualQsciLexerAVS(): QsciLexerAVS() {}; MiqtVirtualQsciLexerAVS(QObject* parent): QsciLexerAVS(parent) {}; - virtual ~MiqtVirtualQsciLexerAVS() = default; + virtual ~MiqtVirtualQsciLexerAVS() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1322,11 +1322,7 @@ bool QsciLexerAVS_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerAVS*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerAVS_Delete(QsciLexerAVS* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerAVS_Delete(QsciLexerAVS* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeravs.go b/qt-restricted-extras/qscintilla6/gen_qscilexeravs.go index ae925929..ea643fea 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeravs.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeravs.go @@ -1217,7 +1217,7 @@ func miqt_exec_callback_QsciLexerAVS_WriteProperties(self *C.QsciLexerAVS, cb C. // Delete this object from C++ memory. func (this *QsciLexerAVS) Delete() { - C.QsciLexerAVS_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerAVS_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeravs.h b/qt-restricted-extras/qscintilla6/gen_qscilexeravs.h index 02295fbf..bc397497 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeravs.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeravs.h @@ -127,7 +127,7 @@ void QsciLexerAVS_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerAVS_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerAVS_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerAVS_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerAVS_Delete(QsciLexerAVS* self, bool isSubclass); +void QsciLexerAVS_Delete(QsciLexerAVS* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerbash.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerbash.cpp index 0ea83d24..3fd9fe28 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerbash.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerbash.cpp @@ -54,13 +54,13 @@ bool miqt_exec_callback_QsciLexerBash_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerBash : public virtual QsciLexerBash { +class MiqtVirtualQsciLexerBash final : public QsciLexerBash { public: MiqtVirtualQsciLexerBash(): QsciLexerBash() {}; MiqtVirtualQsciLexerBash(QObject* parent): QsciLexerBash(parent) {}; - virtual ~MiqtVirtualQsciLexerBash() = default; + virtual ~MiqtVirtualQsciLexerBash() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1330,11 +1330,7 @@ bool QsciLexerBash_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerBash*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerBash_Delete(QsciLexerBash* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerBash_Delete(QsciLexerBash* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerbash.go b/qt-restricted-extras/qscintilla6/gen_qscilexerbash.go index 3df781ed..5732d1ab 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerbash.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerbash.go @@ -1226,7 +1226,7 @@ func miqt_exec_callback_QsciLexerBash_WriteProperties(self *C.QsciLexerBash, cb // Delete this object from C++ memory. func (this *QsciLexerBash) Delete() { - C.QsciLexerBash_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerBash_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerbash.h b/qt-restricted-extras/qscintilla6/gen_qscilexerbash.h index abe19ebe..99182d4a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerbash.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerbash.h @@ -129,7 +129,7 @@ void QsciLexerBash_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerBash_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerBash_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerBash_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerBash_Delete(QsciLexerBash* self, bool isSubclass); +void QsciLexerBash_Delete(QsciLexerBash* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.cpp index 15f16bff..4178c3ae 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerBatch_WriteProperties(void*, intptr_t, QSetting } /* extern C */ #endif -class MiqtVirtualQsciLexerBatch : public virtual QsciLexerBatch { +class MiqtVirtualQsciLexerBatch final : public QsciLexerBatch { public: MiqtVirtualQsciLexerBatch(): QsciLexerBatch() {}; MiqtVirtualQsciLexerBatch(QObject* parent): QsciLexerBatch(parent) {}; - virtual ~MiqtVirtualQsciLexerBatch() = default; + virtual ~MiqtVirtualQsciLexerBatch() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1244,11 +1244,7 @@ bool QsciLexerBatch_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerBatch*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerBatch_Delete(QsciLexerBatch* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerBatch_Delete(QsciLexerBatch* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.go b/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.go index 2576e16a..a7c33d90 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.go @@ -1148,7 +1148,7 @@ func miqt_exec_callback_QsciLexerBatch_WriteProperties(self *C.QsciLexerBatch, c // Delete this object from C++ memory. func (this *QsciLexerBatch) Delete() { - C.QsciLexerBatch_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerBatch_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.h b/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.h index fd955021..79f6aeb1 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerbatch.h @@ -120,7 +120,7 @@ void QsciLexerBatch_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerBatch_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerBatch_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerBatch_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerBatch_Delete(QsciLexerBatch* self, bool isSubclass); +void QsciLexerBatch_Delete(QsciLexerBatch* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercmake.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexercmake.cpp index ba61697c..e808be8a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercmake.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercmake.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerCMake_WriteProperties(void*, intptr_t, QSetting } /* extern C */ #endif -class MiqtVirtualQsciLexerCMake : public virtual QsciLexerCMake { +class MiqtVirtualQsciLexerCMake final : public QsciLexerCMake { public: MiqtVirtualQsciLexerCMake(): QsciLexerCMake() {}; MiqtVirtualQsciLexerCMake(QObject* parent): QsciLexerCMake(parent) {}; - virtual ~MiqtVirtualQsciLexerCMake() = default; + virtual ~MiqtVirtualQsciLexerCMake() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -1277,11 +1277,7 @@ bool QsciLexerCMake_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerCMake*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerCMake_Delete(QsciLexerCMake* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCMake_Delete(QsciLexerCMake* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercmake.go b/qt-restricted-extras/qscintilla6/gen_qscilexercmake.go index a9f9f201..74150989 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercmake.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercmake.go @@ -1180,7 +1180,7 @@ func miqt_exec_callback_QsciLexerCMake_WriteProperties(self *C.QsciLexerCMake, c // Delete this object from C++ memory. func (this *QsciLexerCMake) Delete() { - C.QsciLexerCMake_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCMake_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercmake.h b/qt-restricted-extras/qscintilla6/gen_qscilexercmake.h index 902dc317..9871d57c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercmake.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercmake.h @@ -122,7 +122,7 @@ void QsciLexerCMake_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerCMake_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerCMake_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerCMake_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerCMake_Delete(QsciLexerCMake* self, bool isSubclass); +void QsciLexerCMake_Delete(QsciLexerCMake* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.cpp index 9ca30a7e..124b9754 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerCoffeeScript_WriteProperties(void*, intptr_t, Q } /* extern C */ #endif -class MiqtVirtualQsciLexerCoffeeScript : public virtual QsciLexerCoffeeScript { +class MiqtVirtualQsciLexerCoffeeScript final : public QsciLexerCoffeeScript { public: MiqtVirtualQsciLexerCoffeeScript(): QsciLexerCoffeeScript() {}; MiqtVirtualQsciLexerCoffeeScript(QObject* parent): QsciLexerCoffeeScript(parent) {}; - virtual ~MiqtVirtualQsciLexerCoffeeScript() = default; + virtual ~MiqtVirtualQsciLexerCoffeeScript() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1324,11 +1324,7 @@ bool QsciLexerCoffeeScript_virtualbase_WriteProperties(const void* self, QSettin return ( (const MiqtVirtualQsciLexerCoffeeScript*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerCoffeeScript_Delete(QsciLexerCoffeeScript* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCoffeeScript_Delete(QsciLexerCoffeeScript* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.go b/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.go index c6efbd72..2a2c8fee 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.go @@ -1243,7 +1243,7 @@ func miqt_exec_callback_QsciLexerCoffeeScript_WriteProperties(self *C.QsciLexerC // Delete this object from C++ memory. func (this *QsciLexerCoffeeScript) Delete() { - C.QsciLexerCoffeeScript_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCoffeeScript_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.h b/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.h index b16db868..0e43909b 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercoffeescript.h @@ -136,7 +136,7 @@ void QsciLexerCoffeeScript_override_virtual_ReadProperties(void* self, intptr_t bool QsciLexerCoffeeScript_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerCoffeeScript_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerCoffeeScript_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerCoffeeScript_Delete(QsciLexerCoffeeScript* self, bool isSubclass); +void QsciLexerCoffeeScript_Delete(QsciLexerCoffeeScript* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercpp.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexercpp.cpp index 8a09f427..9b5b0a5f 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercpp.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercpp.cpp @@ -57,14 +57,14 @@ bool miqt_exec_callback_QsciLexerCPP_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerCPP : public virtual QsciLexerCPP { +class MiqtVirtualQsciLexerCPP final : public QsciLexerCPP { public: MiqtVirtualQsciLexerCPP(): QsciLexerCPP() {}; MiqtVirtualQsciLexerCPP(QObject* parent): QsciLexerCPP(parent) {}; MiqtVirtualQsciLexerCPP(QObject* parent, bool caseInsensitiveKeywords): QsciLexerCPP(parent, caseInsensitiveKeywords) {}; - virtual ~MiqtVirtualQsciLexerCPP() = default; + virtual ~MiqtVirtualQsciLexerCPP() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -1550,11 +1550,7 @@ bool QsciLexerCPP_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerCPP*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerCPP_Delete(QsciLexerCPP* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCPP_Delete(QsciLexerCPP* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercpp.go b/qt-restricted-extras/qscintilla6/gen_qscilexercpp.go index 6771945b..89a58c90 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercpp.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercpp.go @@ -1469,7 +1469,7 @@ func miqt_exec_callback_QsciLexerCPP_WriteProperties(self *C.QsciLexerCPP, cb C. // Delete this object from C++ memory. func (this *QsciLexerCPP) Delete() { - C.QsciLexerCPP_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCPP_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercpp.h b/qt-restricted-extras/qscintilla6/gen_qscilexercpp.h index 6d36630a..1152723f 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercpp.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercpp.h @@ -161,7 +161,7 @@ void QsciLexerCPP_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerCPP_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerCPP_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerCPP_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerCPP_Delete(QsciLexerCPP* self, bool isSubclass); +void QsciLexerCPP_Delete(QsciLexerCPP* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.cpp index ab352517..2fbdb612 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.cpp @@ -21,13 +21,13 @@ void miqt_exec_callback_QsciLexerCSharp_SetStylePreprocessor(void*, intptr_t, bo } /* extern C */ #endif -class MiqtVirtualQsciLexerCSharp : public virtual QsciLexerCSharp { +class MiqtVirtualQsciLexerCSharp final : public QsciLexerCSharp { public: MiqtVirtualQsciLexerCSharp(): QsciLexerCSharp() {}; MiqtVirtualQsciLexerCSharp(QObject* parent): QsciLexerCSharp(parent) {}; - virtual ~MiqtVirtualQsciLexerCSharp() = default; + virtual ~MiqtVirtualQsciLexerCSharp() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -279,11 +279,7 @@ void QsciLexerCSharp_virtualbase_SetStylePreprocessor(void* self, bool style) { ( (MiqtVirtualQsciLexerCSharp*)(self) )->virtualbase_SetStylePreprocessor(style); } -void QsciLexerCSharp_Delete(QsciLexerCSharp* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCSharp_Delete(QsciLexerCSharp* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.go b/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.go index b0c78c80..073208ec 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.go @@ -280,7 +280,7 @@ func miqt_exec_callback_QsciLexerCSharp_SetStylePreprocessor(self *C.QsciLexerCS // Delete this object from C++ memory. func (this *QsciLexerCSharp) Delete() { - C.QsciLexerCSharp_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCSharp_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.h b/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.h index 6691fbba..5a184b11 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercsharp.h @@ -57,7 +57,7 @@ void QsciLexerCSharp_override_virtual_SetFoldPreprocessor(void* self, intptr_t s void QsciLexerCSharp_virtualbase_SetFoldPreprocessor(void* self, bool fold); void QsciLexerCSharp_override_virtual_SetStylePreprocessor(void* self, intptr_t slot); void QsciLexerCSharp_virtualbase_SetStylePreprocessor(void* self, bool style); -void QsciLexerCSharp_Delete(QsciLexerCSharp* self, bool isSubclass); +void QsciLexerCSharp_Delete(QsciLexerCSharp* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercss.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexercss.cpp index 1dcc5559..789f9cef 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercss.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercss.cpp @@ -54,13 +54,13 @@ bool miqt_exec_callback_QsciLexerCSS_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerCSS : public virtual QsciLexerCSS { +class MiqtVirtualQsciLexerCSS final : public QsciLexerCSS { public: MiqtVirtualQsciLexerCSS(): QsciLexerCSS() {}; MiqtVirtualQsciLexerCSS(QObject* parent): QsciLexerCSS(parent) {}; - virtual ~MiqtVirtualQsciLexerCSS() = default; + virtual ~MiqtVirtualQsciLexerCSS() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1358,11 +1358,7 @@ bool QsciLexerCSS_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerCSS*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerCSS_Delete(QsciLexerCSS* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCSS_Delete(QsciLexerCSS* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercss.go b/qt-restricted-extras/qscintilla6/gen_qscilexercss.go index 924cd61c..45cbd855 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercss.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercss.go @@ -1266,7 +1266,7 @@ func miqt_exec_callback_QsciLexerCSS_WriteProperties(self *C.QsciLexerCSS, cb C. // Delete this object from C++ memory. func (this *QsciLexerCSS) Delete() { - C.QsciLexerCSS_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCSS_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercss.h b/qt-restricted-extras/qscintilla6/gen_qscilexercss.h index 41624861..d4a3b6d2 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercss.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercss.h @@ -136,7 +136,7 @@ void QsciLexerCSS_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerCSS_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerCSS_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerCSS_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerCSS_Delete(QsciLexerCSS* self, bool isSubclass); +void QsciLexerCSS_Delete(QsciLexerCSS* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercustom.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexercustom.cpp index 97f51fa7..cc57357a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercustom.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercustom.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerCustom_WriteProperties(void*, intptr_t, QSettin } /* extern C */ #endif -class MiqtVirtualQsciLexerCustom : public virtual QsciLexerCustom { +class MiqtVirtualQsciLexerCustom final : public QsciLexerCustom { public: MiqtVirtualQsciLexerCustom(): QsciLexerCustom() {}; MiqtVirtualQsciLexerCustom(QObject* parent): QsciLexerCustom(parent) {}; - virtual ~MiqtVirtualQsciLexerCustom() = default; + virtual ~MiqtVirtualQsciLexerCustom() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__StyleText = 0; @@ -1247,11 +1247,7 @@ bool QsciLexerCustom_virtualbase_WriteProperties(const void* self, QSettings* qs return ( (const MiqtVirtualQsciLexerCustom*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerCustom_Delete(QsciLexerCustom* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerCustom_Delete(QsciLexerCustom* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercustom.go b/qt-restricted-extras/qscintilla6/gen_qscilexercustom.go index 9ea5e71f..d0ed3279 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercustom.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercustom.go @@ -1132,7 +1132,7 @@ func miqt_exec_callback_QsciLexerCustom_WriteProperties(self *C.QsciLexerCustom, // Delete this object from C++ memory. func (this *QsciLexerCustom) Delete() { - C.QsciLexerCustom_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerCustom_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexercustom.h b/qt-restricted-extras/qscintilla6/gen_qscilexercustom.h index 72ac8d38..6437386e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexercustom.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexercustom.h @@ -121,7 +121,7 @@ void QsciLexerCustom_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerCustom_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerCustom_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerCustom_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerCustom_Delete(QsciLexerCustom* self, bool isSubclass); +void QsciLexerCustom_Delete(QsciLexerCustom* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerd.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerd.cpp index 5279bc99..e1b0d21f 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerd.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerd.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerD_WriteProperties(void*, intptr_t, QSettings*, } /* extern C */ #endif -class MiqtVirtualQsciLexerD : public virtual QsciLexerD { +class MiqtVirtualQsciLexerD final : public QsciLexerD { public: MiqtVirtualQsciLexerD(): QsciLexerD() {}; MiqtVirtualQsciLexerD(QObject* parent): QsciLexerD(parent) {}; - virtual ~MiqtVirtualQsciLexerD() = default; + virtual ~MiqtVirtualQsciLexerD() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -1415,11 +1415,7 @@ bool QsciLexerD_virtualbase_WriteProperties(const void* self, QSettings* qs, str return ( (const MiqtVirtualQsciLexerD*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerD_Delete(QsciLexerD* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerD_Delete(QsciLexerD* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerd.go b/qt-restricted-extras/qscintilla6/gen_qscilexerd.go index a4bb7785..2f30ba03 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerd.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerd.go @@ -1312,7 +1312,7 @@ func miqt_exec_callback_QsciLexerD_WriteProperties(self *C.QsciLexerD, cb C.intp // Delete this object from C++ memory. func (this *QsciLexerD) Delete() { - C.QsciLexerD_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerD_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerd.h b/qt-restricted-extras/qscintilla6/gen_qscilexerd.h index 11d98c89..c21a9aef 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerd.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerd.h @@ -140,7 +140,7 @@ void QsciLexerD_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerD_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerD_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerD_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerD_Delete(QsciLexerD* self, bool isSubclass); +void QsciLexerD_Delete(QsciLexerD* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.cpp index 1072dfd3..87c57abe 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerDiff_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerDiff : public virtual QsciLexerDiff { +class MiqtVirtualQsciLexerDiff final : public QsciLexerDiff { public: MiqtVirtualQsciLexerDiff(): QsciLexerDiff() {}; MiqtVirtualQsciLexerDiff(QObject* parent): QsciLexerDiff(parent) {}; - virtual ~MiqtVirtualQsciLexerDiff() = default; + virtual ~MiqtVirtualQsciLexerDiff() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1224,11 +1224,7 @@ bool QsciLexerDiff_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerDiff*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerDiff_Delete(QsciLexerDiff* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerDiff_Delete(QsciLexerDiff* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.go b/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.go index a45922d7..548fa76f 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.go @@ -1127,7 +1127,7 @@ func miqt_exec_callback_QsciLexerDiff_WriteProperties(self *C.QsciLexerDiff, cb // Delete this object from C++ memory. func (this *QsciLexerDiff) Delete() { - C.QsciLexerDiff_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerDiff_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.h b/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.h index 8f07c90f..9c873bec 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerdiff.h @@ -115,7 +115,7 @@ void QsciLexerDiff_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerDiff_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerDiff_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerDiff_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerDiff_Delete(QsciLexerDiff* self, bool isSubclass); +void QsciLexerDiff_Delete(QsciLexerDiff* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.cpp index 2f355ab3..010f0491 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerEDIFACT_WriteProperties(void*, intptr_t, QSetti } /* extern C */ #endif -class MiqtVirtualQsciLexerEDIFACT : public virtual QsciLexerEDIFACT { +class MiqtVirtualQsciLexerEDIFACT final : public QsciLexerEDIFACT { public: MiqtVirtualQsciLexerEDIFACT(): QsciLexerEDIFACT() {}; MiqtVirtualQsciLexerEDIFACT(QObject* parent): QsciLexerEDIFACT(parent) {}; - virtual ~MiqtVirtualQsciLexerEDIFACT() = default; + virtual ~MiqtVirtualQsciLexerEDIFACT() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1220,11 +1220,7 @@ bool QsciLexerEDIFACT_virtualbase_WriteProperties(const void* self, QSettings* q return ( (const MiqtVirtualQsciLexerEDIFACT*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerEDIFACT_Delete(QsciLexerEDIFACT* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerEDIFACT_Delete(QsciLexerEDIFACT* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.go b/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.go index f1536c00..5030526a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.go @@ -1119,7 +1119,7 @@ func miqt_exec_callback_QsciLexerEDIFACT_WriteProperties(self *C.QsciLexerEDIFAC // Delete this object from C++ memory. func (this *QsciLexerEDIFACT) Delete() { - C.QsciLexerEDIFACT_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerEDIFACT_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.h b/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.h index c79fed34..aef98ac2 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeredifact.h @@ -114,7 +114,7 @@ void QsciLexerEDIFACT_override_virtual_ReadProperties(void* self, intptr_t slot) bool QsciLexerEDIFACT_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerEDIFACT_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerEDIFACT_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerEDIFACT_Delete(QsciLexerEDIFACT* self, bool isSubclass); +void QsciLexerEDIFACT_Delete(QsciLexerEDIFACT* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.cpp index 329d2355..4ae6f454 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.cpp @@ -15,13 +15,13 @@ void miqt_exec_callback_QsciLexerFortran_SetFoldCompact(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQsciLexerFortran : public virtual QsciLexerFortran { +class MiqtVirtualQsciLexerFortran final : public QsciLexerFortran { public: MiqtVirtualQsciLexerFortran(): QsciLexerFortran() {}; MiqtVirtualQsciLexerFortran(QObject* parent): QsciLexerFortran(parent) {}; - virtual ~MiqtVirtualQsciLexerFortran() = default; + virtual ~MiqtVirtualQsciLexerFortran() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -122,11 +122,7 @@ void QsciLexerFortran_virtualbase_SetFoldCompact(void* self, bool fold) { ( (MiqtVirtualQsciLexerFortran*)(self) )->virtualbase_SetFoldCompact(fold); } -void QsciLexerFortran_Delete(QsciLexerFortran* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerFortran_Delete(QsciLexerFortran* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.go b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.go index f5bcfbcb..319b18cd 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.go @@ -152,7 +152,7 @@ func miqt_exec_callback_QsciLexerFortran_SetFoldCompact(self *C.QsciLexerFortran // Delete this object from C++ memory. func (this *QsciLexerFortran) Delete() { - C.QsciLexerFortran_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerFortran_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.h b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.h index 68b00598..a33a6cec 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran.h @@ -41,7 +41,7 @@ struct miqt_string QsciLexerFortran_Tr2(const char* s, const char* c); struct miqt_string QsciLexerFortran_Tr3(const char* s, const char* c, int n); void QsciLexerFortran_override_virtual_SetFoldCompact(void* self, intptr_t slot); void QsciLexerFortran_virtualbase_SetFoldCompact(void* self, bool fold); -void QsciLexerFortran_Delete(QsciLexerFortran* self, bool isSubclass); +void QsciLexerFortran_Delete(QsciLexerFortran* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.cpp index 30f100d9..37cb344e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerFortran77_WriteProperties(void*, intptr_t, QSet } /* extern C */ #endif -class MiqtVirtualQsciLexerFortran77 : public virtual QsciLexerFortran77 { +class MiqtVirtualQsciLexerFortran77 final : public QsciLexerFortran77 { public: MiqtVirtualQsciLexerFortran77(): QsciLexerFortran77() {}; MiqtVirtualQsciLexerFortran77(QObject* parent): QsciLexerFortran77(parent) {}; - virtual ~MiqtVirtualQsciLexerFortran77() = default; + virtual ~MiqtVirtualQsciLexerFortran77() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -1285,11 +1285,7 @@ bool QsciLexerFortran77_virtualbase_WriteProperties(const void* self, QSettings* return ( (const MiqtVirtualQsciLexerFortran77*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerFortran77_Delete(QsciLexerFortran77* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerFortran77_Delete(QsciLexerFortran77* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.go b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.go index d2292e55..aa63a1d7 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.go @@ -1188,7 +1188,7 @@ func miqt_exec_callback_QsciLexerFortran77_WriteProperties(self *C.QsciLexerFort // Delete this object from C++ memory. func (this *QsciLexerFortran77) Delete() { - C.QsciLexerFortran77_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerFortran77_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.h b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.h index 9eab2a4f..0896b524 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerfortran77.h @@ -124,7 +124,7 @@ void QsciLexerFortran77_override_virtual_ReadProperties(void* self, intptr_t slo bool QsciLexerFortran77_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerFortran77_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerFortran77_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerFortran77_Delete(QsciLexerFortran77* self, bool isSubclass); +void QsciLexerFortran77_Delete(QsciLexerFortran77* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.cpp index 5f4536bd..5af61244 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerHTML_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerHTML : public virtual QsciLexerHTML { +class MiqtVirtualQsciLexerHTML final : public QsciLexerHTML { public: MiqtVirtualQsciLexerHTML(): QsciLexerHTML() {}; MiqtVirtualQsciLexerHTML(QObject* parent): QsciLexerHTML(parent) {}; - virtual ~MiqtVirtualQsciLexerHTML() = default; + virtual ~MiqtVirtualQsciLexerHTML() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -1403,11 +1403,7 @@ bool QsciLexerHTML_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerHTML*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerHTML_Delete(QsciLexerHTML* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerHTML_Delete(QsciLexerHTML* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.go b/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.go index 1800e0c3..42db0a16 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.go @@ -1389,7 +1389,7 @@ func miqt_exec_callback_QsciLexerHTML_WriteProperties(self *C.QsciLexerHTML, cb // Delete this object from C++ memory. func (this *QsciLexerHTML) Delete() { - C.QsciLexerHTML_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerHTML_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.h b/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.h index 478b50d6..686f1214 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerhtml.h @@ -141,7 +141,7 @@ void QsciLexerHTML_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerHTML_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerHTML_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerHTML_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerHTML_Delete(QsciLexerHTML* self, bool isSubclass); +void QsciLexerHTML_Delete(QsciLexerHTML* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeridl.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexeridl.cpp index 1c382f46..060ba0eb 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeridl.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeridl.cpp @@ -20,13 +20,13 @@ void miqt_exec_callback_QsciLexerIDL_SetStylePreprocessor(void*, intptr_t, bool) } /* extern C */ #endif -class MiqtVirtualQsciLexerIDL : public virtual QsciLexerIDL { +class MiqtVirtualQsciLexerIDL final : public QsciLexerIDL { public: MiqtVirtualQsciLexerIDL(): QsciLexerIDL() {}; MiqtVirtualQsciLexerIDL(QObject* parent): QsciLexerIDL(parent) {}; - virtual ~MiqtVirtualQsciLexerIDL() = default; + virtual ~MiqtVirtualQsciLexerIDL() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -266,11 +266,7 @@ void QsciLexerIDL_virtualbase_SetStylePreprocessor(void* self, bool style) { ( (MiqtVirtualQsciLexerIDL*)(self) )->virtualbase_SetStylePreprocessor(style); } -void QsciLexerIDL_Delete(QsciLexerIDL* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerIDL_Delete(QsciLexerIDL* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeridl.go b/qt-restricted-extras/qscintilla6/gen_qscilexeridl.go index 62dcc895..cbbbb09a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeridl.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeridl.go @@ -264,7 +264,7 @@ func miqt_exec_callback_QsciLexerIDL_SetStylePreprocessor(self *C.QsciLexerIDL, // Delete this object from C++ memory. func (this *QsciLexerIDL) Delete() { - C.QsciLexerIDL_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerIDL_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeridl.h b/qt-restricted-extras/qscintilla6/gen_qscilexeridl.h index a7fa990b..ba9905a9 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeridl.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeridl.h @@ -52,7 +52,7 @@ void QsciLexerIDL_override_virtual_SetFoldPreprocessor(void* self, intptr_t slot void QsciLexerIDL_virtualbase_SetFoldPreprocessor(void* self, bool fold); void QsciLexerIDL_override_virtual_SetStylePreprocessor(void* self, intptr_t slot); void QsciLexerIDL_virtualbase_SetStylePreprocessor(void* self, bool style); -void QsciLexerIDL_Delete(QsciLexerIDL* self, bool isSubclass); +void QsciLexerIDL_Delete(QsciLexerIDL* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjava.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerjava.cpp index c7963b01..ee52341a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjava.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjava.cpp @@ -19,13 +19,13 @@ void miqt_exec_callback_QsciLexerJava_SetStylePreprocessor(void*, intptr_t, bool } /* extern C */ #endif -class MiqtVirtualQsciLexerJava : public virtual QsciLexerJava { +class MiqtVirtualQsciLexerJava final : public QsciLexerJava { public: MiqtVirtualQsciLexerJava(): QsciLexerJava() {}; MiqtVirtualQsciLexerJava(QObject* parent): QsciLexerJava(parent) {}; - virtual ~MiqtVirtualQsciLexerJava() = default; + virtual ~MiqtVirtualQsciLexerJava() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -250,11 +250,7 @@ void QsciLexerJava_virtualbase_SetStylePreprocessor(void* self, bool style) { ( (MiqtVirtualQsciLexerJava*)(self) )->virtualbase_SetStylePreprocessor(style); } -void QsciLexerJava_Delete(QsciLexerJava* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerJava_Delete(QsciLexerJava* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjava.go b/qt-restricted-extras/qscintilla6/gen_qscilexerjava.go index 94eec065..b3ec8030 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjava.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjava.go @@ -251,7 +251,7 @@ func miqt_exec_callback_QsciLexerJava_SetStylePreprocessor(self *C.QsciLexerJava // Delete this object from C++ memory. func (this *QsciLexerJava) Delete() { - C.QsciLexerJava_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerJava_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjava.h b/qt-restricted-extras/qscintilla6/gen_qscilexerjava.h index a59059dd..6adf1694 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjava.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjava.h @@ -48,7 +48,7 @@ void QsciLexerJava_override_virtual_SetFoldPreprocessor(void* self, intptr_t slo void QsciLexerJava_virtualbase_SetFoldPreprocessor(void* self, bool fold); void QsciLexerJava_override_virtual_SetStylePreprocessor(void* self, intptr_t slot); void QsciLexerJava_virtualbase_SetStylePreprocessor(void* self, bool style); -void QsciLexerJava_Delete(QsciLexerJava* self, bool isSubclass); +void QsciLexerJava_Delete(QsciLexerJava* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.cpp index 75eb8c58..f9dd426d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.cpp @@ -21,13 +21,13 @@ void miqt_exec_callback_QsciLexerJavaScript_SetStylePreprocessor(void*, intptr_t } /* extern C */ #endif -class MiqtVirtualQsciLexerJavaScript : public virtual QsciLexerJavaScript { +class MiqtVirtualQsciLexerJavaScript final : public QsciLexerJavaScript { public: MiqtVirtualQsciLexerJavaScript(): QsciLexerJavaScript() {}; MiqtVirtualQsciLexerJavaScript(QObject* parent): QsciLexerJavaScript(parent) {}; - virtual ~MiqtVirtualQsciLexerJavaScript() = default; + virtual ~MiqtVirtualQsciLexerJavaScript() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldAtElse = 0; @@ -279,11 +279,7 @@ void QsciLexerJavaScript_virtualbase_SetStylePreprocessor(void* self, bool style ( (MiqtVirtualQsciLexerJavaScript*)(self) )->virtualbase_SetStylePreprocessor(style); } -void QsciLexerJavaScript_Delete(QsciLexerJavaScript* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerJavaScript_Delete(QsciLexerJavaScript* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.go b/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.go index 0957707c..276d082f 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.go @@ -280,7 +280,7 @@ func miqt_exec_callback_QsciLexerJavaScript_SetStylePreprocessor(self *C.QsciLex // Delete this object from C++ memory. func (this *QsciLexerJavaScript) Delete() { - C.QsciLexerJavaScript_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerJavaScript_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.h b/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.h index f65af3df..ccfb7fde 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjavascript.h @@ -57,7 +57,7 @@ void QsciLexerJavaScript_override_virtual_SetFoldPreprocessor(void* self, intptr void QsciLexerJavaScript_virtualbase_SetFoldPreprocessor(void* self, bool fold); void QsciLexerJavaScript_override_virtual_SetStylePreprocessor(void* self, intptr_t slot); void QsciLexerJavaScript_virtualbase_SetStylePreprocessor(void* self, bool style); -void QsciLexerJavaScript_Delete(QsciLexerJavaScript* self, bool isSubclass); +void QsciLexerJavaScript_Delete(QsciLexerJavaScript* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjson.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerjson.cpp index 826dd406..041392ee 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjson.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjson.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerJSON_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerJSON : public virtual QsciLexerJSON { +class MiqtVirtualQsciLexerJSON final : public QsciLexerJSON { public: MiqtVirtualQsciLexerJSON(): QsciLexerJSON() {}; MiqtVirtualQsciLexerJSON(QObject* parent): QsciLexerJSON(parent) {}; - virtual ~MiqtVirtualQsciLexerJSON() = default; + virtual ~MiqtVirtualQsciLexerJSON() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1264,11 +1264,7 @@ bool QsciLexerJSON_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerJSON*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerJSON_Delete(QsciLexerJSON* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerJSON_Delete(QsciLexerJSON* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjson.go b/qt-restricted-extras/qscintilla6/gen_qscilexerjson.go index 6a6c6e23..266d0a2c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjson.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjson.go @@ -1173,7 +1173,7 @@ func miqt_exec_callback_QsciLexerJSON_WriteProperties(self *C.QsciLexerJSON, cb // Delete this object from C++ memory. func (this *QsciLexerJSON) Delete() { - C.QsciLexerJSON_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerJSON_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerjson.h b/qt-restricted-extras/qscintilla6/gen_qscilexerjson.h index 141d0f31..7e13c075 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerjson.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerjson.h @@ -125,7 +125,7 @@ void QsciLexerJSON_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerJSON_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerJSON_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerJSON_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerJSON_Delete(QsciLexerJSON* self, bool isSubclass); +void QsciLexerJSON_Delete(QsciLexerJSON* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerlua.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerlua.cpp index c6519c4b..bfa86dc3 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerlua.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerlua.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerLua_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerLua : public virtual QsciLexerLua { +class MiqtVirtualQsciLexerLua final : public QsciLexerLua { public: MiqtVirtualQsciLexerLua(): QsciLexerLua() {}; MiqtVirtualQsciLexerLua(QObject* parent): QsciLexerLua(parent) {}; - virtual ~MiqtVirtualQsciLexerLua() = default; + virtual ~MiqtVirtualQsciLexerLua() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -1313,11 +1313,7 @@ bool QsciLexerLua_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerLua*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerLua_Delete(QsciLexerLua* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerLua_Delete(QsciLexerLua* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerlua.go b/qt-restricted-extras/qscintilla6/gen_qscilexerlua.go index 01e899df..caa28fec 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerlua.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerlua.go @@ -1216,7 +1216,7 @@ func miqt_exec_callback_QsciLexerLua_WriteProperties(self *C.QsciLexerLua, cb C. // Delete this object from C++ memory. func (this *QsciLexerLua) Delete() { - C.QsciLexerLua_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerLua_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerlua.h b/qt-restricted-extras/qscintilla6/gen_qscilexerlua.h index 509bbb3c..7931aecc 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerlua.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerlua.h @@ -127,7 +127,7 @@ void QsciLexerLua_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerLua_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerLua_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerLua_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerLua_Delete(QsciLexerLua* self, bool isSubclass); +void QsciLexerLua_Delete(QsciLexerLua* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.cpp index ea299c78..faefd8bb 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerMakefile_WriteProperties(void*, intptr_t, QSett } /* extern C */ #endif -class MiqtVirtualQsciLexerMakefile : public virtual QsciLexerMakefile { +class MiqtVirtualQsciLexerMakefile final : public QsciLexerMakefile { public: MiqtVirtualQsciLexerMakefile(): QsciLexerMakefile() {}; MiqtVirtualQsciLexerMakefile(QObject* parent): QsciLexerMakefile(parent) {}; - virtual ~MiqtVirtualQsciLexerMakefile() = default; + virtual ~MiqtVirtualQsciLexerMakefile() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1236,11 +1236,7 @@ bool QsciLexerMakefile_virtualbase_WriteProperties(const void* self, QSettings* return ( (const MiqtVirtualQsciLexerMakefile*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerMakefile_Delete(QsciLexerMakefile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerMakefile_Delete(QsciLexerMakefile* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.go b/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.go index 0ff6ef85..1f7c0fc2 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.go @@ -1138,7 +1138,7 @@ func miqt_exec_callback_QsciLexerMakefile_WriteProperties(self *C.QsciLexerMakef // Delete this object from C++ memory. func (this *QsciLexerMakefile) Delete() { - C.QsciLexerMakefile_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerMakefile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.h b/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.h index 427a98c9..ae6dfe2f 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermakefile.h @@ -118,7 +118,7 @@ void QsciLexerMakefile_override_virtual_ReadProperties(void* self, intptr_t slot bool QsciLexerMakefile_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerMakefile_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerMakefile_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerMakefile_Delete(QsciLexerMakefile* self, bool isSubclass); +void QsciLexerMakefile_Delete(QsciLexerMakefile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.cpp index 35a8d7bf..7329f9bd 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerMarkdown_WriteProperties(void*, intptr_t, QSett } /* extern C */ #endif -class MiqtVirtualQsciLexerMarkdown : public virtual QsciLexerMarkdown { +class MiqtVirtualQsciLexerMarkdown final : public QsciLexerMarkdown { public: MiqtVirtualQsciLexerMarkdown(): QsciLexerMarkdown() {}; MiqtVirtualQsciLexerMarkdown(QObject* parent): QsciLexerMarkdown(parent) {}; - virtual ~MiqtVirtualQsciLexerMarkdown() = default; + virtual ~MiqtVirtualQsciLexerMarkdown() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1228,11 +1228,7 @@ bool QsciLexerMarkdown_virtualbase_WriteProperties(const void* self, QSettings* return ( (const MiqtVirtualQsciLexerMarkdown*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerMarkdown_Delete(QsciLexerMarkdown* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerMarkdown_Delete(QsciLexerMarkdown* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.go b/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.go index c26f32ea..09a66467 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.go @@ -1144,7 +1144,7 @@ func miqt_exec_callback_QsciLexerMarkdown_WriteProperties(self *C.QsciLexerMarkd // Delete this object from C++ memory. func (this *QsciLexerMarkdown) Delete() { - C.QsciLexerMarkdown_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerMarkdown_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.h b/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.h index ce6593ad..331af6bf 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermarkdown.h @@ -116,7 +116,7 @@ void QsciLexerMarkdown_override_virtual_ReadProperties(void* self, intptr_t slot bool QsciLexerMarkdown_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerMarkdown_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerMarkdown_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerMarkdown_Delete(QsciLexerMarkdown* self, bool isSubclass); +void QsciLexerMarkdown_Delete(QsciLexerMarkdown* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.cpp index bb506e0f..59fe501e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerMatlab_WriteProperties(void*, intptr_t, QSettin } /* extern C */ #endif -class MiqtVirtualQsciLexerMatlab : public virtual QsciLexerMatlab { +class MiqtVirtualQsciLexerMatlab final : public QsciLexerMatlab { public: MiqtVirtualQsciLexerMatlab(): QsciLexerMatlab() {}; MiqtVirtualQsciLexerMatlab(QObject* parent): QsciLexerMatlab(parent) {}; - virtual ~MiqtVirtualQsciLexerMatlab() = default; + virtual ~MiqtVirtualQsciLexerMatlab() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1228,11 +1228,7 @@ bool QsciLexerMatlab_virtualbase_WriteProperties(const void* self, QSettings* qs return ( (const MiqtVirtualQsciLexerMatlab*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerMatlab_Delete(QsciLexerMatlab* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerMatlab_Delete(QsciLexerMatlab* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.go b/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.go index 2ea68b94..0985c47d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.go @@ -1130,7 +1130,7 @@ func miqt_exec_callback_QsciLexerMatlab_WriteProperties(self *C.QsciLexerMatlab, // Delete this object from C++ memory. func (this *QsciLexerMatlab) Delete() { - C.QsciLexerMatlab_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerMatlab_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.h b/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.h index f8b0f177..5f27112e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexermatlab.h @@ -116,7 +116,7 @@ void QsciLexerMatlab_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerMatlab_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerMatlab_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerMatlab_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerMatlab_Delete(QsciLexerMatlab* self, bool isSubclass); +void QsciLexerMatlab_Delete(QsciLexerMatlab* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.cpp index 43c18bba..8a5d5b3e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.cpp @@ -79,11 +79,7 @@ struct miqt_string QsciLexerOctave_Tr3(const char* s, const char* c, int n) { return _ms; } -void QsciLexerOctave_Delete(QsciLexerOctave* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerOctave_Delete(QsciLexerOctave* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.go b/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.go index f8ab5be5..d41c56a7 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.go @@ -125,7 +125,7 @@ func QsciLexerOctave_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QsciLexerOctave) Delete() { - C.QsciLexerOctave_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerOctave_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.h b/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.h index 45f85b62..26135c9c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeroctave.h @@ -39,7 +39,7 @@ const char* QsciLexerOctave_Lexer(const QsciLexerOctave* self); const char* QsciLexerOctave_Keywords(const QsciLexerOctave* self, int set); struct miqt_string QsciLexerOctave_Tr2(const char* s, const char* c); struct miqt_string QsciLexerOctave_Tr3(const char* s, const char* c, int n); -void QsciLexerOctave_Delete(QsciLexerOctave* self, bool isSubclass); +void QsciLexerOctave_Delete(QsciLexerOctave* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.cpp index 34d07e38..a9b28d38 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerPascal_WriteProperties(void*, intptr_t, QSettin } /* extern C */ #endif -class MiqtVirtualQsciLexerPascal : public virtual QsciLexerPascal { +class MiqtVirtualQsciLexerPascal final : public QsciLexerPascal { public: MiqtVirtualQsciLexerPascal(): QsciLexerPascal() {}; MiqtVirtualQsciLexerPascal(QObject* parent): QsciLexerPascal(parent) {}; - virtual ~MiqtVirtualQsciLexerPascal() = default; + virtual ~MiqtVirtualQsciLexerPascal() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1419,11 +1419,7 @@ bool QsciLexerPascal_virtualbase_WriteProperties(const void* self, QSettings* qs return ( (const MiqtVirtualQsciLexerPascal*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPascal_Delete(QsciLexerPascal* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPascal_Delete(QsciLexerPascal* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.go b/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.go index f6549991..33af1757 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.go @@ -1307,7 +1307,7 @@ func miqt_exec_callback_QsciLexerPascal_WriteProperties(self *C.QsciLexerPascal, // Delete this object from C++ memory. func (this *QsciLexerPascal) Delete() { - C.QsciLexerPascal_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPascal_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.h b/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.h index 628427f9..146060c2 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpascal.h @@ -141,7 +141,7 @@ void QsciLexerPascal_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerPascal_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPascal_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPascal_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPascal_Delete(QsciLexerPascal* self, bool isSubclass); +void QsciLexerPascal_Delete(QsciLexerPascal* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerperl.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerperl.cpp index 737a1e95..5a1d406d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerperl.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerperl.cpp @@ -54,13 +54,13 @@ bool miqt_exec_callback_QsciLexerPerl_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerPerl : public virtual QsciLexerPerl { +class MiqtVirtualQsciLexerPerl final : public QsciLexerPerl { public: MiqtVirtualQsciLexerPerl(): QsciLexerPerl() {}; MiqtVirtualQsciLexerPerl(QObject* parent): QsciLexerPerl(parent) {}; - virtual ~MiqtVirtualQsciLexerPerl() = default; + virtual ~MiqtVirtualQsciLexerPerl() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1390,11 +1390,7 @@ bool QsciLexerPerl_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerPerl*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPerl_Delete(QsciLexerPerl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPerl_Delete(QsciLexerPerl* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerperl.go b/qt-restricted-extras/qscintilla6/gen_qscilexerperl.go index e98d8db3..96e78fce 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerperl.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerperl.go @@ -1310,7 +1310,7 @@ func miqt_exec_callback_QsciLexerPerl_WriteProperties(self *C.QsciLexerPerl, cb // Delete this object from C++ memory. func (this *QsciLexerPerl) Delete() { - C.QsciLexerPerl_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPerl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerperl.h b/qt-restricted-extras/qscintilla6/gen_qscilexerperl.h index a1f572a5..1ff2f2c5 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerperl.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerperl.h @@ -140,7 +140,7 @@ void QsciLexerPerl_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerPerl_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPerl_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPerl_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPerl_Delete(QsciLexerPerl* self, bool isSubclass); +void QsciLexerPerl_Delete(QsciLexerPerl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpo.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerpo.cpp index 285a06ec..8bf0178e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpo.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpo.cpp @@ -54,13 +54,13 @@ bool miqt_exec_callback_QsciLexerPO_WriteProperties(void*, intptr_t, QSettings*, } /* extern C */ #endif -class MiqtVirtualQsciLexerPO : public virtual QsciLexerPO { +class MiqtVirtualQsciLexerPO final : public QsciLexerPO { public: MiqtVirtualQsciLexerPO(): QsciLexerPO() {}; MiqtVirtualQsciLexerPO(QObject* parent): QsciLexerPO(parent) {}; - virtual ~MiqtVirtualQsciLexerPO() = default; + virtual ~MiqtVirtualQsciLexerPO() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1310,11 +1310,7 @@ bool QsciLexerPO_virtualbase_WriteProperties(const void* self, QSettings* qs, st return ( (const MiqtVirtualQsciLexerPO*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPO_Delete(QsciLexerPO* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPO_Delete(QsciLexerPO* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpo.go b/qt-restricted-extras/qscintilla6/gen_qscilexerpo.go index f941f838..5d9800c8 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpo.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpo.go @@ -1203,7 +1203,7 @@ func miqt_exec_callback_QsciLexerPO_WriteProperties(self *C.QsciLexerPO, cb C.in // Delete this object from C++ memory. func (this *QsciLexerPO) Delete() { - C.QsciLexerPO_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPO_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpo.h b/qt-restricted-extras/qscintilla6/gen_qscilexerpo.h index 49af6c5e..e4ee4ba1 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpo.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpo.h @@ -124,7 +124,7 @@ void QsciLexerPO_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerPO_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPO_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPO_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPO_Delete(QsciLexerPO* self, bool isSubclass); +void QsciLexerPO_Delete(QsciLexerPO* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.cpp index 3e2796f2..253a890d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.cpp @@ -56,13 +56,13 @@ bool miqt_exec_callback_QsciLexerPostScript_WriteProperties(void*, intptr_t, QSe } /* extern C */ #endif -class MiqtVirtualQsciLexerPostScript : public virtual QsciLexerPostScript { +class MiqtVirtualQsciLexerPostScript final : public QsciLexerPostScript { public: MiqtVirtualQsciLexerPostScript(): QsciLexerPostScript() {}; MiqtVirtualQsciLexerPostScript(QObject* parent): QsciLexerPostScript(parent) {}; - virtual ~MiqtVirtualQsciLexerPostScript() = default; + virtual ~MiqtVirtualQsciLexerPostScript() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetTokenize = 0; @@ -1404,11 +1404,7 @@ bool QsciLexerPostScript_virtualbase_WriteProperties(const void* self, QSettings return ( (const MiqtVirtualQsciLexerPostScript*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPostScript_Delete(QsciLexerPostScript* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPostScript_Delete(QsciLexerPostScript* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.go b/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.go index 029e4fb4..fca792a6 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.go @@ -1287,7 +1287,7 @@ func miqt_exec_callback_QsciLexerPostScript_WriteProperties(self *C.QsciLexerPos // Delete this object from C++ memory. func (this *QsciLexerPostScript) Delete() { - C.QsciLexerPostScript_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPostScript_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.h b/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.h index 92ba7c58..1fe4ec21 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpostscript.h @@ -135,7 +135,7 @@ void QsciLexerPostScript_override_virtual_ReadProperties(void* self, intptr_t sl bool QsciLexerPostScript_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPostScript_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPostScript_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPostScript_Delete(QsciLexerPostScript* self, bool isSubclass); +void QsciLexerPostScript_Delete(QsciLexerPostScript* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpov.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerpov.cpp index e377e636..c34f969a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpov.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpov.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerPOV_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerPOV : public virtual QsciLexerPOV { +class MiqtVirtualQsciLexerPOV final : public QsciLexerPOV { public: MiqtVirtualQsciLexerPOV(): QsciLexerPOV() {}; MiqtVirtualQsciLexerPOV(QObject* parent): QsciLexerPOV(parent) {}; - virtual ~MiqtVirtualQsciLexerPOV() = default; + virtual ~MiqtVirtualQsciLexerPOV() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1371,11 +1371,7 @@ bool QsciLexerPOV_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerPOV*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPOV_Delete(QsciLexerPOV* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPOV_Delete(QsciLexerPOV* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpov.go b/qt-restricted-extras/qscintilla6/gen_qscilexerpov.go index 1ea3c207..0da0d338 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpov.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpov.go @@ -1263,7 +1263,7 @@ func miqt_exec_callback_QsciLexerPOV_WriteProperties(self *C.QsciLexerPOV, cb C. // Delete this object from C++ memory. func (this *QsciLexerPOV) Delete() { - C.QsciLexerPOV_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPOV_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpov.h b/qt-restricted-extras/qscintilla6/gen_qscilexerpov.h index 6dea9006..418d971e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpov.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpov.h @@ -133,7 +133,7 @@ void QsciLexerPOV_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerPOV_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPOV_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPOV_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPOV_Delete(QsciLexerPOV* self, bool isSubclass); +void QsciLexerPOV_Delete(QsciLexerPOV* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.cpp index 5aad52f2..8d200c20 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerProperties_WriteProperties(void*, intptr_t, QSe } /* extern C */ #endif -class MiqtVirtualQsciLexerProperties : public virtual QsciLexerProperties { +class MiqtVirtualQsciLexerProperties final : public QsciLexerProperties { public: MiqtVirtualQsciLexerProperties(): QsciLexerProperties() {}; MiqtVirtualQsciLexerProperties(QObject* parent): QsciLexerProperties(parent) {}; - virtual ~MiqtVirtualQsciLexerProperties() = default; + virtual ~MiqtVirtualQsciLexerProperties() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -1289,11 +1289,7 @@ bool QsciLexerProperties_virtualbase_WriteProperties(const void* self, QSettings return ( (const MiqtVirtualQsciLexerProperties*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerProperties_Delete(QsciLexerProperties* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerProperties_Delete(QsciLexerProperties* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.go b/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.go index c26fb09a..359e3e25 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.go @@ -1183,7 +1183,7 @@ func miqt_exec_callback_QsciLexerProperties_WriteProperties(self *C.QsciLexerPro // Delete this object from C++ memory. func (this *QsciLexerProperties) Delete() { - C.QsciLexerProperties_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerProperties_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.h b/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.h index 1bfd9128..030763d8 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerproperties.h @@ -125,7 +125,7 @@ void QsciLexerProperties_override_virtual_ReadProperties(void* self, intptr_t sl bool QsciLexerProperties_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerProperties_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerProperties_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerProperties_Delete(QsciLexerProperties* self, bool isSubclass); +void QsciLexerProperties_Delete(QsciLexerProperties* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpython.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerpython.cpp index 388d8def..f59c2f46 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpython.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpython.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerPython_WriteProperties(void*, intptr_t, QSettin } /* extern C */ #endif -class MiqtVirtualQsciLexerPython : public virtual QsciLexerPython { +class MiqtVirtualQsciLexerPython final : public QsciLexerPython { public: MiqtVirtualQsciLexerPython(): QsciLexerPython() {}; MiqtVirtualQsciLexerPython(QObject* parent): QsciLexerPython(parent) {}; - virtual ~MiqtVirtualQsciLexerPython() = default; + virtual ~MiqtVirtualQsciLexerPython() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IndentationGuideView = 0; @@ -1453,11 +1453,7 @@ bool QsciLexerPython_virtualbase_WriteProperties(const void* self, QSettings* qs return ( (const MiqtVirtualQsciLexerPython*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerPython_Delete(QsciLexerPython* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerPython_Delete(QsciLexerPython* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpython.go b/qt-restricted-extras/qscintilla6/gen_qscilexerpython.go index 45cf16b2..461d0cbf 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpython.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpython.go @@ -1350,7 +1350,7 @@ func miqt_exec_callback_QsciLexerPython_WriteProperties(self *C.QsciLexerPython, // Delete this object from C++ memory. func (this *QsciLexerPython) Delete() { - C.QsciLexerPython_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerPython_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerpython.h b/qt-restricted-extras/qscintilla6/gen_qscilexerpython.h index 4eea3508..aefcbbbb 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerpython.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerpython.h @@ -149,7 +149,7 @@ void QsciLexerPython_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerPython_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerPython_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerPython_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerPython_Delete(QsciLexerPython* self, bool isSubclass); +void QsciLexerPython_Delete(QsciLexerPython* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerruby.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerruby.cpp index 0a59d756..d858f65c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerruby.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerruby.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerRuby_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerRuby : public virtual QsciLexerRuby { +class MiqtVirtualQsciLexerRuby final : public QsciLexerRuby { public: MiqtVirtualQsciLexerRuby(): QsciLexerRuby() {}; MiqtVirtualQsciLexerRuby(QObject* parent): QsciLexerRuby(parent) {}; - virtual ~MiqtVirtualQsciLexerRuby() = default; + virtual ~MiqtVirtualQsciLexerRuby() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1284,11 +1284,7 @@ bool QsciLexerRuby_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerRuby*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerRuby_Delete(QsciLexerRuby* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerRuby_Delete(QsciLexerRuby* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerruby.go b/qt-restricted-extras/qscintilla6/gen_qscilexerruby.go index 79bfd43b..4ddb9341 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerruby.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerruby.go @@ -1216,7 +1216,7 @@ func miqt_exec_callback_QsciLexerRuby_WriteProperties(self *C.QsciLexerRuby, cb // Delete this object from C++ memory. func (this *QsciLexerRuby) Delete() { - C.QsciLexerRuby_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerRuby_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerruby.h b/qt-restricted-extras/qscintilla6/gen_qscilexerruby.h index 507693ff..ec23c825 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerruby.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerruby.h @@ -130,7 +130,7 @@ void QsciLexerRuby_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerRuby_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerRuby_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerRuby_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerRuby_Delete(QsciLexerRuby* self, bool isSubclass); +void QsciLexerRuby_Delete(QsciLexerRuby* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerspice.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerspice.cpp index 9693e422..e7b6f520 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerspice.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerspice.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerSpice_WriteProperties(void*, intptr_t, QSetting } /* extern C */ #endif -class MiqtVirtualQsciLexerSpice : public virtual QsciLexerSpice { +class MiqtVirtualQsciLexerSpice final : public QsciLexerSpice { public: MiqtVirtualQsciLexerSpice(): QsciLexerSpice() {}; MiqtVirtualQsciLexerSpice(QObject* parent): QsciLexerSpice(parent) {}; - virtual ~MiqtVirtualQsciLexerSpice() = default; + virtual ~MiqtVirtualQsciLexerSpice() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1232,11 +1232,7 @@ bool QsciLexerSpice_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerSpice*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerSpice_Delete(QsciLexerSpice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerSpice_Delete(QsciLexerSpice* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerspice.go b/qt-restricted-extras/qscintilla6/gen_qscilexerspice.go index ae3c4116..257a8bad 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerspice.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerspice.go @@ -1134,7 +1134,7 @@ func miqt_exec_callback_QsciLexerSpice_WriteProperties(self *C.QsciLexerSpice, c // Delete this object from C++ memory. func (this *QsciLexerSpice) Delete() { - C.QsciLexerSpice_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerSpice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerspice.h b/qt-restricted-extras/qscintilla6/gen_qscilexerspice.h index b26a45b8..008799a0 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerspice.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerspice.h @@ -117,7 +117,7 @@ void QsciLexerSpice_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerSpice_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerSpice_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerSpice_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerSpice_Delete(QsciLexerSpice* self, bool isSubclass); +void QsciLexerSpice_Delete(QsciLexerSpice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexersql.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexersql.cpp index 26849ab1..f8aa5895 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexersql.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexersql.cpp @@ -55,13 +55,13 @@ bool miqt_exec_callback_QsciLexerSQL_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerSQL : public virtual QsciLexerSQL { +class MiqtVirtualQsciLexerSQL final : public QsciLexerSQL { public: MiqtVirtualQsciLexerSQL(): QsciLexerSQL() {}; MiqtVirtualQsciLexerSQL(QObject* parent): QsciLexerSQL(parent) {}; - virtual ~MiqtVirtualQsciLexerSQL() = default; + virtual ~MiqtVirtualQsciLexerSQL() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetBackslashEscapes = 0; @@ -1407,11 +1407,7 @@ bool QsciLexerSQL_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerSQL*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerSQL_Delete(QsciLexerSQL* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerSQL_Delete(QsciLexerSQL* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexersql.go b/qt-restricted-extras/qscintilla6/gen_qscilexersql.go index e6b2a5e1..989ebc0b 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexersql.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexersql.go @@ -1303,7 +1303,7 @@ func miqt_exec_callback_QsciLexerSQL_WriteProperties(self *C.QsciLexerSQL, cb C. // Delete this object from C++ memory. func (this *QsciLexerSQL) Delete() { - C.QsciLexerSQL_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerSQL_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexersql.h b/qt-restricted-extras/qscintilla6/gen_qscilexersql.h index 5de7ffb1..b5032412 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexersql.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexersql.h @@ -142,7 +142,7 @@ void QsciLexerSQL_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerSQL_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerSQL_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerSQL_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerSQL_Delete(QsciLexerSQL* self, bool isSubclass); +void QsciLexerSQL_Delete(QsciLexerSQL* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexertcl.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexertcl.cpp index 38ccdd27..f1bb792f 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexertcl.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexertcl.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerTCL_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerTCL : public virtual QsciLexerTCL { +class MiqtVirtualQsciLexerTCL final : public QsciLexerTCL { public: MiqtVirtualQsciLexerTCL(): QsciLexerTCL() {}; MiqtVirtualQsciLexerTCL(QObject* parent): QsciLexerTCL(parent) {}; - virtual ~MiqtVirtualQsciLexerTCL() = default; + virtual ~MiqtVirtualQsciLexerTCL() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1252,11 +1252,7 @@ bool QsciLexerTCL_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerTCL*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerTCL_Delete(QsciLexerTCL* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerTCL_Delete(QsciLexerTCL* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexertcl.go b/qt-restricted-extras/qscintilla6/gen_qscilexertcl.go index c6ae1479..73541ac9 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexertcl.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexertcl.go @@ -1169,7 +1169,7 @@ func miqt_exec_callback_QsciLexerTCL_WriteProperties(self *C.QsciLexerTCL, cb C. // Delete this object from C++ memory. func (this *QsciLexerTCL) Delete() { - C.QsciLexerTCL_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerTCL_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexertcl.h b/qt-restricted-extras/qscintilla6/gen_qscilexertcl.h index 1ee73c7b..e8f40d29 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexertcl.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexertcl.h @@ -122,7 +122,7 @@ void QsciLexerTCL_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerTCL_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerTCL_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerTCL_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerTCL_Delete(QsciLexerTCL* self, bool isSubclass); +void QsciLexerTCL_Delete(QsciLexerTCL* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexertex.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexertex.cpp index 11ffa139..bc1eeb3e 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexertex.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexertex.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerTeX_WriteProperties(void*, intptr_t, QSettings* } /* extern C */ #endif -class MiqtVirtualQsciLexerTeX : public virtual QsciLexerTeX { +class MiqtVirtualQsciLexerTeX final : public QsciLexerTeX { public: MiqtVirtualQsciLexerTeX(): QsciLexerTeX() {}; MiqtVirtualQsciLexerTeX(QObject* parent): QsciLexerTeX(parent) {}; - virtual ~MiqtVirtualQsciLexerTeX() = default; + virtual ~MiqtVirtualQsciLexerTeX() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1264,11 +1264,7 @@ bool QsciLexerTeX_virtualbase_WriteProperties(const void* self, QSettings* qs, s return ( (const MiqtVirtualQsciLexerTeX*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerTeX_Delete(QsciLexerTeX* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerTeX_Delete(QsciLexerTeX* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexertex.go b/qt-restricted-extras/qscintilla6/gen_qscilexertex.go index 1e718e31..f1a8bf00 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexertex.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexertex.go @@ -1162,7 +1162,7 @@ func miqt_exec_callback_QsciLexerTeX_WriteProperties(self *C.QsciLexerTeX, cb C. // Delete this object from C++ memory. func (this *QsciLexerTeX) Delete() { - C.QsciLexerTeX_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerTeX_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexertex.h b/qt-restricted-extras/qscintilla6/gen_qscilexertex.h index 654a258f..91ff48bf 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexertex.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexertex.h @@ -125,7 +125,7 @@ void QsciLexerTeX_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerTeX_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerTeX_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerTeX_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerTeX_Delete(QsciLexerTeX* self, bool isSubclass); +void QsciLexerTeX_Delete(QsciLexerTeX* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.cpp index ffa3fc8a..0507bdf9 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.cpp @@ -52,13 +52,13 @@ bool miqt_exec_callback_QsciLexerVerilog_WriteProperties(void*, intptr_t, QSetti } /* extern C */ #endif -class MiqtVirtualQsciLexerVerilog : public virtual QsciLexerVerilog { +class MiqtVirtualQsciLexerVerilog final : public QsciLexerVerilog { public: MiqtVirtualQsciLexerVerilog(): QsciLexerVerilog() {}; MiqtVirtualQsciLexerVerilog(QObject* parent): QsciLexerVerilog(parent) {}; - virtual ~MiqtVirtualQsciLexerVerilog() = default; + virtual ~MiqtVirtualQsciLexerVerilog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Language = 0; @@ -1288,11 +1288,7 @@ bool QsciLexerVerilog_virtualbase_WriteProperties(const void* self, QSettings* q return ( (const MiqtVirtualQsciLexerVerilog*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerVerilog_Delete(QsciLexerVerilog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerVerilog_Delete(QsciLexerVerilog* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.go b/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.go index 406bfced..51b826c0 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.go @@ -1222,7 +1222,7 @@ func miqt_exec_callback_QsciLexerVerilog_WriteProperties(self *C.QsciLexerVerilo // Delete this object from C++ memory. func (this *QsciLexerVerilog) Delete() { - C.QsciLexerVerilog_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerVerilog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.h b/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.h index e48e78a5..c7a9fa1a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerverilog.h @@ -131,7 +131,7 @@ void QsciLexerVerilog_override_virtual_ReadProperties(void* self, intptr_t slot) bool QsciLexerVerilog_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerVerilog_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerVerilog_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerVerilog_Delete(QsciLexerVerilog* self, bool isSubclass); +void QsciLexerVerilog_Delete(QsciLexerVerilog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.cpp index caf4b990..19395924 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.cpp @@ -57,13 +57,13 @@ bool miqt_exec_callback_QsciLexerVHDL_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerVHDL : public virtual QsciLexerVHDL { +class MiqtVirtualQsciLexerVHDL final : public QsciLexerVHDL { public: MiqtVirtualQsciLexerVHDL(): QsciLexerVHDL() {}; MiqtVirtualQsciLexerVHDL(QObject* parent): QsciLexerVHDL(parent) {}; - virtual ~MiqtVirtualQsciLexerVHDL() = default; + virtual ~MiqtVirtualQsciLexerVHDL() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1449,11 +1449,7 @@ bool QsciLexerVHDL_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerVHDL*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerVHDL_Delete(QsciLexerVHDL* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerVHDL_Delete(QsciLexerVHDL* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.go b/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.go index a97bf00b..2328a4e1 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.go @@ -1325,7 +1325,7 @@ func miqt_exec_callback_QsciLexerVHDL_WriteProperties(self *C.QsciLexerVHDL, cb // Delete this object from C++ memory. func (this *QsciLexerVHDL) Delete() { - C.QsciLexerVHDL_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerVHDL_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.h b/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.h index ca6c4a68..765a0c2c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexervhdl.h @@ -140,7 +140,7 @@ void QsciLexerVHDL_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerVHDL_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerVHDL_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerVHDL_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerVHDL_Delete(QsciLexerVHDL* self, bool isSubclass); +void QsciLexerVHDL_Delete(QsciLexerVHDL* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerxml.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexerxml.cpp index 2ee32fd5..60728aad 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerxml.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerxml.cpp @@ -19,13 +19,13 @@ void miqt_exec_callback_QsciLexerXML_SetCaseSensitiveTags(void*, intptr_t, bool) } /* extern C */ #endif -class MiqtVirtualQsciLexerXML : public virtual QsciLexerXML { +class MiqtVirtualQsciLexerXML final : public QsciLexerXML { public: MiqtVirtualQsciLexerXML(): QsciLexerXML() {}; MiqtVirtualQsciLexerXML(QObject* parent): QsciLexerXML(parent) {}; - virtual ~MiqtVirtualQsciLexerXML() = default; + virtual ~MiqtVirtualQsciLexerXML() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldCompact = 0; @@ -218,11 +218,7 @@ void QsciLexerXML_virtualbase_SetCaseSensitiveTags(void* self, bool sens) { ( (MiqtVirtualQsciLexerXML*)(self) )->virtualbase_SetCaseSensitiveTags(sens); } -void QsciLexerXML_Delete(QsciLexerXML* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerXML_Delete(QsciLexerXML* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerxml.go b/qt-restricted-extras/qscintilla6/gen_qscilexerxml.go index 87e2d67b..de64802c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerxml.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerxml.go @@ -238,7 +238,7 @@ func miqt_exec_callback_QsciLexerXML_SetCaseSensitiveTags(self *C.QsciLexerXML, // Delete this object from C++ memory. func (this *QsciLexerXML) Delete() { - C.QsciLexerXML_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerXML_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexerxml.h b/qt-restricted-extras/qscintilla6/gen_qscilexerxml.h index 8d3c8fa3..fe23b449 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexerxml.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexerxml.h @@ -56,7 +56,7 @@ void QsciLexerXML_override_virtual_SetFoldPreprocessor(void* self, intptr_t slot void QsciLexerXML_virtualbase_SetFoldPreprocessor(void* self, bool fold); void QsciLexerXML_override_virtual_SetCaseSensitiveTags(void* self, intptr_t slot); void QsciLexerXML_virtualbase_SetCaseSensitiveTags(void* self, bool sens); -void QsciLexerXML_Delete(QsciLexerXML* self, bool isSubclass); +void QsciLexerXML_Delete(QsciLexerXML* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.cpp b/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.cpp index ed72cc05..08b8eb36 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.cpp @@ -53,13 +53,13 @@ bool miqt_exec_callback_QsciLexerYAML_WriteProperties(void*, intptr_t, QSettings } /* extern C */ #endif -class MiqtVirtualQsciLexerYAML : public virtual QsciLexerYAML { +class MiqtVirtualQsciLexerYAML final : public QsciLexerYAML { public: MiqtVirtualQsciLexerYAML(): QsciLexerYAML() {}; MiqtVirtualQsciLexerYAML(QObject* parent): QsciLexerYAML(parent) {}; - virtual ~MiqtVirtualQsciLexerYAML() = default; + virtual ~MiqtVirtualQsciLexerYAML() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetFoldComments = 0; @@ -1281,11 +1281,7 @@ bool QsciLexerYAML_virtualbase_WriteProperties(const void* self, QSettings* qs, return ( (const MiqtVirtualQsciLexerYAML*)(self) )->virtualbase_WriteProperties(qs, prefix); } -void QsciLexerYAML_Delete(QsciLexerYAML* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciLexerYAML_Delete(QsciLexerYAML* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.go b/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.go index e3b9f384..b4701aff 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.go +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.go @@ -1179,7 +1179,7 @@ func miqt_exec_callback_QsciLexerYAML_WriteProperties(self *C.QsciLexerYAML, cb // Delete this object from C++ memory. func (this *QsciLexerYAML) Delete() { - C.QsciLexerYAML_Delete(this.h, C.bool(this.isSubclass)) + C.QsciLexerYAML_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.h b/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.h index c2368442..85fc8951 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.h +++ b/qt-restricted-extras/qscintilla6/gen_qscilexeryaml.h @@ -123,7 +123,7 @@ void QsciLexerYAML_override_virtual_ReadProperties(void* self, intptr_t slot); bool QsciLexerYAML_virtualbase_ReadProperties(void* self, QSettings* qs, struct miqt_string prefix); void QsciLexerYAML_override_virtual_WriteProperties(void* self, intptr_t slot); bool QsciLexerYAML_virtualbase_WriteProperties(const void* self, QSettings* qs, struct miqt_string prefix); -void QsciLexerYAML_Delete(QsciLexerYAML* self, bool isSubclass); +void QsciLexerYAML_Delete(QsciLexerYAML* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscimacro.cpp b/qt-restricted-extras/qscintilla6/gen_qscimacro.cpp index c01f5b02..c3383638 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscimacro.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscimacro.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QsciMacro_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQsciMacro : public virtual QsciMacro { +class MiqtVirtualQsciMacro final : public QsciMacro { public: MiqtVirtualQsciMacro(QsciScintilla* parent): QsciMacro(parent) {}; MiqtVirtualQsciMacro(const QString& asc, QsciScintilla* parent): QsciMacro(asc, parent) {}; - virtual ~MiqtVirtualQsciMacro() = default; + virtual ~MiqtVirtualQsciMacro() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Play = 0; @@ -444,11 +444,7 @@ void QsciMacro_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQsciMacro*)(self) )->virtualbase_DisconnectNotify(signal); } -void QsciMacro_Delete(QsciMacro* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciMacro_Delete(QsciMacro* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscimacro.go b/qt-restricted-extras/qscintilla6/gen_qscimacro.go index c006bad0..e1d34845 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscimacro.go +++ b/qt-restricted-extras/qscintilla6/gen_qscimacro.go @@ -403,7 +403,7 @@ func miqt_exec_callback_QsciMacro_DisconnectNotify(self *C.QsciMacro, cb C.intpt // Delete this object from C++ memory. func (this *QsciMacro) Delete() { - C.QsciMacro_Delete(this.h, C.bool(this.isSubclass)) + C.QsciMacro_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscimacro.h b/qt-restricted-extras/qscintilla6/gen_qscimacro.h index 5265e7b2..ff0a3549 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscimacro.h +++ b/qt-restricted-extras/qscintilla6/gen_qscimacro.h @@ -68,7 +68,7 @@ void QsciMacro_override_virtual_ConnectNotify(void* self, intptr_t slot); void QsciMacro_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QsciMacro_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QsciMacro_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QsciMacro_Delete(QsciMacro* self, bool isSubclass); +void QsciMacro_Delete(QsciMacro* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qsciprinter.cpp b/qt-restricted-extras/qscintilla6/gen_qsciprinter.cpp index 20af42ba..0e9b63f2 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciprinter.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qsciprinter.cpp @@ -24,13 +24,13 @@ int miqt_exec_callback_QsciPrinter_Metric(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQsciPrinter : public virtual QsciPrinter { +class MiqtVirtualQsciPrinter final : public QsciPrinter { public: MiqtVirtualQsciPrinter(): QsciPrinter() {}; MiqtVirtualQsciPrinter(QPrinter::PrinterMode mode): QsciPrinter(mode) {}; - virtual ~MiqtVirtualQsciPrinter() = default; + virtual ~MiqtVirtualQsciPrinter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__FormatPage = 0; @@ -370,11 +370,7 @@ int QsciPrinter_virtualbase_Metric(const void* self, int param1) { return ( (const MiqtVirtualQsciPrinter*)(self) )->virtualbase_Metric(param1); } -void QsciPrinter_Delete(QsciPrinter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciPrinter_Delete(QsciPrinter* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qsciprinter.go b/qt-restricted-extras/qscintilla6/gen_qsciprinter.go index 4fe4d753..db56959a 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciprinter.go +++ b/qt-restricted-extras/qscintilla6/gen_qsciprinter.go @@ -352,7 +352,7 @@ func miqt_exec_callback_QsciPrinter_Metric(self *C.QsciPrinter, cb C.intptr_t, p // Delete this object from C++ memory. func (this *QsciPrinter) Delete() { - C.QsciPrinter_Delete(this.h, C.bool(this.isSubclass)) + C.QsciPrinter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qsciprinter.h b/qt-restricted-extras/qscintilla6/gen_qsciprinter.h index e5bff78f..6adbbfa7 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciprinter.h +++ b/qt-restricted-extras/qscintilla6/gen_qsciprinter.h @@ -62,7 +62,7 @@ void QsciPrinter_override_virtual_PaintEngine(void* self, intptr_t slot); QPaintEngine* QsciPrinter_virtualbase_PaintEngine(const void* self); void QsciPrinter_override_virtual_Metric(void* self, intptr_t slot); int QsciPrinter_virtualbase_Metric(const void* self, int param1); -void QsciPrinter_Delete(QsciPrinter* self, bool isSubclass); +void QsciPrinter_Delete(QsciPrinter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qsciscintilla.cpp b/qt-restricted-extras/qscintilla6/gen_qsciscintilla.cpp index d63cecee..b9501612 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciscintilla.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qsciscintilla.cpp @@ -161,13 +161,13 @@ void miqt_exec_callback_QsciScintilla_ScrollContentsBy(void*, intptr_t, int, int } /* extern C */ #endif -class MiqtVirtualQsciScintilla : public virtual QsciScintilla { +class MiqtVirtualQsciScintilla final : public QsciScintilla { public: MiqtVirtualQsciScintilla(QWidget* parent): QsciScintilla(parent) {}; MiqtVirtualQsciScintilla(): QsciScintilla() {}; - virtual ~MiqtVirtualQsciScintilla() = default; + virtual ~MiqtVirtualQsciScintilla() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ApiContext = 0; @@ -5176,11 +5176,7 @@ void QsciScintilla_virtualbase_ScrollContentsBy(void* self, int dx, int dy) { ( (MiqtVirtualQsciScintilla*)(self) )->virtualbase_ScrollContentsBy(dx, dy); } -void QsciScintilla_Delete(QsciScintilla* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciScintilla_Delete(QsciScintilla* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qsciscintilla.go b/qt-restricted-extras/qscintilla6/gen_qsciscintilla.go index ffe4b58c..e3e3f0c4 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciscintilla.go +++ b/qt-restricted-extras/qscintilla6/gen_qsciscintilla.go @@ -4716,7 +4716,7 @@ func miqt_exec_callback_QsciScintilla_ScrollContentsBy(self *C.QsciScintilla, cb // Delete this object from C++ memory. func (this *QsciScintilla) Delete() { - C.QsciScintilla_Delete(this.h, C.bool(this.isSubclass)) + C.QsciScintilla_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qsciscintilla.h b/qt-restricted-extras/qscintilla6/gen_qsciscintilla.h index 9c5eb2f0..f5ec00a4 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciscintilla.h +++ b/qt-restricted-extras/qscintilla6/gen_qsciscintilla.h @@ -615,7 +615,7 @@ void QsciScintilla_override_virtual_ResizeEvent(void* self, intptr_t slot); void QsciScintilla_virtualbase_ResizeEvent(void* self, QResizeEvent* e); void QsciScintilla_override_virtual_ScrollContentsBy(void* self, intptr_t slot); void QsciScintilla_virtualbase_ScrollContentsBy(void* self, int dx, int dy); -void QsciScintilla_Delete(QsciScintilla* self, bool isSubclass); +void QsciScintilla_Delete(QsciScintilla* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.cpp b/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.cpp index e20bca7d..97b6574c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.cpp @@ -108,13 +108,13 @@ QSize* miqt_exec_callback_QsciScintillaBase_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQsciScintillaBase : public virtual QsciScintillaBase { +class MiqtVirtualQsciScintillaBase final : public QsciScintillaBase { public: MiqtVirtualQsciScintillaBase(QWidget* parent): QsciScintillaBase(parent) {}; MiqtVirtualQsciScintillaBase(): QsciScintillaBase() {}; - virtual ~MiqtVirtualQsciScintillaBase() = default; + virtual ~MiqtVirtualQsciScintillaBase() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CanInsertFromMimeData = 0; @@ -1646,11 +1646,7 @@ QSize* QsciScintillaBase_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQsciScintillaBase*)(self) )->virtualbase_ViewportSizeHint(); } -void QsciScintillaBase_Delete(QsciScintillaBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciScintillaBase_Delete(QsciScintillaBase* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.go b/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.go index 71b6ea69..968131aa 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.go +++ b/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.go @@ -2992,7 +2992,7 @@ func miqt_exec_callback_QsciScintillaBase_ViewportSizeHint(self *C.QsciScintilla // Delete this object from C++ memory. func (this *QsciScintillaBase) Delete() { - C.QsciScintillaBase_Delete(this.h, C.bool(this.isSubclass)) + C.QsciScintillaBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.h b/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.h index f73a93bc..c618c7cd 100644 --- a/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.h +++ b/qt-restricted-extras/qscintilla6/gen_qsciscintillabase.h @@ -260,7 +260,7 @@ void QsciScintillaBase_override_virtual_WheelEvent(void* self, intptr_t slot); void QsciScintillaBase_virtualbase_WheelEvent(void* self, QWheelEvent* param1); void QsciScintillaBase_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QsciScintillaBase_virtualbase_ViewportSizeHint(const void* self); -void QsciScintillaBase_Delete(QsciScintillaBase* self, bool isSubclass); +void QsciScintillaBase_Delete(QsciScintillaBase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscistyle.cpp b/qt-restricted-extras/qscintilla6/gen_qscistyle.cpp index a856dbc1..3047c396 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscistyle.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscistyle.cpp @@ -133,11 +133,7 @@ void QsciStyle_Refresh(QsciStyle* self) { self->refresh(); } -void QsciStyle_Delete(QsciStyle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciStyle_Delete(QsciStyle* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscistyle.go b/qt-restricted-extras/qscintilla6/gen_qscistyle.go index d68841d9..d5a4ea9c 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscistyle.go +++ b/qt-restricted-extras/qscintilla6/gen_qscistyle.go @@ -206,7 +206,7 @@ func (this *QsciStyle) Refresh() { // Delete this object from C++ memory. func (this *QsciStyle) Delete() { - C.QsciStyle_Delete(this.h, C.bool(this.isSubclass)) + C.QsciStyle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscistyle.h b/qt-restricted-extras/qscintilla6/gen_qscistyle.h index f70b205d..36188b0d 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscistyle.h +++ b/qt-restricted-extras/qscintilla6/gen_qscistyle.h @@ -53,7 +53,7 @@ bool QsciStyle_Changeable(const QsciStyle* self); void QsciStyle_SetHotspot(QsciStyle* self, bool hotspot); bool QsciStyle_Hotspot(const QsciStyle* self); void QsciStyle_Refresh(QsciStyle* self); -void QsciStyle_Delete(QsciStyle* self, bool isSubclass); +void QsciStyle_Delete(QsciStyle* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt-restricted-extras/qscintilla6/gen_qscistyledtext.cpp b/qt-restricted-extras/qscintilla6/gen_qscistyledtext.cpp index 28e78713..298ef6de 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscistyledtext.cpp +++ b/qt-restricted-extras/qscintilla6/gen_qscistyledtext.cpp @@ -45,11 +45,7 @@ int QsciStyledText_Style(const QsciStyledText* self) { return self->style(); } -void QsciStyledText_Delete(QsciStyledText* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QsciStyledText_Delete(QsciStyledText* self) { + delete self; } diff --git a/qt-restricted-extras/qscintilla6/gen_qscistyledtext.go b/qt-restricted-extras/qscintilla6/gen_qscistyledtext.go index d2df9247..9c58a3c9 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscistyledtext.go +++ b/qt-restricted-extras/qscintilla6/gen_qscistyledtext.go @@ -95,7 +95,7 @@ func (this *QsciStyledText) Style() int { // Delete this object from C++ memory. func (this *QsciStyledText) Delete() { - C.QsciStyledText_Delete(this.h, C.bool(this.isSubclass)) + C.QsciStyledText_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt-restricted-extras/qscintilla6/gen_qscistyledtext.h b/qt-restricted-extras/qscintilla6/gen_qscistyledtext.h index 800de59d..1751f3eb 100644 --- a/qt-restricted-extras/qscintilla6/gen_qscistyledtext.h +++ b/qt-restricted-extras/qscintilla6/gen_qscistyledtext.h @@ -30,7 +30,7 @@ QsciStyledText* QsciStyledText_new3(QsciStyledText* param1); void QsciStyledText_Apply(const QsciStyledText* self, QsciScintillaBase* sci); struct miqt_string QsciStyledText_Text(const QsciStyledText* self); int QsciStyledText_Style(const QsciStyledText* self); -void QsciStyledText_Delete(QsciStyledText* self, bool isSubclass); +void QsciStyledText_Delete(QsciStyledText* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/cbor/gen_qcborarray.cpp b/qt/cbor/gen_qcborarray.cpp index 806c80e0..e22f60f7 100644 --- a/qt/cbor/gen_qcborarray.cpp +++ b/qt/cbor/gen_qcborarray.cpp @@ -247,12 +247,8 @@ QJsonArray* QCborArray_ToJsonArray(const QCborArray* self) { return new QJsonArray(self->toJsonArray()); } -void QCborArray_Delete(QCborArray* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborArray_Delete(QCborArray* self) { + delete self; } QCborArray__Iterator* QCborArray__Iterator_new() { @@ -372,12 +368,8 @@ ptrdiff_t QCborArray__Iterator_OperatorMinusWithQCborArrayIterator(const QCborAr return static_cast(_ret); } -void QCborArray__Iterator_Delete(QCborArray__Iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborArray__Iterator_Delete(QCborArray__Iterator* self) { + delete self; } QCborArray__ConstIterator* QCborArray__ConstIterator_new() { @@ -497,11 +489,7 @@ ptrdiff_t QCborArray__ConstIterator_OperatorMinusWithQCborArrayConstIterator(con return static_cast(_ret); } -void QCborArray__ConstIterator_Delete(QCborArray__ConstIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborArray__ConstIterator_Delete(QCborArray__ConstIterator* self) { + delete self; } diff --git a/qt/cbor/gen_qcborarray.go b/qt/cbor/gen_qcborarray.go index ab15bb29..e7c30fb6 100644 --- a/qt/cbor/gen_qcborarray.go +++ b/qt/cbor/gen_qcborarray.go @@ -341,7 +341,7 @@ func (this *QCborArray) ToJsonArray() *qt.QJsonArray { // Delete this object from C++ memory. func (this *QCborArray) Delete() { - C.QCborArray_Delete(this.h, C.bool(this.isSubclass)) + C.QCborArray_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -516,7 +516,7 @@ func (this *QCborArray__Iterator) OperatorMinusWithQCborArrayIterator(j QCborArr // Delete this object from C++ memory. func (this *QCborArray__Iterator) Delete() { - C.QCborArray__Iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QCborArray__Iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -691,7 +691,7 @@ func (this *QCborArray__ConstIterator) OperatorMinusWithQCborArrayConstIterator( // Delete this object from C++ memory. func (this *QCborArray__ConstIterator) Delete() { - C.QCborArray__ConstIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QCborArray__ConstIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/cbor/gen_qcborarray.h b/qt/cbor/gen_qcborarray.h index 2857f08b..cb6bb750 100644 --- a/qt/cbor/gen_qcborarray.h +++ b/qt/cbor/gen_qcborarray.h @@ -92,7 +92,7 @@ QCborArray* QCborArray_OperatorShiftLeft(QCborArray* self, QCborValue* v); QCborArray* QCborArray_FromStringList(struct miqt_array /* of struct miqt_string */ list); QCborArray* QCborArray_FromJsonArray(QJsonArray* array); QJsonArray* QCborArray_ToJsonArray(const QCborArray* self); -void QCborArray_Delete(QCborArray* self, bool isSubclass); +void QCborArray_Delete(QCborArray* self); QCborArray__Iterator* QCborArray__Iterator_new(); QCborArray__Iterator* QCborArray__Iterator_new2(QCborArray__Iterator* param1); @@ -121,7 +121,7 @@ QCborArray__Iterator* QCborArray__Iterator_OperatorMinusAssign(QCborArray__Itera QCborArray__Iterator* QCborArray__Iterator_OperatorPlus(const QCborArray__Iterator* self, ptrdiff_t j); QCborArray__Iterator* QCborArray__Iterator_OperatorMinus(const QCborArray__Iterator* self, ptrdiff_t j); ptrdiff_t QCborArray__Iterator_OperatorMinusWithQCborArrayIterator(const QCborArray__Iterator* self, QCborArray__Iterator* j); -void QCborArray__Iterator_Delete(QCborArray__Iterator* self, bool isSubclass); +void QCborArray__Iterator_Delete(QCborArray__Iterator* self); QCborArray__ConstIterator* QCborArray__ConstIterator_new(); QCborArray__ConstIterator* QCborArray__ConstIterator_new2(QCborArray__ConstIterator* param1); @@ -150,7 +150,7 @@ QCborArray__ConstIterator* QCborArray__ConstIterator_OperatorMinusAssign(QCborAr QCborArray__ConstIterator* QCborArray__ConstIterator_OperatorPlus(const QCborArray__ConstIterator* self, ptrdiff_t j); QCborArray__ConstIterator* QCborArray__ConstIterator_OperatorMinus(const QCborArray__ConstIterator* self, ptrdiff_t j); ptrdiff_t QCborArray__ConstIterator_OperatorMinusWithQCborArrayConstIterator(const QCborArray__ConstIterator* self, QCborArray__ConstIterator* j); -void QCborArray__ConstIterator_Delete(QCborArray__ConstIterator* self, bool isSubclass); +void QCborArray__ConstIterator_Delete(QCborArray__ConstIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/cbor/gen_qcborcommon.cpp b/qt/cbor/gen_qcborcommon.cpp index ef718233..a5a8a553 100644 --- a/qt/cbor/gen_qcborcommon.cpp +++ b/qt/cbor/gen_qcborcommon.cpp @@ -29,11 +29,7 @@ struct miqt_string QCborError_ToString(const QCborError* self) { return _ms; } -void QCborError_Delete(QCborError* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborError_Delete(QCborError* self) { + delete self; } diff --git a/qt/cbor/gen_qcborcommon.go b/qt/cbor/gen_qcborcommon.go index fa68feb2..bb9b02a7 100644 --- a/qt/cbor/gen_qcborcommon.go +++ b/qt/cbor/gen_qcborcommon.go @@ -120,7 +120,7 @@ func (this *QCborError) ToString() string { // Delete this object from C++ memory. func (this *QCborError) Delete() { - C.QCborError_Delete(this.h, C.bool(this.isSubclass)) + C.QCborError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/cbor/gen_qcborcommon.h b/qt/cbor/gen_qcborcommon.h index dab2c89b..4460e7e6 100644 --- a/qt/cbor/gen_qcborcommon.h +++ b/qt/cbor/gen_qcborcommon.h @@ -22,7 +22,7 @@ typedef struct QCborError QCborError; int QCborError_ToQCborError__Code(const QCborError* self); struct miqt_string QCborError_ToString(const QCborError* self); -void QCborError_Delete(QCborError* self, bool isSubclass); +void QCborError_Delete(QCborError* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/cbor/gen_qcbormap.cpp b/qt/cbor/gen_qcbormap.cpp index 82bd1b5c..b858bd5a 100644 --- a/qt/cbor/gen_qcbormap.cpp +++ b/qt/cbor/gen_qcbormap.cpp @@ -356,12 +356,8 @@ QJsonObject* QCborMap_ToJsonObject(const QCborMap* self) { return new QJsonObject(self->toJsonObject()); } -void QCborMap_Delete(QCborMap* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborMap_Delete(QCborMap* self) { + delete self; } QCborMap__Iterator* QCborMap__Iterator_new() { @@ -495,12 +491,8 @@ ptrdiff_t QCborMap__Iterator_OperatorMinusWithQCborMapIterator(const QCborMap__I return static_cast(_ret); } -void QCborMap__Iterator_Delete(QCborMap__Iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborMap__Iterator_Delete(QCborMap__Iterator* self) { + delete self; } QCborMap__ConstIterator* QCborMap__ConstIterator_new() { @@ -634,11 +626,7 @@ ptrdiff_t QCborMap__ConstIterator_OperatorMinusWithQCborMapConstIterator(const Q return static_cast(_ret); } -void QCborMap__ConstIterator_Delete(QCborMap__ConstIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborMap__ConstIterator_Delete(QCborMap__ConstIterator* self) { + delete self; } diff --git a/qt/cbor/gen_qcbormap.go b/qt/cbor/gen_qcbormap.go index d73c1419..a439e62e 100644 --- a/qt/cbor/gen_qcbormap.go +++ b/qt/cbor/gen_qcbormap.go @@ -523,7 +523,7 @@ func (this *QCborMap) ToJsonObject() *qt.QJsonObject { // Delete this object from C++ memory. func (this *QCborMap) Delete() { - C.QCborMap_Delete(this.h, C.bool(this.isSubclass)) + C.QCborMap_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -719,7 +719,7 @@ func (this *QCborMap__Iterator) OperatorMinusWithQCborMapIterator(j QCborMap__It // Delete this object from C++ memory. func (this *QCborMap__Iterator) Delete() { - C.QCborMap__Iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QCborMap__Iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -915,7 +915,7 @@ func (this *QCborMap__ConstIterator) OperatorMinusWithQCborMapConstIterator(j QC // Delete this object from C++ memory. func (this *QCborMap__ConstIterator) Delete() { - C.QCborMap__ConstIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QCborMap__ConstIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/cbor/gen_qcbormap.h b/qt/cbor/gen_qcbormap.h index 583a1c26..971a809b 100644 --- a/qt/cbor/gen_qcbormap.h +++ b/qt/cbor/gen_qcbormap.h @@ -103,7 +103,7 @@ QCborMap* QCborMap_FromJsonObject(QJsonObject* o); struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantMap(const QCborMap* self); struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantHash(const QCborMap* self); QJsonObject* QCborMap_ToJsonObject(const QCborMap* self); -void QCborMap_Delete(QCborMap* self, bool isSubclass); +void QCborMap_Delete(QCborMap* self); QCborMap__Iterator* QCborMap__Iterator_new(); QCborMap__Iterator* QCborMap__Iterator_new2(QCborMap__Iterator* param1); @@ -133,7 +133,7 @@ QCborMap__Iterator* QCborMap__Iterator_OperatorMinusAssign(QCborMap__Iterator* s QCborMap__Iterator* QCborMap__Iterator_OperatorPlus(const QCborMap__Iterator* self, ptrdiff_t j); QCborMap__Iterator* QCborMap__Iterator_OperatorMinus(const QCborMap__Iterator* self, ptrdiff_t j); ptrdiff_t QCborMap__Iterator_OperatorMinusWithQCborMapIterator(const QCborMap__Iterator* self, QCborMap__Iterator* j); -void QCborMap__Iterator_Delete(QCborMap__Iterator* self, bool isSubclass); +void QCborMap__Iterator_Delete(QCborMap__Iterator* self); QCborMap__ConstIterator* QCborMap__ConstIterator_new(); QCborMap__ConstIterator* QCborMap__ConstIterator_new2(QCborMap__ConstIterator* param1); @@ -163,7 +163,7 @@ QCborMap__ConstIterator* QCborMap__ConstIterator_OperatorMinusAssign(QCborMap__C QCborMap__ConstIterator* QCborMap__ConstIterator_OperatorPlus(const QCborMap__ConstIterator* self, ptrdiff_t j); QCborMap__ConstIterator* QCborMap__ConstIterator_OperatorMinus(const QCborMap__ConstIterator* self, ptrdiff_t j); ptrdiff_t QCborMap__ConstIterator_OperatorMinusWithQCborMapConstIterator(const QCborMap__ConstIterator* self, QCborMap__ConstIterator* j); -void QCborMap__ConstIterator_Delete(QCborMap__ConstIterator* self, bool isSubclass); +void QCborMap__ConstIterator_Delete(QCborMap__ConstIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/cbor/gen_qcborstreamreader.cpp b/qt/cbor/gen_qcborstreamreader.cpp index 6d1ce9eb..63148929 100644 --- a/qt/cbor/gen_qcborstreamreader.cpp +++ b/qt/cbor/gen_qcborstreamreader.cpp @@ -245,11 +245,7 @@ bool QCborStreamReader_Next1(QCborStreamReader* self, int maxRecursion) { return self->next(static_cast(maxRecursion)); } -void QCborStreamReader_Delete(QCborStreamReader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborStreamReader_Delete(QCborStreamReader* self) { + delete self; } diff --git a/qt/cbor/gen_qcborstreamreader.go b/qt/cbor/gen_qcborstreamreader.go index 92d164df..d620a7c1 100644 --- a/qt/cbor/gen_qcborstreamreader.go +++ b/qt/cbor/gen_qcborstreamreader.go @@ -329,7 +329,7 @@ func (this *QCborStreamReader) Next1(maxRecursion int) bool { // Delete this object from C++ memory. func (this *QCborStreamReader) Delete() { - C.QCborStreamReader_Delete(this.h, C.bool(this.isSubclass)) + C.QCborStreamReader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/cbor/gen_qcborstreamreader.h b/qt/cbor/gen_qcborstreamreader.h index 70db1888..87786c37 100644 --- a/qt/cbor/gen_qcborstreamreader.h +++ b/qt/cbor/gen_qcborstreamreader.h @@ -79,7 +79,7 @@ float QCborStreamReader_ToFloat(const QCborStreamReader* self); double QCborStreamReader_ToDouble(const QCborStreamReader* self); long long QCborStreamReader_ToInteger(const QCborStreamReader* self); bool QCborStreamReader_Next1(QCborStreamReader* self, int maxRecursion); -void QCborStreamReader_Delete(QCborStreamReader* self, bool isSubclass); +void QCborStreamReader_Delete(QCborStreamReader* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/cbor/gen_qcborstreamwriter.cpp b/qt/cbor/gen_qcborstreamwriter.cpp index 38204425..bca9632f 100644 --- a/qt/cbor/gen_qcborstreamwriter.cpp +++ b/qt/cbor/gen_qcborstreamwriter.cpp @@ -121,11 +121,7 @@ void QCborStreamWriter_Append22(QCborStreamWriter* self, const char* str, ptrdif self->append(str, (qsizetype)(size)); } -void QCborStreamWriter_Delete(QCborStreamWriter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborStreamWriter_Delete(QCborStreamWriter* self) { + delete self; } diff --git a/qt/cbor/gen_qcborstreamwriter.go b/qt/cbor/gen_qcborstreamwriter.go index 62f14e67..29b50ddb 100644 --- a/qt/cbor/gen_qcborstreamwriter.go +++ b/qt/cbor/gen_qcborstreamwriter.go @@ -172,7 +172,7 @@ func (this *QCborStreamWriter) Append22(str string, size int64) { // Delete this object from C++ memory. func (this *QCborStreamWriter) Delete() { - C.QCborStreamWriter_Delete(this.h, C.bool(this.isSubclass)) + C.QCborStreamWriter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/cbor/gen_qcborstreamwriter.h b/qt/cbor/gen_qcborstreamwriter.h index 650a6ef4..ca4b1b62 100644 --- a/qt/cbor/gen_qcborstreamwriter.h +++ b/qt/cbor/gen_qcborstreamwriter.h @@ -49,7 +49,7 @@ void QCborStreamWriter_StartMap(QCborStreamWriter* self); void QCborStreamWriter_StartMapWithCount(QCborStreamWriter* self, unsigned long long count); bool QCborStreamWriter_EndMap(QCborStreamWriter* self); void QCborStreamWriter_Append22(QCborStreamWriter* self, const char* str, ptrdiff_t size); -void QCborStreamWriter_Delete(QCborStreamWriter* self, bool isSubclass); +void QCborStreamWriter_Delete(QCborStreamWriter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/cbor/gen_qcborvalue.cpp b/qt/cbor/gen_qcborvalue.cpp index 9913456a..63d09e37 100644 --- a/qt/cbor/gen_qcborvalue.cpp +++ b/qt/cbor/gen_qcborvalue.cpp @@ -37,12 +37,8 @@ struct miqt_string QCborParserError_ErrorString(const QCborParserError* self) { return _ms; } -void QCborParserError_Delete(QCborParserError* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborParserError_Delete(QCborParserError* self) { + delete self; } QCborValue* QCborValue_new() { @@ -500,12 +496,8 @@ struct miqt_string QCborValue_ToDiagnosticNotation1(const QCborValue* self, int return _ms; } -void QCborValue_Delete(QCborValue* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborValue_Delete(QCborValue* self) { + delete self; } QCborValueRef* QCborValueRef_new(QCborValueRef* param1) { @@ -833,11 +825,7 @@ struct miqt_string QCborValueRef_ToDiagnosticNotation1(QCborValueRef* self, int return _ms; } -void QCborValueRef_Delete(QCborValueRef* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborValueRef_Delete(QCborValueRef* self) { + delete self; } diff --git a/qt/cbor/gen_qcborvalue.go b/qt/cbor/gen_qcborvalue.go index 95cb04a7..6812cbfc 100644 --- a/qt/cbor/gen_qcborvalue.go +++ b/qt/cbor/gen_qcborvalue.go @@ -96,7 +96,7 @@ func (this *QCborParserError) ErrorString() string { // Delete this object from C++ memory. func (this *QCborParserError) Delete() { - C.QCborParserError_Delete(this.h, C.bool(this.isSubclass)) + C.QCborParserError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -739,7 +739,7 @@ func (this *QCborValue) ToDiagnosticNotation1(opts QCborValue__DiagnosticNotatio // Delete this object from C++ memory. func (this *QCborValue) Delete() { - C.QCborValue_Delete(this.h, C.bool(this.isSubclass)) + C.QCborValue_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1139,7 +1139,7 @@ func (this *QCborValueRef) ToDiagnosticNotation1(opt QCborValue__DiagnosticNotat // Delete this object from C++ memory. func (this *QCborValueRef) Delete() { - C.QCborValueRef_Delete(this.h, C.bool(this.isSubclass)) + C.QCborValueRef_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/cbor/gen_qcborvalue.h b/qt/cbor/gen_qcborvalue.h index e49de73b..2288a82e 100644 --- a/qt/cbor/gen_qcborvalue.h +++ b/qt/cbor/gen_qcborvalue.h @@ -45,7 +45,7 @@ typedef struct QVariant QVariant; #endif struct miqt_string QCborParserError_ErrorString(const QCborParserError* self); -void QCborParserError_Delete(QCborParserError* self, bool isSubclass); +void QCborParserError_Delete(QCborParserError* self); QCborValue* QCborValue_new(); QCborValue* QCborValue_new2(int t_); @@ -145,7 +145,7 @@ QCborValue* QCborValue_FromCbor33(const unsigned char* data, ptrdiff_t lenVal, Q struct miqt_string QCborValue_ToCbor1(QCborValue* self, int opt); void QCborValue_ToCbor2(QCborValue* self, QCborStreamWriter* writer, int opt); struct miqt_string QCborValue_ToDiagnosticNotation1(const QCborValue* self, int opts); -void QCborValue_Delete(QCborValue* self, bool isSubclass); +void QCborValue_Delete(QCborValue* self); QCborValueRef* QCborValueRef_new(QCborValueRef* param1); QCborValue* QCborValueRef_ToQCborValue(const QCborValueRef* self); @@ -214,7 +214,7 @@ QUuid* QCborValueRef_ToUuid1(const QCborValueRef* self, QUuid* defaultValue); struct miqt_string QCborValueRef_ToCbor1(QCborValueRef* self, int opt); void QCborValueRef_ToCbor2(QCborValueRef* self, QCborStreamWriter* writer, int opt); struct miqt_string QCborValueRef_ToDiagnosticNotation1(QCborValueRef* self, int opt); -void QCborValueRef_Delete(QCborValueRef* self, bool isSubclass); +void QCborValueRef_Delete(QCborValueRef* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstractanimation.cpp b/qt/gen_qabstractanimation.cpp index ec5b3fbd..5bb8e378 100644 --- a/qt/gen_qabstractanimation.cpp +++ b/qt/gen_qabstractanimation.cpp @@ -49,13 +49,13 @@ void miqt_exec_callback_QAnimationDriver_DisconnectNotify(void*, intptr_t, QMeta } /* extern C */ #endif -class MiqtVirtualQAbstractAnimation : public virtual QAbstractAnimation { +class MiqtVirtualQAbstractAnimation final : public QAbstractAnimation { public: MiqtVirtualQAbstractAnimation(): QAbstractAnimation() {}; MiqtVirtualQAbstractAnimation(QObject* parent): QAbstractAnimation(parent) {}; - virtual ~MiqtVirtualQAbstractAnimation() = default; + virtual ~MiqtVirtualQAbstractAnimation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Duration = 0; @@ -600,21 +600,17 @@ void QAbstractAnimation_virtualbase_DisconnectNotify(void* self, QMetaMethod* si ( (MiqtVirtualQAbstractAnimation*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAbstractAnimation_Delete(QAbstractAnimation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractAnimation_Delete(QAbstractAnimation* self) { + delete self; } -class MiqtVirtualQAnimationDriver : public virtual QAnimationDriver { +class MiqtVirtualQAnimationDriver final : public QAnimationDriver { public: MiqtVirtualQAnimationDriver(): QAnimationDriver() {}; MiqtVirtualQAnimationDriver(QObject* parent): QAnimationDriver(parent) {}; - virtual ~MiqtVirtualQAnimationDriver() = default; + virtual ~MiqtVirtualQAnimationDriver() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Advance = 0; @@ -1105,11 +1101,7 @@ void QAnimationDriver_virtualbase_DisconnectNotify(void* self, QMetaMethod* sign ( (MiqtVirtualQAnimationDriver*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAnimationDriver_Delete(QAnimationDriver* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAnimationDriver_Delete(QAnimationDriver* self) { + delete self; } diff --git a/qt/gen_qabstractanimation.go b/qt/gen_qabstractanimation.go index 04129004..933d13a7 100644 --- a/qt/gen_qabstractanimation.go +++ b/qt/gen_qabstractanimation.go @@ -595,7 +595,7 @@ func miqt_exec_callback_QAbstractAnimation_DisconnectNotify(self *C.QAbstractAni // Delete this object from C++ memory. func (this *QAbstractAnimation) Delete() { - C.QAbstractAnimation_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractAnimation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1078,7 +1078,7 @@ func miqt_exec_callback_QAnimationDriver_DisconnectNotify(self *C.QAnimationDriv // Delete this object from C++ memory. func (this *QAnimationDriver) Delete() { - C.QAnimationDriver_Delete(this.h, C.bool(this.isSubclass)) + C.QAnimationDriver_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstractanimation.h b/qt/gen_qabstractanimation.h index fc025556..c4408d7f 100644 --- a/qt/gen_qabstractanimation.h +++ b/qt/gen_qabstractanimation.h @@ -99,7 +99,7 @@ void QAbstractAnimation_override_virtual_ConnectNotify(void* self, intptr_t slot void QAbstractAnimation_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAbstractAnimation_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAbstractAnimation_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAbstractAnimation_Delete(QAbstractAnimation* self, bool isSubclass); +void QAbstractAnimation_Delete(QAbstractAnimation* self); QAnimationDriver* QAnimationDriver_new(); QAnimationDriver* QAnimationDriver_new2(QObject* parent); @@ -147,7 +147,7 @@ void QAnimationDriver_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAnimationDriver_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAnimationDriver_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAnimationDriver_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAnimationDriver_Delete(QAnimationDriver* self, bool isSubclass); +void QAnimationDriver_Delete(QAnimationDriver* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstractbutton.cpp b/qt/gen_qabstractbutton.cpp index e9de0b0c..9d681c12 100644 --- a/qt/gen_qabstractbutton.cpp +++ b/qt/gen_qabstractbutton.cpp @@ -96,13 +96,13 @@ bool miqt_exec_callback_QAbstractButton_FocusNextPrevChild(void*, intptr_t, bool } /* extern C */ #endif -class MiqtVirtualQAbstractButton : public virtual QAbstractButton { +class MiqtVirtualQAbstractButton final : public QAbstractButton { public: MiqtVirtualQAbstractButton(QWidget* parent): QAbstractButton(parent) {}; MiqtVirtualQAbstractButton(): QAbstractButton() {}; - virtual ~MiqtVirtualQAbstractButton() = default; + virtual ~MiqtVirtualQAbstractButton() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__PaintEvent = 0; @@ -1778,11 +1778,7 @@ bool QAbstractButton_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQAbstractButton*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QAbstractButton_Delete(QAbstractButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractButton_Delete(QAbstractButton* self) { + delete self; } diff --git a/qt/gen_qabstractbutton.go b/qt/gen_qabstractbutton.go index d94d7118..32dbb9fc 100644 --- a/qt/gen_qabstractbutton.go +++ b/qt/gen_qabstractbutton.go @@ -1537,7 +1537,7 @@ func miqt_exec_callback_QAbstractButton_FocusNextPrevChild(self *C.QAbstractButt // Delete this object from C++ memory. func (this *QAbstractButton) Delete() { - C.QAbstractButton_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstractbutton.h b/qt/gen_qabstractbutton.h index bac148b9..9da9f84e 100644 --- a/qt/gen_qabstractbutton.h +++ b/qt/gen_qabstractbutton.h @@ -236,7 +236,7 @@ void QAbstractButton_override_virtual_InputMethodQuery(void* self, intptr_t slot QVariant* QAbstractButton_virtualbase_InputMethodQuery(const void* self, int param1); void QAbstractButton_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QAbstractButton_virtualbase_FocusNextPrevChild(void* self, bool next); -void QAbstractButton_Delete(QAbstractButton* self, bool isSubclass); +void QAbstractButton_Delete(QAbstractButton* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstracteventdispatcher.cpp b/qt/gen_qabstracteventdispatcher.cpp index c79baef0..8bf4a7b4 100644 --- a/qt/gen_qabstracteventdispatcher.cpp +++ b/qt/gen_qabstracteventdispatcher.cpp @@ -211,23 +211,15 @@ QAbstractEventDispatcher* QAbstractEventDispatcher_Instance1(QThread* thread) { return QAbstractEventDispatcher::instance(thread); } -void QAbstractEventDispatcher_Delete(QAbstractEventDispatcher* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractEventDispatcher_Delete(QAbstractEventDispatcher* self) { + delete self; } QAbstractEventDispatcher__TimerInfo* QAbstractEventDispatcher__TimerInfo_new(int id, int i, int t) { return new QAbstractEventDispatcher::TimerInfo(static_cast(id), static_cast(i), static_cast(t)); } -void QAbstractEventDispatcher__TimerInfo_Delete(QAbstractEventDispatcher__TimerInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractEventDispatcher__TimerInfo_Delete(QAbstractEventDispatcher__TimerInfo* self) { + delete self; } diff --git a/qt/gen_qabstracteventdispatcher.go b/qt/gen_qabstracteventdispatcher.go index e0845fbc..c4f6fb48 100644 --- a/qt/gen_qabstracteventdispatcher.go +++ b/qt/gen_qabstracteventdispatcher.go @@ -250,7 +250,7 @@ func QAbstractEventDispatcher_Instance1(thread *QThread) *QAbstractEventDispatch // Delete this object from C++ memory. func (this *QAbstractEventDispatcher) Delete() { - C.QAbstractEventDispatcher_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractEventDispatcher_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -305,7 +305,7 @@ func NewQAbstractEventDispatcher__TimerInfo(id int, i int, t TimerType) *QAbstra // Delete this object from C++ memory. func (this *QAbstractEventDispatcher__TimerInfo) Delete() { - C.QAbstractEventDispatcher__TimerInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractEventDispatcher__TimerInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstracteventdispatcher.h b/qt/gen_qabstracteventdispatcher.h index 3a8f5285..512ccb9e 100644 --- a/qt/gen_qabstracteventdispatcher.h +++ b/qt/gen_qabstracteventdispatcher.h @@ -69,10 +69,10 @@ struct miqt_string QAbstractEventDispatcher_Tr3(const char* s, const char* c, in struct miqt_string QAbstractEventDispatcher_TrUtf82(const char* s, const char* c); struct miqt_string QAbstractEventDispatcher_TrUtf83(const char* s, const char* c, int n); QAbstractEventDispatcher* QAbstractEventDispatcher_Instance1(QThread* thread); -void QAbstractEventDispatcher_Delete(QAbstractEventDispatcher* self, bool isSubclass); +void QAbstractEventDispatcher_Delete(QAbstractEventDispatcher* self); QAbstractEventDispatcher__TimerInfo* QAbstractEventDispatcher__TimerInfo_new(int id, int i, int t); -void QAbstractEventDispatcher__TimerInfo_Delete(QAbstractEventDispatcher__TimerInfo* self, bool isSubclass); +void QAbstractEventDispatcher__TimerInfo_Delete(QAbstractEventDispatcher__TimerInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstractitemdelegate.cpp b/qt/gen_qabstractitemdelegate.cpp index 4ddeadc2..623b3f2f 100644 --- a/qt/gen_qabstractitemdelegate.cpp +++ b/qt/gen_qabstractitemdelegate.cpp @@ -50,13 +50,13 @@ void miqt_exec_callback_QAbstractItemDelegate_DisconnectNotify(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQAbstractItemDelegate : public virtual QAbstractItemDelegate { +class MiqtVirtualQAbstractItemDelegate final : public QAbstractItemDelegate { public: MiqtVirtualQAbstractItemDelegate(): QAbstractItemDelegate() {}; MiqtVirtualQAbstractItemDelegate(QObject* parent): QAbstractItemDelegate(parent) {}; - virtual ~MiqtVirtualQAbstractItemDelegate() = default; + virtual ~MiqtVirtualQAbstractItemDelegate() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; @@ -835,11 +835,7 @@ void QAbstractItemDelegate_virtualbase_DisconnectNotify(void* self, QMetaMethod* ( (MiqtVirtualQAbstractItemDelegate*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAbstractItemDelegate_Delete(QAbstractItemDelegate* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractItemDelegate_Delete(QAbstractItemDelegate* self) { + delete self; } diff --git a/qt/gen_qabstractitemdelegate.go b/qt/gen_qabstractitemdelegate.go index 370bc3cc..ce8547b2 100644 --- a/qt/gen_qabstractitemdelegate.go +++ b/qt/gen_qabstractitemdelegate.go @@ -782,7 +782,7 @@ func miqt_exec_callback_QAbstractItemDelegate_DisconnectNotify(self *C.QAbstract // Delete this object from C++ memory. func (this *QAbstractItemDelegate) Delete() { - C.QAbstractItemDelegate_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractItemDelegate_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstractitemdelegate.h b/qt/gen_qabstractitemdelegate.h index 098838b9..7e528e23 100644 --- a/qt/gen_qabstractitemdelegate.h +++ b/qt/gen_qabstractitemdelegate.h @@ -114,7 +114,7 @@ void QAbstractItemDelegate_override_virtual_ConnectNotify(void* self, intptr_t s void QAbstractItemDelegate_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAbstractItemDelegate_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAbstractItemDelegate_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAbstractItemDelegate_Delete(QAbstractItemDelegate* self, bool isSubclass); +void QAbstractItemDelegate_Delete(QAbstractItemDelegate* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstractitemmodel.cpp b/qt/gen_qabstractitemmodel.cpp index 8498e79c..0c2d31f5 100644 --- a/qt/gen_qabstractitemmodel.cpp +++ b/qt/gen_qabstractitemmodel.cpp @@ -220,12 +220,8 @@ QVariant* QModelIndex_Data1(const QModelIndex* self, int role) { return new QVariant(self->data(static_cast(role))); } -void QModelIndex_Delete(QModelIndex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QModelIndex_Delete(QModelIndex* self) { + delete self; } QPersistentModelIndex* QPersistentModelIndex_new() { @@ -328,21 +324,17 @@ QVariant* QPersistentModelIndex_Data1(const QPersistentModelIndex* self, int rol return new QVariant(self->data(static_cast(role))); } -void QPersistentModelIndex_Delete(QPersistentModelIndex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPersistentModelIndex_Delete(QPersistentModelIndex* self) { + delete self; } -class MiqtVirtualQAbstractItemModel : public virtual QAbstractItemModel { +class MiqtVirtualQAbstractItemModel final : public QAbstractItemModel { public: MiqtVirtualQAbstractItemModel(): QAbstractItemModel() {}; MiqtVirtualQAbstractItemModel(QObject* parent): QAbstractItemModel(parent) {}; - virtual ~MiqtVirtualQAbstractItemModel() = default; + virtual ~MiqtVirtualQAbstractItemModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Index = 0; @@ -2339,21 +2331,17 @@ void QAbstractItemModel_virtualbase_DisconnectNotify(void* self, QMetaMethod* si ( (MiqtVirtualQAbstractItemModel*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAbstractItemModel_Delete(QAbstractItemModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractItemModel_Delete(QAbstractItemModel* self) { + delete self; } -class MiqtVirtualQAbstractTableModel : public virtual QAbstractTableModel { +class MiqtVirtualQAbstractTableModel final : public QAbstractTableModel { public: MiqtVirtualQAbstractTableModel(): QAbstractTableModel() {}; MiqtVirtualQAbstractTableModel(QObject* parent): QAbstractTableModel(parent) {}; - virtual ~MiqtVirtualQAbstractTableModel() = default; + virtual ~MiqtVirtualQAbstractTableModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Index = 0; @@ -3641,21 +3629,17 @@ void QAbstractTableModel_virtualbase_Revert(void* self) { ( (MiqtVirtualQAbstractTableModel*)(self) )->virtualbase_Revert(); } -void QAbstractTableModel_Delete(QAbstractTableModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractTableModel_Delete(QAbstractTableModel* self) { + delete self; } -class MiqtVirtualQAbstractListModel : public virtual QAbstractListModel { +class MiqtVirtualQAbstractListModel final : public QAbstractListModel { public: MiqtVirtualQAbstractListModel(): QAbstractListModel() {}; MiqtVirtualQAbstractListModel(QObject* parent): QAbstractListModel(parent) {}; - virtual ~MiqtVirtualQAbstractListModel() = default; + virtual ~MiqtVirtualQAbstractListModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Index = 0; @@ -4921,11 +4905,7 @@ void QAbstractListModel_virtualbase_Revert(void* self) { ( (MiqtVirtualQAbstractListModel*)(self) )->virtualbase_Revert(); } -void QAbstractListModel_Delete(QAbstractListModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractListModel_Delete(QAbstractListModel* self) { + delete self; } diff --git a/qt/gen_qabstractitemmodel.go b/qt/gen_qabstractitemmodel.go index c78d80ce..0424580e 100644 --- a/qt/gen_qabstractitemmodel.go +++ b/qt/gen_qabstractitemmodel.go @@ -164,7 +164,7 @@ func (this *QModelIndex) Data1(role int) *QVariant { // Delete this object from C++ memory. func (this *QModelIndex) Delete() { - C.QModelIndex_Delete(this.h, C.bool(this.isSubclass)) + C.QModelIndex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -329,7 +329,7 @@ func (this *QPersistentModelIndex) Data1(role int) *QVariant { // Delete this object from C++ memory. func (this *QPersistentModelIndex) Delete() { - C.QPersistentModelIndex_Delete(this.h, C.bool(this.isSubclass)) + C.QPersistentModelIndex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2307,7 +2307,7 @@ func miqt_exec_callback_QAbstractItemModel_DisconnectNotify(self *C.QAbstractIte // Delete this object from C++ memory. func (this *QAbstractItemModel) Delete() { - C.QAbstractItemModel_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractItemModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3548,7 +3548,7 @@ func miqt_exec_callback_QAbstractTableModel_Revert(self *C.QAbstractTableModel, // Delete this object from C++ memory. func (this *QAbstractTableModel) Delete() { - C.QAbstractTableModel_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractTableModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4767,7 +4767,7 @@ func miqt_exec_callback_QAbstractListModel_Revert(self *C.QAbstractListModel, cb // Delete this object from C++ memory. func (this *QAbstractListModel) Delete() { - C.QAbstractListModel_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractListModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstractitemmodel.h b/qt/gen_qabstractitemmodel.h index 0eada8a9..a99a241d 100644 --- a/qt/gen_qabstractitemmodel.h +++ b/qt/gen_qabstractitemmodel.h @@ -65,7 +65,7 @@ bool QModelIndex_OperatorEqual(const QModelIndex* self, QModelIndex* other); bool QModelIndex_OperatorNotEqual(const QModelIndex* self, QModelIndex* other); bool QModelIndex_OperatorLesser(const QModelIndex* self, QModelIndex* other); QVariant* QModelIndex_Data1(const QModelIndex* self, int role); -void QModelIndex_Delete(QModelIndex* self, bool isSubclass); +void QModelIndex_Delete(QModelIndex* self); QPersistentModelIndex* QPersistentModelIndex_new(); QPersistentModelIndex* QPersistentModelIndex_new2(QModelIndex* index); @@ -91,7 +91,7 @@ int QPersistentModelIndex_Flags(const QPersistentModelIndex* self); QAbstractItemModel* QPersistentModelIndex_Model(const QPersistentModelIndex* self); bool QPersistentModelIndex_IsValid(const QPersistentModelIndex* self); QVariant* QPersistentModelIndex_Data1(const QPersistentModelIndex* self, int role); -void QPersistentModelIndex_Delete(QPersistentModelIndex* self, bool isSubclass); +void QPersistentModelIndex_Delete(QPersistentModelIndex* self); QAbstractItemModel* QAbstractItemModel_new(); QAbstractItemModel* QAbstractItemModel_new2(QObject* parent); @@ -252,7 +252,7 @@ void QAbstractItemModel_override_virtual_ConnectNotify(void* self, intptr_t slot void QAbstractItemModel_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAbstractItemModel_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAbstractItemModel_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAbstractItemModel_Delete(QAbstractItemModel* self, bool isSubclass); +void QAbstractItemModel_Delete(QAbstractItemModel* self); QAbstractTableModel* QAbstractTableModel_new(); QAbstractTableModel* QAbstractTableModel_new2(QObject* parent); @@ -333,7 +333,7 @@ void QAbstractTableModel_override_virtual_Submit(void* self, intptr_t slot); bool QAbstractTableModel_virtualbase_Submit(void* self); void QAbstractTableModel_override_virtual_Revert(void* self, intptr_t slot); void QAbstractTableModel_virtualbase_Revert(void* self); -void QAbstractTableModel_Delete(QAbstractTableModel* self, bool isSubclass); +void QAbstractTableModel_Delete(QAbstractTableModel* self); QAbstractListModel* QAbstractListModel_new(); QAbstractListModel* QAbstractListModel_new2(QObject* parent); @@ -412,7 +412,7 @@ void QAbstractListModel_override_virtual_Submit(void* self, intptr_t slot); bool QAbstractListModel_virtualbase_Submit(void* self); void QAbstractListModel_override_virtual_Revert(void* self, intptr_t slot); void QAbstractListModel_virtualbase_Revert(void* self); -void QAbstractListModel_Delete(QAbstractListModel* self, bool isSubclass); +void QAbstractListModel_Delete(QAbstractListModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstractitemview.cpp b/qt/gen_qabstractitemview.cpp index 17bdc593..d9f96d39 100644 --- a/qt/gen_qabstractitemview.cpp +++ b/qt/gen_qabstractitemview.cpp @@ -117,13 +117,13 @@ void miqt_exec_callback_QAbstractItemView_ScrollContentsBy(void*, intptr_t, int, } /* extern C */ #endif -class MiqtVirtualQAbstractItemView : public virtual QAbstractItemView { +class MiqtVirtualQAbstractItemView final : public QAbstractItemView { public: MiqtVirtualQAbstractItemView(QWidget* parent): QAbstractItemView(parent) {}; MiqtVirtualQAbstractItemView(): QAbstractItemView() {}; - virtual ~MiqtVirtualQAbstractItemView() = default; + virtual ~MiqtVirtualQAbstractItemView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetModel = 0; @@ -2633,11 +2633,7 @@ void QAbstractItemView_virtualbase_ScrollContentsBy(void* self, int dx, int dy) ( (MiqtVirtualQAbstractItemView*)(self) )->virtualbase_ScrollContentsBy(dx, dy); } -void QAbstractItemView_Delete(QAbstractItemView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractItemView_Delete(QAbstractItemView* self) { + delete self; } diff --git a/qt/gen_qabstractitemview.go b/qt/gen_qabstractitemview.go index 2d25e671..853a5dd5 100644 --- a/qt/gen_qabstractitemview.go +++ b/qt/gen_qabstractitemview.go @@ -2384,7 +2384,7 @@ func miqt_exec_callback_QAbstractItemView_ScrollContentsBy(self *C.QAbstractItem // Delete this object from C++ memory. func (this *QAbstractItemView) Delete() { - C.QAbstractItemView_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractItemView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstractitemview.h b/qt/gen_qabstractitemview.h index 5cefb55c..6f649668 100644 --- a/qt/gen_qabstractitemview.h +++ b/qt/gen_qabstractitemview.h @@ -352,7 +352,7 @@ void QAbstractItemView_override_virtual_ContextMenuEvent(void* self, intptr_t sl void QAbstractItemView_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QAbstractItemView_override_virtual_ScrollContentsBy(void* self, intptr_t slot); void QAbstractItemView_virtualbase_ScrollContentsBy(void* self, int dx, int dy); -void QAbstractItemView_Delete(QAbstractItemView* self, bool isSubclass); +void QAbstractItemView_Delete(QAbstractItemView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstractnativeeventfilter.cpp b/qt/gen_qabstractnativeeventfilter.cpp index f0e160ed..0eb2186e 100644 --- a/qt/gen_qabstractnativeeventfilter.cpp +++ b/qt/gen_qabstractnativeeventfilter.cpp @@ -12,12 +12,12 @@ bool miqt_exec_callback_QAbstractNativeEventFilter_NativeEventFilter(void*, intp } /* extern C */ #endif -class MiqtVirtualQAbstractNativeEventFilter : public virtual QAbstractNativeEventFilter { +class MiqtVirtualQAbstractNativeEventFilter final : public QAbstractNativeEventFilter { public: MiqtVirtualQAbstractNativeEventFilter(): QAbstractNativeEventFilter() {}; - virtual ~MiqtVirtualQAbstractNativeEventFilter() = default; + virtual ~MiqtVirtualQAbstractNativeEventFilter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__NativeEventFilter = 0; @@ -57,11 +57,7 @@ void QAbstractNativeEventFilter_override_virtual_NativeEventFilter(void* self, i dynamic_cast( (QAbstractNativeEventFilter*)(self) )->handle__NativeEventFilter = slot; } -void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self) { + delete self; } diff --git a/qt/gen_qabstractnativeeventfilter.go b/qt/gen_qabstractnativeeventfilter.go index a2f27330..5e491296 100644 --- a/qt/gen_qabstractnativeeventfilter.go +++ b/qt/gen_qabstractnativeeventfilter.go @@ -92,7 +92,7 @@ func miqt_exec_callback_QAbstractNativeEventFilter_NativeEventFilter(self *C.QAb // Delete this object from C++ memory. func (this *QAbstractNativeEventFilter) Delete() { - C.QAbstractNativeEventFilter_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractNativeEventFilter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstractnativeeventfilter.h b/qt/gen_qabstractnativeeventfilter.h index be4b07c5..a5b6c5f8 100644 --- a/qt/gen_qabstractnativeeventfilter.h +++ b/qt/gen_qabstractnativeeventfilter.h @@ -24,7 +24,7 @@ QAbstractNativeEventFilter* QAbstractNativeEventFilter_new(); bool QAbstractNativeEventFilter_NativeEventFilter(QAbstractNativeEventFilter* self, struct miqt_string eventType, void* message, long* result); void QAbstractNativeEventFilter_override_virtual_NativeEventFilter(void* self, intptr_t slot); bool QAbstractNativeEventFilter_virtualbase_NativeEventFilter(void* self, struct miqt_string eventType, void* message, long* result); -void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self, bool isSubclass); +void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstractproxymodel.cpp b/qt/gen_qabstractproxymodel.cpp index a660af6c..8c493b67 100644 --- a/qt/gen_qabstractproxymodel.cpp +++ b/qt/gen_qabstractproxymodel.cpp @@ -63,13 +63,13 @@ struct miqt_map /* of int to struct miqt_string */ miqt_exec_callback_QAbstract } /* extern C */ #endif -class MiqtVirtualQAbstractProxyModel : public virtual QAbstractProxyModel { +class MiqtVirtualQAbstractProxyModel final : public QAbstractProxyModel { public: MiqtVirtualQAbstractProxyModel(): QAbstractProxyModel() {}; MiqtVirtualQAbstractProxyModel(QObject* parent): QAbstractProxyModel(parent) {}; - virtual ~MiqtVirtualQAbstractProxyModel() = default; + virtual ~MiqtVirtualQAbstractProxyModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetSourceModel = 0; @@ -1694,11 +1694,7 @@ struct miqt_map /* of int to struct miqt_string */ QAbstractProxyModel_virtualb return ( (const MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_RoleNames(); } -void QAbstractProxyModel_Delete(QAbstractProxyModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractProxyModel_Delete(QAbstractProxyModel* self) { + delete self; } diff --git a/qt/gen_qabstractproxymodel.go b/qt/gen_qabstractproxymodel.go index 4cdaa837..44d41565 100644 --- a/qt/gen_qabstractproxymodel.go +++ b/qt/gen_qabstractproxymodel.go @@ -1576,7 +1576,7 @@ func miqt_exec_callback_QAbstractProxyModel_RoleNames(self *C.QAbstractProxyMode // Delete this object from C++ memory. func (this *QAbstractProxyModel) Delete() { - C.QAbstractProxyModel_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractProxyModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstractproxymodel.h b/qt/gen_qabstractproxymodel.h index 08e1f061..a35eb549 100644 --- a/qt/gen_qabstractproxymodel.h +++ b/qt/gen_qabstractproxymodel.h @@ -153,7 +153,7 @@ void QAbstractProxyModel_override_virtual_Match(void* self, intptr_t slot); struct miqt_array /* of QModelIndex* */ QAbstractProxyModel_virtualbase_Match(const void* self, QModelIndex* start, int role, QVariant* value, int hits, int flags); void QAbstractProxyModel_override_virtual_RoleNames(void* self, intptr_t slot); struct miqt_map /* of int to struct miqt_string */ QAbstractProxyModel_virtualbase_RoleNames(const void* self); -void QAbstractProxyModel_Delete(QAbstractProxyModel* self, bool isSubclass); +void QAbstractProxyModel_Delete(QAbstractProxyModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstractscrollarea.cpp b/qt/gen_qabstractscrollarea.cpp index 3f80b4f4..17c86840 100644 --- a/qt/gen_qabstractscrollarea.cpp +++ b/qt/gen_qabstractscrollarea.cpp @@ -54,13 +54,13 @@ void miqt_exec_callback_QAbstractScrollArea_ChangeEvent(void*, intptr_t, QEvent* } /* extern C */ #endif -class MiqtVirtualQAbstractScrollArea : public virtual QAbstractScrollArea { +class MiqtVirtualQAbstractScrollArea final : public QAbstractScrollArea { public: MiqtVirtualQAbstractScrollArea(QWidget* parent): QAbstractScrollArea(parent) {}; MiqtVirtualQAbstractScrollArea(): QAbstractScrollArea() {}; - virtual ~MiqtVirtualQAbstractScrollArea() = default; + virtual ~MiqtVirtualQAbstractScrollArea() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MinimumSizeHint = 0; @@ -939,11 +939,7 @@ void QAbstractScrollArea_virtualbase_ChangeEvent(void* self, QEvent* param1) { ( (MiqtVirtualQAbstractScrollArea*)(self) )->virtualbase_ChangeEvent(param1); } -void QAbstractScrollArea_Delete(QAbstractScrollArea* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractScrollArea_Delete(QAbstractScrollArea* self) { + delete self; } diff --git a/qt/gen_qabstractscrollarea.go b/qt/gen_qabstractscrollarea.go index b44e7e51..b0ad51ef 100644 --- a/qt/gen_qabstractscrollarea.go +++ b/qt/gen_qabstractscrollarea.go @@ -826,7 +826,7 @@ func miqt_exec_callback_QAbstractScrollArea_ChangeEvent(self *C.QAbstractScrollA // Delete this object from C++ memory. func (this *QAbstractScrollArea) Delete() { - C.QAbstractScrollArea_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractScrollArea_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstractscrollarea.h b/qt/gen_qabstractscrollarea.h index ca0a35f1..9281bb10 100644 --- a/qt/gen_qabstractscrollarea.h +++ b/qt/gen_qabstractscrollarea.h @@ -149,7 +149,7 @@ void QAbstractScrollArea_override_virtual_ViewportSizeHint(void* self, intptr_t QSize* QAbstractScrollArea_virtualbase_ViewportSizeHint(const void* self); void QAbstractScrollArea_override_virtual_ChangeEvent(void* self, intptr_t slot); void QAbstractScrollArea_virtualbase_ChangeEvent(void* self, QEvent* param1); -void QAbstractScrollArea_Delete(QAbstractScrollArea* self, bool isSubclass); +void QAbstractScrollArea_Delete(QAbstractScrollArea* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstractslider.cpp b/qt/gen_qabstractslider.cpp index 09a765e9..7a55155e 100644 --- a/qt/gen_qabstractslider.cpp +++ b/qt/gen_qabstractslider.cpp @@ -92,13 +92,13 @@ bool miqt_exec_callback_QAbstractSlider_FocusNextPrevChild(void*, intptr_t, bool } /* extern C */ #endif -class MiqtVirtualQAbstractSlider : public virtual QAbstractSlider { +class MiqtVirtualQAbstractSlider final : public QAbstractSlider { public: MiqtVirtualQAbstractSlider(QWidget* parent): QAbstractSlider(parent) {}; MiqtVirtualQAbstractSlider(): QAbstractSlider() {}; - virtual ~MiqtVirtualQAbstractSlider() = default; + virtual ~MiqtVirtualQAbstractSlider() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1718,11 +1718,7 @@ bool QAbstractSlider_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQAbstractSlider*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QAbstractSlider_Delete(QAbstractSlider* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractSlider_Delete(QAbstractSlider* self) { + delete self; } diff --git a/qt/gen_qabstractslider.go b/qt/gen_qabstractslider.go index cadb5e3d..9a504ad0 100644 --- a/qt/gen_qabstractslider.go +++ b/qt/gen_qabstractslider.go @@ -1516,7 +1516,7 @@ func miqt_exec_callback_QAbstractSlider_FocusNextPrevChild(self *C.QAbstractSlid // Delete this object from C++ memory. func (this *QAbstractSlider) Delete() { - C.QAbstractSlider_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractSlider_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstractslider.h b/qt/gen_qabstractslider.h index bc6cd2e7..df7a8390 100644 --- a/qt/gen_qabstractslider.h +++ b/qt/gen_qabstractslider.h @@ -217,7 +217,7 @@ void QAbstractSlider_override_virtual_InputMethodQuery(void* self, intptr_t slot QVariant* QAbstractSlider_virtualbase_InputMethodQuery(const void* self, int param1); void QAbstractSlider_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QAbstractSlider_virtualbase_FocusNextPrevChild(void* self, bool next); -void QAbstractSlider_Delete(QAbstractSlider* self, bool isSubclass); +void QAbstractSlider_Delete(QAbstractSlider* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstractspinbox.cpp b/qt/gen_qabstractspinbox.cpp index 0a0a7cd5..1752d596 100644 --- a/qt/gen_qabstractspinbox.cpp +++ b/qt/gen_qabstractspinbox.cpp @@ -91,13 +91,13 @@ bool miqt_exec_callback_QAbstractSpinBox_FocusNextPrevChild(void*, intptr_t, boo } /* extern C */ #endif -class MiqtVirtualQAbstractSpinBox : public virtual QAbstractSpinBox { +class MiqtVirtualQAbstractSpinBox final : public QAbstractSpinBox { public: MiqtVirtualQAbstractSpinBox(QWidget* parent): QAbstractSpinBox(parent) {}; MiqtVirtualQAbstractSpinBox(): QAbstractSpinBox() {}; - virtual ~MiqtVirtualQAbstractSpinBox() = default; + virtual ~MiqtVirtualQAbstractSpinBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1864,11 +1864,7 @@ bool QAbstractSpinBox_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQAbstractSpinBox*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QAbstractSpinBox_Delete(QAbstractSpinBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractSpinBox_Delete(QAbstractSpinBox* self) { + delete self; } diff --git a/qt/gen_qabstractspinbox.go b/qt/gen_qabstractspinbox.go index 1ed43212..a4847973 100644 --- a/qt/gen_qabstractspinbox.go +++ b/qt/gen_qabstractspinbox.go @@ -1606,7 +1606,7 @@ func miqt_exec_callback_QAbstractSpinBox_FocusNextPrevChild(self *C.QAbstractSpi // Delete this object from C++ memory. func (this *QAbstractSpinBox) Delete() { - C.QAbstractSpinBox_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractSpinBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstractspinbox.h b/qt/gen_qabstractspinbox.h index 4fad22ef..8724d85b 100644 --- a/qt/gen_qabstractspinbox.h +++ b/qt/gen_qabstractspinbox.h @@ -236,7 +236,7 @@ void QAbstractSpinBox_override_virtual_InputMethodEvent(void* self, intptr_t slo void QAbstractSpinBox_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* param1); void QAbstractSpinBox_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QAbstractSpinBox_virtualbase_FocusNextPrevChild(void* self, bool next); -void QAbstractSpinBox_Delete(QAbstractSpinBox* self, bool isSubclass); +void QAbstractSpinBox_Delete(QAbstractSpinBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstractstate.cpp b/qt/gen_qabstractstate.cpp index e1bbf29e..3091830d 100644 --- a/qt/gen_qabstractstate.cpp +++ b/qt/gen_qabstractstate.cpp @@ -120,11 +120,7 @@ struct miqt_string QAbstractState_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QAbstractState_Delete(QAbstractState* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractState_Delete(QAbstractState* self) { + delete self; } diff --git a/qt/gen_qabstractstate.go b/qt/gen_qabstractstate.go index 87848b57..35815a4a 100644 --- a/qt/gen_qabstractstate.go +++ b/qt/gen_qabstractstate.go @@ -157,7 +157,7 @@ func QAbstractState_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QAbstractState) Delete() { - C.QAbstractState_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractState_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstractstate.h b/qt/gen_qabstractstate.h index 4a2cf566..06d8191d 100644 --- a/qt/gen_qabstractstate.h +++ b/qt/gen_qabstractstate.h @@ -47,7 +47,7 @@ struct miqt_string QAbstractState_Tr2(const char* s, const char* c); struct miqt_string QAbstractState_Tr3(const char* s, const char* c, int n); struct miqt_string QAbstractState_TrUtf82(const char* s, const char* c); struct miqt_string QAbstractState_TrUtf83(const char* s, const char* c, int n); -void QAbstractState_Delete(QAbstractState* self, bool isSubclass); +void QAbstractState_Delete(QAbstractState* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstracttextdocumentlayout.cpp b/qt/gen_qabstracttextdocumentlayout.cpp index 20c1b8ff..626d57e6 100644 --- a/qt/gen_qabstracttextdocumentlayout.cpp +++ b/qt/gen_qabstracttextdocumentlayout.cpp @@ -54,12 +54,12 @@ void miqt_exec_callback_QAbstractTextDocumentLayout_DisconnectNotify(void*, intp } /* extern C */ #endif -class MiqtVirtualQAbstractTextDocumentLayout : public virtual QAbstractTextDocumentLayout { +class MiqtVirtualQAbstractTextDocumentLayout final : public QAbstractTextDocumentLayout { public: MiqtVirtualQAbstractTextDocumentLayout(QTextDocument* doc): QAbstractTextDocumentLayout(doc) {}; - virtual ~MiqtVirtualQAbstractTextDocumentLayout() = default; + virtual ~MiqtVirtualQAbstractTextDocumentLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Draw = 0; @@ -775,12 +775,8 @@ void QAbstractTextDocumentLayout_virtualbase_DisconnectNotify(void* self, QMetaM ( (MiqtVirtualQAbstractTextDocumentLayout*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAbstractTextDocumentLayout_Delete(QAbstractTextDocumentLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractTextDocumentLayout_Delete(QAbstractTextDocumentLayout* self) { + delete self; } QSizeF* QTextObjectInterface_IntrinsicSize(QTextObjectInterface* self, QTextDocument* doc, int posInDocument, QTextFormat* format) { @@ -795,12 +791,8 @@ void QTextObjectInterface_OperatorAssign(QTextObjectInterface* self, QTextObject self->operator=(*param1); } -void QTextObjectInterface_Delete(QTextObjectInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextObjectInterface_Delete(QTextObjectInterface* self) { + delete self; } QAbstractTextDocumentLayout__Selection* QAbstractTextDocumentLayout__Selection_new(QAbstractTextDocumentLayout__Selection* param1) { @@ -811,12 +803,8 @@ void QAbstractTextDocumentLayout__Selection_OperatorAssign(QAbstractTextDocument self->operator=(*param1); } -void QAbstractTextDocumentLayout__Selection_Delete(QAbstractTextDocumentLayout__Selection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractTextDocumentLayout__Selection_Delete(QAbstractTextDocumentLayout__Selection* self) { + delete self; } QAbstractTextDocumentLayout__PaintContext* QAbstractTextDocumentLayout__PaintContext_new() { @@ -831,11 +819,7 @@ void QAbstractTextDocumentLayout__PaintContext_OperatorAssign(QAbstractTextDocum self->operator=(*param1); } -void QAbstractTextDocumentLayout__PaintContext_Delete(QAbstractTextDocumentLayout__PaintContext* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractTextDocumentLayout__PaintContext_Delete(QAbstractTextDocumentLayout__PaintContext* self) { + delete self; } diff --git a/qt/gen_qabstracttextdocumentlayout.go b/qt/gen_qabstracttextdocumentlayout.go index abd58fe4..a83ea8d2 100644 --- a/qt/gen_qabstracttextdocumentlayout.go +++ b/qt/gen_qabstracttextdocumentlayout.go @@ -755,7 +755,7 @@ func miqt_exec_callback_QAbstractTextDocumentLayout_DisconnectNotify(self *C.QAb // Delete this object from C++ memory. func (this *QAbstractTextDocumentLayout) Delete() { - C.QAbstractTextDocumentLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractTextDocumentLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -816,7 +816,7 @@ func (this *QTextObjectInterface) OperatorAssign(param1 *QTextObjectInterface) { // Delete this object from C++ memory. func (this *QTextObjectInterface) Delete() { - C.QTextObjectInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QTextObjectInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -875,7 +875,7 @@ func (this *QAbstractTextDocumentLayout__Selection) OperatorAssign(param1 *QAbst // Delete this object from C++ memory. func (this *QAbstractTextDocumentLayout__Selection) Delete() { - C.QAbstractTextDocumentLayout__Selection_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractTextDocumentLayout__Selection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -942,7 +942,7 @@ func (this *QAbstractTextDocumentLayout__PaintContext) OperatorAssign(param1 *QA // Delete this object from C++ memory. func (this *QAbstractTextDocumentLayout__PaintContext) Delete() { - C.QAbstractTextDocumentLayout__PaintContext_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractTextDocumentLayout__PaintContext_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstracttextdocumentlayout.h b/qt/gen_qabstracttextdocumentlayout.h index 318649d6..809370b0 100644 --- a/qt/gen_qabstracttextdocumentlayout.h +++ b/qt/gen_qabstracttextdocumentlayout.h @@ -141,21 +141,21 @@ void QAbstractTextDocumentLayout_override_virtual_ConnectNotify(void* self, intp void QAbstractTextDocumentLayout_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAbstractTextDocumentLayout_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAbstractTextDocumentLayout_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAbstractTextDocumentLayout_Delete(QAbstractTextDocumentLayout* self, bool isSubclass); +void QAbstractTextDocumentLayout_Delete(QAbstractTextDocumentLayout* self); QSizeF* QTextObjectInterface_IntrinsicSize(QTextObjectInterface* self, QTextDocument* doc, int posInDocument, QTextFormat* format); void QTextObjectInterface_DrawObject(QTextObjectInterface* self, QPainter* painter, QRectF* rect, QTextDocument* doc, int posInDocument, QTextFormat* format); void QTextObjectInterface_OperatorAssign(QTextObjectInterface* self, QTextObjectInterface* param1); -void QTextObjectInterface_Delete(QTextObjectInterface* self, bool isSubclass); +void QTextObjectInterface_Delete(QTextObjectInterface* self); QAbstractTextDocumentLayout__Selection* QAbstractTextDocumentLayout__Selection_new(QAbstractTextDocumentLayout__Selection* param1); void QAbstractTextDocumentLayout__Selection_OperatorAssign(QAbstractTextDocumentLayout__Selection* self, QAbstractTextDocumentLayout__Selection* param1); -void QAbstractTextDocumentLayout__Selection_Delete(QAbstractTextDocumentLayout__Selection* self, bool isSubclass); +void QAbstractTextDocumentLayout__Selection_Delete(QAbstractTextDocumentLayout__Selection* self); QAbstractTextDocumentLayout__PaintContext* QAbstractTextDocumentLayout__PaintContext_new(); QAbstractTextDocumentLayout__PaintContext* QAbstractTextDocumentLayout__PaintContext_new2(QAbstractTextDocumentLayout__PaintContext* param1); void QAbstractTextDocumentLayout__PaintContext_OperatorAssign(QAbstractTextDocumentLayout__PaintContext* self, QAbstractTextDocumentLayout__PaintContext* param1); -void QAbstractTextDocumentLayout__PaintContext_Delete(QAbstractTextDocumentLayout__PaintContext* self, bool isSubclass); +void QAbstractTextDocumentLayout__PaintContext_Delete(QAbstractTextDocumentLayout__PaintContext* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qabstracttransition.cpp b/qt/gen_qabstracttransition.cpp index 223f91c2..d95b8c48 100644 --- a/qt/gen_qabstracttransition.cpp +++ b/qt/gen_qabstracttransition.cpp @@ -33,13 +33,13 @@ void miqt_exec_callback_QAbstractTransition_DisconnectNotify(void*, intptr_t, QM } /* extern C */ #endif -class MiqtVirtualQAbstractTransition : public virtual QAbstractTransition { +class MiqtVirtualQAbstractTransition final : public QAbstractTransition { public: MiqtVirtualQAbstractTransition(): QAbstractTransition() {}; MiqtVirtualQAbstractTransition(QState* sourceState): QAbstractTransition(sourceState) {}; - virtual ~MiqtVirtualQAbstractTransition() = default; + virtual ~MiqtVirtualQAbstractTransition() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__EventTest = 0; @@ -465,11 +465,7 @@ void QAbstractTransition_virtualbase_DisconnectNotify(void* self, QMetaMethod* s ( (MiqtVirtualQAbstractTransition*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAbstractTransition_Delete(QAbstractTransition* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractTransition_Delete(QAbstractTransition* self) { + delete self; } diff --git a/qt/gen_qabstracttransition.go b/qt/gen_qabstracttransition.go index 690da440..4a081fce 100644 --- a/qt/gen_qabstracttransition.go +++ b/qt/gen_qabstracttransition.go @@ -440,7 +440,7 @@ func miqt_exec_callback_QAbstractTransition_DisconnectNotify(self *C.QAbstractTr // Delete this object from C++ memory. func (this *QAbstractTransition) Delete() { - C.QAbstractTransition_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractTransition_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qabstracttransition.h b/qt/gen_qabstracttransition.h index fa00b55e..71e5d2e3 100644 --- a/qt/gen_qabstracttransition.h +++ b/qt/gen_qabstracttransition.h @@ -83,7 +83,7 @@ void QAbstractTransition_override_virtual_ConnectNotify(void* self, intptr_t slo void QAbstractTransition_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAbstractTransition_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAbstractTransition_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAbstractTransition_Delete(QAbstractTransition* self, bool isSubclass); +void QAbstractTransition_Delete(QAbstractTransition* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qaccessible.cpp b/qt/gen_qaccessible.cpp index 5a999409..c51b0c5c 100644 --- a/qt/gen_qaccessible.cpp +++ b/qt/gen_qaccessible.cpp @@ -111,12 +111,8 @@ struct miqt_map /* tuple of int and int */ QAccessible_QAccessibleTextBoundaryH return _out; } -void QAccessible_Delete(QAccessible* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessible_Delete(QAccessible* self) { + delete self; } bool QAccessibleInterface_IsValid(const QAccessibleInterface* self) { @@ -355,12 +351,8 @@ void QAccessibleTextInterface_OperatorAssign(QAccessibleTextInterface* self, QAc self->operator=(*param1); } -void QAccessibleTextInterface_Delete(QAccessibleTextInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextInterface_Delete(QAccessibleTextInterface* self) { + delete self; } void QAccessibleEditableTextInterface_DeleteText(QAccessibleEditableTextInterface* self, int startOffset, int endOffset) { @@ -381,12 +373,8 @@ void QAccessibleEditableTextInterface_OperatorAssign(QAccessibleEditableTextInte self->operator=(*param1); } -void QAccessibleEditableTextInterface_Delete(QAccessibleEditableTextInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleEditableTextInterface_Delete(QAccessibleEditableTextInterface* self) { + delete self; } QVariant* QAccessibleValueInterface_CurrentValue(const QAccessibleValueInterface* self) { @@ -413,12 +401,8 @@ void QAccessibleValueInterface_OperatorAssign(QAccessibleValueInterface* self, Q self->operator=(*param1); } -void QAccessibleValueInterface_Delete(QAccessibleValueInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleValueInterface_Delete(QAccessibleValueInterface* self) { + delete self; } bool QAccessibleTableCellInterface_IsSelected(const QAccessibleTableCellInterface* self) { @@ -475,12 +459,8 @@ void QAccessibleTableCellInterface_OperatorAssign(QAccessibleTableCellInterface* self->operator=(*param1); } -void QAccessibleTableCellInterface_Delete(QAccessibleTableCellInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTableCellInterface_Delete(QAccessibleTableCellInterface* self) { + delete self; } QAccessibleInterface* QAccessibleTableInterface_Caption(const QAccessibleTableInterface* self) { @@ -604,12 +584,8 @@ void QAccessibleTableInterface_ModelChange(QAccessibleTableInterface* self, QAcc self->modelChange(event); } -void QAccessibleTableInterface_Delete(QAccessibleTableInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTableInterface_Delete(QAccessibleTableInterface* self) { + delete self; } struct miqt_string QAccessibleActionInterface_Tr(const char* sourceText) { @@ -884,12 +860,8 @@ struct miqt_string QAccessibleActionInterface_TrUtf83(const char* sourceText, co return _ms; } -void QAccessibleActionInterface_Delete(QAccessibleActionInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleActionInterface_Delete(QAccessibleActionInterface* self) { + delete self; } struct miqt_string QAccessibleImageInterface_ImageDescription(const QAccessibleImageInterface* self) { @@ -915,21 +887,17 @@ void QAccessibleImageInterface_OperatorAssign(QAccessibleImageInterface* self, Q self->operator=(*param1); } -void QAccessibleImageInterface_Delete(QAccessibleImageInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleImageInterface_Delete(QAccessibleImageInterface* self) { + delete self; } -class MiqtVirtualQAccessibleEvent : public virtual QAccessibleEvent { +class MiqtVirtualQAccessibleEvent final : public QAccessibleEvent { public: MiqtVirtualQAccessibleEvent(QObject* obj, QAccessible::Event typ): QAccessibleEvent(obj, typ) {}; MiqtVirtualQAccessibleEvent(QAccessibleInterface* iface, QAccessible::Event typ): QAccessibleEvent(iface, typ) {}; - virtual ~MiqtVirtualQAccessibleEvent() = default; + virtual ~MiqtVirtualQAccessibleEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AccessibleInterface = 0; @@ -997,21 +965,17 @@ QAccessibleInterface* QAccessibleEvent_virtualbase_AccessibleInterface(const voi return ( (const MiqtVirtualQAccessibleEvent*)(self) )->virtualbase_AccessibleInterface(); } -void QAccessibleEvent_Delete(QAccessibleEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleEvent_Delete(QAccessibleEvent* self) { + delete self; } -class MiqtVirtualQAccessibleStateChangeEvent : public virtual QAccessibleStateChangeEvent { +class MiqtVirtualQAccessibleStateChangeEvent final : public QAccessibleStateChangeEvent { public: MiqtVirtualQAccessibleStateChangeEvent(QObject* obj, QAccessible::State state): QAccessibleStateChangeEvent(obj, state) {}; MiqtVirtualQAccessibleStateChangeEvent(QAccessibleInterface* iface, QAccessible::State state): QAccessibleStateChangeEvent(iface, state) {}; - virtual ~MiqtVirtualQAccessibleStateChangeEvent() = default; + virtual ~MiqtVirtualQAccessibleStateChangeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AccessibleInterface = 0; @@ -1061,21 +1025,17 @@ QAccessibleInterface* QAccessibleStateChangeEvent_virtualbase_AccessibleInterfac return ( (const MiqtVirtualQAccessibleStateChangeEvent*)(self) )->virtualbase_AccessibleInterface(); } -void QAccessibleStateChangeEvent_Delete(QAccessibleStateChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleStateChangeEvent_Delete(QAccessibleStateChangeEvent* self) { + delete self; } -class MiqtVirtualQAccessibleTextCursorEvent : public virtual QAccessibleTextCursorEvent { +class MiqtVirtualQAccessibleTextCursorEvent final : public QAccessibleTextCursorEvent { public: MiqtVirtualQAccessibleTextCursorEvent(QObject* obj, int cursorPos): QAccessibleTextCursorEvent(obj, cursorPos) {}; MiqtVirtualQAccessibleTextCursorEvent(QAccessibleInterface* iface, int cursorPos): QAccessibleTextCursorEvent(iface, cursorPos) {}; - virtual ~MiqtVirtualQAccessibleTextCursorEvent() = default; + virtual ~MiqtVirtualQAccessibleTextCursorEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AccessibleInterface = 0; @@ -1129,12 +1089,8 @@ QAccessibleInterface* QAccessibleTextCursorEvent_virtualbase_AccessibleInterface return ( (const MiqtVirtualQAccessibleTextCursorEvent*)(self) )->virtualbase_AccessibleInterface(); } -void QAccessibleTextCursorEvent_Delete(QAccessibleTextCursorEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextCursorEvent_Delete(QAccessibleTextCursorEvent* self) { + delete self; } QAccessibleTextSelectionEvent* QAccessibleTextSelectionEvent_new(QObject* obj, int start, int end) { @@ -1161,12 +1117,8 @@ int QAccessibleTextSelectionEvent_SelectionEnd(const QAccessibleTextSelectionEve return self->selectionEnd(); } -void QAccessibleTextSelectionEvent_Delete(QAccessibleTextSelectionEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextSelectionEvent_Delete(QAccessibleTextSelectionEvent* self) { + delete self; } QAccessibleTextInsertEvent* QAccessibleTextInsertEvent_new(QObject* obj, int position, struct miqt_string text) { @@ -1198,12 +1150,8 @@ int QAccessibleTextInsertEvent_ChangePosition(const QAccessibleTextInsertEvent* return self->changePosition(); } -void QAccessibleTextInsertEvent_Delete(QAccessibleTextInsertEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextInsertEvent_Delete(QAccessibleTextInsertEvent* self) { + delete self; } QAccessibleTextRemoveEvent* QAccessibleTextRemoveEvent_new(QObject* obj, int position, struct miqt_string text) { @@ -1235,12 +1183,8 @@ int QAccessibleTextRemoveEvent_ChangePosition(const QAccessibleTextRemoveEvent* return self->changePosition(); } -void QAccessibleTextRemoveEvent_Delete(QAccessibleTextRemoveEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextRemoveEvent_Delete(QAccessibleTextRemoveEvent* self) { + delete self; } QAccessibleTextUpdateEvent* QAccessibleTextUpdateEvent_new(QObject* obj, int position, struct miqt_string oldText, struct miqt_string text) { @@ -1285,21 +1229,17 @@ int QAccessibleTextUpdateEvent_ChangePosition(const QAccessibleTextUpdateEvent* return self->changePosition(); } -void QAccessibleTextUpdateEvent_Delete(QAccessibleTextUpdateEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextUpdateEvent_Delete(QAccessibleTextUpdateEvent* self) { + delete self; } -class MiqtVirtualQAccessibleValueChangeEvent : public virtual QAccessibleValueChangeEvent { +class MiqtVirtualQAccessibleValueChangeEvent final : public QAccessibleValueChangeEvent { public: MiqtVirtualQAccessibleValueChangeEvent(QObject* obj, const QVariant& val): QAccessibleValueChangeEvent(obj, val) {}; MiqtVirtualQAccessibleValueChangeEvent(QAccessibleInterface* iface, const QVariant& val): QAccessibleValueChangeEvent(iface, val) {}; - virtual ~MiqtVirtualQAccessibleValueChangeEvent() = default; + virtual ~MiqtVirtualQAccessibleValueChangeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AccessibleInterface = 0; @@ -1353,21 +1293,17 @@ QAccessibleInterface* QAccessibleValueChangeEvent_virtualbase_AccessibleInterfac return ( (const MiqtVirtualQAccessibleValueChangeEvent*)(self) )->virtualbase_AccessibleInterface(); } -void QAccessibleValueChangeEvent_Delete(QAccessibleValueChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleValueChangeEvent_Delete(QAccessibleValueChangeEvent* self) { + delete self; } -class MiqtVirtualQAccessibleTableModelChangeEvent : public virtual QAccessibleTableModelChangeEvent { +class MiqtVirtualQAccessibleTableModelChangeEvent final : public QAccessibleTableModelChangeEvent { public: MiqtVirtualQAccessibleTableModelChangeEvent(QObject* obj, QAccessibleTableModelChangeEvent::ModelChangeType changeType): QAccessibleTableModelChangeEvent(obj, changeType) {}; MiqtVirtualQAccessibleTableModelChangeEvent(QAccessibleInterface* iface, QAccessibleTableModelChangeEvent::ModelChangeType changeType): QAccessibleTableModelChangeEvent(iface, changeType) {}; - virtual ~MiqtVirtualQAccessibleTableModelChangeEvent() = default; + virtual ~MiqtVirtualQAccessibleTableModelChangeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AccessibleInterface = 0; @@ -1454,12 +1390,8 @@ QAccessibleInterface* QAccessibleTableModelChangeEvent_virtualbase_AccessibleInt return ( (const MiqtVirtualQAccessibleTableModelChangeEvent*)(self) )->virtualbase_AccessibleInterface(); } -void QAccessibleTableModelChangeEvent_Delete(QAccessibleTableModelChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTableModelChangeEvent_Delete(QAccessibleTableModelChangeEvent* self) { + delete self; } QAccessible__State* QAccessible__State_new() { @@ -1470,12 +1402,8 @@ QAccessible__State* QAccessible__State_new2(QAccessible__State* param1) { return new QAccessible::State(*param1); } -void QAccessible__State_Delete(QAccessible__State* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessible__State_Delete(QAccessible__State* self) { + delete self; } void QAccessible__ActivationObserver_AccessibilityActiveChanged(QAccessible__ActivationObserver* self, bool active) { @@ -1486,11 +1414,7 @@ void QAccessible__ActivationObserver_OperatorAssign(QAccessible__ActivationObser self->operator=(*param1); } -void QAccessible__ActivationObserver_Delete(QAccessible__ActivationObserver* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessible__ActivationObserver_Delete(QAccessible__ActivationObserver* self) { + delete self; } diff --git a/qt/gen_qaccessible.go b/qt/gen_qaccessible.go index 7e32085b..27eed5c1 100644 --- a/qt/gen_qaccessible.go +++ b/qt/gen_qaccessible.go @@ -325,7 +325,7 @@ func QAccessible_QAccessibleTextBoundaryHelper(cursor *QTextCursor, boundaryType // Delete this object from C++ memory. func (this *QAccessible) Delete() { - C.QAccessible_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessible_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -631,7 +631,7 @@ func (this *QAccessibleTextInterface) OperatorAssign(param1 *QAccessibleTextInte // Delete this object from C++ memory. func (this *QAccessibleTextInterface) Delete() { - C.QAccessibleTextInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -702,7 +702,7 @@ func (this *QAccessibleEditableTextInterface) OperatorAssign(param1 *QAccessible // Delete this object from C++ memory. func (this *QAccessibleEditableTextInterface) Delete() { - C.QAccessibleEditableTextInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleEditableTextInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -781,7 +781,7 @@ func (this *QAccessibleValueInterface) OperatorAssign(param1 *QAccessibleValueIn // Delete this object from C++ memory. func (this *QAccessibleValueInterface) Delete() { - C.QAccessibleValueInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleValueInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -876,7 +876,7 @@ func (this *QAccessibleTableCellInterface) OperatorAssign(param1 *QAccessibleTab // Delete this object from C++ memory. func (this *QAccessibleTableCellInterface) Delete() { - C.QAccessibleTableCellInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTableCellInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1027,7 +1027,7 @@ func (this *QAccessibleTableInterface) ModelChange(event *QAccessibleTableModelC // Delete this object from C++ memory. func (this *QAccessibleTableInterface) Delete() { - C.QAccessibleTableInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTableInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1284,7 +1284,7 @@ func QAccessibleActionInterface_TrUtf83(sourceText string, disambiguation string // Delete this object from C++ memory. func (this *QAccessibleActionInterface) Delete() { - C.QAccessibleActionInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleActionInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1354,7 +1354,7 @@ func (this *QAccessibleImageInterface) OperatorAssign(param1 *QAccessibleImageIn // Delete this object from C++ memory. func (this *QAccessibleImageInterface) Delete() { - C.QAccessibleImageInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleImageInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1466,7 +1466,7 @@ func miqt_exec_callback_QAccessibleEvent_AccessibleInterface(self *C.QAccessible // Delete this object from C++ memory. func (this *QAccessibleEvent) Delete() { - C.QAccessibleEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1564,7 +1564,7 @@ func miqt_exec_callback_QAccessibleStateChangeEvent_AccessibleInterface(self *C. // Delete this object from C++ memory. func (this *QAccessibleStateChangeEvent) Delete() { - C.QAccessibleStateChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleStateChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1664,7 +1664,7 @@ func miqt_exec_callback_QAccessibleTextCursorEvent_AccessibleInterface(self *C.Q // Delete this object from C++ memory. func (this *QAccessibleTextCursorEvent) Delete() { - C.QAccessibleTextCursorEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextCursorEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1743,7 +1743,7 @@ func (this *QAccessibleTextSelectionEvent) SelectionEnd() int { // Delete this object from C++ memory. func (this *QAccessibleTextSelectionEvent) Delete() { - C.QAccessibleTextSelectionEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextSelectionEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1829,7 +1829,7 @@ func (this *QAccessibleTextInsertEvent) ChangePosition() int { // Delete this object from C++ memory. func (this *QAccessibleTextInsertEvent) Delete() { - C.QAccessibleTextInsertEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextInsertEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1915,7 +1915,7 @@ func (this *QAccessibleTextRemoveEvent) ChangePosition() int { // Delete this object from C++ memory. func (this *QAccessibleTextRemoveEvent) Delete() { - C.QAccessibleTextRemoveEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextRemoveEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2016,7 +2016,7 @@ func (this *QAccessibleTextUpdateEvent) ChangePosition() int { // Delete this object from C++ memory. func (this *QAccessibleTextUpdateEvent) Delete() { - C.QAccessibleTextUpdateEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextUpdateEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2118,7 +2118,7 @@ func miqt_exec_callback_QAccessibleValueChangeEvent_AccessibleInterface(self *C. // Delete this object from C++ memory. func (this *QAccessibleValueChangeEvent) Delete() { - C.QAccessibleValueChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleValueChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2250,7 +2250,7 @@ func miqt_exec_callback_QAccessibleTableModelChangeEvent_AccessibleInterface(sel // Delete this object from C++ memory. func (this *QAccessibleTableModelChangeEvent) Delete() { - C.QAccessibleTableModelChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTableModelChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2313,7 +2313,7 @@ func NewQAccessible__State2(param1 *QAccessible__State) *QAccessible__State { // Delete this object from C++ memory. func (this *QAccessible__State) Delete() { - C.QAccessible__State_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessible__State_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2368,7 +2368,7 @@ func (this *QAccessible__ActivationObserver) OperatorAssign(param1 *QAccessible_ // Delete this object from C++ memory. func (this *QAccessible__ActivationObserver) Delete() { - C.QAccessible__ActivationObserver_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessible__ActivationObserver_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qaccessible.h b/qt/gen_qaccessible.h index c980a4fc..0acf8ea1 100644 --- a/qt/gen_qaccessible.h +++ b/qt/gen_qaccessible.h @@ -95,7 +95,7 @@ void QAccessible_SetActive(bool active); void QAccessible_SetRootObject(QObject* object); void QAccessible_Cleanup(); struct miqt_map /* tuple of int and int */ QAccessible_QAccessibleTextBoundaryHelper(QTextCursor* cursor, int boundaryType); -void QAccessible_Delete(QAccessible* self, bool isSubclass); +void QAccessible_Delete(QAccessible* self); bool QAccessibleInterface_IsValid(const QAccessibleInterface* self); QObject* QAccessibleInterface_Object(const QAccessibleInterface* self); @@ -141,13 +141,13 @@ int QAccessibleTextInterface_OffsetAtPoint(const QAccessibleTextInterface* self, void QAccessibleTextInterface_ScrollToSubstring(QAccessibleTextInterface* self, int startIndex, int endIndex); struct miqt_string QAccessibleTextInterface_Attributes(const QAccessibleTextInterface* self, int offset, int* startOffset, int* endOffset); void QAccessibleTextInterface_OperatorAssign(QAccessibleTextInterface* self, QAccessibleTextInterface* param1); -void QAccessibleTextInterface_Delete(QAccessibleTextInterface* self, bool isSubclass); +void QAccessibleTextInterface_Delete(QAccessibleTextInterface* self); void QAccessibleEditableTextInterface_DeleteText(QAccessibleEditableTextInterface* self, int startOffset, int endOffset); void QAccessibleEditableTextInterface_InsertText(QAccessibleEditableTextInterface* self, int offset, struct miqt_string text); void QAccessibleEditableTextInterface_ReplaceText(QAccessibleEditableTextInterface* self, int startOffset, int endOffset, struct miqt_string text); void QAccessibleEditableTextInterface_OperatorAssign(QAccessibleEditableTextInterface* self, QAccessibleEditableTextInterface* param1); -void QAccessibleEditableTextInterface_Delete(QAccessibleEditableTextInterface* self, bool isSubclass); +void QAccessibleEditableTextInterface_Delete(QAccessibleEditableTextInterface* self); QVariant* QAccessibleValueInterface_CurrentValue(const QAccessibleValueInterface* self); void QAccessibleValueInterface_SetCurrentValue(QAccessibleValueInterface* self, QVariant* value); @@ -155,7 +155,7 @@ QVariant* QAccessibleValueInterface_MaximumValue(const QAccessibleValueInterface QVariant* QAccessibleValueInterface_MinimumValue(const QAccessibleValueInterface* self); QVariant* QAccessibleValueInterface_MinimumStepSize(const QAccessibleValueInterface* self); void QAccessibleValueInterface_OperatorAssign(QAccessibleValueInterface* self, QAccessibleValueInterface* param1); -void QAccessibleValueInterface_Delete(QAccessibleValueInterface* self, bool isSubclass); +void QAccessibleValueInterface_Delete(QAccessibleValueInterface* self); bool QAccessibleTableCellInterface_IsSelected(const QAccessibleTableCellInterface* self); struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessibleTableCellInterface* self); @@ -166,7 +166,7 @@ int QAccessibleTableCellInterface_ColumnExtent(const QAccessibleTableCellInterfa int QAccessibleTableCellInterface_RowExtent(const QAccessibleTableCellInterface* self); QAccessibleInterface* QAccessibleTableCellInterface_Table(const QAccessibleTableCellInterface* self); void QAccessibleTableCellInterface_OperatorAssign(QAccessibleTableCellInterface* self, QAccessibleTableCellInterface* param1); -void QAccessibleTableCellInterface_Delete(QAccessibleTableCellInterface* self, bool isSubclass); +void QAccessibleTableCellInterface_Delete(QAccessibleTableCellInterface* self); QAccessibleInterface* QAccessibleTableInterface_Caption(const QAccessibleTableInterface* self); QAccessibleInterface* QAccessibleTableInterface_Summary(const QAccessibleTableInterface* self); @@ -188,7 +188,7 @@ bool QAccessibleTableInterface_SelectColumn(QAccessibleTableInterface* self, int bool QAccessibleTableInterface_UnselectRow(QAccessibleTableInterface* self, int row); bool QAccessibleTableInterface_UnselectColumn(QAccessibleTableInterface* self, int column); void QAccessibleTableInterface_ModelChange(QAccessibleTableInterface* self, QAccessibleTableModelChangeEvent* event); -void QAccessibleTableInterface_Delete(QAccessibleTableInterface* self, bool isSubclass); +void QAccessibleTableInterface_Delete(QAccessibleTableInterface* self); struct miqt_string QAccessibleActionInterface_Tr(const char* sourceText); struct miqt_string QAccessibleActionInterface_TrUtf8(const char* sourceText); @@ -214,13 +214,13 @@ struct miqt_string QAccessibleActionInterface_Tr2(const char* sourceText, const struct miqt_string QAccessibleActionInterface_Tr3(const char* sourceText, const char* disambiguation, int n); struct miqt_string QAccessibleActionInterface_TrUtf82(const char* sourceText, const char* disambiguation); struct miqt_string QAccessibleActionInterface_TrUtf83(const char* sourceText, const char* disambiguation, int n); -void QAccessibleActionInterface_Delete(QAccessibleActionInterface* self, bool isSubclass); +void QAccessibleActionInterface_Delete(QAccessibleActionInterface* self); struct miqt_string QAccessibleImageInterface_ImageDescription(const QAccessibleImageInterface* self); QSize* QAccessibleImageInterface_ImageSize(const QAccessibleImageInterface* self); QPoint* QAccessibleImageInterface_ImagePosition(const QAccessibleImageInterface* self); void QAccessibleImageInterface_OperatorAssign(QAccessibleImageInterface* self, QAccessibleImageInterface* param1); -void QAccessibleImageInterface_Delete(QAccessibleImageInterface* self, bool isSubclass); +void QAccessibleImageInterface_Delete(QAccessibleImageInterface* self); QAccessibleEvent* QAccessibleEvent_new(QObject* obj, int typ); QAccessibleEvent* QAccessibleEvent_new2(QAccessibleInterface* iface, int typ); @@ -232,7 +232,7 @@ int QAccessibleEvent_Child(const QAccessibleEvent* self); QAccessibleInterface* QAccessibleEvent_AccessibleInterface(const QAccessibleEvent* self); void QAccessibleEvent_override_virtual_AccessibleInterface(void* self, intptr_t slot); QAccessibleInterface* QAccessibleEvent_virtualbase_AccessibleInterface(const void* self); -void QAccessibleEvent_Delete(QAccessibleEvent* self, bool isSubclass); +void QAccessibleEvent_Delete(QAccessibleEvent* self); QAccessibleStateChangeEvent* QAccessibleStateChangeEvent_new(QObject* obj, QAccessible__State* state); QAccessibleStateChangeEvent* QAccessibleStateChangeEvent_new2(QAccessibleInterface* iface, QAccessible__State* state); @@ -240,7 +240,7 @@ void QAccessibleStateChangeEvent_virtbase(QAccessibleStateChangeEvent* src, QAcc QAccessible__State* QAccessibleStateChangeEvent_ChangedStates(const QAccessibleStateChangeEvent* self); void QAccessibleStateChangeEvent_override_virtual_AccessibleInterface(void* self, intptr_t slot); QAccessibleInterface* QAccessibleStateChangeEvent_virtualbase_AccessibleInterface(const void* self); -void QAccessibleStateChangeEvent_Delete(QAccessibleStateChangeEvent* self, bool isSubclass); +void QAccessibleStateChangeEvent_Delete(QAccessibleStateChangeEvent* self); QAccessibleTextCursorEvent* QAccessibleTextCursorEvent_new(QObject* obj, int cursorPos); QAccessibleTextCursorEvent* QAccessibleTextCursorEvent_new2(QAccessibleInterface* iface, int cursorPos); @@ -249,7 +249,7 @@ void QAccessibleTextCursorEvent_SetCursorPosition(QAccessibleTextCursorEvent* se int QAccessibleTextCursorEvent_CursorPosition(const QAccessibleTextCursorEvent* self); void QAccessibleTextCursorEvent_override_virtual_AccessibleInterface(void* self, intptr_t slot); QAccessibleInterface* QAccessibleTextCursorEvent_virtualbase_AccessibleInterface(const void* self); -void QAccessibleTextCursorEvent_Delete(QAccessibleTextCursorEvent* self, bool isSubclass); +void QAccessibleTextCursorEvent_Delete(QAccessibleTextCursorEvent* self); QAccessibleTextSelectionEvent* QAccessibleTextSelectionEvent_new(QObject* obj, int start, int end); QAccessibleTextSelectionEvent* QAccessibleTextSelectionEvent_new2(QAccessibleInterface* iface, int start, int end); @@ -257,21 +257,21 @@ void QAccessibleTextSelectionEvent_virtbase(QAccessibleTextSelectionEvent* src, void QAccessibleTextSelectionEvent_SetSelection(QAccessibleTextSelectionEvent* self, int start, int end); int QAccessibleTextSelectionEvent_SelectionStart(const QAccessibleTextSelectionEvent* self); int QAccessibleTextSelectionEvent_SelectionEnd(const QAccessibleTextSelectionEvent* self); -void QAccessibleTextSelectionEvent_Delete(QAccessibleTextSelectionEvent* self, bool isSubclass); +void QAccessibleTextSelectionEvent_Delete(QAccessibleTextSelectionEvent* self); QAccessibleTextInsertEvent* QAccessibleTextInsertEvent_new(QObject* obj, int position, struct miqt_string text); QAccessibleTextInsertEvent* QAccessibleTextInsertEvent_new2(QAccessibleInterface* iface, int position, struct miqt_string text); void QAccessibleTextInsertEvent_virtbase(QAccessibleTextInsertEvent* src, QAccessibleTextCursorEvent** outptr_QAccessibleTextCursorEvent); struct miqt_string QAccessibleTextInsertEvent_TextInserted(const QAccessibleTextInsertEvent* self); int QAccessibleTextInsertEvent_ChangePosition(const QAccessibleTextInsertEvent* self); -void QAccessibleTextInsertEvent_Delete(QAccessibleTextInsertEvent* self, bool isSubclass); +void QAccessibleTextInsertEvent_Delete(QAccessibleTextInsertEvent* self); QAccessibleTextRemoveEvent* QAccessibleTextRemoveEvent_new(QObject* obj, int position, struct miqt_string text); QAccessibleTextRemoveEvent* QAccessibleTextRemoveEvent_new2(QAccessibleInterface* iface, int position, struct miqt_string text); void QAccessibleTextRemoveEvent_virtbase(QAccessibleTextRemoveEvent* src, QAccessibleTextCursorEvent** outptr_QAccessibleTextCursorEvent); struct miqt_string QAccessibleTextRemoveEvent_TextRemoved(const QAccessibleTextRemoveEvent* self); int QAccessibleTextRemoveEvent_ChangePosition(const QAccessibleTextRemoveEvent* self); -void QAccessibleTextRemoveEvent_Delete(QAccessibleTextRemoveEvent* self, bool isSubclass); +void QAccessibleTextRemoveEvent_Delete(QAccessibleTextRemoveEvent* self); QAccessibleTextUpdateEvent* QAccessibleTextUpdateEvent_new(QObject* obj, int position, struct miqt_string oldText, struct miqt_string text); QAccessibleTextUpdateEvent* QAccessibleTextUpdateEvent_new2(QAccessibleInterface* iface, int position, struct miqt_string oldText, struct miqt_string text); @@ -279,7 +279,7 @@ void QAccessibleTextUpdateEvent_virtbase(QAccessibleTextUpdateEvent* src, QAcces struct miqt_string QAccessibleTextUpdateEvent_TextRemoved(const QAccessibleTextUpdateEvent* self); struct miqt_string QAccessibleTextUpdateEvent_TextInserted(const QAccessibleTextUpdateEvent* self); int QAccessibleTextUpdateEvent_ChangePosition(const QAccessibleTextUpdateEvent* self); -void QAccessibleTextUpdateEvent_Delete(QAccessibleTextUpdateEvent* self, bool isSubclass); +void QAccessibleTextUpdateEvent_Delete(QAccessibleTextUpdateEvent* self); QAccessibleValueChangeEvent* QAccessibleValueChangeEvent_new(QObject* obj, QVariant* val); QAccessibleValueChangeEvent* QAccessibleValueChangeEvent_new2(QAccessibleInterface* iface, QVariant* val); @@ -288,7 +288,7 @@ void QAccessibleValueChangeEvent_SetValue(QAccessibleValueChangeEvent* self, QVa QVariant* QAccessibleValueChangeEvent_Value(const QAccessibleValueChangeEvent* self); void QAccessibleValueChangeEvent_override_virtual_AccessibleInterface(void* self, intptr_t slot); QAccessibleInterface* QAccessibleValueChangeEvent_virtualbase_AccessibleInterface(const void* self); -void QAccessibleValueChangeEvent_Delete(QAccessibleValueChangeEvent* self, bool isSubclass); +void QAccessibleValueChangeEvent_Delete(QAccessibleValueChangeEvent* self); QAccessibleTableModelChangeEvent* QAccessibleTableModelChangeEvent_new(QObject* obj, int changeType); QAccessibleTableModelChangeEvent* QAccessibleTableModelChangeEvent_new2(QAccessibleInterface* iface, int changeType); @@ -305,15 +305,15 @@ int QAccessibleTableModelChangeEvent_LastRow(const QAccessibleTableModelChangeEv int QAccessibleTableModelChangeEvent_LastColumn(const QAccessibleTableModelChangeEvent* self); void QAccessibleTableModelChangeEvent_override_virtual_AccessibleInterface(void* self, intptr_t slot); QAccessibleInterface* QAccessibleTableModelChangeEvent_virtualbase_AccessibleInterface(const void* self); -void QAccessibleTableModelChangeEvent_Delete(QAccessibleTableModelChangeEvent* self, bool isSubclass); +void QAccessibleTableModelChangeEvent_Delete(QAccessibleTableModelChangeEvent* self); QAccessible__State* QAccessible__State_new(); QAccessible__State* QAccessible__State_new2(QAccessible__State* param1); -void QAccessible__State_Delete(QAccessible__State* self, bool isSubclass); +void QAccessible__State_Delete(QAccessible__State* self); void QAccessible__ActivationObserver_AccessibilityActiveChanged(QAccessible__ActivationObserver* self, bool active); void QAccessible__ActivationObserver_OperatorAssign(QAccessible__ActivationObserver* self, QAccessible__ActivationObserver* param1); -void QAccessible__ActivationObserver_Delete(QAccessible__ActivationObserver* self, bool isSubclass); +void QAccessible__ActivationObserver_Delete(QAccessible__ActivationObserver* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qaccessiblebridge.cpp b/qt/gen_qaccessiblebridge.cpp index 64d64bb1..76015e0e 100644 --- a/qt/gen_qaccessiblebridge.cpp +++ b/qt/gen_qaccessiblebridge.cpp @@ -42,21 +42,17 @@ void QAccessibleBridge_OperatorAssign(QAccessibleBridge* self, QAccessibleBridge self->operator=(*param1); } -void QAccessibleBridge_Delete(QAccessibleBridge* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleBridge_Delete(QAccessibleBridge* self) { + delete self; } -class MiqtVirtualQAccessibleBridgePlugin : public virtual QAccessibleBridgePlugin { +class MiqtVirtualQAccessibleBridgePlugin final : public QAccessibleBridgePlugin { public: MiqtVirtualQAccessibleBridgePlugin(): QAccessibleBridgePlugin() {}; MiqtVirtualQAccessibleBridgePlugin(QObject* parent): QAccessibleBridgePlugin(parent) {}; - virtual ~MiqtVirtualQAccessibleBridgePlugin() = default; + virtual ~MiqtVirtualQAccessibleBridgePlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -405,11 +401,7 @@ void QAccessibleBridgePlugin_virtualbase_DisconnectNotify(void* self, QMetaMetho ( (MiqtVirtualQAccessibleBridgePlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAccessibleBridgePlugin_Delete(QAccessibleBridgePlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleBridgePlugin_Delete(QAccessibleBridgePlugin* self) { + delete self; } diff --git a/qt/gen_qaccessiblebridge.go b/qt/gen_qaccessiblebridge.go index c92419bd..f9452ae0 100644 --- a/qt/gen_qaccessiblebridge.go +++ b/qt/gen_qaccessiblebridge.go @@ -61,7 +61,7 @@ func (this *QAccessibleBridge) OperatorAssign(param1 *QAccessibleBridge) { // Delete this object from C++ memory. func (this *QAccessibleBridge) Delete() { - C.QAccessibleBridge_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleBridge_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -421,7 +421,7 @@ func miqt_exec_callback_QAccessibleBridgePlugin_DisconnectNotify(self *C.QAccess // Delete this object from C++ memory. func (this *QAccessibleBridgePlugin) Delete() { - C.QAccessibleBridgePlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleBridgePlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qaccessiblebridge.h b/qt/gen_qaccessiblebridge.h index f63a7c56..a390ad70 100644 --- a/qt/gen_qaccessiblebridge.h +++ b/qt/gen_qaccessiblebridge.h @@ -41,7 +41,7 @@ typedef struct QTimerEvent QTimerEvent; void QAccessibleBridge_SetRootObject(QAccessibleBridge* self, QAccessibleInterface* rootObject); void QAccessibleBridge_NotifyAccessibilityUpdate(QAccessibleBridge* self, QAccessibleEvent* event); void QAccessibleBridge_OperatorAssign(QAccessibleBridge* self, QAccessibleBridge* param1); -void QAccessibleBridge_Delete(QAccessibleBridge* self, bool isSubclass); +void QAccessibleBridge_Delete(QAccessibleBridge* self); QAccessibleBridgePlugin* QAccessibleBridgePlugin_new(); QAccessibleBridgePlugin* QAccessibleBridgePlugin_new2(QObject* parent); @@ -71,7 +71,7 @@ void QAccessibleBridgePlugin_override_virtual_ConnectNotify(void* self, intptr_t void QAccessibleBridgePlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAccessibleBridgePlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAccessibleBridgePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAccessibleBridgePlugin_Delete(QAccessibleBridgePlugin* self, bool isSubclass); +void QAccessibleBridgePlugin_Delete(QAccessibleBridgePlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qaccessibleobject.cpp b/qt/gen_qaccessibleobject.cpp index 7161e54a..a14bbcb1 100644 --- a/qt/gen_qaccessibleobject.cpp +++ b/qt/gen_qaccessibleobject.cpp @@ -96,11 +96,7 @@ QAccessible__State* QAccessibleApplication_State(const QAccessibleApplication* s return new QAccessible::State(self->state()); } -void QAccessibleApplication_Delete(QAccessibleApplication* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleApplication_Delete(QAccessibleApplication* self) { + delete self; } diff --git a/qt/gen_qaccessibleobject.go b/qt/gen_qaccessibleobject.go index 871e4781..6cdc2725 100644 --- a/qt/gen_qaccessibleobject.go +++ b/qt/gen_qaccessibleobject.go @@ -164,7 +164,7 @@ func (this *QAccessibleApplication) State() *QAccessible__State { // Delete this object from C++ memory. func (this *QAccessibleApplication) Delete() { - C.QAccessibleApplication_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleApplication_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qaccessibleobject.h b/qt/gen_qaccessibleobject.h index 3e97c3e3..ebd9db81 100644 --- a/qt/gen_qaccessibleobject.h +++ b/qt/gen_qaccessibleobject.h @@ -54,7 +54,7 @@ QAccessibleInterface* QAccessibleApplication_Child(const QAccessibleApplication* struct miqt_string QAccessibleApplication_Text(const QAccessibleApplication* self, int t); int QAccessibleApplication_Role(const QAccessibleApplication* self); QAccessible__State* QAccessibleApplication_State(const QAccessibleApplication* self); -void QAccessibleApplication_Delete(QAccessibleApplication* self, bool isSubclass); +void QAccessibleApplication_Delete(QAccessibleApplication* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qaccessibleplugin.cpp b/qt/gen_qaccessibleplugin.cpp index 6b43d854..1df784e4 100644 --- a/qt/gen_qaccessibleplugin.cpp +++ b/qt/gen_qaccessibleplugin.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QAccessiblePlugin_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQAccessiblePlugin : public virtual QAccessiblePlugin { +class MiqtVirtualQAccessiblePlugin final : public QAccessiblePlugin { public: MiqtVirtualQAccessiblePlugin(): QAccessiblePlugin() {}; MiqtVirtualQAccessiblePlugin(QObject* parent): QAccessiblePlugin(parent) {}; - virtual ~MiqtVirtualQAccessiblePlugin() = default; + virtual ~MiqtVirtualQAccessiblePlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -384,11 +384,7 @@ void QAccessiblePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQAccessiblePlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAccessiblePlugin_Delete(QAccessiblePlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessiblePlugin_Delete(QAccessiblePlugin* self) { + delete self; } diff --git a/qt/gen_qaccessibleplugin.go b/qt/gen_qaccessibleplugin.go index 335a77b5..df722c1d 100644 --- a/qt/gen_qaccessibleplugin.go +++ b/qt/gen_qaccessibleplugin.go @@ -363,7 +363,7 @@ func miqt_exec_callback_QAccessiblePlugin_DisconnectNotify(self *C.QAccessiblePl // Delete this object from C++ memory. func (this *QAccessiblePlugin) Delete() { - C.QAccessiblePlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessiblePlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qaccessibleplugin.h b/qt/gen_qaccessibleplugin.h index 82ac3f09..921cfe07 100644 --- a/qt/gen_qaccessibleplugin.h +++ b/qt/gen_qaccessibleplugin.h @@ -62,7 +62,7 @@ void QAccessiblePlugin_override_virtual_ConnectNotify(void* self, intptr_t slot) void QAccessiblePlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAccessiblePlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAccessiblePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAccessiblePlugin_Delete(QAccessiblePlugin* self, bool isSubclass); +void QAccessiblePlugin_Delete(QAccessiblePlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qaction.cpp b/qt/gen_qaction.cpp index 5eef33db..cbeafd7a 100644 --- a/qt/gen_qaction.cpp +++ b/qt/gen_qaction.cpp @@ -40,7 +40,7 @@ void miqt_exec_callback_QAction_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQAction : public virtual QAction { +class MiqtVirtualQAction final : public QAction { public: MiqtVirtualQAction(): QAction() {}; @@ -50,7 +50,7 @@ public: MiqtVirtualQAction(const QString& text, QObject* parent): QAction(text, parent) {}; MiqtVirtualQAction(const QIcon& icon, const QString& text, QObject* parent): QAction(icon, text, parent) {}; - virtual ~MiqtVirtualQAction() = default; + virtual ~MiqtVirtualQAction() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -743,11 +743,7 @@ void QAction_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQAction*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAction_Delete(QAction* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAction_Delete(QAction* self) { + delete self; } diff --git a/qt/gen_qaction.go b/qt/gen_qaction.go index 01c03e92..57af2fb5 100644 --- a/qt/gen_qaction.go +++ b/qt/gen_qaction.go @@ -792,7 +792,7 @@ func miqt_exec_callback_QAction_DisconnectNotify(self *C.QAction, cb C.intptr_t, // Delete this object from C++ memory. func (this *QAction) Delete() { - C.QAction_Delete(this.h, C.bool(this.isSubclass)) + C.QAction_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qaction.h b/qt/gen_qaction.h index 65e9fdf6..4e85eb9f 100644 --- a/qt/gen_qaction.h +++ b/qt/gen_qaction.h @@ -145,7 +145,7 @@ void QAction_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAction_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAction_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAction_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAction_Delete(QAction* self, bool isSubclass); +void QAction_Delete(QAction* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qactiongroup.cpp b/qt/gen_qactiongroup.cpp index d664b1ad..36c5cc1c 100644 --- a/qt/gen_qactiongroup.cpp +++ b/qt/gen_qactiongroup.cpp @@ -31,12 +31,12 @@ void miqt_exec_callback_QActionGroup_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQActionGroup : public virtual QActionGroup { +class MiqtVirtualQActionGroup final : public QActionGroup { public: MiqtVirtualQActionGroup(QObject* parent): QActionGroup(parent) {}; - virtual ~MiqtVirtualQActionGroup() = default; + virtual ~MiqtVirtualQActionGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -443,11 +443,7 @@ void QActionGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQActionGroup*)(self) )->virtualbase_DisconnectNotify(signal); } -void QActionGroup_Delete(QActionGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QActionGroup_Delete(QActionGroup* self) { + delete self; } diff --git a/qt/gen_qactiongroup.go b/qt/gen_qactiongroup.go index bad4d2e7..a335e643 100644 --- a/qt/gen_qactiongroup.go +++ b/qt/gen_qactiongroup.go @@ -443,7 +443,7 @@ func miqt_exec_callback_QActionGroup_DisconnectNotify(self *C.QActionGroup, cb C // Delete this object from C++ memory. func (this *QActionGroup) Delete() { - C.QActionGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QActionGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qactiongroup.h b/qt/gen_qactiongroup.h index 31577b90..80111634 100644 --- a/qt/gen_qactiongroup.h +++ b/qt/gen_qactiongroup.h @@ -79,7 +79,7 @@ void QActionGroup_override_virtual_ConnectNotify(void* self, intptr_t slot); void QActionGroup_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QActionGroup_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QActionGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QActionGroup_Delete(QActionGroup* self, bool isSubclass); +void QActionGroup_Delete(QActionGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qanimationgroup.cpp b/qt/gen_qanimationgroup.cpp index cff9ad8e..23457466 100644 --- a/qt/gen_qanimationgroup.cpp +++ b/qt/gen_qanimationgroup.cpp @@ -22,13 +22,13 @@ void miqt_exec_callback_QAnimationGroup_UpdateDirection(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQAnimationGroup : public virtual QAnimationGroup { +class MiqtVirtualQAnimationGroup final : public QAnimationGroup { public: MiqtVirtualQAnimationGroup(): QAnimationGroup() {}; MiqtVirtualQAnimationGroup(QObject* parent): QAnimationGroup(parent) {}; - virtual ~MiqtVirtualQAnimationGroup() = default; + virtual ~MiqtVirtualQAnimationGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -288,11 +288,7 @@ void QAnimationGroup_virtualbase_UpdateDirection(void* self, int direction) { ( (MiqtVirtualQAnimationGroup*)(self) )->virtualbase_UpdateDirection(direction); } -void QAnimationGroup_Delete(QAnimationGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAnimationGroup_Delete(QAnimationGroup* self) { + delete self; } diff --git a/qt/gen_qanimationgroup.go b/qt/gen_qanimationgroup.go index 673b8a5d..a79ceb0e 100644 --- a/qt/gen_qanimationgroup.go +++ b/qt/gen_qanimationgroup.go @@ -294,7 +294,7 @@ func miqt_exec_callback_QAnimationGroup_UpdateDirection(self *C.QAnimationGroup, // Delete this object from C++ memory. func (this *QAnimationGroup) Delete() { - C.QAnimationGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QAnimationGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qanimationgroup.h b/qt/gen_qanimationgroup.h index 40c9759b..d52c8c0e 100644 --- a/qt/gen_qanimationgroup.h +++ b/qt/gen_qanimationgroup.h @@ -58,7 +58,7 @@ void QAnimationGroup_override_virtual_UpdateState(void* self, intptr_t slot); void QAnimationGroup_virtualbase_UpdateState(void* self, int newState, int oldState); void QAnimationGroup_override_virtual_UpdateDirection(void* self, intptr_t slot); void QAnimationGroup_virtualbase_UpdateDirection(void* self, int direction); -void QAnimationGroup_Delete(QAnimationGroup* self, bool isSubclass); +void QAnimationGroup_Delete(QAnimationGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qapplication.cpp b/qt/gen_qapplication.cpp index 30ab75b4..be52199e 100644 --- a/qt/gen_qapplication.cpp +++ b/qt/gen_qapplication.cpp @@ -31,13 +31,13 @@ bool miqt_exec_callback_QApplication_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQApplication : public virtual QApplication { +class MiqtVirtualQApplication final : public QApplication { public: MiqtVirtualQApplication(int& argc, char** argv): QApplication(argc, argv) {}; MiqtVirtualQApplication(int& argc, char** argv, int param3): QApplication(argc, argv, param3) {}; - virtual ~MiqtVirtualQApplication() = default; + virtual ~MiqtVirtualQApplication() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Notify = 0; @@ -457,11 +457,7 @@ bool QApplication_virtualbase_Event(void* self, QEvent* param1) { return ( (MiqtVirtualQApplication*)(self) )->virtualbase_Event(param1); } -void QApplication_Delete(QApplication* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QApplication_Delete(QApplication* self) { + delete self; } diff --git a/qt/gen_qapplication.go b/qt/gen_qapplication.go index 713717ce..48854d45 100644 --- a/qt/gen_qapplication.go +++ b/qt/gen_qapplication.go @@ -522,7 +522,7 @@ func miqt_exec_callback_QApplication_Event(self *C.QApplication, cb C.intptr_t, // Delete this object from C++ memory. func (this *QApplication) Delete() { - C.QApplication_Delete(this.h, C.bool(this.isSubclass)) + C.QApplication_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qapplication.h b/qt/gen_qapplication.h index a2a6692a..2725535f 100644 --- a/qt/gen_qapplication.h +++ b/qt/gen_qapplication.h @@ -123,7 +123,7 @@ void QApplication_override_virtual_Notify(void* self, intptr_t slot); bool QApplication_virtualbase_Notify(void* self, QObject* param1, QEvent* param2); void QApplication_override_virtual_Event(void* self, intptr_t slot); bool QApplication_virtualbase_Event(void* self, QEvent* param1); -void QApplication_Delete(QApplication* self, bool isSubclass); +void QApplication_Delete(QApplication* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qarraydata.cpp b/qt/gen_qarraydata.cpp index 2dee5e90..2c7bf6ea 100644 --- a/qt/gen_qarraydata.cpp +++ b/qt/gen_qarraydata.cpp @@ -60,11 +60,7 @@ QArrayData* QArrayData_ReallocateUnaligned4(QArrayData* data, size_t objectSize, return QArrayData::reallocateUnaligned(data, static_cast(objectSize), static_cast(newCapacity), static_cast(newOptions)); } -void QArrayData_Delete(QArrayData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QArrayData_Delete(QArrayData* self) { + delete self; } diff --git a/qt/gen_qarraydata.go b/qt/gen_qarraydata.go index ae3f27e4..1b431380 100644 --- a/qt/gen_qarraydata.go +++ b/qt/gen_qarraydata.go @@ -115,7 +115,7 @@ func QArrayData_ReallocateUnaligned4(data *QArrayData, objectSize uint64, newCap // Delete this object from C++ memory. func (this *QArrayData) Delete() { - C.QArrayData_Delete(this.h, C.bool(this.isSubclass)) + C.QArrayData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qarraydata.h b/qt/gen_qarraydata.h index a590eaa9..b8de3b78 100644 --- a/qt/gen_qarraydata.h +++ b/qt/gen_qarraydata.h @@ -32,7 +32,7 @@ void QArrayData_Deallocate(QArrayData* data, size_t objectSize, size_t alignment QArrayData* QArrayData_SharedNull(); QArrayData* QArrayData_Allocate4(size_t objectSize, size_t alignment, size_t capacity, int options); QArrayData* QArrayData_ReallocateUnaligned4(QArrayData* data, size_t objectSize, size_t newCapacity, int newOptions); -void QArrayData_Delete(QArrayData* self, bool isSubclass); +void QArrayData_Delete(QArrayData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qbackingstore.cpp b/qt/gen_qbackingstore.cpp index cdf92ecc..275d1245 100644 --- a/qt/gen_qbackingstore.cpp +++ b/qt/gen_qbackingstore.cpp @@ -71,11 +71,7 @@ void QBackingStore_Flush3(QBackingStore* self, QRegion* region, QWindow* window, self->flush(*region, window, *offset); } -void QBackingStore_Delete(QBackingStore* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBackingStore_Delete(QBackingStore* self) { + delete self; } diff --git a/qt/gen_qbackingstore.go b/qt/gen_qbackingstore.go index dc9caf90..1ac8c087 100644 --- a/qt/gen_qbackingstore.go +++ b/qt/gen_qbackingstore.go @@ -112,7 +112,7 @@ func (this *QBackingStore) Flush3(region *QRegion, window *QWindow, offset *QPoi // Delete this object from C++ memory. func (this *QBackingStore) Delete() { - C.QBackingStore_Delete(this.h, C.bool(this.isSubclass)) + C.QBackingStore_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qbackingstore.h b/qt/gen_qbackingstore.h index 024d69d5..d64c54af 100644 --- a/qt/gen_qbackingstore.h +++ b/qt/gen_qbackingstore.h @@ -44,7 +44,7 @@ QRegion* QBackingStore_StaticContents(const QBackingStore* self); bool QBackingStore_HasStaticContents(const QBackingStore* self); void QBackingStore_Flush2(QBackingStore* self, QRegion* region, QWindow* window); void QBackingStore_Flush3(QBackingStore* self, QRegion* region, QWindow* window, QPoint* offset); -void QBackingStore_Delete(QBackingStore* self, bool isSubclass); +void QBackingStore_Delete(QBackingStore* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qbasictimer.cpp b/qt/gen_qbasictimer.cpp index 7134e8fc..6f18bc0f 100644 --- a/qt/gen_qbasictimer.cpp +++ b/qt/gen_qbasictimer.cpp @@ -47,11 +47,7 @@ void QBasicTimer_Stop(QBasicTimer* self) { self->stop(); } -void QBasicTimer_Delete(QBasicTimer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBasicTimer_Delete(QBasicTimer* self) { + delete self; } diff --git a/qt/gen_qbasictimer.go b/qt/gen_qbasictimer.go index 1930560f..f79f8bf3 100644 --- a/qt/gen_qbasictimer.go +++ b/qt/gen_qbasictimer.go @@ -92,7 +92,7 @@ func (this *QBasicTimer) Stop() { // Delete this object from C++ memory. func (this *QBasicTimer) Delete() { - C.QBasicTimer_Delete(this.h, C.bool(this.isSubclass)) + C.QBasicTimer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qbasictimer.h b/qt/gen_qbasictimer.h index c4aca056..aae4d065 100644 --- a/qt/gen_qbasictimer.h +++ b/qt/gen_qbasictimer.h @@ -31,7 +31,7 @@ int QBasicTimer_TimerId(const QBasicTimer* self); void QBasicTimer_Start(QBasicTimer* self, int msec, QObject* obj); void QBasicTimer_Start2(QBasicTimer* self, int msec, int timerType, QObject* obj); void QBasicTimer_Stop(QBasicTimer* self); -void QBasicTimer_Delete(QBasicTimer* self, bool isSubclass); +void QBasicTimer_Delete(QBasicTimer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qbitarray.cpp b/qt/gen_qbitarray.cpp index 39e642d2..355a4f63 100644 --- a/qt/gen_qbitarray.cpp +++ b/qt/gen_qbitarray.cpp @@ -155,12 +155,8 @@ bool QBitArray_Fill22(QBitArray* self, bool val, int size) { return self->fill(val, static_cast(size)); } -void QBitArray_Delete(QBitArray* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBitArray_Delete(QBitArray* self) { + delete self; } QBitRef* QBitRef_new(QBitRef* param1) { @@ -183,11 +179,7 @@ void QBitRef_OperatorAssignWithVal(QBitRef* self, bool val) { self->operator=(val); } -void QBitRef_Delete(QBitRef* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBitRef_Delete(QBitRef* self) { + delete self; } diff --git a/qt/gen_qbitarray.go b/qt/gen_qbitarray.go index 02f629a5..7e559429 100644 --- a/qt/gen_qbitarray.go +++ b/qt/gen_qbitarray.go @@ -217,7 +217,7 @@ func (this *QBitArray) Fill22(val bool, size int) bool { // Delete this object from C++ memory. func (this *QBitArray) Delete() { - C.QBitArray_Delete(this.h, C.bool(this.isSubclass)) + C.QBitArray_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -288,7 +288,7 @@ func (this *QBitRef) OperatorAssignWithVal(val bool) { // Delete this object from C++ memory. func (this *QBitRef) Delete() { - C.QBitRef_Delete(this.h, C.bool(this.isSubclass)) + C.QBitRef_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qbitarray.h b/qt/gen_qbitarray.h index 8b24f93a..4d6946d0 100644 --- a/qt/gen_qbitarray.h +++ b/qt/gen_qbitarray.h @@ -58,14 +58,14 @@ void QBitArray_Truncate(QBitArray* self, int pos); const char* QBitArray_Bits(const QBitArray* self); QBitArray* QBitArray_FromBits(const char* data, ptrdiff_t lenVal); bool QBitArray_Fill22(QBitArray* self, bool val, int size); -void QBitArray_Delete(QBitArray* self, bool isSubclass); +void QBitArray_Delete(QBitArray* self); QBitRef* QBitRef_new(QBitRef* param1); bool QBitRef_ToBool(const QBitRef* self); bool QBitRef_OperatorNot(const QBitRef* self); void QBitRef_OperatorAssign(QBitRef* self, QBitRef* val); void QBitRef_OperatorAssignWithVal(QBitRef* self, bool val); -void QBitRef_Delete(QBitRef* self, bool isSubclass); +void QBitRef_Delete(QBitRef* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qbitmap.cpp b/qt/gen_qbitmap.cpp index d9f4dbda..2dd1de8a 100644 --- a/qt/gen_qbitmap.cpp +++ b/qt/gen_qbitmap.cpp @@ -24,7 +24,7 @@ int miqt_exec_callback_QBitmap_Metric(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQBitmap : public virtual QBitmap { +class MiqtVirtualQBitmap final : public QBitmap { public: MiqtVirtualQBitmap(): QBitmap() {}; @@ -35,7 +35,7 @@ public: MiqtVirtualQBitmap(const QBitmap& other): QBitmap(other) {}; MiqtVirtualQBitmap(const QString& fileName, const char* format): QBitmap(fileName, format) {}; - virtual ~MiqtVirtualQBitmap() = default; + virtual ~MiqtVirtualQBitmap() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -209,11 +209,7 @@ int QBitmap_virtualbase_Metric(const void* self, int param1) { return ( (const MiqtVirtualQBitmap*)(self) )->virtualbase_Metric(param1); } -void QBitmap_Delete(QBitmap* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBitmap_Delete(QBitmap* self) { + delete self; } diff --git a/qt/gen_qbitmap.go b/qt/gen_qbitmap.go index 0344420b..00ffddea 100644 --- a/qt/gen_qbitmap.go +++ b/qt/gen_qbitmap.go @@ -255,7 +255,7 @@ func miqt_exec_callback_QBitmap_Metric(self *C.QBitmap, cb C.intptr_t, param1 C. // Delete this object from C++ memory. func (this *QBitmap) Delete() { - C.QBitmap_Delete(this.h, C.bool(this.isSubclass)) + C.QBitmap_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qbitmap.h b/qt/gen_qbitmap.h index 4dae31f5..49807ee9 100644 --- a/qt/gen_qbitmap.h +++ b/qt/gen_qbitmap.h @@ -61,7 +61,7 @@ void QBitmap_override_virtual_PaintEngine(void* self, intptr_t slot); QPaintEngine* QBitmap_virtualbase_PaintEngine(const void* self); void QBitmap_override_virtual_Metric(void* self, intptr_t slot); int QBitmap_virtualbase_Metric(const void* self, int param1); -void QBitmap_Delete(QBitmap* self, bool isSubclass); +void QBitmap_Delete(QBitmap* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qboxlayout.cpp b/qt/gen_qboxlayout.cpp index d8e51979..5a65820f 100644 --- a/qt/gen_qboxlayout.cpp +++ b/qt/gen_qboxlayout.cpp @@ -69,13 +69,13 @@ void miqt_exec_callback_QVBoxLayout_SetGeometry(void*, intptr_t, QRect*); } /* extern C */ #endif -class MiqtVirtualQBoxLayout : public virtual QBoxLayout { +class MiqtVirtualQBoxLayout final : public QBoxLayout { public: MiqtVirtualQBoxLayout(QBoxLayout::Direction param1): QBoxLayout(param1) {}; MiqtVirtualQBoxLayout(QBoxLayout::Direction param1, QWidget* parent): QBoxLayout(param1, parent) {}; - virtual ~MiqtVirtualQBoxLayout() = default; + virtual ~MiqtVirtualQBoxLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AddItem = 0; @@ -917,21 +917,17 @@ void QBoxLayout_virtualbase_ChildEvent(void* self, QChildEvent* e) { ( (MiqtVirtualQBoxLayout*)(self) )->virtualbase_ChildEvent(e); } -void QBoxLayout_Delete(QBoxLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBoxLayout_Delete(QBoxLayout* self) { + delete self; } -class MiqtVirtualQHBoxLayout : public virtual QHBoxLayout { +class MiqtVirtualQHBoxLayout final : public QHBoxLayout { public: MiqtVirtualQHBoxLayout(QWidget* parent): QHBoxLayout(parent) {}; MiqtVirtualQHBoxLayout(): QHBoxLayout() {}; - virtual ~MiqtVirtualQHBoxLayout() = default; + virtual ~MiqtVirtualQHBoxLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AddItem = 0; @@ -1423,21 +1419,17 @@ void QHBoxLayout_virtualbase_SetGeometry(void* self, QRect* geometry) { ( (MiqtVirtualQHBoxLayout*)(self) )->virtualbase_SetGeometry(geometry); } -void QHBoxLayout_Delete(QHBoxLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHBoxLayout_Delete(QHBoxLayout* self) { + delete self; } -class MiqtVirtualQVBoxLayout : public virtual QVBoxLayout { +class MiqtVirtualQVBoxLayout final : public QVBoxLayout { public: MiqtVirtualQVBoxLayout(QWidget* parent): QVBoxLayout(parent) {}; MiqtVirtualQVBoxLayout(): QVBoxLayout() {}; - virtual ~MiqtVirtualQVBoxLayout() = default; + virtual ~MiqtVirtualQVBoxLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AddItem = 0; @@ -1929,11 +1921,7 @@ void QVBoxLayout_virtualbase_SetGeometry(void* self, QRect* geometry) { ( (MiqtVirtualQVBoxLayout*)(self) )->virtualbase_SetGeometry(geometry); } -void QVBoxLayout_Delete(QVBoxLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVBoxLayout_Delete(QVBoxLayout* self) { + delete self; } diff --git a/qt/gen_qboxlayout.go b/qt/gen_qboxlayout.go index f8438c8e..9b757f0e 100644 --- a/qt/gen_qboxlayout.go +++ b/qt/gen_qboxlayout.go @@ -821,7 +821,7 @@ func miqt_exec_callback_QBoxLayout_ChildEvent(self *C.QBoxLayout, cb C.intptr_t, // Delete this object from C++ memory. func (this *QBoxLayout) Delete() { - C.QBoxLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QBoxLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1303,7 +1303,7 @@ func miqt_exec_callback_QHBoxLayout_SetGeometry(self *C.QHBoxLayout, cb C.intptr // Delete this object from C++ memory. func (this *QHBoxLayout) Delete() { - C.QHBoxLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QHBoxLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1785,7 +1785,7 @@ func miqt_exec_callback_QVBoxLayout_SetGeometry(self *C.QVBoxLayout, cb C.intptr // Delete this object from C++ memory. func (this *QVBoxLayout) Delete() { - C.QVBoxLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QVBoxLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qboxlayout.h b/qt/gen_qboxlayout.h index 03310e42..69d2fca8 100644 --- a/qt/gen_qboxlayout.h +++ b/qt/gen_qboxlayout.h @@ -132,7 +132,7 @@ void QBoxLayout_override_virtual_Layout(void* self, intptr_t slot); QLayout* QBoxLayout_virtualbase_Layout(void* self); void QBoxLayout_override_virtual_ChildEvent(void* self, intptr_t slot); void QBoxLayout_virtualbase_ChildEvent(void* self, QChildEvent* e); -void QBoxLayout_Delete(QBoxLayout* self, bool isSubclass); +void QBoxLayout_Delete(QBoxLayout* self); QHBoxLayout* QHBoxLayout_new(QWidget* parent); QHBoxLayout* QHBoxLayout_new2(); @@ -171,7 +171,7 @@ void QHBoxLayout_override_virtual_Count(void* self, intptr_t slot); int QHBoxLayout_virtualbase_Count(const void* self); void QHBoxLayout_override_virtual_SetGeometry(void* self, intptr_t slot); void QHBoxLayout_virtualbase_SetGeometry(void* self, QRect* geometry); -void QHBoxLayout_Delete(QHBoxLayout* self, bool isSubclass); +void QHBoxLayout_Delete(QHBoxLayout* self); QVBoxLayout* QVBoxLayout_new(QWidget* parent); QVBoxLayout* QVBoxLayout_new2(); @@ -210,7 +210,7 @@ void QVBoxLayout_override_virtual_Count(void* self, intptr_t slot); int QVBoxLayout_virtualbase_Count(const void* self); void QVBoxLayout_override_virtual_SetGeometry(void* self, intptr_t slot); void QVBoxLayout_virtualbase_SetGeometry(void* self, QRect* geometry); -void QVBoxLayout_Delete(QVBoxLayout* self, bool isSubclass); +void QVBoxLayout_Delete(QVBoxLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qbrush.cpp b/qt/gen_qbrush.cpp index 5c4bb12e..64e3ad0a 100644 --- a/qt/gen_qbrush.cpp +++ b/qt/gen_qbrush.cpp @@ -162,12 +162,8 @@ bool QBrush_IsDetached(const QBrush* self) { return self->isDetached(); } -void QBrush_Delete(QBrush* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBrush_Delete(QBrush* self) { + delete self; } QBrushData* QBrushData_new(QBrushData* param1) { @@ -178,12 +174,8 @@ void QBrushData_OperatorAssign(QBrushData* self, QBrushData* param1) { self->operator=(*param1); } -void QBrushData_Delete(QBrushData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBrushData_Delete(QBrushData* self) { + delete self; } QGradient* QGradient_new() { @@ -280,12 +272,8 @@ bool QGradient_OperatorNotEqual(const QGradient* self, QGradient* other) { return (*self != *other); } -void QGradient_Delete(QGradient* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGradient_Delete(QGradient* self) { + delete self; } QLinearGradient* QLinearGradient_new() { @@ -332,12 +320,8 @@ void QLinearGradient_SetFinalStop2(QLinearGradient* self, double x, double y) { self->setFinalStop(static_cast(x), static_cast(y)); } -void QLinearGradient_Delete(QLinearGradient* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLinearGradient_Delete(QLinearGradient* self) { + delete self; } QRadialGradient* QRadialGradient_new() { @@ -427,12 +411,8 @@ void QRadialGradient_SetFocalRadius(QRadialGradient* self, double radius) { self->setFocalRadius(static_cast(radius)); } -void QRadialGradient_Delete(QRadialGradient* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRadialGradient_Delete(QRadialGradient* self) { + delete self; } QConicalGradient* QConicalGradient_new() { @@ -476,12 +456,8 @@ void QConicalGradient_SetAngle(QConicalGradient* self, double angle) { self->setAngle(static_cast(angle)); } -void QConicalGradient_Delete(QConicalGradient* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QConicalGradient_Delete(QConicalGradient* self) { + delete self; } QGradient__QGradientData* QGradient__QGradientData_new(QGradient__QGradientData* param1) { @@ -492,11 +468,7 @@ void QGradient__QGradientData_OperatorAssign(QGradient__QGradientData* self, QGr self->operator=(*param1); } -void QGradient__QGradientData_Delete(QGradient__QGradientData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGradient__QGradientData_Delete(QGradient__QGradientData* self) { + delete self; } diff --git a/qt/gen_qbrush.go b/qt/gen_qbrush.go index d13197f3..64bb755f 100644 --- a/qt/gen_qbrush.go +++ b/qt/gen_qbrush.go @@ -443,7 +443,7 @@ func (this *QBrush) IsDetached() bool { // Delete this object from C++ memory. func (this *QBrush) Delete() { - C.QBrush_Delete(this.h, C.bool(this.isSubclass)) + C.QBrush_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -502,7 +502,7 @@ func (this *QBrushData) OperatorAssign(param1 *QBrushData) { // Delete this object from C++ memory. func (this *QBrushData) Delete() { - C.QBrushData_Delete(this.h, C.bool(this.isSubclass)) + C.QBrushData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -665,7 +665,7 @@ func (this *QGradient) OperatorNotEqual(other *QGradient) bool { // Delete this object from C++ memory. func (this *QGradient) Delete() { - C.QGradient_Delete(this.h, C.bool(this.isSubclass)) + C.QGradient_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -776,7 +776,7 @@ func (this *QLinearGradient) SetFinalStop2(x float64, y float64) { // Delete this object from C++ memory. func (this *QLinearGradient) Delete() { - C.QLinearGradient_Delete(this.h, C.bool(this.isSubclass)) + C.QLinearGradient_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -943,7 +943,7 @@ func (this *QRadialGradient) SetFocalRadius(radius float64) { // Delete this object from C++ memory. func (this *QRadialGradient) Delete() { - C.QRadialGradient_Delete(this.h, C.bool(this.isSubclass)) + C.QRadialGradient_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1048,7 +1048,7 @@ func (this *QConicalGradient) SetAngle(angle float64) { // Delete this object from C++ memory. func (this *QConicalGradient) Delete() { - C.QConicalGradient_Delete(this.h, C.bool(this.isSubclass)) + C.QConicalGradient_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1107,7 +1107,7 @@ func (this *QGradient__QGradientData) OperatorAssign(param1 *QGradient__QGradien // Delete this object from C++ memory. func (this *QGradient__QGradientData) Delete() { - C.QGradient__QGradientData_Delete(this.h, C.bool(this.isSubclass)) + C.QGradient__QGradientData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qbrush.h b/qt/gen_qbrush.h index 8c3b1f9d..3c7c215e 100644 --- a/qt/gen_qbrush.h +++ b/qt/gen_qbrush.h @@ -83,11 +83,11 @@ bool QBrush_IsOpaque(const QBrush* self); bool QBrush_OperatorEqual(const QBrush* self, QBrush* b); bool QBrush_OperatorNotEqual(const QBrush* self, QBrush* b); bool QBrush_IsDetached(const QBrush* self); -void QBrush_Delete(QBrush* self, bool isSubclass); +void QBrush_Delete(QBrush* self); QBrushData* QBrushData_new(QBrushData* param1); void QBrushData_OperatorAssign(QBrushData* self, QBrushData* param1); -void QBrushData_Delete(QBrushData* self, bool isSubclass); +void QBrushData_Delete(QBrushData* self); QGradient* QGradient_new(); QGradient* QGradient_new2(int param1); @@ -104,7 +104,7 @@ int QGradient_InterpolationMode(const QGradient* self); void QGradient_SetInterpolationMode(QGradient* self, int mode); bool QGradient_OperatorEqual(const QGradient* self, QGradient* gradient); bool QGradient_OperatorNotEqual(const QGradient* self, QGradient* other); -void QGradient_Delete(QGradient* self, bool isSubclass); +void QGradient_Delete(QGradient* self); QLinearGradient* QLinearGradient_new(); QLinearGradient* QLinearGradient_new2(QPointF* start, QPointF* finalStop); @@ -117,7 +117,7 @@ void QLinearGradient_SetStart2(QLinearGradient* self, double x, double y); QPointF* QLinearGradient_FinalStop(const QLinearGradient* self); void QLinearGradient_SetFinalStop(QLinearGradient* self, QPointF* stop); void QLinearGradient_SetFinalStop2(QLinearGradient* self, double x, double y); -void QLinearGradient_Delete(QLinearGradient* self, bool isSubclass); +void QLinearGradient_Delete(QLinearGradient* self); QRadialGradient* QRadialGradient_new(); QRadialGradient* QRadialGradient_new2(QPointF* center, double radius, QPointF* focalPoint); @@ -140,7 +140,7 @@ double QRadialGradient_CenterRadius(const QRadialGradient* self); void QRadialGradient_SetCenterRadius(QRadialGradient* self, double radius); double QRadialGradient_FocalRadius(const QRadialGradient* self); void QRadialGradient_SetFocalRadius(QRadialGradient* self, double radius); -void QRadialGradient_Delete(QRadialGradient* self, bool isSubclass); +void QRadialGradient_Delete(QRadialGradient* self); QConicalGradient* QConicalGradient_new(); QConicalGradient* QConicalGradient_new2(QPointF* center, double startAngle); @@ -152,11 +152,11 @@ void QConicalGradient_SetCenter(QConicalGradient* self, QPointF* center); void QConicalGradient_SetCenter2(QConicalGradient* self, double x, double y); double QConicalGradient_Angle(const QConicalGradient* self); void QConicalGradient_SetAngle(QConicalGradient* self, double angle); -void QConicalGradient_Delete(QConicalGradient* self, bool isSubclass); +void QConicalGradient_Delete(QConicalGradient* self); QGradient__QGradientData* QGradient__QGradientData_new(QGradient__QGradientData* param1); void QGradient__QGradientData_OperatorAssign(QGradient__QGradientData* self, QGradient__QGradientData* param1); -void QGradient__QGradientData_Delete(QGradient__QGradientData* self, bool isSubclass); +void QGradient__QGradientData_Delete(QGradient__QGradientData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qbuffer.cpp b/qt/gen_qbuffer.cpp index d2c58611..6657e96d 100644 --- a/qt/gen_qbuffer.cpp +++ b/qt/gen_qbuffer.cpp @@ -36,13 +36,13 @@ long long miqt_exec_callback_QBuffer_ReadLineData(void*, intptr_t, char*, long l } /* extern C */ #endif -class MiqtVirtualQBuffer : public virtual QBuffer { +class MiqtVirtualQBuffer final : public QBuffer { public: MiqtVirtualQBuffer(): QBuffer() {}; MiqtVirtualQBuffer(QObject* parent): QBuffer(parent) {}; - virtual ~MiqtVirtualQBuffer() = default; + virtual ~MiqtVirtualQBuffer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Open = 0; @@ -769,11 +769,7 @@ long long QBuffer_virtualbase_ReadLineData(void* self, char* data, long long max return ( (MiqtVirtualQBuffer*)(self) )->virtualbase_ReadLineData(data, maxlen); } -void QBuffer_Delete(QBuffer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBuffer_Delete(QBuffer* self) { + delete self; } diff --git a/qt/gen_qbuffer.go b/qt/gen_qbuffer.go index d051e2f5..01fdfc2e 100644 --- a/qt/gen_qbuffer.go +++ b/qt/gen_qbuffer.go @@ -689,7 +689,7 @@ func miqt_exec_callback_QBuffer_ReadLineData(self *C.QBuffer, cb C.intptr_t, dat // Delete this object from C++ memory. func (this *QBuffer) Delete() { - C.QBuffer_Delete(this.h, C.bool(this.isSubclass)) + C.QBuffer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qbuffer.h b/qt/gen_qbuffer.h index 0a7bfd44..77de7c77 100644 --- a/qt/gen_qbuffer.h +++ b/qt/gen_qbuffer.h @@ -91,7 +91,7 @@ void QBuffer_override_virtual_WaitForBytesWritten(void* self, intptr_t slot); bool QBuffer_virtualbase_WaitForBytesWritten(void* self, int msecs); void QBuffer_override_virtual_ReadLineData(void* self, intptr_t slot); long long QBuffer_virtualbase_ReadLineData(void* self, char* data, long long maxlen); -void QBuffer_Delete(QBuffer* self, bool isSubclass); +void QBuffer_Delete(QBuffer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qbuttongroup.cpp b/qt/gen_qbuttongroup.cpp index 6afdbc88..c57b7dd6 100644 --- a/qt/gen_qbuttongroup.cpp +++ b/qt/gen_qbuttongroup.cpp @@ -40,13 +40,13 @@ void miqt_exec_callback_QButtonGroup_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQButtonGroup : public virtual QButtonGroup { +class MiqtVirtualQButtonGroup final : public QButtonGroup { public: MiqtVirtualQButtonGroup(): QButtonGroup() {}; MiqtVirtualQButtonGroup(QObject* parent): QButtonGroup(parent) {}; - virtual ~MiqtVirtualQButtonGroup() = default; + virtual ~MiqtVirtualQButtonGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -551,11 +551,7 @@ void QButtonGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQButtonGroup*)(self) )->virtualbase_DisconnectNotify(signal); } -void QButtonGroup_Delete(QButtonGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QButtonGroup_Delete(QButtonGroup* self) { + delete self; } diff --git a/qt/gen_qbuttongroup.go b/qt/gen_qbuttongroup.go index 1513e5dd..a880d9f6 100644 --- a/qt/gen_qbuttongroup.go +++ b/qt/gen_qbuttongroup.go @@ -625,7 +625,7 @@ func miqt_exec_callback_QButtonGroup_DisconnectNotify(self *C.QButtonGroup, cb C // Delete this object from C++ memory. func (this *QButtonGroup) Delete() { - C.QButtonGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QButtonGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qbuttongroup.h b/qt/gen_qbuttongroup.h index dca090d0..3c1d7d1a 100644 --- a/qt/gen_qbuttongroup.h +++ b/qt/gen_qbuttongroup.h @@ -94,7 +94,7 @@ void QButtonGroup_override_virtual_ConnectNotify(void* self, intptr_t slot); void QButtonGroup_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QButtonGroup_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QButtonGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QButtonGroup_Delete(QButtonGroup* self, bool isSubclass); +void QButtonGroup_Delete(QButtonGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qbytearraymatcher.cpp b/qt/gen_qbytearraymatcher.cpp index e5018019..06ccd04e 100644 --- a/qt/gen_qbytearraymatcher.cpp +++ b/qt/gen_qbytearraymatcher.cpp @@ -65,19 +65,11 @@ int QByteArrayMatcher_IndexIn3(const QByteArrayMatcher* self, const char* str, i return self->indexIn(str, static_cast(lenVal), static_cast(from)); } -void QByteArrayMatcher_Delete(QByteArrayMatcher* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QByteArrayMatcher_Delete(QByteArrayMatcher* self) { + delete self; } -void QStaticByteArrayMatcherBase_Delete(QStaticByteArrayMatcherBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStaticByteArrayMatcherBase_Delete(QStaticByteArrayMatcherBase* self) { + delete self; } diff --git a/qt/gen_qbytearraymatcher.go b/qt/gen_qbytearraymatcher.go index ead60a10..261805b0 100644 --- a/qt/gen_qbytearraymatcher.go +++ b/qt/gen_qbytearraymatcher.go @@ -129,7 +129,7 @@ func (this *QByteArrayMatcher) IndexIn3(str string, lenVal int, from int) int { // Delete this object from C++ memory. func (this *QByteArrayMatcher) Delete() { - C.QByteArrayMatcher_Delete(this.h, C.bool(this.isSubclass)) + C.QByteArrayMatcher_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -176,7 +176,7 @@ func UnsafeNewQStaticByteArrayMatcherBase(h unsafe.Pointer) *QStaticByteArrayMat // Delete this object from C++ memory. func (this *QStaticByteArrayMatcherBase) Delete() { - C.QStaticByteArrayMatcherBase_Delete(this.h, C.bool(this.isSubclass)) + C.QStaticByteArrayMatcherBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qbytearraymatcher.h b/qt/gen_qbytearraymatcher.h index be5e62fe..aa5985b5 100644 --- a/qt/gen_qbytearraymatcher.h +++ b/qt/gen_qbytearraymatcher.h @@ -33,9 +33,9 @@ int QByteArrayMatcher_IndexIn2(const QByteArrayMatcher* self, const char* str, i struct miqt_string QByteArrayMatcher_Pattern(const QByteArrayMatcher* self); int QByteArrayMatcher_IndexIn22(const QByteArrayMatcher* self, struct miqt_string ba, int from); int QByteArrayMatcher_IndexIn3(const QByteArrayMatcher* self, const char* str, int lenVal, int from); -void QByteArrayMatcher_Delete(QByteArrayMatcher* self, bool isSubclass); +void QByteArrayMatcher_Delete(QByteArrayMatcher* self); -void QStaticByteArrayMatcherBase_Delete(QStaticByteArrayMatcherBase* self, bool isSubclass); +void QStaticByteArrayMatcherBase_Delete(QStaticByteArrayMatcherBase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcalendar.cpp b/qt/gen_qcalendar.cpp index 54f08bad..5d2fc80a 100644 --- a/qt/gen_qcalendar.cpp +++ b/qt/gen_qcalendar.cpp @@ -246,12 +246,8 @@ struct miqt_string QCalendar_StandaloneWeekDayName3(const QCalendar* self, QLoca return _ms; } -void QCalendar_Delete(QCalendar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCalendar_Delete(QCalendar* self) { + delete self; } QCalendar__YearMonthDay* QCalendar__YearMonthDay_new() { @@ -274,11 +270,7 @@ bool QCalendar__YearMonthDay_IsValid(const QCalendar__YearMonthDay* self) { return self->isValid(); } -void QCalendar__YearMonthDay_Delete(QCalendar__YearMonthDay* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCalendar__YearMonthDay_Delete(QCalendar__YearMonthDay* self) { + delete self; } diff --git a/qt/gen_qcalendar.go b/qt/gen_qcalendar.go index 1379f31f..ac496508 100644 --- a/qt/gen_qcalendar.go +++ b/qt/gen_qcalendar.go @@ -258,7 +258,7 @@ func (this *QCalendar) StandaloneWeekDayName3(locale *QLocale, day int, format Q // Delete this object from C++ memory. func (this *QCalendar) Delete() { - C.QCalendar_Delete(this.h, C.bool(this.isSubclass)) + C.QCalendar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -341,7 +341,7 @@ func (this *QCalendar__YearMonthDay) IsValid() bool { // Delete this object from C++ memory. func (this *QCalendar__YearMonthDay) Delete() { - C.QCalendar__YearMonthDay_Delete(this.h, C.bool(this.isSubclass)) + C.QCalendar__YearMonthDay_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcalendar.h b/qt/gen_qcalendar.h index 6f7f34e3..83c4e86d 100644 --- a/qt/gen_qcalendar.h +++ b/qt/gen_qcalendar.h @@ -64,14 +64,14 @@ struct miqt_string QCalendar_StandaloneMonthName3(const QCalendar* self, QLocale struct miqt_string QCalendar_StandaloneMonthName4(const QCalendar* self, QLocale* locale, int month, int year, int format); struct miqt_string QCalendar_WeekDayName3(const QCalendar* self, QLocale* locale, int day, int format); struct miqt_string QCalendar_StandaloneWeekDayName3(const QCalendar* self, QLocale* locale, int day, int format); -void QCalendar_Delete(QCalendar* self, bool isSubclass); +void QCalendar_Delete(QCalendar* self); QCalendar__YearMonthDay* QCalendar__YearMonthDay_new(); QCalendar__YearMonthDay* QCalendar__YearMonthDay_new2(int y); QCalendar__YearMonthDay* QCalendar__YearMonthDay_new3(int y, int m); QCalendar__YearMonthDay* QCalendar__YearMonthDay_new4(int y, int m, int d); bool QCalendar__YearMonthDay_IsValid(const QCalendar__YearMonthDay* self); -void QCalendar__YearMonthDay_Delete(QCalendar__YearMonthDay* self, bool isSubclass); +void QCalendar__YearMonthDay_Delete(QCalendar__YearMonthDay* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcalendarwidget.cpp b/qt/gen_qcalendarwidget.cpp index 68c7154a..f7b81ac6 100644 --- a/qt/gen_qcalendarwidget.cpp +++ b/qt/gen_qcalendarwidget.cpp @@ -94,13 +94,13 @@ bool miqt_exec_callback_QCalendarWidget_FocusNextPrevChild(void*, intptr_t, bool } /* extern C */ #endif -class MiqtVirtualQCalendarWidget : public virtual QCalendarWidget { +class MiqtVirtualQCalendarWidget final : public QCalendarWidget { public: MiqtVirtualQCalendarWidget(QWidget* parent): QCalendarWidget(parent) {}; MiqtVirtualQCalendarWidget(): QCalendarWidget() {}; - virtual ~MiqtVirtualQCalendarWidget() = default; + virtual ~MiqtVirtualQCalendarWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1801,11 +1801,7 @@ bool QCalendarWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQCalendarWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QCalendarWidget_Delete(QCalendarWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCalendarWidget_Delete(QCalendarWidget* self) { + delete self; } diff --git a/qt/gen_qcalendarwidget.go b/qt/gen_qcalendarwidget.go index 1937b903..f209d043 100644 --- a/qt/gen_qcalendarwidget.go +++ b/qt/gen_qcalendarwidget.go @@ -1597,7 +1597,7 @@ func miqt_exec_callback_QCalendarWidget_FocusNextPrevChild(self *C.QCalendarWidg // Delete this object from C++ memory. func (this *QCalendarWidget) Delete() { - C.QCalendarWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QCalendarWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcalendarwidget.h b/qt/gen_qcalendarwidget.h index 9cb30fcf..903f0084 100644 --- a/qt/gen_qcalendarwidget.h +++ b/qt/gen_qcalendarwidget.h @@ -238,7 +238,7 @@ void QCalendarWidget_override_virtual_InputMethodQuery(void* self, intptr_t slot QVariant* QCalendarWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QCalendarWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QCalendarWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QCalendarWidget_Delete(QCalendarWidget* self, bool isSubclass); +void QCalendarWidget_Delete(QCalendarWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qchar.cpp b/qt/gen_qchar.cpp index edda3f68..48094b84 100644 --- a/qt/gen_qchar.cpp +++ b/qt/gen_qchar.cpp @@ -31,12 +31,8 @@ uint16_t QLatin1Char_Unicode(const QLatin1Char* self) { return static_cast(_ret); } -void QLatin1Char_Delete(QLatin1Char* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLatin1Char_Delete(QLatin1Char* self) { + delete self; } QChar* QChar_new() { @@ -436,11 +432,7 @@ bool QChar_IsTitleCaseWithUcs4(unsigned int ucs4) { return QChar::isTitleCase(static_cast(ucs4)); } -void QChar_Delete(QChar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QChar_Delete(QChar* self) { + delete self; } diff --git a/qt/gen_qchar.go b/qt/gen_qchar.go index 84eb6570..fc037a16 100644 --- a/qt/gen_qchar.go +++ b/qt/gen_qchar.go @@ -414,7 +414,7 @@ func (this *QLatin1Char) Unicode() uint16 { // Delete this object from C++ memory. func (this *QLatin1Char) Delete() { - C.QLatin1Char_Delete(this.h, C.bool(this.isSubclass)) + C.QLatin1Char_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -879,7 +879,7 @@ func QChar_IsTitleCaseWithUcs4(ucs4 uint) bool { // Delete this object from C++ memory. func (this *QChar) Delete() { - C.QChar_Delete(this.h, C.bool(this.isSubclass)) + C.QChar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qchar.h b/qt/gen_qchar.h index 6c22844c..89fde30f 100644 --- a/qt/gen_qchar.h +++ b/qt/gen_qchar.h @@ -26,7 +26,7 @@ QLatin1Char* QLatin1Char_new(char c); QLatin1Char* QLatin1Char_new2(QLatin1Char* param1); char QLatin1Char_ToLatin1(const QLatin1Char* self); uint16_t QLatin1Char_Unicode(const QLatin1Char* self); -void QLatin1Char_Delete(QLatin1Char* self, bool isSubclass); +void QLatin1Char_Delete(QLatin1Char* self); QChar* QChar_new(); QChar* QChar_new2(uint16_t rc); @@ -117,7 +117,7 @@ bool QChar_IsDigitWithUcs4(unsigned int ucs4); bool QChar_IsLowerWithUcs4(unsigned int ucs4); bool QChar_IsUpperWithUcs4(unsigned int ucs4); bool QChar_IsTitleCaseWithUcs4(unsigned int ucs4); -void QChar_Delete(QChar* self, bool isSubclass); +void QChar_Delete(QChar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcheckbox.cpp b/qt/gen_qcheckbox.cpp index 09158004..becc825d 100644 --- a/qt/gen_qcheckbox.cpp +++ b/qt/gen_qcheckbox.cpp @@ -43,7 +43,7 @@ void miqt_exec_callback_QCheckBox_TimerEvent(void*, intptr_t, QTimerEvent*); } /* extern C */ #endif -class MiqtVirtualQCheckBox : public virtual QCheckBox { +class MiqtVirtualQCheckBox final : public QCheckBox { public: MiqtVirtualQCheckBox(QWidget* parent): QCheckBox(parent) {}; @@ -51,7 +51,7 @@ public: MiqtVirtualQCheckBox(const QString& text): QCheckBox(text) {}; MiqtVirtualQCheckBox(const QString& text, QWidget* parent): QCheckBox(text, parent) {}; - virtual ~MiqtVirtualQCheckBox() = default; + virtual ~MiqtVirtualQCheckBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -697,11 +697,7 @@ void QCheckBox_virtualbase_TimerEvent(void* self, QTimerEvent* e) { ( (MiqtVirtualQCheckBox*)(self) )->virtualbase_TimerEvent(e); } -void QCheckBox_Delete(QCheckBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCheckBox_Delete(QCheckBox* self) { + delete self; } diff --git a/qt/gen_qcheckbox.go b/qt/gen_qcheckbox.go index 2467d850..cb0877d5 100644 --- a/qt/gen_qcheckbox.go +++ b/qt/gen_qcheckbox.go @@ -633,7 +633,7 @@ func miqt_exec_callback_QCheckBox_TimerEvent(self *C.QCheckBox, cb C.intptr_t, e // Delete this object from C++ memory. func (this *QCheckBox) Delete() { - C.QCheckBox_Delete(this.h, C.bool(this.isSubclass)) + C.QCheckBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcheckbox.h b/qt/gen_qcheckbox.h index 7736a962..1fbf6b7c 100644 --- a/qt/gen_qcheckbox.h +++ b/qt/gen_qcheckbox.h @@ -106,7 +106,7 @@ void QCheckBox_override_virtual_ChangeEvent(void* self, intptr_t slot); void QCheckBox_virtualbase_ChangeEvent(void* self, QEvent* e); void QCheckBox_override_virtual_TimerEvent(void* self, intptr_t slot); void QCheckBox_virtualbase_TimerEvent(void* self, QTimerEvent* e); -void QCheckBox_Delete(QCheckBox* self, bool isSubclass); +void QCheckBox_Delete(QCheckBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcollator.cpp b/qt/gen_qcollator.cpp index d432a0d5..eb42519d 100644 --- a/qt/gen_qcollator.cpp +++ b/qt/gen_qcollator.cpp @@ -32,12 +32,8 @@ int QCollatorSortKey_Compare(const QCollatorSortKey* self, QCollatorSortKey* key return self->compare(*key); } -void QCollatorSortKey_Delete(QCollatorSortKey* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCollatorSortKey_Delete(QCollatorSortKey* self) { + delete self; } QCollator* QCollator_new() { @@ -114,11 +110,7 @@ QCollatorSortKey* QCollator_SortKey(const QCollator* self, struct miqt_string st return new QCollatorSortKey(self->sortKey(stringVal_QString)); } -void QCollator_Delete(QCollator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCollator_Delete(QCollator* self) { + delete self; } diff --git a/qt/gen_qcollator.go b/qt/gen_qcollator.go index e2202dd9..5d1345d8 100644 --- a/qt/gen_qcollator.go +++ b/qt/gen_qcollator.go @@ -68,7 +68,7 @@ func (this *QCollatorSortKey) Compare(key *QCollatorSortKey) int { // Delete this object from C++ memory. func (this *QCollatorSortKey) Delete() { - C.QCollatorSortKey_Delete(this.h, C.bool(this.isSubclass)) + C.QCollatorSortKey_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -219,7 +219,7 @@ func (this *QCollator) SortKey(stringVal string) *QCollatorSortKey { // Delete this object from C++ memory. func (this *QCollator) Delete() { - C.QCollator_Delete(this.h, C.bool(this.isSubclass)) + C.QCollator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcollator.h b/qt/gen_qcollator.h index d3b5f07d..a5401369 100644 --- a/qt/gen_qcollator.h +++ b/qt/gen_qcollator.h @@ -30,7 +30,7 @@ QCollatorSortKey* QCollatorSortKey_new(QCollatorSortKey* other); void QCollatorSortKey_OperatorAssign(QCollatorSortKey* self, QCollatorSortKey* other); void QCollatorSortKey_Swap(QCollatorSortKey* self, QCollatorSortKey* other); int QCollatorSortKey_Compare(const QCollatorSortKey* self, QCollatorSortKey* key); -void QCollatorSortKey_Delete(QCollatorSortKey* self, bool isSubclass); +void QCollatorSortKey_Delete(QCollatorSortKey* self); QCollator* QCollator_new(); QCollator* QCollator_new2(QLocale* locale); @@ -49,7 +49,7 @@ int QCollator_Compare(const QCollator* self, struct miqt_string s1, struct miqt_ int QCollator_Compare3(const QCollator* self, QChar* s1, int len1, QChar* s2, int len2); bool QCollator_OperatorCall(const QCollator* self, struct miqt_string s1, struct miqt_string s2); QCollatorSortKey* QCollator_SortKey(const QCollator* self, struct miqt_string stringVal); -void QCollator_Delete(QCollator* self, bool isSubclass); +void QCollator_Delete(QCollator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcolor.cpp b/qt/gen_qcolor.cpp index 9cd20ec1..f4a45c41 100644 --- a/qt/gen_qcolor.cpp +++ b/qt/gen_qcolor.cpp @@ -632,11 +632,7 @@ QColor* QColor_Darker1(const QColor* self, int f) { return new QColor(self->darker(static_cast(f))); } -void QColor_Delete(QColor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColor_Delete(QColor* self) { + delete self; } diff --git a/qt/gen_qcolor.go b/qt/gen_qcolor.go index 950d4e13..1132f732 100644 --- a/qt/gen_qcolor.go +++ b/qt/gen_qcolor.go @@ -781,7 +781,7 @@ func (this *QColor) Darker1(f int) *QColor { // Delete this object from C++ memory. func (this *QColor) Delete() { - C.QColor_Delete(this.h, C.bool(this.isSubclass)) + C.QColor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcolor.h b/qt/gen_qcolor.h index 70188557..9534efd5 100644 --- a/qt/gen_qcolor.h +++ b/qt/gen_qcolor.h @@ -165,7 +165,7 @@ QColor* QColor_Light1(const QColor* self, int f); QColor* QColor_Dark1(const QColor* self, int f); QColor* QColor_Lighter1(const QColor* self, int f); QColor* QColor_Darker1(const QColor* self, int f); -void QColor_Delete(QColor* self, bool isSubclass); +void QColor_Delete(QColor* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcolordialog.cpp b/qt/gen_qcolordialog.cpp index 94d66a65..8d30cc9d 100644 --- a/qt/gen_qcolordialog.cpp +++ b/qt/gen_qcolordialog.cpp @@ -43,7 +43,7 @@ bool miqt_exec_callback_QColorDialog_EventFilter(void*, intptr_t, QObject*, QEve } /* extern C */ #endif -class MiqtVirtualQColorDialog : public virtual QColorDialog { +class MiqtVirtualQColorDialog final : public QColorDialog { public: MiqtVirtualQColorDialog(QWidget* parent): QColorDialog(parent) {}; @@ -51,7 +51,7 @@ public: MiqtVirtualQColorDialog(const QColor& initial): QColorDialog(initial) {}; MiqtVirtualQColorDialog(const QColor& initial, QWidget* parent): QColorDialog(initial, parent) {}; - virtual ~MiqtVirtualQColorDialog() = default; + virtual ~MiqtVirtualQColorDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -745,11 +745,7 @@ bool QColorDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* p return ( (MiqtVirtualQColorDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QColorDialog_Delete(QColorDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColorDialog_Delete(QColorDialog* self) { + delete self; } diff --git a/qt/gen_qcolordialog.go b/qt/gen_qcolordialog.go index 6d461b61..aa2b5c69 100644 --- a/qt/gen_qcolordialog.go +++ b/qt/gen_qcolordialog.go @@ -709,7 +709,7 @@ func miqt_exec_callback_QColorDialog_EventFilter(self *C.QColorDialog, cb C.intp // Delete this object from C++ memory. func (this *QColorDialog) Delete() { - C.QColorDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QColorDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcolordialog.h b/qt/gen_qcolordialog.h index e657cd4e..337460f9 100644 --- a/qt/gen_qcolordialog.h +++ b/qt/gen_qcolordialog.h @@ -118,7 +118,7 @@ void QColorDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QColorDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QColorDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QColorDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QColorDialog_Delete(QColorDialog* self, bool isSubclass); +void QColorDialog_Delete(QColorDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcolormap.cpp b/qt/gen_qcolormap.cpp index 9bfbc812..7778c71c 100644 --- a/qt/gen_qcolormap.cpp +++ b/qt/gen_qcolormap.cpp @@ -71,11 +71,7 @@ QColormap* QColormap_Instance1(int screen) { return new QColormap(QColormap::instance(static_cast(screen))); } -void QColormap_Delete(QColormap* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColormap_Delete(QColormap* self) { + delete self; } diff --git a/qt/gen_qcolormap.go b/qt/gen_qcolormap.go index cc5b38f3..ada1a0da 100644 --- a/qt/gen_qcolormap.go +++ b/qt/gen_qcolormap.go @@ -122,7 +122,7 @@ func QColormap_Instance1(screen int) *QColormap { // Delete this object from C++ memory. func (this *QColormap) Delete() { - C.QColormap_Delete(this.h, C.bool(this.isSubclass)) + C.QColormap_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcolormap.h b/qt/gen_qcolormap.h index 5d144972..6ac28e03 100644 --- a/qt/gen_qcolormap.h +++ b/qt/gen_qcolormap.h @@ -34,7 +34,7 @@ unsigned int QColormap_Pixel(const QColormap* self, QColor* color); QColor* QColormap_ColorAt(const QColormap* self, unsigned int pixel); struct miqt_array /* of QColor* */ QColormap_Colormap(const QColormap* self); QColormap* QColormap_Instance1(int screen); -void QColormap_Delete(QColormap* self, bool isSubclass); +void QColormap_Delete(QColormap* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcolorspace.cpp b/qt/gen_qcolorspace.cpp index af8b1638..c80cb1b7 100644 --- a/qt/gen_qcolorspace.cpp +++ b/qt/gen_qcolorspace.cpp @@ -118,11 +118,7 @@ QColorSpace* QColorSpace_WithTransferFunction2(const QColorSpace* self, int tran return new QColorSpace(self->withTransferFunction(static_cast(transferFunction), static_cast(gamma))); } -void QColorSpace_Delete(QColorSpace* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColorSpace_Delete(QColorSpace* self) { + delete self; } diff --git a/qt/gen_qcolorspace.go b/qt/gen_qcolorspace.go index fe98cfe8..92484b46 100644 --- a/qt/gen_qcolorspace.go +++ b/qt/gen_qcolorspace.go @@ -222,7 +222,7 @@ func (this *QColorSpace) WithTransferFunction2(transferFunction QColorSpace__Tra // Delete this object from C++ memory. func (this *QColorSpace) Delete() { - C.QColorSpace_Delete(this.h, C.bool(this.isSubclass)) + C.QColorSpace_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcolorspace.h b/qt/gen_qcolorspace.h index ced0e9fa..8ec9e34e 100644 --- a/qt/gen_qcolorspace.h +++ b/qt/gen_qcolorspace.h @@ -50,7 +50,7 @@ QColorTransform* QColorSpace_TransformationToColorSpace(const QColorSpace* self, QVariant* QColorSpace_ToQVariant(const QColorSpace* self); void QColorSpace_SetTransferFunction2(QColorSpace* self, int transferFunction, float gamma); QColorSpace* QColorSpace_WithTransferFunction2(const QColorSpace* self, int transferFunction, float gamma); -void QColorSpace_Delete(QColorSpace* self, bool isSubclass); +void QColorSpace_Delete(QColorSpace* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcolortransform.cpp b/qt/gen_qcolortransform.cpp index 51df3c14..f596b0a7 100644 --- a/qt/gen_qcolortransform.cpp +++ b/qt/gen_qcolortransform.cpp @@ -41,11 +41,7 @@ QColor* QColorTransform_MapWithColor(const QColorTransform* self, QColor* color) return new QColor(self->map(*color)); } -void QColorTransform_Delete(QColorTransform* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColorTransform_Delete(QColorTransform* self) { + delete self; } diff --git a/qt/gen_qcolortransform.go b/qt/gen_qcolortransform.go index 7c409c02..497371a8 100644 --- a/qt/gen_qcolortransform.go +++ b/qt/gen_qcolortransform.go @@ -88,7 +88,7 @@ func (this *QColorTransform) MapWithColor(color *QColor) *QColor { // Delete this object from C++ memory. func (this *QColorTransform) Delete() { - C.QColorTransform_Delete(this.h, C.bool(this.isSubclass)) + C.QColorTransform_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcolortransform.h b/qt/gen_qcolortransform.h index 375dae2f..8c609332 100644 --- a/qt/gen_qcolortransform.h +++ b/qt/gen_qcolortransform.h @@ -31,7 +31,7 @@ void QColorTransform_Swap(QColorTransform* self, QColorTransform* other); unsigned int QColorTransform_Map(const QColorTransform* self, unsigned int argb); QRgba64* QColorTransform_MapWithRgba64(const QColorTransform* self, QRgba64* rgba64); QColor* QColorTransform_MapWithColor(const QColorTransform* self, QColor* color); -void QColorTransform_Delete(QColorTransform* self, bool isSubclass); +void QColorTransform_Delete(QColorTransform* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcolumnview.cpp b/qt/gen_qcolumnview.cpp index 1ce8b873..b527cb64 100644 --- a/qt/gen_qcolumnview.cpp +++ b/qt/gen_qcolumnview.cpp @@ -104,13 +104,13 @@ QSize* miqt_exec_callback_QColumnView_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQColumnView : public virtual QColumnView { +class MiqtVirtualQColumnView final : public QColumnView { public: MiqtVirtualQColumnView(QWidget* parent): QColumnView(parent) {}; MiqtVirtualQColumnView(): QColumnView() {}; - virtual ~MiqtVirtualQColumnView() = default; + virtual ~MiqtVirtualQColumnView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IndexAt = 0; @@ -2303,11 +2303,7 @@ QSize* QColumnView_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQColumnView*)(self) )->virtualbase_ViewportSizeHint(); } -void QColumnView_Delete(QColumnView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColumnView_Delete(QColumnView* self) { + delete self; } diff --git a/qt/gen_qcolumnview.go b/qt/gen_qcolumnview.go index cad5e4fa..d30b11b0 100644 --- a/qt/gen_qcolumnview.go +++ b/qt/gen_qcolumnview.go @@ -1910,7 +1910,7 @@ func miqt_exec_callback_QColumnView_ViewportSizeHint(self *C.QColumnView, cb C.i // Delete this object from C++ memory. func (this *QColumnView) Delete() { - C.QColumnView_Delete(this.h, C.bool(this.isSubclass)) + C.QColumnView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcolumnview.h b/qt/gen_qcolumnview.h index 6e25ecbd..665a25b6 100644 --- a/qt/gen_qcolumnview.h +++ b/qt/gen_qcolumnview.h @@ -236,7 +236,7 @@ void QColumnView_override_virtual_EventFilter(void* self, intptr_t slot); bool QColumnView_virtualbase_EventFilter(void* self, QObject* object, QEvent* event); void QColumnView_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QColumnView_virtualbase_ViewportSizeHint(const void* self); -void QColumnView_Delete(QColumnView* self, bool isSubclass); +void QColumnView_Delete(QColumnView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcombobox.cpp b/qt/gen_qcombobox.cpp index bdb0e772..de432a8d 100644 --- a/qt/gen_qcombobox.cpp +++ b/qt/gen_qcombobox.cpp @@ -104,13 +104,13 @@ bool miqt_exec_callback_QComboBox_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQComboBox : public virtual QComboBox { +class MiqtVirtualQComboBox final : public QComboBox { public: MiqtVirtualQComboBox(QWidget* parent): QComboBox(parent) {}; MiqtVirtualQComboBox(): QComboBox() {}; - virtual ~MiqtVirtualQComboBox() = default; + virtual ~MiqtVirtualQComboBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -2111,11 +2111,7 @@ bool QComboBox_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQComboBox*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QComboBox_Delete(QComboBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QComboBox_Delete(QComboBox* self) { + delete self; } diff --git a/qt/gen_qcombobox.go b/qt/gen_qcombobox.go index ac133f57..6b04f1a0 100644 --- a/qt/gen_qcombobox.go +++ b/qt/gen_qcombobox.go @@ -1981,7 +1981,7 @@ func miqt_exec_callback_QComboBox_FocusNextPrevChild(self *C.QComboBox, cb C.int // Delete this object from C++ memory. func (this *QComboBox) Delete() { - C.QComboBox_Delete(this.h, C.bool(this.isSubclass)) + C.QComboBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcombobox.h b/qt/gen_qcombobox.h index 8acf60de..8566a2f0 100644 --- a/qt/gen_qcombobox.h +++ b/qt/gen_qcombobox.h @@ -305,7 +305,7 @@ void QComboBox_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QComboBox_virtualbase_SharedPainter(const void* self); void QComboBox_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QComboBox_virtualbase_FocusNextPrevChild(void* self, bool next); -void QComboBox_Delete(QComboBox* self, bool isSubclass); +void QComboBox_Delete(QComboBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcommandlineoption.cpp b/qt/gen_qcommandlineoption.cpp index 3905758c..c2e9523d 100644 --- a/qt/gen_qcommandlineoption.cpp +++ b/qt/gen_qcommandlineoption.cpp @@ -207,11 +207,7 @@ bool QCommandLineOption_IsHidden(const QCommandLineOption* self) { return self->isHidden(); } -void QCommandLineOption_Delete(QCommandLineOption* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCommandLineOption_Delete(QCommandLineOption* self) { + delete self; } diff --git a/qt/gen_qcommandlineoption.go b/qt/gen_qcommandlineoption.go index 77cd296f..0b2819fd 100644 --- a/qt/gen_qcommandlineoption.go +++ b/qt/gen_qcommandlineoption.go @@ -333,7 +333,7 @@ func (this *QCommandLineOption) IsHidden() bool { // Delete this object from C++ memory. func (this *QCommandLineOption) Delete() { - C.QCommandLineOption_Delete(this.h, C.bool(this.isSubclass)) + C.QCommandLineOption_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcommandlineoption.h b/qt/gen_qcommandlineoption.h index c7ff0038..9ac919d7 100644 --- a/qt/gen_qcommandlineoption.h +++ b/qt/gen_qcommandlineoption.h @@ -43,7 +43,7 @@ int QCommandLineOption_Flags(const QCommandLineOption* self); void QCommandLineOption_SetFlags(QCommandLineOption* self, int aflags); void QCommandLineOption_SetHidden(QCommandLineOption* self, bool hidden); bool QCommandLineOption_IsHidden(const QCommandLineOption* self); -void QCommandLineOption_Delete(QCommandLineOption* self, bool isSubclass); +void QCommandLineOption_Delete(QCommandLineOption* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcommandlineparser.cpp b/qt/gen_qcommandlineparser.cpp index bf50f9d6..abc94571 100644 --- a/qt/gen_qcommandlineparser.cpp +++ b/qt/gen_qcommandlineparser.cpp @@ -330,11 +330,7 @@ void QCommandLineParser_AddPositionalArgument3(QCommandLineParser* self, struct self->addPositionalArgument(name_QString, description_QString, syntax_QString); } -void QCommandLineParser_Delete(QCommandLineParser* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCommandLineParser_Delete(QCommandLineParser* self) { + delete self; } diff --git a/qt/gen_qcommandlineparser.go b/qt/gen_qcommandlineparser.go index ee31a023..73fc4f83 100644 --- a/qt/gen_qcommandlineparser.go +++ b/qt/gen_qcommandlineparser.go @@ -358,7 +358,7 @@ func (this *QCommandLineParser) AddPositionalArgument3(name string, description // Delete this object from C++ memory. func (this *QCommandLineParser) Delete() { - C.QCommandLineParser_Delete(this.h, C.bool(this.isSubclass)) + C.QCommandLineParser_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcommandlineparser.h b/qt/gen_qcommandlineparser.h index 6fdc3359..67c8b4ae 100644 --- a/qt/gen_qcommandlineparser.h +++ b/qt/gen_qcommandlineparser.h @@ -56,7 +56,7 @@ struct miqt_string QCommandLineParser_Tr3(const char* sourceText, const char* di struct miqt_string QCommandLineParser_TrUtf82(const char* sourceText, const char* disambiguation); struct miqt_string QCommandLineParser_TrUtf83(const char* sourceText, const char* disambiguation, int n); void QCommandLineParser_AddPositionalArgument3(QCommandLineParser* self, struct miqt_string name, struct miqt_string description, struct miqt_string syntax); -void QCommandLineParser_Delete(QCommandLineParser* self, bool isSubclass); +void QCommandLineParser_Delete(QCommandLineParser* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcommandlinkbutton.cpp b/qt/gen_qcommandlinkbutton.cpp index 488b0922..f28ebf6a 100644 --- a/qt/gen_qcommandlinkbutton.cpp +++ b/qt/gen_qcommandlinkbutton.cpp @@ -34,7 +34,7 @@ bool miqt_exec_callback_QCommandLinkButton_HitButton(void*, intptr_t, QPoint*); } /* extern C */ #endif -class MiqtVirtualQCommandLinkButton : public virtual QCommandLinkButton { +class MiqtVirtualQCommandLinkButton final : public QCommandLinkButton { public: MiqtVirtualQCommandLinkButton(QWidget* parent): QCommandLinkButton(parent) {}; @@ -44,7 +44,7 @@ public: MiqtVirtualQCommandLinkButton(const QString& text, QWidget* parent): QCommandLinkButton(text, parent) {}; MiqtVirtualQCommandLinkButton(const QString& text, const QString& description, QWidget* parent): QCommandLinkButton(text, description, parent) {}; - virtual ~MiqtVirtualQCommandLinkButton() = default; + virtual ~MiqtVirtualQCommandLinkButton() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -455,11 +455,7 @@ bool QCommandLinkButton_virtualbase_HitButton(const void* self, QPoint* pos) { return ( (const MiqtVirtualQCommandLinkButton*)(self) )->virtualbase_HitButton(pos); } -void QCommandLinkButton_Delete(QCommandLinkButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCommandLinkButton_Delete(QCommandLinkButton* self) { + delete self; } diff --git a/qt/gen_qcommandlinkbutton.go b/qt/gen_qcommandlinkbutton.go index fe2386b8..4ba22cd6 100644 --- a/qt/gen_qcommandlinkbutton.go +++ b/qt/gen_qcommandlinkbutton.go @@ -454,7 +454,7 @@ func miqt_exec_callback_QCommandLinkButton_HitButton(self *C.QCommandLinkButton, // Delete this object from C++ memory. func (this *QCommandLinkButton) Delete() { - C.QCommandLinkButton_Delete(this.h, C.bool(this.isSubclass)) + C.QCommandLinkButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcommandlinkbutton.h b/qt/gen_qcommandlinkbutton.h index ff7a6adc..3dc4a7b0 100644 --- a/qt/gen_qcommandlinkbutton.h +++ b/qt/gen_qcommandlinkbutton.h @@ -84,7 +84,7 @@ void QCommandLinkButton_override_virtual_FocusOutEvent(void* self, intptr_t slot void QCommandLinkButton_virtualbase_FocusOutEvent(void* self, QFocusEvent* param1); void QCommandLinkButton_override_virtual_HitButton(void* self, intptr_t slot); bool QCommandLinkButton_virtualbase_HitButton(const void* self, QPoint* pos); -void QCommandLinkButton_Delete(QCommandLinkButton* self, bool isSubclass); +void QCommandLinkButton_Delete(QCommandLinkButton* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcommonstyle.cpp b/qt/gen_qcommonstyle.cpp index 7bc16dba..edf148de 100644 --- a/qt/gen_qcommonstyle.cpp +++ b/qt/gen_qcommonstyle.cpp @@ -52,12 +52,12 @@ QPalette* miqt_exec_callback_QCommonStyle_StandardPalette(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQCommonStyle : public virtual QCommonStyle { +class MiqtVirtualQCommonStyle final : public QCommonStyle { public: MiqtVirtualQCommonStyle(): QCommonStyle() {}; - virtual ~MiqtVirtualQCommonStyle() = default; + virtual ~MiqtVirtualQCommonStyle() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DrawPrimitive = 0; @@ -1046,11 +1046,7 @@ QPalette* QCommonStyle_virtualbase_StandardPalette(const void* self) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_StandardPalette(); } -void QCommonStyle_Delete(QCommonStyle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCommonStyle_Delete(QCommonStyle* self) { + delete self; } diff --git a/qt/gen_qcommonstyle.go b/qt/gen_qcommonstyle.go index 106528f1..99734767 100644 --- a/qt/gen_qcommonstyle.go +++ b/qt/gen_qcommonstyle.go @@ -969,7 +969,7 @@ func miqt_exec_callback_QCommonStyle_StandardPalette(self *C.QCommonStyle, cb C. // Delete this object from C++ memory. func (this *QCommonStyle) Delete() { - C.QCommonStyle_Delete(this.h, C.bool(this.isSubclass)) + C.QCommonStyle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcommonstyle.h b/qt/gen_qcommonstyle.h index 55aa3475..1e23f52a 100644 --- a/qt/gen_qcommonstyle.h +++ b/qt/gen_qcommonstyle.h @@ -126,7 +126,7 @@ void QCommonStyle_override_virtual_DrawItemPixmap(void* self, intptr_t slot); void QCommonStyle_virtualbase_DrawItemPixmap(const void* self, QPainter* painter, QRect* rect, int alignment, QPixmap* pixmap); void QCommonStyle_override_virtual_StandardPalette(void* self, intptr_t slot); QPalette* QCommonStyle_virtualbase_StandardPalette(const void* self); -void QCommonStyle_Delete(QCommonStyle* self, bool isSubclass); +void QCommonStyle_Delete(QCommonStyle* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcompleter.cpp b/qt/gen_qcompleter.cpp index 34ee414b..804451ed 100644 --- a/qt/gen_qcompleter.cpp +++ b/qt/gen_qcompleter.cpp @@ -38,7 +38,7 @@ void miqt_exec_callback_QCompleter_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQCompleter : public virtual QCompleter { +class MiqtVirtualQCompleter final : public QCompleter { public: MiqtVirtualQCompleter(): QCompleter() {}; @@ -48,7 +48,7 @@ public: MiqtVirtualQCompleter(QAbstractItemModel* model, QObject* parent): QCompleter(model, parent) {}; MiqtVirtualQCompleter(const QStringList& completions, QObject* parent): QCompleter(completions, parent) {}; - virtual ~MiqtVirtualQCompleter() = default; + virtual ~MiqtVirtualQCompleter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__PathFromIndex = 0; @@ -741,11 +741,7 @@ void QCompleter_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQCompleter*)(self) )->virtualbase_DisconnectNotify(signal); } -void QCompleter_Delete(QCompleter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCompleter_Delete(QCompleter* self) { + delete self; } diff --git a/qt/gen_qcompleter.go b/qt/gen_qcompleter.go index f5412ef5..23fca0f2 100644 --- a/qt/gen_qcompleter.go +++ b/qt/gen_qcompleter.go @@ -743,7 +743,7 @@ func miqt_exec_callback_QCompleter_DisconnectNotify(self *C.QCompleter, cb C.int // Delete this object from C++ memory. func (this *QCompleter) Delete() { - C.QCompleter_Delete(this.h, C.bool(this.isSubclass)) + C.QCompleter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcompleter.h b/qt/gen_qcompleter.h index ba92da3f..534a537c 100644 --- a/qt/gen_qcompleter.h +++ b/qt/gen_qcompleter.h @@ -119,7 +119,7 @@ void QCompleter_override_virtual_ConnectNotify(void* self, intptr_t slot); void QCompleter_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QCompleter_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QCompleter_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QCompleter_Delete(QCompleter* self, bool isSubclass); +void QCompleter_Delete(QCompleter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qconcatenatetablesproxymodel.cpp b/qt/gen_qconcatenatetablesproxymodel.cpp index 2e0fa24d..a3ecfe45 100644 --- a/qt/gen_qconcatenatetablesproxymodel.cpp +++ b/qt/gen_qconcatenatetablesproxymodel.cpp @@ -57,13 +57,13 @@ void miqt_exec_callback_QConcatenateTablesProxyModel_Revert(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQConcatenateTablesProxyModel : public virtual QConcatenateTablesProxyModel { +class MiqtVirtualQConcatenateTablesProxyModel final : public QConcatenateTablesProxyModel { public: MiqtVirtualQConcatenateTablesProxyModel(): QConcatenateTablesProxyModel() {}; MiqtVirtualQConcatenateTablesProxyModel(QObject* parent): QConcatenateTablesProxyModel(parent) {}; - virtual ~MiqtVirtualQConcatenateTablesProxyModel() = default; + virtual ~MiqtVirtualQConcatenateTablesProxyModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Data = 0; @@ -1565,11 +1565,7 @@ void QConcatenateTablesProxyModel_virtualbase_Revert(void* self) { ( (MiqtVirtualQConcatenateTablesProxyModel*)(self) )->virtualbase_Revert(); } -void QConcatenateTablesProxyModel_Delete(QConcatenateTablesProxyModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QConcatenateTablesProxyModel_Delete(QConcatenateTablesProxyModel* self) { + delete self; } diff --git a/qt/gen_qconcatenatetablesproxymodel.go b/qt/gen_qconcatenatetablesproxymodel.go index 882d501a..59350b59 100644 --- a/qt/gen_qconcatenatetablesproxymodel.go +++ b/qt/gen_qconcatenatetablesproxymodel.go @@ -1444,7 +1444,7 @@ func miqt_exec_callback_QConcatenateTablesProxyModel_Revert(self *C.QConcatenate // Delete this object from C++ memory. func (this *QConcatenateTablesProxyModel) Delete() { - C.QConcatenateTablesProxyModel_Delete(this.h, C.bool(this.isSubclass)) + C.QConcatenateTablesProxyModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qconcatenatetablesproxymodel.h b/qt/gen_qconcatenatetablesproxymodel.h index c3efef22..37324f15 100644 --- a/qt/gen_qconcatenatetablesproxymodel.h +++ b/qt/gen_qconcatenatetablesproxymodel.h @@ -133,7 +133,7 @@ void QConcatenateTablesProxyModel_override_virtual_Submit(void* self, intptr_t s bool QConcatenateTablesProxyModel_virtualbase_Submit(void* self); void QConcatenateTablesProxyModel_override_virtual_Revert(void* self, intptr_t slot); void QConcatenateTablesProxyModel_virtualbase_Revert(void* self); -void QConcatenateTablesProxyModel_Delete(QConcatenateTablesProxyModel* self, bool isSubclass); +void QConcatenateTablesProxyModel_Delete(QConcatenateTablesProxyModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcontiguouscache.cpp b/qt/gen_qcontiguouscache.cpp index efddc8bc..824d62fb 100644 --- a/qt/gen_qcontiguouscache.cpp +++ b/qt/gen_qcontiguouscache.cpp @@ -18,11 +18,7 @@ void QContiguousCacheData_FreeData(QContiguousCacheData* data) { QContiguousCacheData::freeData(data); } -void QContiguousCacheData_Delete(QContiguousCacheData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QContiguousCacheData_Delete(QContiguousCacheData* self) { + delete self; } diff --git a/qt/gen_qcontiguouscache.go b/qt/gen_qcontiguouscache.go index c2efefa0..3ed74829 100644 --- a/qt/gen_qcontiguouscache.go +++ b/qt/gen_qcontiguouscache.go @@ -56,7 +56,7 @@ func QContiguousCacheData_FreeData(data *QContiguousCacheData) { // Delete this object from C++ memory. func (this *QContiguousCacheData) Delete() { - C.QContiguousCacheData_Delete(this.h, C.bool(this.isSubclass)) + C.QContiguousCacheData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcontiguouscache.h b/qt/gen_qcontiguouscache.h index caac4f41..39b612d4 100644 --- a/qt/gen_qcontiguouscache.h +++ b/qt/gen_qcontiguouscache.h @@ -22,7 +22,7 @@ typedef struct QContiguousCacheData QContiguousCacheData; QContiguousCacheData* QContiguousCacheData_AllocateData(int size, int alignment); void QContiguousCacheData_FreeData(QContiguousCacheData* data); -void QContiguousCacheData_Delete(QContiguousCacheData* self, bool isSubclass); +void QContiguousCacheData_Delete(QContiguousCacheData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcoreapplication.cpp b/qt/gen_qcoreapplication.cpp index 101346d3..95946ae3 100644 --- a/qt/gen_qcoreapplication.cpp +++ b/qt/gen_qcoreapplication.cpp @@ -35,13 +35,13 @@ void miqt_exec_callback_QCoreApplication_DisconnectNotify(void*, intptr_t, QMeta } /* extern C */ #endif -class MiqtVirtualQCoreApplication : public virtual QCoreApplication { +class MiqtVirtualQCoreApplication final : public QCoreApplication { public: MiqtVirtualQCoreApplication(int& argc, char** argv): QCoreApplication(argc, argv) {}; MiqtVirtualQCoreApplication(int& argc, char** argv, int param3): QCoreApplication(argc, argv, param3) {}; - virtual ~MiqtVirtualQCoreApplication() = default; + virtual ~MiqtVirtualQCoreApplication() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Notify = 0; @@ -751,11 +751,7 @@ void QCoreApplication_virtualbase_DisconnectNotify(void* self, QMetaMethod* sign ( (MiqtVirtualQCoreApplication*)(self) )->virtualbase_DisconnectNotify(signal); } -void QCoreApplication_Delete(QCoreApplication* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCoreApplication_Delete(QCoreApplication* self) { + delete self; } diff --git a/qt/gen_qcoreapplication.go b/qt/gen_qcoreapplication.go index 63bad66e..33e8a9b6 100644 --- a/qt/gen_qcoreapplication.go +++ b/qt/gen_qcoreapplication.go @@ -758,7 +758,7 @@ func miqt_exec_callback_QCoreApplication_DisconnectNotify(self *C.QCoreApplicati // Delete this object from C++ memory. func (this *QCoreApplication) Delete() { - C.QCoreApplication_Delete(this.h, C.bool(this.isSubclass)) + C.QCoreApplication_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcoreapplication.h b/qt/gen_qcoreapplication.h index f63f2bdb..11c788a2 100644 --- a/qt/gen_qcoreapplication.h +++ b/qt/gen_qcoreapplication.h @@ -127,7 +127,7 @@ void QCoreApplication_override_virtual_ConnectNotify(void* self, intptr_t slot); void QCoreApplication_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QCoreApplication_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QCoreApplication_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QCoreApplication_Delete(QCoreApplication* self, bool isSubclass); +void QCoreApplication_Delete(QCoreApplication* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcoreevent.cpp b/qt/gen_qcoreevent.cpp index 8fcb3ab9..33d2dffe 100644 --- a/qt/gen_qcoreevent.cpp +++ b/qt/gen_qcoreevent.cpp @@ -60,12 +60,8 @@ int QEvent_RegisterEventType1(int hint) { return QEvent::registerEventType(static_cast(hint)); } -void QEvent_Delete(QEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEvent_Delete(QEvent* self) { + delete self; } QTimerEvent* QTimerEvent_new(int timerId) { @@ -84,12 +80,8 @@ int QTimerEvent_TimerId(const QTimerEvent* self) { return self->timerId(); } -void QTimerEvent_Delete(QTimerEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimerEvent_Delete(QTimerEvent* self) { + delete self; } QChildEvent* QChildEvent_new(int typeVal, QObject* child) { @@ -120,12 +112,8 @@ bool QChildEvent_Removed(const QChildEvent* self) { return self->removed(); } -void QChildEvent_Delete(QChildEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QChildEvent_Delete(QChildEvent* self) { + delete self; } QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_new(struct miqt_string name) { @@ -150,11 +138,7 @@ struct miqt_string QDynamicPropertyChangeEvent_PropertyName(const QDynamicProper return _ms; } -void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self) { + delete self; } diff --git a/qt/gen_qcoreevent.go b/qt/gen_qcoreevent.go index 5bacae7e..d760c74f 100644 --- a/qt/gen_qcoreevent.go +++ b/qt/gen_qcoreevent.go @@ -277,7 +277,7 @@ func QEvent_RegisterEventType1(hint int) int { // Delete this object from C++ memory. func (this *QEvent) Delete() { - C.QEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -348,7 +348,7 @@ func (this *QTimerEvent) TimerId() int { // Delete this object from C++ memory. func (this *QTimerEvent) Delete() { - C.QTimerEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QTimerEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -431,7 +431,7 @@ func (this *QChildEvent) Removed() bool { // Delete this object from C++ memory. func (this *QChildEvent) Delete() { - C.QChildEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QChildEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -508,7 +508,7 @@ func (this *QDynamicPropertyChangeEvent) PropertyName() []byte { // Delete this object from C++ memory. func (this *QDynamicPropertyChangeEvent) Delete() { - C.QDynamicPropertyChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QDynamicPropertyChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcoreevent.h b/qt/gen_qcoreevent.h index 18526fa3..dbd642d7 100644 --- a/qt/gen_qcoreevent.h +++ b/qt/gen_qcoreevent.h @@ -39,13 +39,13 @@ void QEvent_Accept(QEvent* self); void QEvent_Ignore(QEvent* self); int QEvent_RegisterEventType(); int QEvent_RegisterEventType1(int hint); -void QEvent_Delete(QEvent* self, bool isSubclass); +void QEvent_Delete(QEvent* self); QTimerEvent* QTimerEvent_new(int timerId); QTimerEvent* QTimerEvent_new2(QTimerEvent* param1); void QTimerEvent_virtbase(QTimerEvent* src, QEvent** outptr_QEvent); int QTimerEvent_TimerId(const QTimerEvent* self); -void QTimerEvent_Delete(QTimerEvent* self, bool isSubclass); +void QTimerEvent_Delete(QTimerEvent* self); QChildEvent* QChildEvent_new(int typeVal, QObject* child); QChildEvent* QChildEvent_new2(QChildEvent* param1); @@ -54,13 +54,13 @@ QObject* QChildEvent_Child(const QChildEvent* self); bool QChildEvent_Added(const QChildEvent* self); bool QChildEvent_Polished(const QChildEvent* self); bool QChildEvent_Removed(const QChildEvent* self); -void QChildEvent_Delete(QChildEvent* self, bool isSubclass); +void QChildEvent_Delete(QChildEvent* self); QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_new(struct miqt_string name); QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_new2(QDynamicPropertyChangeEvent* param1); void QDynamicPropertyChangeEvent_virtbase(QDynamicPropertyChangeEvent* src, QEvent** outptr_QEvent); struct miqt_string QDynamicPropertyChangeEvent_PropertyName(const QDynamicPropertyChangeEvent* self); -void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self, bool isSubclass); +void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcryptographichash.cpp b/qt/gen_qcryptographichash.cpp index f8032e17..414b1497 100644 --- a/qt/gen_qcryptographichash.cpp +++ b/qt/gen_qcryptographichash.cpp @@ -56,11 +56,7 @@ int QCryptographicHash_HashLength(int method) { return QCryptographicHash::hashLength(static_cast(method)); } -void QCryptographicHash_Delete(QCryptographicHash* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCryptographicHash_Delete(QCryptographicHash* self) { + delete self; } diff --git a/qt/gen_qcryptographichash.go b/qt/gen_qcryptographichash.go index 844663f0..dd5af79b 100644 --- a/qt/gen_qcryptographichash.go +++ b/qt/gen_qcryptographichash.go @@ -122,7 +122,7 @@ func QCryptographicHash_HashLength(method QCryptographicHash__Algorithm) int { // Delete this object from C++ memory. func (this *QCryptographicHash) Delete() { - C.QCryptographicHash_Delete(this.h, C.bool(this.isSubclass)) + C.QCryptographicHash_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcryptographichash.h b/qt/gen_qcryptographichash.h index ec635b88..aed006e8 100644 --- a/qt/gen_qcryptographichash.h +++ b/qt/gen_qcryptographichash.h @@ -30,7 +30,7 @@ bool QCryptographicHash_AddDataWithDevice(QCryptographicHash* self, QIODevice* d struct miqt_string QCryptographicHash_Result(const QCryptographicHash* self); struct miqt_string QCryptographicHash_Hash(struct miqt_string data, int method); int QCryptographicHash_HashLength(int method); -void QCryptographicHash_Delete(QCryptographicHash* self, bool isSubclass); +void QCryptographicHash_Delete(QCryptographicHash* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qcursor.cpp b/qt/gen_qcursor.cpp index 837eab82..fcc664ac 100644 --- a/qt/gen_qcursor.cpp +++ b/qt/gen_qcursor.cpp @@ -120,11 +120,7 @@ void QCursor_SetPos3(QScreen* screen, QPoint* p) { QCursor::setPos(screen, *p); } -void QCursor_Delete(QCursor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCursor_Delete(QCursor* self) { + delete self; } diff --git a/qt/gen_qcursor.go b/qt/gen_qcursor.go index 09e3c1a7..71229990 100644 --- a/qt/gen_qcursor.go +++ b/qt/gen_qcursor.go @@ -202,7 +202,7 @@ func QCursor_SetPos3(screen *QScreen, p *QPoint) { // Delete this object from C++ memory. func (this *QCursor) Delete() { - C.QCursor_Delete(this.h, C.bool(this.isSubclass)) + C.QCursor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qcursor.h b/qt/gen_qcursor.h index 9fb2e3f6..90c5c3a9 100644 --- a/qt/gen_qcursor.h +++ b/qt/gen_qcursor.h @@ -56,7 +56,7 @@ void QCursor_SetPos(int x, int y); void QCursor_SetPos2(QScreen* screen, int x, int y); void QCursor_SetPosWithQPoint(QPoint* p); void QCursor_SetPos3(QScreen* screen, QPoint* p); -void QCursor_Delete(QCursor* self, bool isSubclass); +void QCursor_Delete(QCursor* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdatastream.cpp b/qt/gen_qdatastream.cpp index 452caea0..2f627720 100644 --- a/qt/gen_qdatastream.cpp +++ b/qt/gen_qdatastream.cpp @@ -214,11 +214,7 @@ void QDataStream_AbortTransaction(QDataStream* self) { self->abortTransaction(); } -void QDataStream_Delete(QDataStream* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDataStream_Delete(QDataStream* self) { + delete self; } diff --git a/qt/gen_qdatastream.go b/qt/gen_qdatastream.go index d6b06705..f3a3f23c 100644 --- a/qt/gen_qdatastream.go +++ b/qt/gen_qdatastream.go @@ -332,7 +332,7 @@ func (this *QDataStream) AbortTransaction() { // Delete this object from C++ memory. func (this *QDataStream) Delete() { - C.QDataStream_Delete(this.h, C.bool(this.isSubclass)) + C.QDataStream_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdatastream.h b/qt/gen_qdatastream.h index 9868712f..4c8db12d 100644 --- a/qt/gen_qdatastream.h +++ b/qt/gen_qdatastream.h @@ -71,7 +71,7 @@ void QDataStream_StartTransaction(QDataStream* self); bool QDataStream_CommitTransaction(QDataStream* self); void QDataStream_RollbackTransaction(QDataStream* self); void QDataStream_AbortTransaction(QDataStream* self); -void QDataStream_Delete(QDataStream* self, bool isSubclass); +void QDataStream_Delete(QDataStream* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdatawidgetmapper.cpp b/qt/gen_qdatawidgetmapper.cpp index b9882d8f..7aa4d532 100644 --- a/qt/gen_qdatawidgetmapper.cpp +++ b/qt/gen_qdatawidgetmapper.cpp @@ -33,13 +33,13 @@ void miqt_exec_callback_QDataWidgetMapper_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQDataWidgetMapper : public virtual QDataWidgetMapper { +class MiqtVirtualQDataWidgetMapper final : public QDataWidgetMapper { public: MiqtVirtualQDataWidgetMapper(): QDataWidgetMapper() {}; MiqtVirtualQDataWidgetMapper(QObject* parent): QDataWidgetMapper(parent) {}; - virtual ~MiqtVirtualQDataWidgetMapper() = default; + virtual ~MiqtVirtualQDataWidgetMapper() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetCurrentIndex = 0; @@ -511,11 +511,7 @@ void QDataWidgetMapper_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQDataWidgetMapper*)(self) )->virtualbase_DisconnectNotify(signal); } -void QDataWidgetMapper_Delete(QDataWidgetMapper* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDataWidgetMapper_Delete(QDataWidgetMapper* self) { + delete self; } diff --git a/qt/gen_qdatawidgetmapper.go b/qt/gen_qdatawidgetmapper.go index b67a2f7d..3cd23504 100644 --- a/qt/gen_qdatawidgetmapper.go +++ b/qt/gen_qdatawidgetmapper.go @@ -494,7 +494,7 @@ func miqt_exec_callback_QDataWidgetMapper_DisconnectNotify(self *C.QDataWidgetMa // Delete this object from C++ memory. func (this *QDataWidgetMapper) Delete() { - C.QDataWidgetMapper_Delete(this.h, C.bool(this.isSubclass)) + C.QDataWidgetMapper_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdatawidgetmapper.h b/qt/gen_qdatawidgetmapper.h index e7a309ca..1d07d400 100644 --- a/qt/gen_qdatawidgetmapper.h +++ b/qt/gen_qdatawidgetmapper.h @@ -95,7 +95,7 @@ void QDataWidgetMapper_override_virtual_ConnectNotify(void* self, intptr_t slot) void QDataWidgetMapper_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QDataWidgetMapper_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QDataWidgetMapper_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QDataWidgetMapper_Delete(QDataWidgetMapper* self, bool isSubclass); +void QDataWidgetMapper_Delete(QDataWidgetMapper* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdatetime.cpp b/qt/gen_qdatetime.cpp index e97f74a1..da5df3d7 100644 --- a/qt/gen_qdatetime.cpp +++ b/qt/gen_qdatetime.cpp @@ -390,12 +390,8 @@ QDate* QDate_FromString22(struct miqt_string s, int f) { return new QDate(QDate::fromString(s_QString, static_cast(f))); } -void QDate_Delete(QDate* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDate_Delete(QDate* self) { + delete self; } QTime* QTime_new() { @@ -572,12 +568,8 @@ bool QTime_IsValid4(int h, int m, int s, int ms) { return QTime::isValid(static_cast(h), static_cast(m), static_cast(s), static_cast(ms)); } -void QTime_Delete(QTime* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTime_Delete(QTime* self) { + delete self; } QDateTime* QDateTime_new(QDate* param1) { @@ -924,11 +916,7 @@ QDateTime* QDateTime_FromSecsSinceEpoch3(long long secs, int spe, int offsetFrom return new QDateTime(QDateTime::fromSecsSinceEpoch(static_cast(secs), static_cast(spe), static_cast(offsetFromUtc))); } -void QDateTime_Delete(QDateTime* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDateTime_Delete(QDateTime* self) { + delete self; } diff --git a/qt/gen_qdatetime.go b/qt/gen_qdatetime.go index 5816d890..3d49dfcd 100644 --- a/qt/gen_qdatetime.go +++ b/qt/gen_qdatetime.go @@ -459,7 +459,7 @@ func QDate_FromString22(s string, f DateFormat) *QDate { // Delete this object from C++ memory. func (this *QDate) Delete() { - C.QDate_Delete(this.h, C.bool(this.isSubclass)) + C.QDate_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -717,7 +717,7 @@ func QTime_IsValid4(h int, m int, s int, ms int) bool { // Delete this object from C++ memory. func (this *QTime) Delete() { - C.QTime_Delete(this.h, C.bool(this.isSubclass)) + C.QTime_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1189,7 +1189,7 @@ func QDateTime_FromSecsSinceEpoch3(secs int64, spe TimeSpec, offsetFromUtc int) // Delete this object from C++ memory. func (this *QDateTime) Delete() { - C.QDateTime_Delete(this.h, C.bool(this.isSubclass)) + C.QDateTime_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdatetime.h b/qt/gen_qdatetime.h index 6510c9d3..da918af6 100644 --- a/qt/gen_qdatetime.h +++ b/qt/gen_qdatetime.h @@ -96,7 +96,7 @@ struct miqt_string QDate_LongMonthName2(int month, int typeVal); struct miqt_string QDate_LongDayName2(int weekday, int typeVal); struct miqt_string QDate_ToString1(const QDate* self, int format); QDate* QDate_FromString22(struct miqt_string s, int f); -void QDate_Delete(QDate* self, bool isSubclass); +void QDate_Delete(QDate* self); QTime* QTime_new(); QTime* QTime_new2(int h, int m); @@ -135,7 +135,7 @@ struct miqt_string QTime_ToString1(const QTime* self, int f); bool QTime_SetHMS4(QTime* self, int h, int m, int s, int ms); QTime* QTime_FromString22(struct miqt_string s, int f); bool QTime_IsValid4(int h, int m, int s, int ms); -void QTime_Delete(QTime* self, bool isSubclass); +void QTime_Delete(QTime* self); QDateTime* QDateTime_new(QDate* param1); QDateTime* QDateTime_new2(QDate* param1, QTime* param2); @@ -210,7 +210,7 @@ QDateTime* QDateTime_FromTimeT32(unsigned int secsSince1Jan1970UTC, int spec, in QDateTime* QDateTime_FromMSecsSinceEpoch32(long long msecs, int spec, int offsetFromUtc); QDateTime* QDateTime_FromSecsSinceEpoch22(long long secs, int spe); QDateTime* QDateTime_FromSecsSinceEpoch3(long long secs, int spe, int offsetFromUtc); -void QDateTime_Delete(QDateTime* self, bool isSubclass); +void QDateTime_Delete(QDateTime* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdatetimeedit.cpp b/qt/gen_qdatetimeedit.cpp index 6de5d79b..4a71b79c 100644 --- a/qt/gen_qdatetimeedit.cpp +++ b/qt/gen_qdatetimeedit.cpp @@ -102,7 +102,7 @@ void miqt_exec_callback_QDateEdit_PaintEvent(void*, intptr_t, QPaintEvent*); } /* extern C */ #endif -class MiqtVirtualQDateTimeEdit : public virtual QDateTimeEdit { +class MiqtVirtualQDateTimeEdit final : public QDateTimeEdit { public: MiqtVirtualQDateTimeEdit(QWidget* parent): QDateTimeEdit(parent) {}; @@ -114,7 +114,7 @@ public: MiqtVirtualQDateTimeEdit(const QDate& d, QWidget* parent): QDateTimeEdit(d, parent) {}; MiqtVirtualQDateTimeEdit(const QTime& t, QWidget* parent): QDateTimeEdit(t, parent) {}; - virtual ~MiqtVirtualQDateTimeEdit() = default; + virtual ~MiqtVirtualQDateTimeEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1407,15 +1407,11 @@ void QDateTimeEdit_virtualbase_ShowEvent(void* self, QShowEvent* event) { ( (MiqtVirtualQDateTimeEdit*)(self) )->virtualbase_ShowEvent(event); } -void QDateTimeEdit_Delete(QDateTimeEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDateTimeEdit_Delete(QDateTimeEdit* self) { + delete self; } -class MiqtVirtualQTimeEdit : public virtual QTimeEdit { +class MiqtVirtualQTimeEdit final : public QTimeEdit { public: MiqtVirtualQTimeEdit(QWidget* parent): QTimeEdit(parent) {}; @@ -1423,7 +1419,7 @@ public: MiqtVirtualQTimeEdit(const QTime& time): QTimeEdit(time) {}; MiqtVirtualQTimeEdit(const QTime& time, QWidget* parent): QTimeEdit(time, parent) {}; - virtual ~MiqtVirtualQTimeEdit() = default; + virtual ~MiqtVirtualQTimeEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -2041,15 +2037,11 @@ void QTimeEdit_virtualbase_PaintEvent(void* self, QPaintEvent* event) { ( (MiqtVirtualQTimeEdit*)(self) )->virtualbase_PaintEvent(event); } -void QTimeEdit_Delete(QTimeEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimeEdit_Delete(QTimeEdit* self) { + delete self; } -class MiqtVirtualQDateEdit : public virtual QDateEdit { +class MiqtVirtualQDateEdit final : public QDateEdit { public: MiqtVirtualQDateEdit(QWidget* parent): QDateEdit(parent) {}; @@ -2057,7 +2049,7 @@ public: MiqtVirtualQDateEdit(const QDate& date): QDateEdit(date) {}; MiqtVirtualQDateEdit(const QDate& date, QWidget* parent): QDateEdit(date, parent) {}; - virtual ~MiqtVirtualQDateEdit() = default; + virtual ~MiqtVirtualQDateEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -2675,11 +2667,7 @@ void QDateEdit_virtualbase_PaintEvent(void* self, QPaintEvent* event) { ( (MiqtVirtualQDateEdit*)(self) )->virtualbase_PaintEvent(event); } -void QDateEdit_Delete(QDateEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDateEdit_Delete(QDateEdit* self) { + delete self; } diff --git a/qt/gen_qdatetimeedit.go b/qt/gen_qdatetimeedit.go index 2571d8b6..e660e19e 100644 --- a/qt/gen_qdatetimeedit.go +++ b/qt/gen_qdatetimeedit.go @@ -1267,7 +1267,7 @@ func miqt_exec_callback_QDateTimeEdit_ShowEvent(self *C.QDateTimeEdit, cb C.intp // Delete this object from C++ memory. func (this *QDateTimeEdit) Delete() { - C.QDateTimeEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QDateTimeEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1869,7 +1869,7 @@ func miqt_exec_callback_QTimeEdit_PaintEvent(self *C.QTimeEdit, cb C.intptr_t, e // Delete this object from C++ memory. func (this *QTimeEdit) Delete() { - C.QTimeEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QTimeEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2471,7 +2471,7 @@ func miqt_exec_callback_QDateEdit_PaintEvent(self *C.QDateEdit, cb C.intptr_t, e // Delete this object from C++ memory. func (this *QDateEdit) Delete() { - C.QDateEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QDateEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdatetimeedit.h b/qt/gen_qdatetimeedit.h index f8f17d9d..610fe7da 100644 --- a/qt/gen_qdatetimeedit.h +++ b/qt/gen_qdatetimeedit.h @@ -212,7 +212,7 @@ void QDateTimeEdit_override_virtual_TimerEvent(void* self, intptr_t slot); void QDateTimeEdit_virtualbase_TimerEvent(void* self, QTimerEvent* event); void QDateTimeEdit_override_virtual_ShowEvent(void* self, intptr_t slot); void QDateTimeEdit_virtualbase_ShowEvent(void* self, QShowEvent* event); -void QDateTimeEdit_Delete(QDateTimeEdit* self, bool isSubclass); +void QDateTimeEdit_Delete(QDateTimeEdit* self); QTimeEdit* QTimeEdit_new(QWidget* parent); QTimeEdit* QTimeEdit_new2(); @@ -259,7 +259,7 @@ void QTimeEdit_override_virtual_MousePressEvent(void* self, intptr_t slot); void QTimeEdit_virtualbase_MousePressEvent(void* self, QMouseEvent* event); void QTimeEdit_override_virtual_PaintEvent(void* self, intptr_t slot); void QTimeEdit_virtualbase_PaintEvent(void* self, QPaintEvent* event); -void QTimeEdit_Delete(QTimeEdit* self, bool isSubclass); +void QTimeEdit_Delete(QTimeEdit* self); QDateEdit* QDateEdit_new(QWidget* parent); QDateEdit* QDateEdit_new2(); @@ -306,7 +306,7 @@ void QDateEdit_override_virtual_MousePressEvent(void* self, intptr_t slot); void QDateEdit_virtualbase_MousePressEvent(void* self, QMouseEvent* event); void QDateEdit_override_virtual_PaintEvent(void* self, intptr_t slot); void QDateEdit_virtualbase_PaintEvent(void* self, QPaintEvent* event); -void QDateEdit_Delete(QDateEdit* self, bool isSubclass); +void QDateEdit_Delete(QDateEdit* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdeadlinetimer.cpp b/qt/gen_qdeadlinetimer.cpp index 99f291eb..28ca69a9 100644 --- a/qt/gen_qdeadlinetimer.cpp +++ b/qt/gen_qdeadlinetimer.cpp @@ -147,11 +147,7 @@ QDeadlineTimer* QDeadlineTimer_Current1(int timerType) { return new QDeadlineTimer(QDeadlineTimer::current(static_cast(timerType))); } -void QDeadlineTimer_Delete(QDeadlineTimer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDeadlineTimer_Delete(QDeadlineTimer* self) { + delete self; } diff --git a/qt/gen_qdeadlinetimer.go b/qt/gen_qdeadlinetimer.go index 92e56cb3..bb60811f 100644 --- a/qt/gen_qdeadlinetimer.go +++ b/qt/gen_qdeadlinetimer.go @@ -216,7 +216,7 @@ func QDeadlineTimer_Current1(timerType TimerType) *QDeadlineTimer { // Delete this object from C++ memory. func (this *QDeadlineTimer) Delete() { - C.QDeadlineTimer_Delete(this.h, C.bool(this.isSubclass)) + C.QDeadlineTimer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdeadlinetimer.h b/qt/gen_qdeadlinetimer.h index 73d8c75e..306258fd 100644 --- a/qt/gen_qdeadlinetimer.h +++ b/qt/gen_qdeadlinetimer.h @@ -52,7 +52,7 @@ void QDeadlineTimer_SetDeadline2(QDeadlineTimer* self, long long msecs, int time void QDeadlineTimer_SetPreciseDeadline2(QDeadlineTimer* self, long long secs, long long nsecs); void QDeadlineTimer_SetPreciseDeadline3(QDeadlineTimer* self, long long secs, long long nsecs, int typeVal); QDeadlineTimer* QDeadlineTimer_Current1(int timerType); -void QDeadlineTimer_Delete(QDeadlineTimer* self, bool isSubclass); +void QDeadlineTimer_Delete(QDeadlineTimer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdebug.cpp b/qt/gen_qdebug.cpp index 72169cae..6f0192ae 100644 --- a/qt/gen_qdebug.cpp +++ b/qt/gen_qdebug.cpp @@ -208,24 +208,16 @@ QDebug* QDebug_MaybeQuote1(QDebug* self, char c) { return &_ret; } -void QDebug_Delete(QDebug* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDebug_Delete(QDebug* self) { + delete self; } QDebugStateSaver* QDebugStateSaver_new(QDebug* dbg) { return new QDebugStateSaver(*dbg); } -void QDebugStateSaver_Delete(QDebugStateSaver* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDebugStateSaver_Delete(QDebugStateSaver* self) { + delete self; } QNoDebug* QNoDebug_Space(QNoDebug* self) { @@ -276,11 +268,7 @@ QNoDebug* QNoDebug_MaybeQuote1(QNoDebug* self, const char param1) { return &_ret; } -void QNoDebug_Delete(QNoDebug* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNoDebug_Delete(QNoDebug* self) { + delete self; } diff --git a/qt/gen_qdebug.go b/qt/gen_qdebug.go index 61358036..88cfd402 100644 --- a/qt/gen_qdebug.go +++ b/qt/gen_qdebug.go @@ -209,7 +209,7 @@ func (this *QDebug) MaybeQuote1(c int8) *QDebug { // Delete this object from C++ memory. func (this *QDebug) Delete() { - C.QDebug_Delete(this.h, C.bool(this.isSubclass)) + C.QDebug_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -264,7 +264,7 @@ func NewQDebugStateSaver(dbg *QDebug) *QDebugStateSaver { // Delete this object from C++ memory. func (this *QDebugStateSaver) Delete() { - C.QDebugStateSaver_Delete(this.h, C.bool(this.isSubclass)) + C.QDebugStateSaver_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -343,7 +343,7 @@ func (this *QNoDebug) MaybeQuote1(param1 int8) *QNoDebug { // Delete this object from C++ memory. func (this *QNoDebug) Delete() { - C.QNoDebug_Delete(this.h, C.bool(this.isSubclass)) + C.QNoDebug_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdebug.h b/qt/gen_qdebug.h index 88c48092..d52b678c 100644 --- a/qt/gen_qdebug.h +++ b/qt/gen_qdebug.h @@ -62,10 +62,10 @@ QDebug* QDebug_OperatorShiftLeftWithQString(QDebug* self, struct miqt_string t); QDebug* QDebug_OperatorShiftLeftWithQByteArray(QDebug* self, struct miqt_string t); QDebug* QDebug_OperatorShiftLeftWithVoid(QDebug* self, const void* t); QDebug* QDebug_MaybeQuote1(QDebug* self, char c); -void QDebug_Delete(QDebug* self, bool isSubclass); +void QDebug_Delete(QDebug* self); QDebugStateSaver* QDebugStateSaver_new(QDebug* dbg); -void QDebugStateSaver_Delete(QDebugStateSaver* self, bool isSubclass); +void QDebugStateSaver_Delete(QDebugStateSaver* self); QNoDebug* QNoDebug_Space(QNoDebug* self); QNoDebug* QNoDebug_Nospace(QNoDebug* self); @@ -75,7 +75,7 @@ QNoDebug* QNoDebug_Noquote(QNoDebug* self); QNoDebug* QNoDebug_MaybeQuote(QNoDebug* self); QNoDebug* QNoDebug_Verbosity(QNoDebug* self, int param1); QNoDebug* QNoDebug_MaybeQuote1(QNoDebug* self, const char param1); -void QNoDebug_Delete(QNoDebug* self, bool isSubclass); +void QNoDebug_Delete(QNoDebug* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdesktopservices.cpp b/qt/gen_qdesktopservices.cpp index fd2d46f5..e27a5a3c 100644 --- a/qt/gen_qdesktopservices.cpp +++ b/qt/gen_qdesktopservices.cpp @@ -29,11 +29,7 @@ void QDesktopServices_UnsetUrlHandler(struct miqt_string scheme) { QDesktopServices::unsetUrlHandler(scheme_QString); } -void QDesktopServices_Delete(QDesktopServices* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDesktopServices_Delete(QDesktopServices* self) { + delete self; } diff --git a/qt/gen_qdesktopservices.go b/qt/gen_qdesktopservices.go index 679b29d1..4d56cff9 100644 --- a/qt/gen_qdesktopservices.go +++ b/qt/gen_qdesktopservices.go @@ -70,7 +70,7 @@ func QDesktopServices_UnsetUrlHandler(scheme string) { // Delete this object from C++ memory. func (this *QDesktopServices) Delete() { - C.QDesktopServices_Delete(this.h, C.bool(this.isSubclass)) + C.QDesktopServices_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdesktopservices.h b/qt/gen_qdesktopservices.h index 7f049343..b77ac49b 100644 --- a/qt/gen_qdesktopservices.h +++ b/qt/gen_qdesktopservices.h @@ -27,7 +27,7 @@ typedef struct QUrl QUrl; bool QDesktopServices_OpenUrl(QUrl* url); void QDesktopServices_SetUrlHandler(struct miqt_string scheme, QObject* receiver, const char* method); void QDesktopServices_UnsetUrlHandler(struct miqt_string scheme); -void QDesktopServices_Delete(QDesktopServices* self, bool isSubclass); +void QDesktopServices_Delete(QDesktopServices* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdesktopwidget.cpp b/qt/gen_qdesktopwidget.cpp index 99c44828..290faeff 100644 --- a/qt/gen_qdesktopwidget.cpp +++ b/qt/gen_qdesktopwidget.cpp @@ -88,12 +88,12 @@ bool miqt_exec_callback_QDesktopWidget_FocusNextPrevChild(void*, intptr_t, bool) } /* extern C */ #endif -class MiqtVirtualQDesktopWidget : public virtual QDesktopWidget { +class MiqtVirtualQDesktopWidget final : public QDesktopWidget { public: MiqtVirtualQDesktopWidget(): QDesktopWidget() {}; - virtual ~MiqtVirtualQDesktopWidget() = default; + virtual ~MiqtVirtualQDesktopWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ResizeEvent = 0; @@ -1593,11 +1593,7 @@ bool QDesktopWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQDesktopWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QDesktopWidget_Delete(QDesktopWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDesktopWidget_Delete(QDesktopWidget* self) { + delete self; } diff --git a/qt/gen_qdesktopwidget.go b/qt/gen_qdesktopwidget.go index 0b162cd7..68242ced 100644 --- a/qt/gen_qdesktopwidget.go +++ b/qt/gen_qdesktopwidget.go @@ -1383,7 +1383,7 @@ func miqt_exec_callback_QDesktopWidget_FocusNextPrevChild(self *C.QDesktopWidget // Delete this object from C++ memory. func (this *QDesktopWidget) Delete() { - C.QDesktopWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QDesktopWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdesktopwidget.h b/qt/gen_qdesktopwidget.h index abbec78d..63eb9e87 100644 --- a/qt/gen_qdesktopwidget.h +++ b/qt/gen_qdesktopwidget.h @@ -196,7 +196,7 @@ void QDesktopWidget_override_virtual_InputMethodQuery(void* self, intptr_t slot) QVariant* QDesktopWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QDesktopWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QDesktopWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QDesktopWidget_Delete(QDesktopWidget* self, bool isSubclass); +void QDesktopWidget_Delete(QDesktopWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdial.cpp b/qt/gen_qdial.cpp index 36151f07..3cdfe93b 100644 --- a/qt/gen_qdial.cpp +++ b/qt/gen_qdial.cpp @@ -39,13 +39,13 @@ void miqt_exec_callback_QDial_ChangeEvent(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQDial : public virtual QDial { +class MiqtVirtualQDial final : public QDial { public: MiqtVirtualQDial(QWidget* parent): QDial(parent) {}; MiqtVirtualQDial(): QDial() {}; - virtual ~MiqtVirtualQDial() = default; + virtual ~MiqtVirtualQDial() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -584,11 +584,7 @@ void QDial_virtualbase_ChangeEvent(void* self, QEvent* e) { ( (MiqtVirtualQDial*)(self) )->virtualbase_ChangeEvent(e); } -void QDial_Delete(QDial* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDial_Delete(QDial* self) { + delete self; } diff --git a/qt/gen_qdial.go b/qt/gen_qdial.go index 8ef1651f..367a7aa9 100644 --- a/qt/gen_qdial.go +++ b/qt/gen_qdial.go @@ -523,7 +523,7 @@ func miqt_exec_callback_QDial_ChangeEvent(self *C.QDial, cb C.intptr_t, e *C.QEv // Delete this object from C++ memory. func (this *QDial) Delete() { - C.QDial_Delete(this.h, C.bool(this.isSubclass)) + C.QDial_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdial.h b/qt/gen_qdial.h index 1e0c0487..2bc4edb5 100644 --- a/qt/gen_qdial.h +++ b/qt/gen_qdial.h @@ -99,7 +99,7 @@ void QDial_override_virtual_WheelEvent(void* self, intptr_t slot); void QDial_virtualbase_WheelEvent(void* self, QWheelEvent* e); void QDial_override_virtual_ChangeEvent(void* self, intptr_t slot); void QDial_virtualbase_ChangeEvent(void* self, QEvent* e); -void QDial_Delete(QDial* self, bool isSubclass); +void QDial_Delete(QDial* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdialog.cpp b/qt/gen_qdialog.cpp index ebe2dc92..39c215ce 100644 --- a/qt/gen_qdialog.cpp +++ b/qt/gen_qdialog.cpp @@ -92,14 +92,14 @@ bool miqt_exec_callback_QDialog_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQDialog : public virtual QDialog { +class MiqtVirtualQDialog final : public QDialog { public: MiqtVirtualQDialog(QWidget* parent): QDialog(parent) {}; MiqtVirtualQDialog(): QDialog() {}; MiqtVirtualQDialog(QWidget* parent, Qt::WindowFlags f): QDialog(parent, f) {}; - virtual ~MiqtVirtualQDialog() = default; + virtual ~MiqtVirtualQDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -1787,11 +1787,7 @@ bool QDialog_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQDialog*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QDialog_Delete(QDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDialog_Delete(QDialog* self) { + delete self; } diff --git a/qt/gen_qdialog.go b/qt/gen_qdialog.go index a05a5786..47d351ad 100644 --- a/qt/gen_qdialog.go +++ b/qt/gen_qdialog.go @@ -1525,7 +1525,7 @@ func miqt_exec_callback_QDialog_FocusNextPrevChild(self *C.QDialog, cb C.intptr_ // Delete this object from C++ memory. func (this *QDialog) Delete() { - C.QDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdialog.h b/qt/gen_qdialog.h index 15ce55d2..262390de 100644 --- a/qt/gen_qdialog.h +++ b/qt/gen_qdialog.h @@ -212,7 +212,7 @@ void QDialog_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QDialog_virtualbase_InputMethodQuery(const void* self, int param1); void QDialog_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QDialog_virtualbase_FocusNextPrevChild(void* self, bool next); -void QDialog_Delete(QDialog* self, bool isSubclass); +void QDialog_Delete(QDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdialogbuttonbox.cpp b/qt/gen_qdialogbuttonbox.cpp index b48d320b..fe55d700 100644 --- a/qt/gen_qdialogbuttonbox.cpp +++ b/qt/gen_qdialogbuttonbox.cpp @@ -90,7 +90,7 @@ bool miqt_exec_callback_QDialogButtonBox_FocusNextPrevChild(void*, intptr_t, boo } /* extern C */ #endif -class MiqtVirtualQDialogButtonBox : public virtual QDialogButtonBox { +class MiqtVirtualQDialogButtonBox final : public QDialogButtonBox { public: MiqtVirtualQDialogButtonBox(QWidget* parent): QDialogButtonBox(parent) {}; @@ -102,7 +102,7 @@ public: MiqtVirtualQDialogButtonBox(QDialogButtonBox::StandardButtons buttons, QWidget* parent): QDialogButtonBox(buttons, parent) {}; MiqtVirtualQDialogButtonBox(QDialogButtonBox::StandardButtons buttons, Qt::Orientation orientation, QWidget* parent): QDialogButtonBox(buttons, orientation, parent) {}; - virtual ~MiqtVirtualQDialogButtonBox() = default; + virtual ~MiqtVirtualQDialogButtonBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ChangeEvent = 0; @@ -1634,11 +1634,7 @@ bool QDialogButtonBox_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQDialogButtonBox*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QDialogButtonBox_Delete(QDialogButtonBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDialogButtonBox_Delete(QDialogButtonBox* self) { + delete self; } diff --git a/qt/gen_qdialogbuttonbox.go b/qt/gen_qdialogbuttonbox.go index b3d4e3e4..e0bd2f19 100644 --- a/qt/gen_qdialogbuttonbox.go +++ b/qt/gen_qdialogbuttonbox.go @@ -1471,7 +1471,7 @@ func miqt_exec_callback_QDialogButtonBox_FocusNextPrevChild(self *C.QDialogButto // Delete this object from C++ memory. func (this *QDialogButtonBox) Delete() { - C.QDialogButtonBox_Delete(this.h, C.bool(this.isSubclass)) + C.QDialogButtonBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdialogbuttonbox.h b/qt/gen_qdialogbuttonbox.h index bdde7efb..50f4b597 100644 --- a/qt/gen_qdialogbuttonbox.h +++ b/qt/gen_qdialogbuttonbox.h @@ -204,7 +204,7 @@ void QDialogButtonBox_override_virtual_InputMethodQuery(void* self, intptr_t slo QVariant* QDialogButtonBox_virtualbase_InputMethodQuery(const void* self, int param1); void QDialogButtonBox_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QDialogButtonBox_virtualbase_FocusNextPrevChild(void* self, bool next); -void QDialogButtonBox_Delete(QDialogButtonBox* self, bool isSubclass); +void QDialogButtonBox_Delete(QDialogButtonBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdir.cpp b/qt/gen_qdir.cpp index b7201ae5..dac23177 100644 --- a/qt/gen_qdir.cpp +++ b/qt/gen_qdir.cpp @@ -758,11 +758,7 @@ struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList3(const QDir* self, str return _out; } -void QDir_Delete(QDir* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDir_Delete(QDir* self) { + delete self; } diff --git a/qt/gen_qdir.go b/qt/gen_qdir.go index 0d26e574..5a4170e0 100644 --- a/qt/gen_qdir.go +++ b/qt/gen_qdir.go @@ -870,7 +870,7 @@ func (this *QDir) EntryInfoList3(nameFilters []string, filters QDir__Filter, sor // Delete this object from C++ memory. func (this *QDir) Delete() { - C.QDir_Delete(this.h, C.bool(this.isSubclass)) + C.QDir_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdir.h b/qt/gen_qdir.h index b8a73c55..a50789eb 100644 --- a/qt/gen_qdir.h +++ b/qt/gen_qdir.h @@ -106,7 +106,7 @@ struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList1(const QDir* self, int struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList2(const QDir* self, int filters, int sort); struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); -void QDir_Delete(QDir* self, bool isSubclass); +void QDir_Delete(QDir* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdiriterator.cpp b/qt/gen_qdiriterator.cpp index c084b78f..240d1bd3 100644 --- a/qt/gen_qdiriterator.cpp +++ b/qt/gen_qdiriterator.cpp @@ -132,11 +132,7 @@ struct miqt_string QDirIterator_Path(const QDirIterator* self) { return _ms; } -void QDirIterator_Delete(QDirIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDirIterator_Delete(QDirIterator* self) { + delete self; } diff --git a/qt/gen_qdiriterator.go b/qt/gen_qdiriterator.go index 5980a672..6a71494f 100644 --- a/qt/gen_qdiriterator.go +++ b/qt/gen_qdiriterator.go @@ -224,7 +224,7 @@ func (this *QDirIterator) Path() string { // Delete this object from C++ memory. func (this *QDirIterator) Delete() { - C.QDirIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QDirIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdiriterator.h b/qt/gen_qdiriterator.h index 548c7563..c85400c1 100644 --- a/qt/gen_qdiriterator.h +++ b/qt/gen_qdiriterator.h @@ -39,7 +39,7 @@ struct miqt_string QDirIterator_FileName(const QDirIterator* self); struct miqt_string QDirIterator_FilePath(const QDirIterator* self); QFileInfo* QDirIterator_FileInfo(const QDirIterator* self); struct miqt_string QDirIterator_Path(const QDirIterator* self); -void QDirIterator_Delete(QDirIterator* self, bool isSubclass); +void QDirIterator_Delete(QDirIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdirmodel.cpp b/qt/gen_qdirmodel.cpp index cb5bee2b..5e40f332 100644 --- a/qt/gen_qdirmodel.cpp +++ b/qt/gen_qdirmodel.cpp @@ -60,7 +60,7 @@ void miqt_exec_callback_QDirModel_Revert(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQDirModel : public virtual QDirModel { +class MiqtVirtualQDirModel final : public QDirModel { public: MiqtVirtualQDirModel(const QStringList& nameFilters, QDir::Filters filters, QDir::SortFlags sort): QDirModel(nameFilters, filters, sort) {}; @@ -68,7 +68,7 @@ public: MiqtVirtualQDirModel(const QStringList& nameFilters, QDir::Filters filters, QDir::SortFlags sort, QObject* parent): QDirModel(nameFilters, filters, sort, parent) {}; MiqtVirtualQDirModel(QObject* parent): QDirModel(parent) {}; - virtual ~MiqtVirtualQDirModel() = default; + virtual ~MiqtVirtualQDirModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Index = 0; @@ -1686,11 +1686,7 @@ void QDirModel_virtualbase_Revert(void* self) { ( (MiqtVirtualQDirModel*)(self) )->virtualbase_Revert(); } -void QDirModel_Delete(QDirModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDirModel_Delete(QDirModel* self) { + delete self; } diff --git a/qt/gen_qdirmodel.go b/qt/gen_qdirmodel.go index e75381d3..31183d63 100644 --- a/qt/gen_qdirmodel.go +++ b/qt/gen_qdirmodel.go @@ -1575,7 +1575,7 @@ func miqt_exec_callback_QDirModel_Revert(self *C.QDirModel, cb C.intptr_t) { // Delete this object from C++ memory. func (this *QDirModel) Delete() { - C.QDirModel_Delete(this.h, C.bool(this.isSubclass)) + C.QDirModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdirmodel.h b/qt/gen_qdirmodel.h index 145b4ddc..434dd778 100644 --- a/qt/gen_qdirmodel.h +++ b/qt/gen_qdirmodel.h @@ -161,7 +161,7 @@ void QDirModel_override_virtual_Submit(void* self, intptr_t slot); bool QDirModel_virtualbase_Submit(void* self); void QDirModel_override_virtual_Revert(void* self, intptr_t slot); void QDirModel_virtualbase_Revert(void* self); -void QDirModel_Delete(QDirModel* self, bool isSubclass); +void QDirModel_Delete(QDirModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdockwidget.cpp b/qt/gen_qdockwidget.cpp index 38fcc62e..db58ea80 100644 --- a/qt/gen_qdockwidget.cpp +++ b/qt/gen_qdockwidget.cpp @@ -89,7 +89,7 @@ bool miqt_exec_callback_QDockWidget_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQDockWidget : public virtual QDockWidget { +class MiqtVirtualQDockWidget final : public QDockWidget { public: MiqtVirtualQDockWidget(QWidget* parent): QDockWidget(parent) {}; @@ -99,7 +99,7 @@ public: MiqtVirtualQDockWidget(const QString& title, QWidget* parent, Qt::WindowFlags flags): QDockWidget(title, parent, flags) {}; MiqtVirtualQDockWidget(QWidget* parent, Qt::WindowFlags flags): QDockWidget(parent, flags) {}; - virtual ~MiqtVirtualQDockWidget() = default; + virtual ~MiqtVirtualQDockWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ChangeEvent = 0; @@ -1619,11 +1619,7 @@ bool QDockWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQDockWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QDockWidget_Delete(QDockWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDockWidget_Delete(QDockWidget* self) { + delete self; } diff --git a/qt/gen_qdockwidget.go b/qt/gen_qdockwidget.go index b66ee52f..bb572e13 100644 --- a/qt/gen_qdockwidget.go +++ b/qt/gen_qdockwidget.go @@ -1435,7 +1435,7 @@ func miqt_exec_callback_QDockWidget_FocusNextPrevChild(self *C.QDockWidget, cb C // Delete this object from C++ memory. func (this *QDockWidget) Delete() { - C.QDockWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QDockWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdockwidget.h b/qt/gen_qdockwidget.h index bbffb66e..0908ad8d 100644 --- a/qt/gen_qdockwidget.h +++ b/qt/gen_qdockwidget.h @@ -201,7 +201,7 @@ void QDockWidget_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QDockWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QDockWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QDockWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QDockWidget_Delete(QDockWidget* self, bool isSubclass); +void QDockWidget_Delete(QDockWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdrag.cpp b/qt/gen_qdrag.cpp index 0c8413cb..ce6739cc 100644 --- a/qt/gen_qdrag.cpp +++ b/qt/gen_qdrag.cpp @@ -31,12 +31,12 @@ void miqt_exec_callback_QDrag_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQDrag : public virtual QDrag { +class MiqtVirtualQDrag final : public QDrag { public: MiqtVirtualQDrag(QObject* dragSource): QDrag(dragSource) {}; - virtual ~MiqtVirtualQDrag() = default; + virtual ~MiqtVirtualQDrag() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -451,11 +451,7 @@ void QDrag_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQDrag*)(self) )->virtualbase_DisconnectNotify(signal); } -void QDrag_Delete(QDrag* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDrag_Delete(QDrag* self) { + delete self; } diff --git a/qt/gen_qdrag.go b/qt/gen_qdrag.go index 1006798b..e44b9ad3 100644 --- a/qt/gen_qdrag.go +++ b/qt/gen_qdrag.go @@ -439,7 +439,7 @@ func miqt_exec_callback_QDrag_DisconnectNotify(self *C.QDrag, cb C.intptr_t, sig // Delete this object from C++ memory. func (this *QDrag) Delete() { - C.QDrag_Delete(this.h, C.bool(this.isSubclass)) + C.QDrag_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdrag.h b/qt/gen_qdrag.h index 00790f0b..634fe65a 100644 --- a/qt/gen_qdrag.h +++ b/qt/gen_qdrag.h @@ -84,7 +84,7 @@ void QDrag_override_virtual_ConnectNotify(void* self, intptr_t slot); void QDrag_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QDrag_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QDrag_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QDrag_Delete(QDrag* self, bool isSubclass); +void QDrag_Delete(QDrag* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qdrawutil.cpp b/qt/gen_qdrawutil.cpp index a4c6a62f..35c83287 100644 --- a/qt/gen_qdrawutil.cpp +++ b/qt/gen_qdrawutil.cpp @@ -26,11 +26,7 @@ QTileRules* QTileRules_new4(int rule) { return new QTileRules(static_cast(rule)); } -void QTileRules_Delete(QTileRules* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTileRules_Delete(QTileRules* self) { + delete self; } diff --git a/qt/gen_qdrawutil.go b/qt/gen_qdrawutil.go index 32370e07..ccd7d24b 100644 --- a/qt/gen_qdrawutil.go +++ b/qt/gen_qdrawutil.go @@ -98,7 +98,7 @@ func NewQTileRules4(rule TileRule) *QTileRules { // Delete this object from C++ memory. func (this *QTileRules) Delete() { - C.QTileRules_Delete(this.h, C.bool(this.isSubclass)) + C.QTileRules_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qdrawutil.h b/qt/gen_qdrawutil.h index 4e1bd98c..837c264c 100644 --- a/qt/gen_qdrawutil.h +++ b/qt/gen_qdrawutil.h @@ -24,7 +24,7 @@ QTileRules* QTileRules_new(int horizontalRule, int verticalRule); QTileRules* QTileRules_new2(); QTileRules* QTileRules_new3(QTileRules* param1); QTileRules* QTileRules_new4(int rule); -void QTileRules_Delete(QTileRules* self, bool isSubclass); +void QTileRules_Delete(QTileRules* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qeasingcurve.cpp b/qt/gen_qeasingcurve.cpp index 3d78a0cb..ca2d5883 100644 --- a/qt/gen_qeasingcurve.cpp +++ b/qt/gen_qeasingcurve.cpp @@ -102,11 +102,7 @@ double QEasingCurve_ValueForProgress(const QEasingCurve* self, double progress) return static_cast(_ret); } -void QEasingCurve_Delete(QEasingCurve* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEasingCurve_Delete(QEasingCurve* self) { + delete self; } diff --git a/qt/gen_qeasingcurve.go b/qt/gen_qeasingcurve.go index eff607f9..b1b57954 100644 --- a/qt/gen_qeasingcurve.go +++ b/qt/gen_qeasingcurve.go @@ -198,7 +198,7 @@ func (this *QEasingCurve) ValueForProgress(progress float64) float64 { // Delete this object from C++ memory. func (this *QEasingCurve) Delete() { - C.QEasingCurve_Delete(this.h, C.bool(this.isSubclass)) + C.QEasingCurve_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qeasingcurve.h b/qt/gen_qeasingcurve.h index 822c383c..5eb672e5 100644 --- a/qt/gen_qeasingcurve.h +++ b/qt/gen_qeasingcurve.h @@ -41,7 +41,7 @@ struct miqt_array /* of QPointF* */ QEasingCurve_ToCubicSpline(const QEasingCur int QEasingCurve_Type(const QEasingCurve* self); void QEasingCurve_SetType(QEasingCurve* self, int typeVal); double QEasingCurve_ValueForProgress(const QEasingCurve* self, double progress); -void QEasingCurve_Delete(QEasingCurve* self, bool isSubclass); +void QEasingCurve_Delete(QEasingCurve* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qelapsedtimer.cpp b/qt/gen_qelapsedtimer.cpp index 81208833..63e9bf9c 100644 --- a/qt/gen_qelapsedtimer.cpp +++ b/qt/gen_qelapsedtimer.cpp @@ -77,11 +77,7 @@ bool QElapsedTimer_OperatorNotEqual(const QElapsedTimer* self, QElapsedTimer* ot return (*self != *other); } -void QElapsedTimer_Delete(QElapsedTimer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QElapsedTimer_Delete(QElapsedTimer* self) { + delete self; } diff --git a/qt/gen_qelapsedtimer.go b/qt/gen_qelapsedtimer.go index 60827d22..91e31609 100644 --- a/qt/gen_qelapsedtimer.go +++ b/qt/gen_qelapsedtimer.go @@ -122,7 +122,7 @@ func (this *QElapsedTimer) OperatorNotEqual(other *QElapsedTimer) bool { // Delete this object from C++ memory. func (this *QElapsedTimer) Delete() { - C.QElapsedTimer_Delete(this.h, C.bool(this.isSubclass)) + C.QElapsedTimer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qelapsedtimer.h b/qt/gen_qelapsedtimer.h index 3300b006..84623da3 100644 --- a/qt/gen_qelapsedtimer.h +++ b/qt/gen_qelapsedtimer.h @@ -35,7 +35,7 @@ long long QElapsedTimer_MsecsTo(const QElapsedTimer* self, QElapsedTimer* other) long long QElapsedTimer_SecsTo(const QElapsedTimer* self, QElapsedTimer* other); bool QElapsedTimer_OperatorEqual(const QElapsedTimer* self, QElapsedTimer* other); bool QElapsedTimer_OperatorNotEqual(const QElapsedTimer* self, QElapsedTimer* other); -void QElapsedTimer_Delete(QElapsedTimer* self, bool isSubclass); +void QElapsedTimer_Delete(QElapsedTimer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qerrormessage.cpp b/qt/gen_qerrormessage.cpp index 77298100..cbfa36fb 100644 --- a/qt/gen_qerrormessage.cpp +++ b/qt/gen_qerrormessage.cpp @@ -40,13 +40,13 @@ bool miqt_exec_callback_QErrorMessage_EventFilter(void*, intptr_t, QObject*, QEv } /* extern C */ #endif -class MiqtVirtualQErrorMessage : public virtual QErrorMessage { +class MiqtVirtualQErrorMessage final : public QErrorMessage { public: MiqtVirtualQErrorMessage(QWidget* parent): QErrorMessage(parent) {}; MiqtVirtualQErrorMessage(): QErrorMessage() {}; - virtual ~MiqtVirtualQErrorMessage() = default; + virtual ~MiqtVirtualQErrorMessage() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Done = 0; @@ -622,11 +622,7 @@ bool QErrorMessage_virtualbase_EventFilter(void* self, QObject* param1, QEvent* return ( (MiqtVirtualQErrorMessage*)(self) )->virtualbase_EventFilter(param1, param2); } -void QErrorMessage_Delete(QErrorMessage* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QErrorMessage_Delete(QErrorMessage* self) { + delete self; } diff --git a/qt/gen_qerrormessage.go b/qt/gen_qerrormessage.go index 7939f31c..2174b1d5 100644 --- a/qt/gen_qerrormessage.go +++ b/qt/gen_qerrormessage.go @@ -551,7 +551,7 @@ func miqt_exec_callback_QErrorMessage_EventFilter(self *C.QErrorMessage, cb C.in // Delete this object from C++ memory. func (this *QErrorMessage) Delete() { - C.QErrorMessage_Delete(this.h, C.bool(this.isSubclass)) + C.QErrorMessage_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qerrormessage.h b/qt/gen_qerrormessage.h index 28c6db8e..6dc35e1e 100644 --- a/qt/gen_qerrormessage.h +++ b/qt/gen_qerrormessage.h @@ -90,7 +90,7 @@ void QErrorMessage_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QErrorMessage_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QErrorMessage_override_virtual_EventFilter(void* self, intptr_t slot); bool QErrorMessage_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QErrorMessage_Delete(QErrorMessage* self, bool isSubclass); +void QErrorMessage_Delete(QErrorMessage* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qevent.cpp b/qt/gen_qevent.cpp index ecf01d94..119e6c50 100644 --- a/qt/gen_qevent.cpp +++ b/qt/gen_qevent.cpp @@ -106,12 +106,8 @@ void QInputEvent_SetTimestamp(QInputEvent* self, unsigned long atimestamp) { self->setTimestamp(static_cast(atimestamp)); } -void QInputEvent_Delete(QInputEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInputEvent_Delete(QInputEvent* self) { + delete self; } QEnterEvent* QEnterEvent_new(QPointF* localPos, QPointF* windowPos, QPointF* screenPos) { @@ -168,12 +164,8 @@ QPointF* QEnterEvent_ScreenPos(const QEnterEvent* self) { return const_cast(&_ret); } -void QEnterEvent_Delete(QEnterEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEnterEvent_Delete(QEnterEvent* self) { + delete self; } QMouseEvent* QMouseEvent_new(int typeVal, QPointF* localPos, int button, int buttons, int modifiers) { @@ -266,12 +258,8 @@ int QMouseEvent_Flags(const QMouseEvent* self) { return static_cast(_ret); } -void QMouseEvent_Delete(QMouseEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMouseEvent_Delete(QMouseEvent* self) { + delete self; } QHoverEvent* QHoverEvent_new(int typeVal, QPointF* pos, QPointF* oldPos) { @@ -310,12 +298,8 @@ QPointF* QHoverEvent_OldPosF(const QHoverEvent* self) { return const_cast(&_ret); } -void QHoverEvent_Delete(QHoverEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHoverEvent_Delete(QHoverEvent* self) { + delete self; } QWheelEvent* QWheelEvent_new(QPointF* pos, int delta, int buttons, int modifiers) { @@ -446,12 +430,8 @@ int QWheelEvent_Source(const QWheelEvent* self) { return static_cast(_ret); } -void QWheelEvent_Delete(QWheelEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWheelEvent_Delete(QWheelEvent* self) { + delete self; } QTabletEvent* QTabletEvent_new(int t, QPointF* pos, QPointF* globalPos, int device, int pointerType, double pressure, int xTilt, int yTilt, double tangentialPressure, double rotation, int z, int keyState, long long uniqueID) { @@ -573,12 +553,8 @@ int QTabletEvent_Buttons(const QTabletEvent* self) { return static_cast(_ret); } -void QTabletEvent_Delete(QTabletEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTabletEvent_Delete(QTabletEvent* self) { + delete self; } QNativeGestureEvent* QNativeGestureEvent_new(int typeVal, QPointF* localPos, QPointF* windowPos, QPointF* screenPos, double value, unsigned long sequenceId, unsigned long long intArgument) { @@ -637,12 +613,8 @@ QTouchDevice* QNativeGestureEvent_Device(const QNativeGestureEvent* self) { return (QTouchDevice*) self->device(); } -void QNativeGestureEvent_Delete(QNativeGestureEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNativeGestureEvent_Delete(QNativeGestureEvent* self) { + delete self; } QKeyEvent* QKeyEvent_new(int typeVal, int key, int modifiers) { @@ -738,12 +710,8 @@ unsigned int QKeyEvent_NativeModifiers(const QKeyEvent* self) { return static_cast(_ret); } -void QKeyEvent_Delete(QKeyEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QKeyEvent_Delete(QKeyEvent* self) { + delete self; } QFocusEvent* QFocusEvent_new(int typeVal) { @@ -775,12 +743,8 @@ int QFocusEvent_Reason(const QFocusEvent* self) { return static_cast(_ret); } -void QFocusEvent_Delete(QFocusEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFocusEvent_Delete(QFocusEvent* self) { + delete self; } QPaintEvent* QPaintEvent_new(QRegion* paintRegion) { @@ -811,12 +775,8 @@ QRegion* QPaintEvent_Region(const QPaintEvent* self) { return const_cast(&_ret); } -void QPaintEvent_Delete(QPaintEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPaintEvent_Delete(QPaintEvent* self) { + delete self; } QMoveEvent* QMoveEvent_new(QPoint* pos, QPoint* oldPos) { @@ -843,12 +803,8 @@ QPoint* QMoveEvent_OldPos(const QMoveEvent* self) { return const_cast(&_ret); } -void QMoveEvent_Delete(QMoveEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMoveEvent_Delete(QMoveEvent* self) { + delete self; } QExposeEvent* QExposeEvent_new(QRegion* rgn) { @@ -869,12 +825,8 @@ QRegion* QExposeEvent_Region(const QExposeEvent* self) { return const_cast(&_ret); } -void QExposeEvent_Delete(QExposeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QExposeEvent_Delete(QExposeEvent* self) { + delete self; } QPlatformSurfaceEvent* QPlatformSurfaceEvent_new(int surfaceEventType) { @@ -894,12 +846,8 @@ int QPlatformSurfaceEvent_SurfaceEventType(const QPlatformSurfaceEvent* self) { return static_cast(_ret); } -void QPlatformSurfaceEvent_Delete(QPlatformSurfaceEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPlatformSurfaceEvent_Delete(QPlatformSurfaceEvent* self) { + delete self; } QResizeEvent* QResizeEvent_new(QSize* size, QSize* oldSize) { @@ -926,12 +874,8 @@ QSize* QResizeEvent_OldSize(const QResizeEvent* self) { return const_cast(&_ret); } -void QResizeEvent_Delete(QResizeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QResizeEvent_Delete(QResizeEvent* self) { + delete self; } QCloseEvent* QCloseEvent_new() { @@ -950,12 +894,8 @@ void QCloseEvent_OperatorAssign(QCloseEvent* self, QCloseEvent* param1) { self->operator=(*param1); } -void QCloseEvent_Delete(QCloseEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCloseEvent_Delete(QCloseEvent* self) { + delete self; } QIconDragEvent* QIconDragEvent_new() { @@ -974,12 +914,8 @@ void QIconDragEvent_OperatorAssign(QIconDragEvent* self, QIconDragEvent* param1) self->operator=(*param1); } -void QIconDragEvent_Delete(QIconDragEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIconDragEvent_Delete(QIconDragEvent* self) { + delete self; } QShowEvent* QShowEvent_new() { @@ -998,12 +934,8 @@ void QShowEvent_OperatorAssign(QShowEvent* self, QShowEvent* param1) { self->operator=(*param1); } -void QShowEvent_Delete(QShowEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QShowEvent_Delete(QShowEvent* self) { + delete self; } QHideEvent* QHideEvent_new() { @@ -1022,12 +954,8 @@ void QHideEvent_OperatorAssign(QHideEvent* self, QHideEvent* param1) { self->operator=(*param1); } -void QHideEvent_Delete(QHideEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHideEvent_Delete(QHideEvent* self) { + delete self; } QContextMenuEvent* QContextMenuEvent_new(int reason, QPoint* pos, QPoint* globalPos, int modifiers) { @@ -1083,12 +1011,8 @@ int QContextMenuEvent_Reason(const QContextMenuEvent* self) { return static_cast(_ret); } -void QContextMenuEvent_Delete(QContextMenuEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QContextMenuEvent_Delete(QContextMenuEvent* self) { + delete self; } QInputMethodEvent* QInputMethodEvent_new() { @@ -1172,12 +1096,8 @@ void QInputMethodEvent_SetCommitString3(QInputMethodEvent* self, struct miqt_str self->setCommitString(commitString_QString, static_cast(replaceFrom), static_cast(replaceLength)); } -void QInputMethodEvent_Delete(QInputMethodEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInputMethodEvent_Delete(QInputMethodEvent* self) { + delete self; } QInputMethodQueryEvent* QInputMethodQueryEvent_new(int queries) { @@ -1205,12 +1125,8 @@ QVariant* QInputMethodQueryEvent_Value(const QInputMethodQueryEvent* self, int q return new QVariant(self->value(static_cast(query))); } -void QInputMethodQueryEvent_Delete(QInputMethodQueryEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInputMethodQueryEvent_Delete(QInputMethodQueryEvent* self) { + delete self; } QDropEvent* QDropEvent_new(QPointF* pos, int actions, QMimeData* data, int buttons, int modifiers) { @@ -1280,12 +1196,8 @@ QMimeData* QDropEvent_MimeData(const QDropEvent* self) { return (QMimeData*) self->mimeData(); } -void QDropEvent_Delete(QDropEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDropEvent_Delete(QDropEvent* self) { + delete self; } QDragMoveEvent* QDragMoveEvent_new(QPoint* pos, int actions, QMimeData* data, int buttons, int modifiers) { @@ -1324,12 +1236,8 @@ void QDragMoveEvent_IgnoreWithQRect(QDragMoveEvent* self, QRect* r) { self->ignore(*r); } -void QDragMoveEvent_Delete(QDragMoveEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDragMoveEvent_Delete(QDragMoveEvent* self) { + delete self; } QDragEnterEvent* QDragEnterEvent_new(QPoint* pos, int actions, QMimeData* data, int buttons, int modifiers) { @@ -1348,12 +1256,8 @@ void QDragEnterEvent_OperatorAssign(QDragEnterEvent* self, QDragEnterEvent* para self->operator=(*param1); } -void QDragEnterEvent_Delete(QDragEnterEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDragEnterEvent_Delete(QDragEnterEvent* self) { + delete self; } QDragLeaveEvent* QDragLeaveEvent_new() { @@ -1372,12 +1276,8 @@ void QDragLeaveEvent_OperatorAssign(QDragLeaveEvent* self, QDragLeaveEvent* para self->operator=(*param1); } -void QDragLeaveEvent_Delete(QDragLeaveEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDragLeaveEvent_Delete(QDragLeaveEvent* self) { + delete self; } QHelpEvent* QHelpEvent_new(int typeVal, QPoint* pos, QPoint* globalPos) { @@ -1420,12 +1320,8 @@ QPoint* QHelpEvent_GlobalPos(const QHelpEvent* self) { return const_cast(&_ret); } -void QHelpEvent_Delete(QHelpEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHelpEvent_Delete(QHelpEvent* self) { + delete self; } QStatusTipEvent* QStatusTipEvent_new(struct miqt_string tip) { @@ -1452,12 +1348,8 @@ struct miqt_string QStatusTipEvent_Tip(const QStatusTipEvent* self) { return _ms; } -void QStatusTipEvent_Delete(QStatusTipEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStatusTipEvent_Delete(QStatusTipEvent* self) { + delete self; } QWhatsThisClickedEvent* QWhatsThisClickedEvent_new(struct miqt_string href) { @@ -1484,12 +1376,8 @@ struct miqt_string QWhatsThisClickedEvent_Href(const QWhatsThisClickedEvent* sel return _ms; } -void QWhatsThisClickedEvent_Delete(QWhatsThisClickedEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWhatsThisClickedEvent_Delete(QWhatsThisClickedEvent* self) { + delete self; } QActionEvent* QActionEvent_new(int typeVal, QAction* action) { @@ -1520,12 +1408,8 @@ void QActionEvent_OperatorAssign(QActionEvent* self, QActionEvent* param1) { self->operator=(*param1); } -void QActionEvent_Delete(QActionEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QActionEvent_Delete(QActionEvent* self) { + delete self; } QFileOpenEvent* QFileOpenEvent_new(struct miqt_string file) { @@ -1564,12 +1448,8 @@ bool QFileOpenEvent_OpenFile(const QFileOpenEvent* self, QFile* file, int flags) return self->openFile(*file, static_cast(flags)); } -void QFileOpenEvent_Delete(QFileOpenEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileOpenEvent_Delete(QFileOpenEvent* self) { + delete self; } QToolBarChangeEvent* QToolBarChangeEvent_new(bool t) { @@ -1588,12 +1468,8 @@ bool QToolBarChangeEvent_Toggle(const QToolBarChangeEvent* self) { return self->toggle(); } -void QToolBarChangeEvent_Delete(QToolBarChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QToolBarChangeEvent_Delete(QToolBarChangeEvent* self) { + delete self; } QShortcutEvent* QShortcutEvent_new(QKeySequence* key, int id) { @@ -1626,12 +1502,8 @@ bool QShortcutEvent_IsAmbiguous(const QShortcutEvent* self) { return self->isAmbiguous(); } -void QShortcutEvent_Delete(QShortcutEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QShortcutEvent_Delete(QShortcutEvent* self) { + delete self; } QWindowStateChangeEvent* QWindowStateChangeEvent_new(int aOldState) { @@ -1659,12 +1531,8 @@ bool QWindowStateChangeEvent_IsOverride(const QWindowStateChangeEvent* self) { return self->isOverride(); } -void QWindowStateChangeEvent_Delete(QWindowStateChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWindowStateChangeEvent_Delete(QWindowStateChangeEvent* self) { + delete self; } QPointingDeviceUniqueId* QPointingDeviceUniqueId_new() { @@ -1688,12 +1556,8 @@ long long QPointingDeviceUniqueId_NumericId(const QPointingDeviceUniqueId* self) return static_cast(_ret); } -void QPointingDeviceUniqueId_Delete(QPointingDeviceUniqueId* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPointingDeviceUniqueId_Delete(QPointingDeviceUniqueId* self) { + delete self; } QTouchEvent* QTouchEvent_new(int eventType) { @@ -1786,12 +1650,8 @@ void QTouchEvent_SetDevice(QTouchEvent* self, QTouchDevice* adevice) { self->setDevice(adevice); } -void QTouchEvent_Delete(QTouchEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTouchEvent_Delete(QTouchEvent* self) { + delete self; } QScrollPrepareEvent* QScrollPrepareEvent_new(QPointF* startPos) { @@ -1834,12 +1694,8 @@ void QScrollPrepareEvent_SetContentPos(QScrollPrepareEvent* self, QPointF* pos) self->setContentPos(*pos); } -void QScrollPrepareEvent_Delete(QScrollPrepareEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScrollPrepareEvent_Delete(QScrollPrepareEvent* self) { + delete self; } QScrollEvent* QScrollEvent_new(QPointF* contentPos, QPointF* overshoot, int scrollState) { @@ -1867,12 +1723,8 @@ int QScrollEvent_ScrollState(const QScrollEvent* self) { return static_cast(_ret); } -void QScrollEvent_Delete(QScrollEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScrollEvent_Delete(QScrollEvent* self) { + delete self; } QScreenOrientationChangeEvent* QScreenOrientationChangeEvent_new(QScreen* screen, int orientation) { @@ -1896,12 +1748,8 @@ int QScreenOrientationChangeEvent_Orientation(const QScreenOrientationChangeEven return static_cast(_ret); } -void QScreenOrientationChangeEvent_Delete(QScreenOrientationChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScreenOrientationChangeEvent_Delete(QScreenOrientationChangeEvent* self) { + delete self; } QApplicationStateChangeEvent* QApplicationStateChangeEvent_new(int state) { @@ -1921,12 +1769,8 @@ int QApplicationStateChangeEvent_ApplicationState(const QApplicationStateChangeE return static_cast(_ret); } -void QApplicationStateChangeEvent_Delete(QApplicationStateChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QApplicationStateChangeEvent_Delete(QApplicationStateChangeEvent* self) { + delete self; } QInputMethodEvent__Attribute* QInputMethodEvent__Attribute_new(int typ, int s, int l, QVariant* val) { @@ -1945,12 +1789,8 @@ void QInputMethodEvent__Attribute_OperatorAssign(QInputMethodEvent__Attribute* s self->operator=(*param1); } -void QInputMethodEvent__Attribute_Delete(QInputMethodEvent__Attribute* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInputMethodEvent__Attribute_Delete(QInputMethodEvent__Attribute* self) { + delete self; } QTouchEvent__TouchPoint* QTouchEvent__TouchPoint_new() { @@ -2184,11 +2024,7 @@ void QTouchEvent__TouchPoint_SetRawScreenPositions(QTouchEvent__TouchPoint* self self->setRawScreenPositions(positions_QList); } -void QTouchEvent__TouchPoint_Delete(QTouchEvent__TouchPoint* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTouchEvent__TouchPoint_Delete(QTouchEvent__TouchPoint* self) { + delete self; } diff --git a/qt/gen_qevent.go b/qt/gen_qevent.go index 81d65ef1..0c8d0af2 100644 --- a/qt/gen_qevent.go +++ b/qt/gen_qevent.go @@ -159,7 +159,7 @@ func (this *QInputEvent) SetTimestamp(atimestamp uint64) { // Delete this object from C++ memory. func (this *QInputEvent) Delete() { - C.QInputEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QInputEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -266,7 +266,7 @@ func (this *QEnterEvent) ScreenPos() *QPointF { // Delete this object from C++ memory. func (this *QEnterEvent) Delete() { - C.QEnterEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QEnterEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -417,7 +417,7 @@ func (this *QMouseEvent) Flags() MouseEventFlag { // Delete this object from C++ memory. func (this *QMouseEvent) Delete() { - C.QMouseEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QMouseEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -512,7 +512,7 @@ func (this *QHoverEvent) OldPosF() *QPointF { // Delete this object from C++ memory. func (this *QHoverEvent) Delete() { - C.QHoverEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QHoverEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -735,7 +735,7 @@ func (this *QWheelEvent) Source() MouseEventSource { // Delete this object from C++ memory. func (this *QWheelEvent) Delete() { - C.QWheelEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QWheelEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -902,7 +902,7 @@ func (this *QTabletEvent) Buttons() MouseButton { // Delete this object from C++ memory. func (this *QTabletEvent) Delete() { - C.QTabletEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QTabletEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1013,7 +1013,7 @@ func (this *QNativeGestureEvent) Device() *QTouchDevice { // Delete this object from C++ memory. func (this *QNativeGestureEvent) Delete() { - C.QNativeGestureEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QNativeGestureEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1199,7 +1199,7 @@ func (this *QKeyEvent) NativeModifiers() uint { // Delete this object from C++ memory. func (this *QKeyEvent) Delete() { - C.QKeyEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QKeyEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1286,7 +1286,7 @@ func (this *QFocusEvent) Reason() FocusReason { // Delete this object from C++ memory. func (this *QFocusEvent) Delete() { - C.QFocusEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QFocusEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1369,7 +1369,7 @@ func (this *QPaintEvent) Region() *QRegion { // Delete this object from C++ memory. func (this *QPaintEvent) Delete() { - C.QPaintEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QPaintEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1444,7 +1444,7 @@ func (this *QMoveEvent) OldPos() *QPoint { // Delete this object from C++ memory. func (this *QMoveEvent) Delete() { - C.QMoveEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QMoveEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1515,7 +1515,7 @@ func (this *QExposeEvent) Region() *QRegion { // Delete this object from C++ memory. func (this *QExposeEvent) Delete() { - C.QExposeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QExposeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1586,7 +1586,7 @@ func (this *QPlatformSurfaceEvent) SurfaceEventType() QPlatformSurfaceEvent__Sur // Delete this object from C++ memory. func (this *QPlatformSurfaceEvent) Delete() { - C.QPlatformSurfaceEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QPlatformSurfaceEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1661,7 +1661,7 @@ func (this *QResizeEvent) OldSize() *QSize { // Delete this object from C++ memory. func (this *QResizeEvent) Delete() { - C.QResizeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QResizeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1732,7 +1732,7 @@ func (this *QCloseEvent) OperatorAssign(param1 *QCloseEvent) { // Delete this object from C++ memory. func (this *QCloseEvent) Delete() { - C.QCloseEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QCloseEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1803,7 +1803,7 @@ func (this *QIconDragEvent) OperatorAssign(param1 *QIconDragEvent) { // Delete this object from C++ memory. func (this *QIconDragEvent) Delete() { - C.QIconDragEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QIconDragEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1874,7 +1874,7 @@ func (this *QShowEvent) OperatorAssign(param1 *QShowEvent) { // Delete this object from C++ memory. func (this *QShowEvent) Delete() { - C.QShowEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QShowEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1945,7 +1945,7 @@ func (this *QHideEvent) OperatorAssign(param1 *QHideEvent) { // Delete this object from C++ memory. func (this *QHideEvent) Delete() { - C.QHideEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QHideEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2056,7 +2056,7 @@ func (this *QContextMenuEvent) Reason() QContextMenuEvent__Reason { // Delete this object from C++ memory. func (this *QContextMenuEvent) Delete() { - C.QContextMenuEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QContextMenuEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2199,7 +2199,7 @@ func (this *QInputMethodEvent) SetCommitString3(commitString string, replaceFrom // Delete this object from C++ memory. func (this *QInputMethodEvent) Delete() { - C.QInputMethodEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QInputMethodEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2280,7 +2280,7 @@ func (this *QInputMethodQueryEvent) Value(query InputMethodQuery) *QVariant { // Delete this object from C++ memory. func (this *QInputMethodQueryEvent) Delete() { - C.QInputMethodQueryEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QInputMethodQueryEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2401,7 +2401,7 @@ func (this *QDropEvent) MimeData() *QMimeData { // Delete this object from C++ memory. func (this *QDropEvent) Delete() { - C.QDropEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QDropEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2498,7 +2498,7 @@ func (this *QDragMoveEvent) IgnoreWithQRect(r *QRect) { // Delete this object from C++ memory. func (this *QDragMoveEvent) Delete() { - C.QDragMoveEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QDragMoveEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2569,7 +2569,7 @@ func (this *QDragEnterEvent) OperatorAssign(param1 *QDragEnterEvent) { // Delete this object from C++ memory. func (this *QDragEnterEvent) Delete() { - C.QDragEnterEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QDragEnterEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2640,7 +2640,7 @@ func (this *QDragLeaveEvent) OperatorAssign(param1 *QDragLeaveEvent) { // Delete this object from C++ memory. func (this *QDragLeaveEvent) Delete() { - C.QDragLeaveEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QDragLeaveEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2731,7 +2731,7 @@ func (this *QHelpEvent) GlobalPos() *QPoint { // Delete this object from C++ memory. func (this *QHelpEvent) Delete() { - C.QHelpEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QHelpEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2809,7 +2809,7 @@ func (this *QStatusTipEvent) Tip() string { // Delete this object from C++ memory. func (this *QStatusTipEvent) Delete() { - C.QStatusTipEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QStatusTipEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2887,7 +2887,7 @@ func (this *QWhatsThisClickedEvent) Href() string { // Delete this object from C++ memory. func (this *QWhatsThisClickedEvent) Delete() { - C.QWhatsThisClickedEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QWhatsThisClickedEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2974,7 +2974,7 @@ func (this *QActionEvent) OperatorAssign(param1 *QActionEvent) { // Delete this object from C++ memory. func (this *QActionEvent) Delete() { - C.QActionEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QActionEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3070,7 +3070,7 @@ func (this *QFileOpenEvent) OpenFile(file *QFile, flags QIODevice__OpenModeFlag) // Delete this object from C++ memory. func (this *QFileOpenEvent) Delete() { - C.QFileOpenEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QFileOpenEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3141,7 +3141,7 @@ func (this *QToolBarChangeEvent) Toggle() bool { // Delete this object from C++ memory. func (this *QToolBarChangeEvent) Delete() { - C.QToolBarChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QToolBarChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3228,7 +3228,7 @@ func (this *QShortcutEvent) IsAmbiguous() bool { // Delete this object from C++ memory. func (this *QShortcutEvent) Delete() { - C.QShortcutEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QShortcutEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3311,7 +3311,7 @@ func (this *QWindowStateChangeEvent) IsOverride() bool { // Delete this object from C++ memory. func (this *QWindowStateChangeEvent) Delete() { - C.QWindowStateChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QWindowStateChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3388,7 +3388,7 @@ func (this *QPointingDeviceUniqueId) NumericId() int64 { // Delete this object from C++ memory. func (this *QPointingDeviceUniqueId) Delete() { - C.QPointingDeviceUniqueId_Delete(this.h, C.bool(this.isSubclass)) + C.QPointingDeviceUniqueId_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3547,7 +3547,7 @@ func (this *QTouchEvent) SetDevice(adevice *QTouchDevice) { // Delete this object from C++ memory. func (this *QTouchEvent) Delete() { - C.QTouchEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QTouchEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3650,7 +3650,7 @@ func (this *QScrollPrepareEvent) SetContentPos(pos *QPointF) { // Delete this object from C++ memory. func (this *QScrollPrepareEvent) Delete() { - C.QScrollPrepareEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QScrollPrepareEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3733,7 +3733,7 @@ func (this *QScrollEvent) ScrollState() QScrollEvent__ScrollState { // Delete this object from C++ memory. func (this *QScrollEvent) Delete() { - C.QScrollEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QScrollEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3808,7 +3808,7 @@ func (this *QScreenOrientationChangeEvent) Orientation() ScreenOrientation { // Delete this object from C++ memory. func (this *QScreenOrientationChangeEvent) Delete() { - C.QScreenOrientationChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QScreenOrientationChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3879,7 +3879,7 @@ func (this *QApplicationStateChangeEvent) ApplicationState() ApplicationState { // Delete this object from C++ memory. func (this *QApplicationStateChangeEvent) Delete() { - C.QApplicationStateChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QApplicationStateChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3954,7 +3954,7 @@ func (this *QInputMethodEvent__Attribute) OperatorAssign(param1 *QInputMethodEve // Delete this object from C++ memory. func (this *QInputMethodEvent__Attribute) Delete() { - C.QInputMethodEvent__Attribute_Delete(this.h, C.bool(this.isSubclass)) + C.QInputMethodEvent__Attribute_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4275,7 +4275,7 @@ func (this *QTouchEvent__TouchPoint) SetRawScreenPositions(positions []QPointF) // Delete this object from C++ memory. func (this *QTouchEvent__TouchPoint) Delete() { - C.QTouchEvent__TouchPoint_Delete(this.h, C.bool(this.isSubclass)) + C.QTouchEvent__TouchPoint_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qevent.h b/qt/gen_qevent.h index 3887ce4a..0a64d65a 100644 --- a/qt/gen_qevent.h +++ b/qt/gen_qevent.h @@ -154,7 +154,7 @@ int QInputEvent_Modifiers(const QInputEvent* self); void QInputEvent_SetModifiers(QInputEvent* self, int amodifiers); unsigned long QInputEvent_Timestamp(const QInputEvent* self); void QInputEvent_SetTimestamp(QInputEvent* self, unsigned long atimestamp); -void QInputEvent_Delete(QInputEvent* self, bool isSubclass); +void QInputEvent_Delete(QInputEvent* self); QEnterEvent* QEnterEvent_new(QPointF* localPos, QPointF* windowPos, QPointF* screenPos); QEnterEvent* QEnterEvent_new2(QEnterEvent* param1); @@ -168,7 +168,7 @@ int QEnterEvent_GlobalY(const QEnterEvent* self); QPointF* QEnterEvent_LocalPos(const QEnterEvent* self); QPointF* QEnterEvent_WindowPos(const QEnterEvent* self); QPointF* QEnterEvent_ScreenPos(const QEnterEvent* self); -void QEnterEvent_Delete(QEnterEvent* self, bool isSubclass); +void QEnterEvent_Delete(QEnterEvent* self); QMouseEvent* QMouseEvent_new(int typeVal, QPointF* localPos, int button, int buttons, int modifiers); QMouseEvent* QMouseEvent_new2(int typeVal, QPointF* localPos, QPointF* screenPos, int button, int buttons, int modifiers); @@ -190,7 +190,7 @@ int QMouseEvent_Buttons(const QMouseEvent* self); void QMouseEvent_SetLocalPos(QMouseEvent* self, QPointF* localPosition); int QMouseEvent_Source(const QMouseEvent* self); int QMouseEvent_Flags(const QMouseEvent* self); -void QMouseEvent_Delete(QMouseEvent* self, bool isSubclass); +void QMouseEvent_Delete(QMouseEvent* self); QHoverEvent* QHoverEvent_new(int typeVal, QPointF* pos, QPointF* oldPos); QHoverEvent* QHoverEvent_new2(QHoverEvent* param1); @@ -200,7 +200,7 @@ QPoint* QHoverEvent_Pos(const QHoverEvent* self); QPoint* QHoverEvent_OldPos(const QHoverEvent* self); QPointF* QHoverEvent_PosF(const QHoverEvent* self); QPointF* QHoverEvent_OldPosF(const QHoverEvent* self); -void QHoverEvent_Delete(QHoverEvent* self, bool isSubclass); +void QHoverEvent_Delete(QHoverEvent* self); QWheelEvent* QWheelEvent_new(QPointF* pos, int delta, int buttons, int modifiers); QWheelEvent* QWheelEvent_new2(QPointF* pos, QPointF* globalPos, int delta, int buttons, int modifiers); @@ -232,7 +232,7 @@ int QWheelEvent_Buttons(const QWheelEvent* self); int QWheelEvent_Phase(const QWheelEvent* self); bool QWheelEvent_Inverted(const QWheelEvent* self); int QWheelEvent_Source(const QWheelEvent* self); -void QWheelEvent_Delete(QWheelEvent* self, bool isSubclass); +void QWheelEvent_Delete(QWheelEvent* self); QTabletEvent* QTabletEvent_new(int t, QPointF* pos, QPointF* globalPos, int device, int pointerType, double pressure, int xTilt, int yTilt, double tangentialPressure, double rotation, int z, int keyState, long long uniqueID); QTabletEvent* QTabletEvent_new2(int t, QPointF* pos, QPointF* globalPos, int device, int pointerType, double pressure, int xTilt, int yTilt, double tangentialPressure, double rotation, int z, int keyState, long long uniqueID, int button, int buttons); @@ -260,7 +260,7 @@ int QTabletEvent_XTilt(const QTabletEvent* self); int QTabletEvent_YTilt(const QTabletEvent* self); int QTabletEvent_Button(const QTabletEvent* self); int QTabletEvent_Buttons(const QTabletEvent* self); -void QTabletEvent_Delete(QTabletEvent* self, bool isSubclass); +void QTabletEvent_Delete(QTabletEvent* self); QNativeGestureEvent* QNativeGestureEvent_new(int typeVal, QPointF* localPos, QPointF* windowPos, QPointF* screenPos, double value, unsigned long sequenceId, unsigned long long intArgument); QNativeGestureEvent* QNativeGestureEvent_new2(int typeVal, QTouchDevice* dev, QPointF* localPos, QPointF* windowPos, QPointF* screenPos, double value, unsigned long sequenceId, unsigned long long intArgument); @@ -274,7 +274,7 @@ QPointF* QNativeGestureEvent_LocalPos(const QNativeGestureEvent* self); QPointF* QNativeGestureEvent_WindowPos(const QNativeGestureEvent* self); QPointF* QNativeGestureEvent_ScreenPos(const QNativeGestureEvent* self); QTouchDevice* QNativeGestureEvent_Device(const QNativeGestureEvent* self); -void QNativeGestureEvent_Delete(QNativeGestureEvent* self, bool isSubclass); +void QNativeGestureEvent_Delete(QNativeGestureEvent* self); QKeyEvent* QKeyEvent_new(int typeVal, int key, int modifiers); QKeyEvent* QKeyEvent_new2(int typeVal, int key, int modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers); @@ -295,7 +295,7 @@ int QKeyEvent_Count(const QKeyEvent* self); unsigned int QKeyEvent_NativeScanCode(const QKeyEvent* self); unsigned int QKeyEvent_NativeVirtualKey(const QKeyEvent* self); unsigned int QKeyEvent_NativeModifiers(const QKeyEvent* self); -void QKeyEvent_Delete(QKeyEvent* self, bool isSubclass); +void QKeyEvent_Delete(QKeyEvent* self); QFocusEvent* QFocusEvent_new(int typeVal); QFocusEvent* QFocusEvent_new2(QFocusEvent* param1); @@ -304,7 +304,7 @@ void QFocusEvent_virtbase(QFocusEvent* src, QEvent** outptr_QEvent); bool QFocusEvent_GotFocus(const QFocusEvent* self); bool QFocusEvent_LostFocus(const QFocusEvent* self); int QFocusEvent_Reason(const QFocusEvent* self); -void QFocusEvent_Delete(QFocusEvent* self, bool isSubclass); +void QFocusEvent_Delete(QFocusEvent* self); QPaintEvent* QPaintEvent_new(QRegion* paintRegion); QPaintEvent* QPaintEvent_new2(QRect* paintRect); @@ -312,57 +312,57 @@ QPaintEvent* QPaintEvent_new3(QPaintEvent* param1); void QPaintEvent_virtbase(QPaintEvent* src, QEvent** outptr_QEvent); QRect* QPaintEvent_Rect(const QPaintEvent* self); QRegion* QPaintEvent_Region(const QPaintEvent* self); -void QPaintEvent_Delete(QPaintEvent* self, bool isSubclass); +void QPaintEvent_Delete(QPaintEvent* self); QMoveEvent* QMoveEvent_new(QPoint* pos, QPoint* oldPos); QMoveEvent* QMoveEvent_new2(QMoveEvent* param1); void QMoveEvent_virtbase(QMoveEvent* src, QEvent** outptr_QEvent); QPoint* QMoveEvent_Pos(const QMoveEvent* self); QPoint* QMoveEvent_OldPos(const QMoveEvent* self); -void QMoveEvent_Delete(QMoveEvent* self, bool isSubclass); +void QMoveEvent_Delete(QMoveEvent* self); QExposeEvent* QExposeEvent_new(QRegion* rgn); QExposeEvent* QExposeEvent_new2(QExposeEvent* param1); void QExposeEvent_virtbase(QExposeEvent* src, QEvent** outptr_QEvent); QRegion* QExposeEvent_Region(const QExposeEvent* self); -void QExposeEvent_Delete(QExposeEvent* self, bool isSubclass); +void QExposeEvent_Delete(QExposeEvent* self); QPlatformSurfaceEvent* QPlatformSurfaceEvent_new(int surfaceEventType); QPlatformSurfaceEvent* QPlatformSurfaceEvent_new2(QPlatformSurfaceEvent* param1); void QPlatformSurfaceEvent_virtbase(QPlatformSurfaceEvent* src, QEvent** outptr_QEvent); int QPlatformSurfaceEvent_SurfaceEventType(const QPlatformSurfaceEvent* self); -void QPlatformSurfaceEvent_Delete(QPlatformSurfaceEvent* self, bool isSubclass); +void QPlatformSurfaceEvent_Delete(QPlatformSurfaceEvent* self); QResizeEvent* QResizeEvent_new(QSize* size, QSize* oldSize); QResizeEvent* QResizeEvent_new2(QResizeEvent* param1); void QResizeEvent_virtbase(QResizeEvent* src, QEvent** outptr_QEvent); QSize* QResizeEvent_Size(const QResizeEvent* self); QSize* QResizeEvent_OldSize(const QResizeEvent* self); -void QResizeEvent_Delete(QResizeEvent* self, bool isSubclass); +void QResizeEvent_Delete(QResizeEvent* self); QCloseEvent* QCloseEvent_new(); QCloseEvent* QCloseEvent_new2(QCloseEvent* param1); void QCloseEvent_virtbase(QCloseEvent* src, QEvent** outptr_QEvent); void QCloseEvent_OperatorAssign(QCloseEvent* self, QCloseEvent* param1); -void QCloseEvent_Delete(QCloseEvent* self, bool isSubclass); +void QCloseEvent_Delete(QCloseEvent* self); QIconDragEvent* QIconDragEvent_new(); QIconDragEvent* QIconDragEvent_new2(QIconDragEvent* param1); void QIconDragEvent_virtbase(QIconDragEvent* src, QEvent** outptr_QEvent); void QIconDragEvent_OperatorAssign(QIconDragEvent* self, QIconDragEvent* param1); -void QIconDragEvent_Delete(QIconDragEvent* self, bool isSubclass); +void QIconDragEvent_Delete(QIconDragEvent* self); QShowEvent* QShowEvent_new(); QShowEvent* QShowEvent_new2(QShowEvent* param1); void QShowEvent_virtbase(QShowEvent* src, QEvent** outptr_QEvent); void QShowEvent_OperatorAssign(QShowEvent* self, QShowEvent* param1); -void QShowEvent_Delete(QShowEvent* self, bool isSubclass); +void QShowEvent_Delete(QShowEvent* self); QHideEvent* QHideEvent_new(); QHideEvent* QHideEvent_new2(QHideEvent* param1); void QHideEvent_virtbase(QHideEvent* src, QEvent** outptr_QEvent); void QHideEvent_OperatorAssign(QHideEvent* self, QHideEvent* param1); -void QHideEvent_Delete(QHideEvent* self, bool isSubclass); +void QHideEvent_Delete(QHideEvent* self); QContextMenuEvent* QContextMenuEvent_new(int reason, QPoint* pos, QPoint* globalPos, int modifiers); QContextMenuEvent* QContextMenuEvent_new2(int reason, QPoint* pos, QPoint* globalPos); @@ -376,7 +376,7 @@ int QContextMenuEvent_GlobalY(const QContextMenuEvent* self); QPoint* QContextMenuEvent_Pos(const QContextMenuEvent* self); QPoint* QContextMenuEvent_GlobalPos(const QContextMenuEvent* self); int QContextMenuEvent_Reason(const QContextMenuEvent* self); -void QContextMenuEvent_Delete(QContextMenuEvent* self, bool isSubclass); +void QContextMenuEvent_Delete(QContextMenuEvent* self); QInputMethodEvent* QInputMethodEvent_new(); QInputMethodEvent* QInputMethodEvent_new2(struct miqt_string preeditText, struct miqt_array /* of QInputMethodEvent__Attribute* */ attributes); @@ -390,7 +390,7 @@ int QInputMethodEvent_ReplacementStart(const QInputMethodEvent* self); int QInputMethodEvent_ReplacementLength(const QInputMethodEvent* self); void QInputMethodEvent_SetCommitString2(QInputMethodEvent* self, struct miqt_string commitString, int replaceFrom); void QInputMethodEvent_SetCommitString3(QInputMethodEvent* self, struct miqt_string commitString, int replaceFrom, int replaceLength); -void QInputMethodEvent_Delete(QInputMethodEvent* self, bool isSubclass); +void QInputMethodEvent_Delete(QInputMethodEvent* self); QInputMethodQueryEvent* QInputMethodQueryEvent_new(int queries); QInputMethodQueryEvent* QInputMethodQueryEvent_new2(QInputMethodQueryEvent* param1); @@ -398,7 +398,7 @@ void QInputMethodQueryEvent_virtbase(QInputMethodQueryEvent* src, QEvent** outpt int QInputMethodQueryEvent_Queries(const QInputMethodQueryEvent* self); void QInputMethodQueryEvent_SetValue(QInputMethodQueryEvent* self, int query, QVariant* value); QVariant* QInputMethodQueryEvent_Value(const QInputMethodQueryEvent* self, int query); -void QInputMethodQueryEvent_Delete(QInputMethodQueryEvent* self, bool isSubclass); +void QInputMethodQueryEvent_Delete(QInputMethodQueryEvent* self); QDropEvent* QDropEvent_new(QPointF* pos, int actions, QMimeData* data, int buttons, int modifiers); QDropEvent* QDropEvent_new2(QDropEvent* param1); @@ -415,7 +415,7 @@ int QDropEvent_DropAction(const QDropEvent* self); void QDropEvent_SetDropAction(QDropEvent* self, int action); QObject* QDropEvent_Source(const QDropEvent* self); QMimeData* QDropEvent_MimeData(const QDropEvent* self); -void QDropEvent_Delete(QDropEvent* self, bool isSubclass); +void QDropEvent_Delete(QDropEvent* self); QDragMoveEvent* QDragMoveEvent_new(QPoint* pos, int actions, QMimeData* data, int buttons, int modifiers); QDragMoveEvent* QDragMoveEvent_new2(QDragMoveEvent* param1); @@ -426,19 +426,19 @@ void QDragMoveEvent_Accept(QDragMoveEvent* self); void QDragMoveEvent_Ignore(QDragMoveEvent* self); void QDragMoveEvent_AcceptWithQRect(QDragMoveEvent* self, QRect* r); void QDragMoveEvent_IgnoreWithQRect(QDragMoveEvent* self, QRect* r); -void QDragMoveEvent_Delete(QDragMoveEvent* self, bool isSubclass); +void QDragMoveEvent_Delete(QDragMoveEvent* self); QDragEnterEvent* QDragEnterEvent_new(QPoint* pos, int actions, QMimeData* data, int buttons, int modifiers); QDragEnterEvent* QDragEnterEvent_new2(QDragEnterEvent* param1); void QDragEnterEvent_virtbase(QDragEnterEvent* src, QDragMoveEvent** outptr_QDragMoveEvent); void QDragEnterEvent_OperatorAssign(QDragEnterEvent* self, QDragEnterEvent* param1); -void QDragEnterEvent_Delete(QDragEnterEvent* self, bool isSubclass); +void QDragEnterEvent_Delete(QDragEnterEvent* self); QDragLeaveEvent* QDragLeaveEvent_new(); QDragLeaveEvent* QDragLeaveEvent_new2(QDragLeaveEvent* param1); void QDragLeaveEvent_virtbase(QDragLeaveEvent* src, QEvent** outptr_QEvent); void QDragLeaveEvent_OperatorAssign(QDragLeaveEvent* self, QDragLeaveEvent* param1); -void QDragLeaveEvent_Delete(QDragLeaveEvent* self, bool isSubclass); +void QDragLeaveEvent_Delete(QDragLeaveEvent* self); QHelpEvent* QHelpEvent_new(int typeVal, QPoint* pos, QPoint* globalPos); QHelpEvent* QHelpEvent_new2(QHelpEvent* param1); @@ -449,19 +449,19 @@ int QHelpEvent_GlobalX(const QHelpEvent* self); int QHelpEvent_GlobalY(const QHelpEvent* self); QPoint* QHelpEvent_Pos(const QHelpEvent* self); QPoint* QHelpEvent_GlobalPos(const QHelpEvent* self); -void QHelpEvent_Delete(QHelpEvent* self, bool isSubclass); +void QHelpEvent_Delete(QHelpEvent* self); QStatusTipEvent* QStatusTipEvent_new(struct miqt_string tip); QStatusTipEvent* QStatusTipEvent_new2(QStatusTipEvent* param1); void QStatusTipEvent_virtbase(QStatusTipEvent* src, QEvent** outptr_QEvent); struct miqt_string QStatusTipEvent_Tip(const QStatusTipEvent* self); -void QStatusTipEvent_Delete(QStatusTipEvent* self, bool isSubclass); +void QStatusTipEvent_Delete(QStatusTipEvent* self); QWhatsThisClickedEvent* QWhatsThisClickedEvent_new(struct miqt_string href); QWhatsThisClickedEvent* QWhatsThisClickedEvent_new2(QWhatsThisClickedEvent* param1); void QWhatsThisClickedEvent_virtbase(QWhatsThisClickedEvent* src, QEvent** outptr_QEvent); struct miqt_string QWhatsThisClickedEvent_Href(const QWhatsThisClickedEvent* self); -void QWhatsThisClickedEvent_Delete(QWhatsThisClickedEvent* self, bool isSubclass); +void QWhatsThisClickedEvent_Delete(QWhatsThisClickedEvent* self); QActionEvent* QActionEvent_new(int typeVal, QAction* action); QActionEvent* QActionEvent_new2(QActionEvent* param1); @@ -470,7 +470,7 @@ void QActionEvent_virtbase(QActionEvent* src, QEvent** outptr_QEvent); QAction* QActionEvent_Action(const QActionEvent* self); QAction* QActionEvent_Before(const QActionEvent* self); void QActionEvent_OperatorAssign(QActionEvent* self, QActionEvent* param1); -void QActionEvent_Delete(QActionEvent* self, bool isSubclass); +void QActionEvent_Delete(QActionEvent* self); QFileOpenEvent* QFileOpenEvent_new(struct miqt_string file); QFileOpenEvent* QFileOpenEvent_new2(QUrl* url); @@ -479,13 +479,13 @@ void QFileOpenEvent_virtbase(QFileOpenEvent* src, QEvent** outptr_QEvent); struct miqt_string QFileOpenEvent_File(const QFileOpenEvent* self); QUrl* QFileOpenEvent_Url(const QFileOpenEvent* self); bool QFileOpenEvent_OpenFile(const QFileOpenEvent* self, QFile* file, int flags); -void QFileOpenEvent_Delete(QFileOpenEvent* self, bool isSubclass); +void QFileOpenEvent_Delete(QFileOpenEvent* self); QToolBarChangeEvent* QToolBarChangeEvent_new(bool t); QToolBarChangeEvent* QToolBarChangeEvent_new2(QToolBarChangeEvent* param1); void QToolBarChangeEvent_virtbase(QToolBarChangeEvent* src, QEvent** outptr_QEvent); bool QToolBarChangeEvent_Toggle(const QToolBarChangeEvent* self); -void QToolBarChangeEvent_Delete(QToolBarChangeEvent* self, bool isSubclass); +void QToolBarChangeEvent_Delete(QToolBarChangeEvent* self); QShortcutEvent* QShortcutEvent_new(QKeySequence* key, int id); QShortcutEvent* QShortcutEvent_new2(QShortcutEvent* param1); @@ -494,7 +494,7 @@ void QShortcutEvent_virtbase(QShortcutEvent* src, QEvent** outptr_QEvent); QKeySequence* QShortcutEvent_Key(const QShortcutEvent* self); int QShortcutEvent_ShortcutId(const QShortcutEvent* self); bool QShortcutEvent_IsAmbiguous(const QShortcutEvent* self); -void QShortcutEvent_Delete(QShortcutEvent* self, bool isSubclass); +void QShortcutEvent_Delete(QShortcutEvent* self); QWindowStateChangeEvent* QWindowStateChangeEvent_new(int aOldState); QWindowStateChangeEvent* QWindowStateChangeEvent_new2(QWindowStateChangeEvent* param1); @@ -502,14 +502,14 @@ QWindowStateChangeEvent* QWindowStateChangeEvent_new3(int aOldState, bool isOver void QWindowStateChangeEvent_virtbase(QWindowStateChangeEvent* src, QEvent** outptr_QEvent); int QWindowStateChangeEvent_OldState(const QWindowStateChangeEvent* self); bool QWindowStateChangeEvent_IsOverride(const QWindowStateChangeEvent* self); -void QWindowStateChangeEvent_Delete(QWindowStateChangeEvent* self, bool isSubclass); +void QWindowStateChangeEvent_Delete(QWindowStateChangeEvent* self); QPointingDeviceUniqueId* QPointingDeviceUniqueId_new(); QPointingDeviceUniqueId* QPointingDeviceUniqueId_new2(QPointingDeviceUniqueId* param1); QPointingDeviceUniqueId* QPointingDeviceUniqueId_FromNumericId(long long id); bool QPointingDeviceUniqueId_IsValid(const QPointingDeviceUniqueId* self); long long QPointingDeviceUniqueId_NumericId(const QPointingDeviceUniqueId* self); -void QPointingDeviceUniqueId_Delete(QPointingDeviceUniqueId* self, bool isSubclass); +void QPointingDeviceUniqueId_Delete(QPointingDeviceUniqueId* self); QTouchEvent* QTouchEvent_new(int eventType); QTouchEvent* QTouchEvent_new2(QTouchEvent* param1); @@ -528,7 +528,7 @@ void QTouchEvent_SetTarget(QTouchEvent* self, QObject* atarget); void QTouchEvent_SetTouchPointStates(QTouchEvent* self, int aTouchPointStates); void QTouchEvent_SetTouchPoints(QTouchEvent* self, struct miqt_array /* of QTouchEvent__TouchPoint* */ atouchPoints); void QTouchEvent_SetDevice(QTouchEvent* self, QTouchDevice* adevice); -void QTouchEvent_Delete(QTouchEvent* self, bool isSubclass); +void QTouchEvent_Delete(QTouchEvent* self); QScrollPrepareEvent* QScrollPrepareEvent_new(QPointF* startPos); QScrollPrepareEvent* QScrollPrepareEvent_new2(QScrollPrepareEvent* param1); @@ -540,7 +540,7 @@ QPointF* QScrollPrepareEvent_ContentPos(const QScrollPrepareEvent* self); void QScrollPrepareEvent_SetViewportSize(QScrollPrepareEvent* self, QSizeF* size); void QScrollPrepareEvent_SetContentPosRange(QScrollPrepareEvent* self, QRectF* rect); void QScrollPrepareEvent_SetContentPos(QScrollPrepareEvent* self, QPointF* pos); -void QScrollPrepareEvent_Delete(QScrollPrepareEvent* self, bool isSubclass); +void QScrollPrepareEvent_Delete(QScrollPrepareEvent* self); QScrollEvent* QScrollEvent_new(QPointF* contentPos, QPointF* overshoot, int scrollState); QScrollEvent* QScrollEvent_new2(QScrollEvent* param1); @@ -548,26 +548,26 @@ void QScrollEvent_virtbase(QScrollEvent* src, QEvent** outptr_QEvent); QPointF* QScrollEvent_ContentPos(const QScrollEvent* self); QPointF* QScrollEvent_OvershootDistance(const QScrollEvent* self); int QScrollEvent_ScrollState(const QScrollEvent* self); -void QScrollEvent_Delete(QScrollEvent* self, bool isSubclass); +void QScrollEvent_Delete(QScrollEvent* self); QScreenOrientationChangeEvent* QScreenOrientationChangeEvent_new(QScreen* screen, int orientation); QScreenOrientationChangeEvent* QScreenOrientationChangeEvent_new2(QScreenOrientationChangeEvent* param1); void QScreenOrientationChangeEvent_virtbase(QScreenOrientationChangeEvent* src, QEvent** outptr_QEvent); QScreen* QScreenOrientationChangeEvent_Screen(const QScreenOrientationChangeEvent* self); int QScreenOrientationChangeEvent_Orientation(const QScreenOrientationChangeEvent* self); -void QScreenOrientationChangeEvent_Delete(QScreenOrientationChangeEvent* self, bool isSubclass); +void QScreenOrientationChangeEvent_Delete(QScreenOrientationChangeEvent* self); QApplicationStateChangeEvent* QApplicationStateChangeEvent_new(int state); QApplicationStateChangeEvent* QApplicationStateChangeEvent_new2(QApplicationStateChangeEvent* param1); void QApplicationStateChangeEvent_virtbase(QApplicationStateChangeEvent* src, QEvent** outptr_QEvent); int QApplicationStateChangeEvent_ApplicationState(const QApplicationStateChangeEvent* self); -void QApplicationStateChangeEvent_Delete(QApplicationStateChangeEvent* self, bool isSubclass); +void QApplicationStateChangeEvent_Delete(QApplicationStateChangeEvent* self); QInputMethodEvent__Attribute* QInputMethodEvent__Attribute_new(int typ, int s, int l, QVariant* val); QInputMethodEvent__Attribute* QInputMethodEvent__Attribute_new2(int typ, int s, int l); QInputMethodEvent__Attribute* QInputMethodEvent__Attribute_new3(QInputMethodEvent__Attribute* param1); void QInputMethodEvent__Attribute_OperatorAssign(QInputMethodEvent__Attribute* self, QInputMethodEvent__Attribute* param1); -void QInputMethodEvent__Attribute_Delete(QInputMethodEvent__Attribute* self, bool isSubclass); +void QInputMethodEvent__Attribute_Delete(QInputMethodEvent__Attribute* self); QTouchEvent__TouchPoint* QTouchEvent__TouchPoint_new(); QTouchEvent__TouchPoint* QTouchEvent__TouchPoint_new2(QTouchEvent__TouchPoint* other); @@ -622,7 +622,7 @@ void QTouchEvent__TouchPoint_SetEllipseDiameters(QTouchEvent__TouchPoint* self, void QTouchEvent__TouchPoint_SetVelocity(QTouchEvent__TouchPoint* self, QVector2D* v); void QTouchEvent__TouchPoint_SetFlags(QTouchEvent__TouchPoint* self, int flags); void QTouchEvent__TouchPoint_SetRawScreenPositions(QTouchEvent__TouchPoint* self, struct miqt_array /* of QPointF* */ positions); -void QTouchEvent__TouchPoint_Delete(QTouchEvent__TouchPoint* self, bool isSubclass); +void QTouchEvent__TouchPoint_Delete(QTouchEvent__TouchPoint* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qeventloop.cpp b/qt/gen_qeventloop.cpp index 0e20842d..a19a4828 100644 --- a/qt/gen_qeventloop.cpp +++ b/qt/gen_qeventloop.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QEventLoop_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQEventLoop : public virtual QEventLoop { +class MiqtVirtualQEventLoop final : public QEventLoop { public: MiqtVirtualQEventLoop(): QEventLoop() {}; MiqtVirtualQEventLoop(QObject* parent): QEventLoop(parent) {}; - virtual ~MiqtVirtualQEventLoop() = default; + virtual ~MiqtVirtualQEventLoop() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -395,12 +395,8 @@ void QEventLoop_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQEventLoop*)(self) )->virtualbase_DisconnectNotify(signal); } -void QEventLoop_Delete(QEventLoop* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEventLoop_Delete(QEventLoop* self) { + delete self; } QEventLoopLocker* QEventLoopLocker_new() { @@ -415,11 +411,7 @@ QEventLoopLocker* QEventLoopLocker_new3(QThread* thread) { return new QEventLoopLocker(thread); } -void QEventLoopLocker_Delete(QEventLoopLocker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEventLoopLocker_Delete(QEventLoopLocker* self) { + delete self; } diff --git a/qt/gen_qeventloop.go b/qt/gen_qeventloop.go index 72d6ac12..70d1cc00 100644 --- a/qt/gen_qeventloop.go +++ b/qt/gen_qeventloop.go @@ -385,7 +385,7 @@ func miqt_exec_callback_QEventLoop_DisconnectNotify(self *C.QEventLoop, cb C.int // Delete this object from C++ memory. func (this *QEventLoop) Delete() { - C.QEventLoop_Delete(this.h, C.bool(this.isSubclass)) + C.QEventLoop_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -456,7 +456,7 @@ func NewQEventLoopLocker3(thread *QThread) *QEventLoopLocker { // Delete this object from C++ memory. func (this *QEventLoopLocker) Delete() { - C.QEventLoopLocker_Delete(this.h, C.bool(this.isSubclass)) + C.QEventLoopLocker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qeventloop.h b/qt/gen_qeventloop.h index 28216251..b810d433 100644 --- a/qt/gen_qeventloop.h +++ b/qt/gen_qeventloop.h @@ -72,12 +72,12 @@ void QEventLoop_override_virtual_ConnectNotify(void* self, intptr_t slot); void QEventLoop_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QEventLoop_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QEventLoop_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QEventLoop_Delete(QEventLoop* self, bool isSubclass); +void QEventLoop_Delete(QEventLoop* self); QEventLoopLocker* QEventLoopLocker_new(); QEventLoopLocker* QEventLoopLocker_new2(QEventLoop* loop); QEventLoopLocker* QEventLoopLocker_new3(QThread* thread); -void QEventLoopLocker_Delete(QEventLoopLocker* self, bool isSubclass); +void QEventLoopLocker_Delete(QEventLoopLocker* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qeventtransition.cpp b/qt/gen_qeventtransition.cpp index bfff74d3..b7b46377 100644 --- a/qt/gen_qeventtransition.cpp +++ b/qt/gen_qeventtransition.cpp @@ -21,7 +21,7 @@ bool miqt_exec_callback_QEventTransition_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQEventTransition : public virtual QEventTransition { +class MiqtVirtualQEventTransition final : public QEventTransition { public: MiqtVirtualQEventTransition(): QEventTransition() {}; @@ -29,7 +29,7 @@ public: MiqtVirtualQEventTransition(QState* sourceState): QEventTransition(sourceState) {}; MiqtVirtualQEventTransition(QObject* object, QEvent::Type typeVal, QState* sourceState): QEventTransition(object, typeVal, sourceState) {}; - virtual ~MiqtVirtualQEventTransition() = default; + virtual ~MiqtVirtualQEventTransition() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__EventTest = 0; @@ -238,11 +238,7 @@ bool QEventTransition_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQEventTransition*)(self) )->virtualbase_Event(e); } -void QEventTransition_Delete(QEventTransition* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEventTransition_Delete(QEventTransition* self) { + delete self; } diff --git a/qt/gen_qeventtransition.go b/qt/gen_qeventtransition.go index a6f7167c..2c4b88bd 100644 --- a/qt/gen_qeventtransition.go +++ b/qt/gen_qeventtransition.go @@ -255,7 +255,7 @@ func miqt_exec_callback_QEventTransition_Event(self *C.QEventTransition, cb C.in // Delete this object from C++ memory. func (this *QEventTransition) Delete() { - C.QEventTransition_Delete(this.h, C.bool(this.isSubclass)) + C.QEventTransition_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qeventtransition.h b/qt/gen_qeventtransition.h index 432800be..402f113e 100644 --- a/qt/gen_qeventtransition.h +++ b/qt/gen_qeventtransition.h @@ -56,7 +56,7 @@ void QEventTransition_override_virtual_OnTransition(void* self, intptr_t slot); void QEventTransition_virtualbase_OnTransition(void* self, QEvent* event); void QEventTransition_override_virtual_Event(void* self, intptr_t slot); bool QEventTransition_virtualbase_Event(void* self, QEvent* e); -void QEventTransition_Delete(QEventTransition* self, bool isSubclass); +void QEventTransition_Delete(QEventTransition* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfactoryinterface.cpp b/qt/gen_qfactoryinterface.cpp index a64a4cd3..a1a861d0 100644 --- a/qt/gen_qfactoryinterface.cpp +++ b/qt/gen_qfactoryinterface.cpp @@ -34,11 +34,7 @@ struct miqt_array /* of struct miqt_string */ QFactoryInterface_Keys(const QFac return _out; } -void QFactoryInterface_Delete(QFactoryInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFactoryInterface_Delete(QFactoryInterface* self) { + delete self; } diff --git a/qt/gen_qfactoryinterface.go b/qt/gen_qfactoryinterface.go index 839db0a4..65dbfa0a 100644 --- a/qt/gen_qfactoryinterface.go +++ b/qt/gen_qfactoryinterface.go @@ -61,7 +61,7 @@ func (this *QFactoryInterface) Keys() []string { // Delete this object from C++ memory. func (this *QFactoryInterface) Delete() { - C.QFactoryInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QFactoryInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfactoryinterface.h b/qt/gen_qfactoryinterface.h index ab466c91..ea1b1736 100644 --- a/qt/gen_qfactoryinterface.h +++ b/qt/gen_qfactoryinterface.h @@ -21,7 +21,7 @@ typedef struct QFactoryInterface QFactoryInterface; #endif struct miqt_array /* of struct miqt_string */ QFactoryInterface_Keys(const QFactoryInterface* self); -void QFactoryInterface_Delete(QFactoryInterface* self, bool isSubclass); +void QFactoryInterface_Delete(QFactoryInterface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfile.cpp b/qt/gen_qfile.cpp index 1074ca09..81eb4f10 100644 --- a/qt/gen_qfile.cpp +++ b/qt/gen_qfile.cpp @@ -32,7 +32,7 @@ long long miqt_exec_callback_QFile_ReadLineData(void*, intptr_t, char*, long lon } /* extern C */ #endif -class MiqtVirtualQFile : public virtual QFile { +class MiqtVirtualQFile final : public QFile { public: MiqtVirtualQFile(): QFile() {}; @@ -40,7 +40,7 @@ public: MiqtVirtualQFile(QObject* parent): QFile(parent) {}; MiqtVirtualQFile(const QString& name, QObject* parent): QFile(name, parent) {}; - virtual ~MiqtVirtualQFile() = default; + virtual ~MiqtVirtualQFile() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__FileName = 0; @@ -793,11 +793,7 @@ long long QFile_virtualbase_ReadLineData(void* self, char* data, long long maxle return ( (MiqtVirtualQFile*)(self) )->virtualbase_ReadLineData(data, maxlen); } -void QFile_Delete(QFile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFile_Delete(QFile* self) { + delete self; } diff --git a/qt/gen_qfile.go b/qt/gen_qfile.go index e6c2d4ed..29506cbd 100644 --- a/qt/gen_qfile.go +++ b/qt/gen_qfile.go @@ -784,7 +784,7 @@ func miqt_exec_callback_QFile_ReadLineData(self *C.QFile, cb C.intptr_t, data *C // Delete this object from C++ memory. func (this *QFile) Delete() { - C.QFile_Delete(this.h, C.bool(this.isSubclass)) + C.QFile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfile.h b/qt/gen_qfile.h index 8fb04da2..ccda4e7d 100644 --- a/qt/gen_qfile.h +++ b/qt/gen_qfile.h @@ -100,7 +100,7 @@ void QFile_override_virtual_WriteData(void* self, intptr_t slot); long long QFile_virtualbase_WriteData(void* self, const char* data, long long lenVal); void QFile_override_virtual_ReadLineData(void* self, intptr_t slot); long long QFile_virtualbase_ReadLineData(void* self, char* data, long long maxlen); -void QFile_Delete(QFile* self, bool isSubclass); +void QFile_Delete(QFile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfiledevice.cpp b/qt/gen_qfiledevice.cpp index 3658dc99..61435cb6 100644 --- a/qt/gen_qfiledevice.cpp +++ b/qt/gen_qfiledevice.cpp @@ -184,11 +184,7 @@ unsigned char* QFileDevice_Map3(QFileDevice* self, long long offset, long long s return static_cast(_ret); } -void QFileDevice_Delete(QFileDevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileDevice_Delete(QFileDevice* self) { + delete self; } diff --git a/qt/gen_qfiledevice.go b/qt/gen_qfiledevice.go index 35042d9b..424d7133 100644 --- a/qt/gen_qfiledevice.go +++ b/qt/gen_qfiledevice.go @@ -265,7 +265,7 @@ func (this *QFileDevice) Map3(offset int64, size int64, flags QFileDevice__Memor // Delete this object from C++ memory. func (this *QFileDevice) Delete() { - C.QFileDevice_Delete(this.h, C.bool(this.isSubclass)) + C.QFileDevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfiledevice.h b/qt/gen_qfiledevice.h index 4c400259..4dab4570 100644 --- a/qt/gen_qfiledevice.h +++ b/qt/gen_qfiledevice.h @@ -59,7 +59,7 @@ struct miqt_string QFileDevice_Tr3(const char* s, const char* c, int n); struct miqt_string QFileDevice_TrUtf82(const char* s, const char* c); struct miqt_string QFileDevice_TrUtf83(const char* s, const char* c, int n); unsigned char* QFileDevice_Map3(QFileDevice* self, long long offset, long long size, int flags); -void QFileDevice_Delete(QFileDevice* self, bool isSubclass); +void QFileDevice_Delete(QFileDevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfiledialog.cpp b/qt/gen_qfiledialog.cpp index 5ba1beb0..cdbd1b27 100644 --- a/qt/gen_qfiledialog.cpp +++ b/qt/gen_qfiledialog.cpp @@ -56,7 +56,7 @@ bool miqt_exec_callback_QFileDialog_EventFilter(void*, intptr_t, QObject*, QEven } /* extern C */ #endif -class MiqtVirtualQFileDialog : public virtual QFileDialog { +class MiqtVirtualQFileDialog final : public QFileDialog { public: MiqtVirtualQFileDialog(QWidget* parent): QFileDialog(parent) {}; @@ -66,7 +66,7 @@ public: MiqtVirtualQFileDialog(QWidget* parent, const QString& caption, const QString& directory): QFileDialog(parent, caption, directory) {}; MiqtVirtualQFileDialog(QWidget* parent, const QString& caption, const QString& directory, const QString& filter): QFileDialog(parent, caption, directory, filter) {}; - virtual ~MiqtVirtualQFileDialog() = default; + virtual ~MiqtVirtualQFileDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -1680,11 +1680,7 @@ bool QFileDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* pa return ( (MiqtVirtualQFileDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QFileDialog_Delete(QFileDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileDialog_Delete(QFileDialog* self) { + delete self; } diff --git a/qt/gen_qfiledialog.go b/qt/gen_qfiledialog.go index f1a3788a..a06b7950 100644 --- a/qt/gen_qfiledialog.go +++ b/qt/gen_qfiledialog.go @@ -1763,7 +1763,7 @@ func miqt_exec_callback_QFileDialog_EventFilter(self *C.QFileDialog, cb C.intptr // Delete this object from C++ memory. func (this *QFileDialog) Delete() { - C.QFileDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QFileDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfiledialog.h b/qt/gen_qfiledialog.h index 5f5cb0a2..c55878a8 100644 --- a/qt/gen_qfiledialog.h +++ b/qt/gen_qfiledialog.h @@ -220,7 +220,7 @@ void QFileDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QFileDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QFileDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QFileDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QFileDialog_Delete(QFileDialog* self, bool isSubclass); +void QFileDialog_Delete(QFileDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfileiconprovider.cpp b/qt/gen_qfileiconprovider.cpp index fe48423b..4838b03f 100644 --- a/qt/gen_qfileiconprovider.cpp +++ b/qt/gen_qfileiconprovider.cpp @@ -18,12 +18,12 @@ struct miqt_string miqt_exec_callback_QFileIconProvider_Type(void*, intptr_t, QF } /* extern C */ #endif -class MiqtVirtualQFileIconProvider : public virtual QFileIconProvider { +class MiqtVirtualQFileIconProvider final : public QFileIconProvider { public: MiqtVirtualQFileIconProvider(): QFileIconProvider() {}; - virtual ~MiqtVirtualQFileIconProvider() = default; + virtual ~MiqtVirtualQFileIconProvider() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Icon = 0; @@ -165,11 +165,7 @@ struct miqt_string QFileIconProvider_virtualbase_Type(const void* self, QFileInf return ( (const MiqtVirtualQFileIconProvider*)(self) )->virtualbase_Type(info); } -void QFileIconProvider_Delete(QFileIconProvider* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileIconProvider_Delete(QFileIconProvider* self) { + delete self; } diff --git a/qt/gen_qfileiconprovider.go b/qt/gen_qfileiconprovider.go index 2fe3a84f..a6c25f12 100644 --- a/qt/gen_qfileiconprovider.go +++ b/qt/gen_qfileiconprovider.go @@ -196,7 +196,7 @@ func miqt_exec_callback_QFileIconProvider_Type(self *C.QFileIconProvider, cb C.i // Delete this object from C++ memory. func (this *QFileIconProvider) Delete() { - C.QFileIconProvider_Delete(this.h, C.bool(this.isSubclass)) + C.QFileIconProvider_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfileiconprovider.h b/qt/gen_qfileiconprovider.h index 3c95d74d..0abb1cce 100644 --- a/qt/gen_qfileiconprovider.h +++ b/qt/gen_qfileiconprovider.h @@ -36,7 +36,7 @@ void QFileIconProvider_override_virtual_IconWithInfo(void* self, intptr_t slot); QIcon* QFileIconProvider_virtualbase_IconWithInfo(const void* self, QFileInfo* info); void QFileIconProvider_override_virtual_Type(void* self, intptr_t slot); struct miqt_string QFileIconProvider_virtualbase_Type(const void* self, QFileInfo* info); -void QFileIconProvider_Delete(QFileIconProvider* self, bool isSubclass); +void QFileIconProvider_Delete(QFileIconProvider* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfileinfo.cpp b/qt/gen_qfileinfo.cpp index 38c02d11..f530019d 100644 --- a/qt/gen_qfileinfo.cpp +++ b/qt/gen_qfileinfo.cpp @@ -385,11 +385,7 @@ void QFileInfo_SetCaching(QFileInfo* self, bool on) { self->setCaching(on); } -void QFileInfo_Delete(QFileInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileInfo_Delete(QFileInfo* self) { + delete self; } diff --git a/qt/gen_qfileinfo.go b/qt/gen_qfileinfo.go index a85ac2fb..3eb07a07 100644 --- a/qt/gen_qfileinfo.go +++ b/qt/gen_qfileinfo.go @@ -400,7 +400,7 @@ func (this *QFileInfo) SetCaching(on bool) { // Delete this object from C++ memory. func (this *QFileInfo) Delete() { - C.QFileInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QFileInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfileinfo.h b/qt/gen_qfileinfo.h index e9a24358..b0de5e36 100644 --- a/qt/gen_qfileinfo.h +++ b/qt/gen_qfileinfo.h @@ -88,7 +88,7 @@ QDateTime* QFileInfo_LastRead(const QFileInfo* self); QDateTime* QFileInfo_FileTime(const QFileInfo* self, int time); bool QFileInfo_Caching(const QFileInfo* self); void QFileInfo_SetCaching(QFileInfo* self, bool on); -void QFileInfo_Delete(QFileInfo* self, bool isSubclass); +void QFileInfo_Delete(QFileInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfileselector.cpp b/qt/gen_qfileselector.cpp index b565bc14..8c632bc3 100644 --- a/qt/gen_qfileselector.cpp +++ b/qt/gen_qfileselector.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QFileSelector_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQFileSelector : public virtual QFileSelector { +class MiqtVirtualQFileSelector final : public QFileSelector { public: MiqtVirtualQFileSelector(): QFileSelector() {}; MiqtVirtualQFileSelector(QObject* parent): QFileSelector(parent) {}; - virtual ~MiqtVirtualQFileSelector() = default; + virtual ~MiqtVirtualQFileSelector() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -418,11 +418,7 @@ void QFileSelector_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQFileSelector*)(self) )->virtualbase_DisconnectNotify(signal); } -void QFileSelector_Delete(QFileSelector* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileSelector_Delete(QFileSelector* self) { + delete self; } diff --git a/qt/gen_qfileselector.go b/qt/gen_qfileselector.go index 489bfc51..d3d87d14 100644 --- a/qt/gen_qfileselector.go +++ b/qt/gen_qfileselector.go @@ -386,7 +386,7 @@ func miqt_exec_callback_QFileSelector_DisconnectNotify(self *C.QFileSelector, cb // Delete this object from C++ memory. func (this *QFileSelector) Delete() { - C.QFileSelector_Delete(this.h, C.bool(this.isSubclass)) + C.QFileSelector_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfileselector.h b/qt/gen_qfileselector.h index a3e9867c..29251ede 100644 --- a/qt/gen_qfileselector.h +++ b/qt/gen_qfileselector.h @@ -64,7 +64,7 @@ void QFileSelector_override_virtual_ConnectNotify(void* self, intptr_t slot); void QFileSelector_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QFileSelector_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QFileSelector_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QFileSelector_Delete(QFileSelector* self, bool isSubclass); +void QFileSelector_Delete(QFileSelector* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfilesystemmodel.cpp b/qt/gen_qfilesystemmodel.cpp index c0b29a1b..f9a0cc05 100644 --- a/qt/gen_qfilesystemmodel.cpp +++ b/qt/gen_qfilesystemmodel.cpp @@ -69,13 +69,13 @@ void miqt_exec_callback_QFileSystemModel_Revert(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQFileSystemModel : public virtual QFileSystemModel { +class MiqtVirtualQFileSystemModel final : public QFileSystemModel { public: MiqtVirtualQFileSystemModel(): QFileSystemModel() {}; MiqtVirtualQFileSystemModel(QObject* parent): QFileSystemModel(parent) {}; - virtual ~MiqtVirtualQFileSystemModel() = default; + virtual ~MiqtVirtualQFileSystemModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Index = 0; @@ -1878,11 +1878,7 @@ void QFileSystemModel_virtualbase_Revert(void* self) { ( (MiqtVirtualQFileSystemModel*)(self) )->virtualbase_Revert(); } -void QFileSystemModel_Delete(QFileSystemModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileSystemModel_Delete(QFileSystemModel* self) { + delete self; } diff --git a/qt/gen_qfilesystemmodel.go b/qt/gen_qfilesystemmodel.go index d9821e9e..895c0d08 100644 --- a/qt/gen_qfilesystemmodel.go +++ b/qt/gen_qfilesystemmodel.go @@ -1773,7 +1773,7 @@ func miqt_exec_callback_QFileSystemModel_Revert(self *C.QFileSystemModel, cb C.i // Delete this object from C++ memory. func (this *QFileSystemModel) Delete() { - C.QFileSystemModel_Delete(this.h, C.bool(this.isSubclass)) + C.QFileSystemModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfilesystemmodel.h b/qt/gen_qfilesystemmodel.h index 9fa81f5d..9c441537 100644 --- a/qt/gen_qfilesystemmodel.h +++ b/qt/gen_qfilesystemmodel.h @@ -192,7 +192,7 @@ void QFileSystemModel_override_virtual_Submit(void* self, intptr_t slot); bool QFileSystemModel_virtualbase_Submit(void* self); void QFileSystemModel_override_virtual_Revert(void* self, intptr_t slot); void QFileSystemModel_virtualbase_Revert(void* self); -void QFileSystemModel_Delete(QFileSystemModel* self, bool isSubclass); +void QFileSystemModel_Delete(QFileSystemModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfilesystemwatcher.cpp b/qt/gen_qfilesystemwatcher.cpp index 6656fc8f..a4db1871 100644 --- a/qt/gen_qfilesystemwatcher.cpp +++ b/qt/gen_qfilesystemwatcher.cpp @@ -27,7 +27,7 @@ void miqt_exec_callback_QFileSystemWatcher_DisconnectNotify(void*, intptr_t, QMe } /* extern C */ #endif -class MiqtVirtualQFileSystemWatcher : public virtual QFileSystemWatcher { +class MiqtVirtualQFileSystemWatcher final : public QFileSystemWatcher { public: MiqtVirtualQFileSystemWatcher(): QFileSystemWatcher() {}; @@ -35,7 +35,7 @@ public: MiqtVirtualQFileSystemWatcher(QObject* parent): QFileSystemWatcher(parent) {}; MiqtVirtualQFileSystemWatcher(const QStringList& paths, QObject* parent): QFileSystemWatcher(paths, parent) {}; - virtual ~MiqtVirtualQFileSystemWatcher() = default; + virtual ~MiqtVirtualQFileSystemWatcher() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -478,11 +478,7 @@ void QFileSystemWatcher_virtualbase_DisconnectNotify(void* self, QMetaMethod* si ( (MiqtVirtualQFileSystemWatcher*)(self) )->virtualbase_DisconnectNotify(signal); } -void QFileSystemWatcher_Delete(QFileSystemWatcher* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileSystemWatcher_Delete(QFileSystemWatcher* self) { + delete self; } diff --git a/qt/gen_qfilesystemwatcher.go b/qt/gen_qfilesystemwatcher.go index 7b89d5a9..693a59e7 100644 --- a/qt/gen_qfilesystemwatcher.go +++ b/qt/gen_qfilesystemwatcher.go @@ -453,7 +453,7 @@ func miqt_exec_callback_QFileSystemWatcher_DisconnectNotify(self *C.QFileSystemW // Delete this object from C++ memory. func (this *QFileSystemWatcher) Delete() { - C.QFileSystemWatcher_Delete(this.h, C.bool(this.isSubclass)) + C.QFileSystemWatcher_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfilesystemwatcher.h b/qt/gen_qfilesystemwatcher.h index d18f4564..fe1dfcd2 100644 --- a/qt/gen_qfilesystemwatcher.h +++ b/qt/gen_qfilesystemwatcher.h @@ -65,7 +65,7 @@ void QFileSystemWatcher_override_virtual_ConnectNotify(void* self, intptr_t slot void QFileSystemWatcher_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QFileSystemWatcher_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QFileSystemWatcher_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QFileSystemWatcher_Delete(QFileSystemWatcher* self, bool isSubclass); +void QFileSystemWatcher_Delete(QFileSystemWatcher* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfinalstate.cpp b/qt/gen_qfinalstate.cpp index cfcda73d..bd50f7ca 100644 --- a/qt/gen_qfinalstate.cpp +++ b/qt/gen_qfinalstate.cpp @@ -21,13 +21,13 @@ bool miqt_exec_callback_QFinalState_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQFinalState : public virtual QFinalState { +class MiqtVirtualQFinalState final : public QFinalState { public: MiqtVirtualQFinalState(): QFinalState() {}; MiqtVirtualQFinalState(QState* parent): QFinalState(parent) {}; - virtual ~MiqtVirtualQFinalState() = default; + virtual ~MiqtVirtualQFinalState() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__OnEntry = 0; @@ -212,11 +212,7 @@ bool QFinalState_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQFinalState*)(self) )->virtualbase_Event(e); } -void QFinalState_Delete(QFinalState* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFinalState_Delete(QFinalState* self) { + delete self; } diff --git a/qt/gen_qfinalstate.go b/qt/gen_qfinalstate.go index 610059fa..6d27fa04 100644 --- a/qt/gen_qfinalstate.go +++ b/qt/gen_qfinalstate.go @@ -221,7 +221,7 @@ func miqt_exec_callback_QFinalState_Event(self *C.QFinalState, cb C.intptr_t, e // Delete this object from C++ memory. func (this *QFinalState) Delete() { - C.QFinalState_Delete(this.h, C.bool(this.isSubclass)) + C.QFinalState_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfinalstate.h b/qt/gen_qfinalstate.h index 42a5552a..3d5e8a24 100644 --- a/qt/gen_qfinalstate.h +++ b/qt/gen_qfinalstate.h @@ -50,7 +50,7 @@ void QFinalState_override_virtual_OnExit(void* self, intptr_t slot); void QFinalState_virtualbase_OnExit(void* self, QEvent* event); void QFinalState_override_virtual_Event(void* self, intptr_t slot); bool QFinalState_virtualbase_Event(void* self, QEvent* e); -void QFinalState_Delete(QFinalState* self, bool isSubclass); +void QFinalState_Delete(QFinalState* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfloat16.cpp b/qt/gen_qfloat16.cpp index 55e03554..c60068e3 100644 --- a/qt/gen_qfloat16.cpp +++ b/qt/gen_qfloat16.cpp @@ -37,11 +37,7 @@ bool qfloat16_IsNormal(const qfloat16* self) { return self->isNormal(); } -void qfloat16_Delete(qfloat16* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void qfloat16_Delete(qfloat16* self) { + delete self; } diff --git a/qt/gen_qfloat16.go b/qt/gen_qfloat16.go index 888677d4..43b7a8f0 100644 --- a/qt/gen_qfloat16.go +++ b/qt/gen_qfloat16.go @@ -84,7 +84,7 @@ func (this *qfloat16) IsNormal() bool { // Delete this object from C++ memory. func (this *qfloat16) Delete() { - C.qfloat16_Delete(this.h, C.bool(this.isSubclass)) + C.qfloat16_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfloat16.h b/qt/gen_qfloat16.h index b5a86c49..4905b54d 100644 --- a/qt/gen_qfloat16.h +++ b/qt/gen_qfloat16.h @@ -27,7 +27,7 @@ bool qfloat16_IsNaN(const qfloat16* self); bool qfloat16_IsFinite(const qfloat16* self); int qfloat16_FpClassify(const qfloat16* self); bool qfloat16_IsNormal(const qfloat16* self); -void qfloat16_Delete(qfloat16* self, bool isSubclass); +void qfloat16_Delete(qfloat16* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfocusframe.cpp b/qt/gen_qfocusframe.cpp index 896cf973..5bfb1714 100644 --- a/qt/gen_qfocusframe.cpp +++ b/qt/gen_qfocusframe.cpp @@ -84,13 +84,13 @@ bool miqt_exec_callback_QFocusFrame_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQFocusFrame : public virtual QFocusFrame { +class MiqtVirtualQFocusFrame final : public QFocusFrame { public: MiqtVirtualQFocusFrame(QWidget* parent): QFocusFrame(parent) {}; MiqtVirtualQFocusFrame(): QFocusFrame() {}; - virtual ~MiqtVirtualQFocusFrame() = default; + virtual ~MiqtVirtualQFocusFrame() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1523,11 +1523,7 @@ bool QFocusFrame_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQFocusFrame*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QFocusFrame_Delete(QFocusFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFocusFrame_Delete(QFocusFrame* self) { + delete self; } diff --git a/qt/gen_qfocusframe.go b/qt/gen_qfocusframe.go index 72f072ec..6d63bbbe 100644 --- a/qt/gen_qfocusframe.go +++ b/qt/gen_qfocusframe.go @@ -1268,7 +1268,7 @@ func miqt_exec_callback_QFocusFrame_FocusNextPrevChild(self *C.QFocusFrame, cb C // Delete this object from C++ memory. func (this *QFocusFrame) Delete() { - C.QFocusFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QFocusFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfocusframe.h b/qt/gen_qfocusframe.h index bed65871..45bc9db3 100644 --- a/qt/gen_qfocusframe.h +++ b/qt/gen_qfocusframe.h @@ -176,7 +176,7 @@ void QFocusFrame_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QFocusFrame_virtualbase_InputMethodQuery(const void* self, int param1); void QFocusFrame_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QFocusFrame_virtualbase_FocusNextPrevChild(void* self, bool next); -void QFocusFrame_Delete(QFocusFrame* self, bool isSubclass); +void QFocusFrame_Delete(QFocusFrame* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfont.cpp b/qt/gen_qfont.cpp index 4b5daf6d..9f13101d 100644 --- a/qt/gen_qfont.cpp +++ b/qt/gen_qfont.cpp @@ -501,11 +501,7 @@ void QFont_SetStyleHint2(QFont* self, int param1, int param2) { self->setStyleHint(static_cast(param1), static_cast(param2)); } -void QFont_Delete(QFont* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFont_Delete(QFont* self) { + delete self; } diff --git a/qt/gen_qfont.go b/qt/gen_qfont.go index c40057f9..e7956034 100644 --- a/qt/gen_qfont.go +++ b/qt/gen_qfont.go @@ -675,7 +675,7 @@ func (this *QFont) SetStyleHint2(param1 QFont__StyleHint, param2 QFont__StyleStr // Delete this object from C++ memory. func (this *QFont) Delete() { - C.QFont_Delete(this.h, C.bool(this.isSubclass)) + C.QFont_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfont.h b/qt/gen_qfont.h index 0e0ee33b..b2f52c4e 100644 --- a/qt/gen_qfont.h +++ b/qt/gen_qfont.h @@ -108,7 +108,7 @@ QFont* QFont_Resolve(const QFont* self, QFont* param1); unsigned int QFont_Resolve2(const QFont* self); void QFont_ResolveWithMask(QFont* self, unsigned int mask); void QFont_SetStyleHint2(QFont* self, int param1, int param2); -void QFont_Delete(QFont* self, bool isSubclass); +void QFont_Delete(QFont* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfontcombobox.cpp b/qt/gen_qfontcombobox.cpp index 79e8c994..e7ea3cf4 100644 --- a/qt/gen_qfontcombobox.cpp +++ b/qt/gen_qfontcombobox.cpp @@ -53,13 +53,13 @@ void miqt_exec_callback_QFontComboBox_InputMethodEvent(void*, intptr_t, QInputMe } /* extern C */ #endif -class MiqtVirtualQFontComboBox : public virtual QFontComboBox { +class MiqtVirtualQFontComboBox final : public QFontComboBox { public: MiqtVirtualQFontComboBox(QWidget* parent): QFontComboBox(parent) {}; MiqtVirtualQFontComboBox(): QFontComboBox() {}; - virtual ~MiqtVirtualQFontComboBox() = default; + virtual ~MiqtVirtualQFontComboBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -825,11 +825,7 @@ void QFontComboBox_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* p ( (MiqtVirtualQFontComboBox*)(self) )->virtualbase_InputMethodEvent(param1); } -void QFontComboBox_Delete(QFontComboBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontComboBox_Delete(QFontComboBox* self) { + delete self; } diff --git a/qt/gen_qfontcombobox.go b/qt/gen_qfontcombobox.go index d826980c..33b0a788 100644 --- a/qt/gen_qfontcombobox.go +++ b/qt/gen_qfontcombobox.go @@ -725,7 +725,7 @@ func miqt_exec_callback_QFontComboBox_InputMethodEvent(self *C.QFontComboBox, cb // Delete this object from C++ memory. func (this *QFontComboBox) Delete() { - C.QFontComboBox_Delete(this.h, C.bool(this.isSubclass)) + C.QFontComboBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfontcombobox.h b/qt/gen_qfontcombobox.h index 3140b0f4..f4ccc2ee 100644 --- a/qt/gen_qfontcombobox.h +++ b/qt/gen_qfontcombobox.h @@ -119,7 +119,7 @@ void QFontComboBox_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QFontComboBox_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* e); void QFontComboBox_override_virtual_InputMethodEvent(void* self, intptr_t slot); void QFontComboBox_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* param1); -void QFontComboBox_Delete(QFontComboBox* self, bool isSubclass); +void QFontComboBox_Delete(QFontComboBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfontdatabase.cpp b/qt/gen_qfontdatabase.cpp index 229c590c..b5d318a2 100644 --- a/qt/gen_qfontdatabase.cpp +++ b/qt/gen_qfontdatabase.cpp @@ -336,11 +336,7 @@ bool QFontDatabase_IsFixedPitch2(const QFontDatabase* self, struct miqt_string f return self->isFixedPitch(family_QString, style_QString); } -void QFontDatabase_Delete(QFontDatabase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontDatabase_Delete(QFontDatabase* self) { + delete self; } diff --git a/qt/gen_qfontdatabase.go b/qt/gen_qfontdatabase.go index 3661d577..76f86291 100644 --- a/qt/gen_qfontdatabase.go +++ b/qt/gen_qfontdatabase.go @@ -453,7 +453,7 @@ func (this *QFontDatabase) IsFixedPitch2(family string, style string) bool { // Delete this object from C++ memory. func (this *QFontDatabase) Delete() { - C.QFontDatabase_Delete(this.h, C.bool(this.isSubclass)) + C.QFontDatabase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfontdatabase.h b/qt/gen_qfontdatabase.h index cee72d7b..32d912cd 100644 --- a/qt/gen_qfontdatabase.h +++ b/qt/gen_qfontdatabase.h @@ -59,7 +59,7 @@ bool QFontDatabase_IsBitmapScalable2(const QFontDatabase* self, struct miqt_stri bool QFontDatabase_IsSmoothlyScalable2(const QFontDatabase* self, struct miqt_string family, struct miqt_string style); bool QFontDatabase_IsScalable2(const QFontDatabase* self, struct miqt_string family, struct miqt_string style); bool QFontDatabase_IsFixedPitch2(const QFontDatabase* self, struct miqt_string family, struct miqt_string style); -void QFontDatabase_Delete(QFontDatabase* self, bool isSubclass); +void QFontDatabase_Delete(QFontDatabase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfontdialog.cpp b/qt/gen_qfontdialog.cpp index 6be4d772..d8a8998c 100644 --- a/qt/gen_qfontdialog.cpp +++ b/qt/gen_qfontdialog.cpp @@ -43,7 +43,7 @@ void miqt_exec_callback_QFontDialog_ContextMenuEvent(void*, intptr_t, QContextMe } /* extern C */ #endif -class MiqtVirtualQFontDialog : public virtual QFontDialog { +class MiqtVirtualQFontDialog final : public QFontDialog { public: MiqtVirtualQFontDialog(QWidget* parent): QFontDialog(parent) {}; @@ -51,7 +51,7 @@ public: MiqtVirtualQFontDialog(const QFont& initial): QFontDialog(initial) {}; MiqtVirtualQFontDialog(const QFont& initial, QWidget* parent): QFontDialog(initial, parent) {}; - virtual ~MiqtVirtualQFontDialog() = default; + virtual ~MiqtVirtualQFontDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -709,11 +709,7 @@ void QFontDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* par ( (MiqtVirtualQFontDialog*)(self) )->virtualbase_ContextMenuEvent(param1); } -void QFontDialog_Delete(QFontDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontDialog_Delete(QFontDialog* self) { + delete self; } diff --git a/qt/gen_qfontdialog.go b/qt/gen_qfontdialog.go index 790ff710..73f6daa1 100644 --- a/qt/gen_qfontdialog.go +++ b/qt/gen_qfontdialog.go @@ -678,7 +678,7 @@ func miqt_exec_callback_QFontDialog_ContextMenuEvent(self *C.QFontDialog, cb C.i // Delete this object from C++ memory. func (this *QFontDialog) Delete() { - C.QFontDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QFontDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfontdialog.h b/qt/gen_qfontdialog.h index b16f1280..02b6800b 100644 --- a/qt/gen_qfontdialog.h +++ b/qt/gen_qfontdialog.h @@ -111,7 +111,7 @@ void QFontDialog_override_virtual_ResizeEvent(void* self, intptr_t slot); void QFontDialog_virtualbase_ResizeEvent(void* self, QResizeEvent* param1); void QFontDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QFontDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); -void QFontDialog_Delete(QFontDialog* self, bool isSubclass); +void QFontDialog_Delete(QFontDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfontinfo.cpp b/qt/gen_qfontinfo.cpp index e54af0da..51a70360 100644 --- a/qt/gen_qfontinfo.cpp +++ b/qt/gen_qfontinfo.cpp @@ -111,11 +111,7 @@ bool QFontInfo_ExactMatch(const QFontInfo* self) { return self->exactMatch(); } -void QFontInfo_Delete(QFontInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontInfo_Delete(QFontInfo* self) { + delete self; } diff --git a/qt/gen_qfontinfo.go b/qt/gen_qfontinfo.go index 19994b50..423322b0 100644 --- a/qt/gen_qfontinfo.go +++ b/qt/gen_qfontinfo.go @@ -142,7 +142,7 @@ func (this *QFontInfo) ExactMatch() bool { // Delete this object from C++ memory. func (this *QFontInfo) Delete() { - C.QFontInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QFontInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfontinfo.h b/qt/gen_qfontinfo.h index beb5751c..fac66c28 100644 --- a/qt/gen_qfontinfo.h +++ b/qt/gen_qfontinfo.h @@ -42,7 +42,7 @@ bool QFontInfo_FixedPitch(const QFontInfo* self); int QFontInfo_StyleHint(const QFontInfo* self); bool QFontInfo_RawMode(const QFontInfo* self); bool QFontInfo_ExactMatch(const QFontInfo* self); -void QFontInfo_Delete(QFontInfo* self, bool isSubclass); +void QFontInfo_Delete(QFontInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfontmetrics.cpp b/qt/gen_qfontmetrics.cpp index cf531484..5c3649f8 100644 --- a/qt/gen_qfontmetrics.cpp +++ b/qt/gen_qfontmetrics.cpp @@ -251,12 +251,8 @@ struct miqt_string QFontMetrics_ElidedText4(const QFontMetrics* self, struct miq return _ms; } -void QFontMetrics_Delete(QFontMetrics* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontMetrics_Delete(QFontMetrics* self) { + delete self; } QFontMetricsF* QFontMetricsF_new(QFont* font) { @@ -489,11 +485,7 @@ struct miqt_string QFontMetricsF_ElidedText4(const QFontMetricsF* self, struct m return _ms; } -void QFontMetricsF_Delete(QFontMetricsF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontMetricsF_Delete(QFontMetricsF* self) { + delete self; } diff --git a/qt/gen_qfontmetrics.go b/qt/gen_qfontmetrics.go index 6ba1c13e..9bf9f7cd 100644 --- a/qt/gen_qfontmetrics.go +++ b/qt/gen_qfontmetrics.go @@ -362,7 +362,7 @@ func (this *QFontMetrics) ElidedText4(text string, mode TextElideMode, width int // Delete this object from C++ memory. func (this *QFontMetrics) Delete() { - C.QFontMetrics_Delete(this.h, C.bool(this.isSubclass)) + C.QFontMetrics_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -681,7 +681,7 @@ func (this *QFontMetricsF) ElidedText4(text string, mode TextElideMode, width fl // Delete this object from C++ memory. func (this *QFontMetricsF) Delete() { - C.QFontMetricsF_Delete(this.h, C.bool(this.isSubclass)) + C.QFontMetricsF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfontmetrics.h b/qt/gen_qfontmetrics.h index d68eb18a..ab7c1b03 100644 --- a/qt/gen_qfontmetrics.h +++ b/qt/gen_qfontmetrics.h @@ -85,7 +85,7 @@ QRect* QFontMetrics_BoundingRect8(const QFontMetrics* self, int x, int y, int w, QSize* QFontMetrics_Size3(const QFontMetrics* self, int flags, struct miqt_string str, int tabstops); QSize* QFontMetrics_Size4(const QFontMetrics* self, int flags, struct miqt_string str, int tabstops, int* tabarray); struct miqt_string QFontMetrics_ElidedText4(const QFontMetrics* self, struct miqt_string text, int mode, int width, int flags); -void QFontMetrics_Delete(QFontMetrics* self, bool isSubclass); +void QFontMetrics_Delete(QFontMetrics* self); QFontMetricsF* QFontMetricsF_new(QFont* font); QFontMetricsF* QFontMetricsF_new2(QFont* font, QPaintDevice* pd); @@ -132,7 +132,7 @@ QRectF* QFontMetricsF_BoundingRect5(const QFontMetricsF* self, QRectF* r, int fl QSizeF* QFontMetricsF_Size3(const QFontMetricsF* self, int flags, struct miqt_string str, int tabstops); QSizeF* QFontMetricsF_Size4(const QFontMetricsF* self, int flags, struct miqt_string str, int tabstops, int* tabarray); struct miqt_string QFontMetricsF_ElidedText4(const QFontMetricsF* self, struct miqt_string text, int mode, double width, int flags); -void QFontMetricsF_Delete(QFontMetricsF* self, bool isSubclass); +void QFontMetricsF_Delete(QFontMetricsF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qformlayout.cpp b/qt/gen_qformlayout.cpp index 76f1ae67..6f4e743a 100644 --- a/qt/gen_qformlayout.cpp +++ b/qt/gen_qformlayout.cpp @@ -40,13 +40,13 @@ void miqt_exec_callback_QFormLayout_ChildEvent(void*, intptr_t, QChildEvent*); } /* extern C */ #endif -class MiqtVirtualQFormLayout : public virtual QFormLayout { +class MiqtVirtualQFormLayout final : public QFormLayout { public: MiqtVirtualQFormLayout(QWidget* parent): QFormLayout(parent) {}; MiqtVirtualQFormLayout(): QFormLayout() {}; - virtual ~MiqtVirtualQFormLayout() = default; + virtual ~MiqtVirtualQFormLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AddItem = 0; @@ -900,19 +900,11 @@ void QFormLayout_virtualbase_ChildEvent(void* self, QChildEvent* e) { ( (MiqtVirtualQFormLayout*)(self) )->virtualbase_ChildEvent(e); } -void QFormLayout_Delete(QFormLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFormLayout_Delete(QFormLayout* self) { + delete self; } -void QFormLayout__TakeRowResult_Delete(QFormLayout__TakeRowResult* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFormLayout__TakeRowResult_Delete(QFormLayout__TakeRowResult* self) { + delete self; } diff --git a/qt/gen_qformlayout.go b/qt/gen_qformlayout.go index 0f74c5c1..72d1d819 100644 --- a/qt/gen_qformlayout.go +++ b/qt/gen_qformlayout.go @@ -862,7 +862,7 @@ func miqt_exec_callback_QFormLayout_ChildEvent(self *C.QFormLayout, cb C.intptr_ // Delete this object from C++ memory. func (this *QFormLayout) Delete() { - C.QFormLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QFormLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -909,7 +909,7 @@ func UnsafeNewQFormLayout__TakeRowResult(h unsafe.Pointer) *QFormLayout__TakeRow // Delete this object from C++ memory. func (this *QFormLayout__TakeRowResult) Delete() { - C.QFormLayout__TakeRowResult_Delete(this.h, C.bool(this.isSubclass)) + C.QFormLayout__TakeRowResult_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qformlayout.h b/qt/gen_qformlayout.h index 19fc681e..10f568e0 100644 --- a/qt/gen_qformlayout.h +++ b/qt/gen_qformlayout.h @@ -139,9 +139,9 @@ void QFormLayout_override_virtual_Layout(void* self, intptr_t slot); QLayout* QFormLayout_virtualbase_Layout(void* self); void QFormLayout_override_virtual_ChildEvent(void* self, intptr_t slot); void QFormLayout_virtualbase_ChildEvent(void* self, QChildEvent* e); -void QFormLayout_Delete(QFormLayout* self, bool isSubclass); +void QFormLayout_Delete(QFormLayout* self); -void QFormLayout__TakeRowResult_Delete(QFormLayout__TakeRowResult* self, bool isSubclass); +void QFormLayout__TakeRowResult_Delete(QFormLayout__TakeRowResult* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qframe.cpp b/qt/gen_qframe.cpp index 29218ebc..5ca39428 100644 --- a/qt/gen_qframe.cpp +++ b/qt/gen_qframe.cpp @@ -84,14 +84,14 @@ bool miqt_exec_callback_QFrame_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQFrame : public virtual QFrame { +class MiqtVirtualQFrame final : public QFrame { public: MiqtVirtualQFrame(QWidget* parent): QFrame(parent) {}; MiqtVirtualQFrame(): QFrame() {}; MiqtVirtualQFrame(QWidget* parent, Qt::WindowFlags f): QFrame(parent, f) {}; - virtual ~MiqtVirtualQFrame() = default; + virtual ~MiqtVirtualQFrame() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1546,11 +1546,7 @@ bool QFrame_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQFrame*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QFrame_Delete(QFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFrame_Delete(QFrame* self) { + delete self; } diff --git a/qt/gen_qframe.go b/qt/gen_qframe.go index 97742e48..5cc7efb3 100644 --- a/qt/gen_qframe.go +++ b/qt/gen_qframe.go @@ -1325,7 +1325,7 @@ func miqt_exec_callback_QFrame_FocusNextPrevChild(self *C.QFrame, cb C.intptr_t, // Delete this object from C++ memory. func (this *QFrame) Delete() { - C.QFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qframe.h b/qt/gen_qframe.h index 78332a34..642b2313 100644 --- a/qt/gen_qframe.h +++ b/qt/gen_qframe.h @@ -189,7 +189,7 @@ void QFrame_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QFrame_virtualbase_InputMethodQuery(const void* self, int param1); void QFrame_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QFrame_virtualbase_FocusNextPrevChild(void* self, bool next); -void QFrame_Delete(QFrame* self, bool isSubclass); +void QFrame_Delete(QFrame* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfutureinterface.cpp b/qt/gen_qfutureinterface.cpp index 030943bf..d0641dcc 100644 --- a/qt/gen_qfutureinterface.cpp +++ b/qt/gen_qfutureinterface.cpp @@ -194,11 +194,7 @@ void QFutureInterfaceBase_OperatorAssign(QFutureInterfaceBase* self, QFutureInte self->operator=(*other); } -void QFutureInterfaceBase_Delete(QFutureInterfaceBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFutureInterfaceBase_Delete(QFutureInterfaceBase* self) { + delete self; } diff --git a/qt/gen_qfutureinterface.go b/qt/gen_qfutureinterface.go index 8a0ca64f..c7c670c6 100644 --- a/qt/gen_qfutureinterface.go +++ b/qt/gen_qfutureinterface.go @@ -247,7 +247,7 @@ func (this *QFutureInterfaceBase) OperatorAssign(other *QFutureInterfaceBase) { // Delete this object from C++ memory. func (this *QFutureInterfaceBase) Delete() { - C.QFutureInterfaceBase_Delete(this.h, C.bool(this.isSubclass)) + C.QFutureInterfaceBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfutureinterface.h b/qt/gen_qfutureinterface.h index ec327fd4..f8cf4fb2 100644 --- a/qt/gen_qfutureinterface.h +++ b/qt/gen_qfutureinterface.h @@ -68,7 +68,7 @@ QMutex* QFutureInterfaceBase_MutexWithInt(const QFutureInterfaceBase* self, int bool QFutureInterfaceBase_OperatorEqual(const QFutureInterfaceBase* self, QFutureInterfaceBase* other); bool QFutureInterfaceBase_OperatorNotEqual(const QFutureInterfaceBase* self, QFutureInterfaceBase* other); void QFutureInterfaceBase_OperatorAssign(QFutureInterfaceBase* self, QFutureInterfaceBase* other); -void QFutureInterfaceBase_Delete(QFutureInterfaceBase* self, bool isSubclass); +void QFutureInterfaceBase_Delete(QFutureInterfaceBase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qfuturewatcher.cpp b/qt/gen_qfuturewatcher.cpp index 724cc762..85d89846 100644 --- a/qt/gen_qfuturewatcher.cpp +++ b/qt/gen_qfuturewatcher.cpp @@ -295,11 +295,7 @@ struct miqt_string QFutureWatcherBase_TrUtf83(const char* s, const char* c, int return _ms; } -void QFutureWatcherBase_Delete(QFutureWatcherBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFutureWatcherBase_Delete(QFutureWatcherBase* self) { + delete self; } diff --git a/qt/gen_qfuturewatcher.go b/qt/gen_qfuturewatcher.go index b162d1a8..2205c0f7 100644 --- a/qt/gen_qfuturewatcher.go +++ b/qt/gen_qfuturewatcher.go @@ -392,7 +392,7 @@ func QFutureWatcherBase_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QFutureWatcherBase) Delete() { - C.QFutureWatcherBase_Delete(this.h, C.bool(this.isSubclass)) + C.QFutureWatcherBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qfuturewatcher.h b/qt/gen_qfuturewatcher.h index 5bb755a1..5f237d87 100644 --- a/qt/gen_qfuturewatcher.h +++ b/qt/gen_qfuturewatcher.h @@ -76,7 +76,7 @@ struct miqt_string QFutureWatcherBase_Tr2(const char* s, const char* c); struct miqt_string QFutureWatcherBase_Tr3(const char* s, const char* c, int n); struct miqt_string QFutureWatcherBase_TrUtf82(const char* s, const char* c); struct miqt_string QFutureWatcherBase_TrUtf83(const char* s, const char* c, int n); -void QFutureWatcherBase_Delete(QFutureWatcherBase* self, bool isSubclass); +void QFutureWatcherBase_Delete(QFutureWatcherBase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgenericplugin.cpp b/qt/gen_qgenericplugin.cpp index c6338081..4588e530 100644 --- a/qt/gen_qgenericplugin.cpp +++ b/qt/gen_qgenericplugin.cpp @@ -27,13 +27,13 @@ void miqt_exec_callback_QGenericPlugin_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQGenericPlugin : public virtual QGenericPlugin { +class MiqtVirtualQGenericPlugin final : public QGenericPlugin { public: MiqtVirtualQGenericPlugin(): QGenericPlugin() {}; MiqtVirtualQGenericPlugin(QObject* parent): QGenericPlugin(parent) {}; - virtual ~MiqtVirtualQGenericPlugin() = default; + virtual ~MiqtVirtualQGenericPlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -391,11 +391,7 @@ void QGenericPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQGenericPlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGenericPlugin_Delete(QGenericPlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGenericPlugin_Delete(QGenericPlugin* self) { + delete self; } diff --git a/qt/gen_qgenericplugin.go b/qt/gen_qgenericplugin.go index 4788773c..2a2ff9f3 100644 --- a/qt/gen_qgenericplugin.go +++ b/qt/gen_qgenericplugin.go @@ -370,7 +370,7 @@ func miqt_exec_callback_QGenericPlugin_DisconnectNotify(self *C.QGenericPlugin, // Delete this object from C++ memory. func (this *QGenericPlugin) Delete() { - C.QGenericPlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QGenericPlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgenericplugin.h b/qt/gen_qgenericplugin.h index 7e6a5465..08ff029e 100644 --- a/qt/gen_qgenericplugin.h +++ b/qt/gen_qgenericplugin.h @@ -60,7 +60,7 @@ void QGenericPlugin_override_virtual_ConnectNotify(void* self, intptr_t slot); void QGenericPlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGenericPlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGenericPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGenericPlugin_Delete(QGenericPlugin* self, bool isSubclass); +void QGenericPlugin_Delete(QGenericPlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgenericpluginfactory.cpp b/qt/gen_qgenericpluginfactory.cpp index b4f6fd64..3ebbf63c 100644 --- a/qt/gen_qgenericpluginfactory.cpp +++ b/qt/gen_qgenericpluginfactory.cpp @@ -41,11 +41,7 @@ QObject* QGenericPluginFactory_Create(struct miqt_string param1, struct miqt_str return QGenericPluginFactory::create(param1_QString, param2_QString); } -void QGenericPluginFactory_Delete(QGenericPluginFactory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGenericPluginFactory_Delete(QGenericPluginFactory* self) { + delete self; } diff --git a/qt/gen_qgenericpluginfactory.go b/qt/gen_qgenericpluginfactory.go index 7ad69cd1..51002589 100644 --- a/qt/gen_qgenericpluginfactory.go +++ b/qt/gen_qgenericpluginfactory.go @@ -73,7 +73,7 @@ func QGenericPluginFactory_Create(param1 string, param2 string) *QObject { // Delete this object from C++ memory. func (this *QGenericPluginFactory) Delete() { - C.QGenericPluginFactory_Delete(this.h, C.bool(this.isSubclass)) + C.QGenericPluginFactory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgenericpluginfactory.h b/qt/gen_qgenericpluginfactory.h index f8efe2a5..2c0298c9 100644 --- a/qt/gen_qgenericpluginfactory.h +++ b/qt/gen_qgenericpluginfactory.h @@ -24,7 +24,7 @@ typedef struct QObject QObject; struct miqt_array /* of struct miqt_string */ QGenericPluginFactory_Keys(); QObject* QGenericPluginFactory_Create(struct miqt_string param1, struct miqt_string param2); -void QGenericPluginFactory_Delete(QGenericPluginFactory* self, bool isSubclass); +void QGenericPluginFactory_Delete(QGenericPluginFactory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgesture.cpp b/qt/gen_qgesture.cpp index c5bacf92..4e4dd7ca 100644 --- a/qt/gen_qgesture.cpp +++ b/qt/gen_qgesture.cpp @@ -35,13 +35,13 @@ void miqt_exec_callback_QGesture_DisconnectNotify(void*, intptr_t, QMetaMethod*) } /* extern C */ #endif -class MiqtVirtualQGesture : public virtual QGesture { +class MiqtVirtualQGesture final : public QGesture { public: MiqtVirtualQGesture(): QGesture() {}; MiqtVirtualQGesture(QObject* parent): QGesture(parent) {}; - virtual ~MiqtVirtualQGesture() = default; + virtual ~MiqtVirtualQGesture() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -393,12 +393,8 @@ void QGesture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQGesture*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGesture_Delete(QGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGesture_Delete(QGesture* self) { + delete self; } QPanGesture* QPanGesture_new() { @@ -516,12 +512,8 @@ struct miqt_string QPanGesture_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QPanGesture_Delete(QPanGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPanGesture_Delete(QPanGesture* self) { + delete self; } QPinchGesture* QPinchGesture_new() { @@ -706,12 +698,8 @@ struct miqt_string QPinchGesture_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QPinchGesture_Delete(QPinchGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPinchGesture_Delete(QPinchGesture* self) { + delete self; } QSwipeGesture* QSwipeGesture_new() { @@ -819,12 +807,8 @@ struct miqt_string QSwipeGesture_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QSwipeGesture_Delete(QSwipeGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSwipeGesture_Delete(QSwipeGesture* self) { + delete self; } QTapGesture* QTapGesture_new() { @@ -921,12 +905,8 @@ struct miqt_string QTapGesture_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QTapGesture_Delete(QTapGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTapGesture_Delete(QTapGesture* self) { + delete self; } QTapAndHoldGesture* QTapAndHoldGesture_new() { @@ -1031,12 +1011,8 @@ struct miqt_string QTapAndHoldGesture_TrUtf83(const char* s, const char* c, int return _ms; } -void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self) { + delete self; } QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures) { @@ -1144,11 +1120,7 @@ QPointF* QGestureEvent_MapToGraphicsScene(const QGestureEvent* self, QPointF* ge return new QPointF(self->mapToGraphicsScene(*gesturePoint)); } -void QGestureEvent_Delete(QGestureEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGestureEvent_Delete(QGestureEvent* self) { + delete self; } diff --git a/qt/gen_qgesture.go b/qt/gen_qgesture.go index b16233b2..38fd2f75 100644 --- a/qt/gen_qgesture.go +++ b/qt/gen_qgesture.go @@ -388,7 +388,7 @@ func miqt_exec_callback_QGesture_DisconnectNotify(self *C.QGesture, cb C.intptr_ // Delete this object from C++ memory. func (this *QGesture) Delete() { - C.QGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -561,7 +561,7 @@ func QPanGesture_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QPanGesture) Delete() { - C.QPanGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QPanGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -794,7 +794,7 @@ func QPinchGesture_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QPinchGesture) Delete() { - C.QPinchGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QPinchGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -949,7 +949,7 @@ func QSwipeGesture_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QSwipeGesture) Delete() { - C.QSwipeGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QSwipeGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1098,7 +1098,7 @@ func QTapGesture_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QTapGesture) Delete() { - C.QTapGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QTapGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1255,7 +1255,7 @@ func QTapAndHoldGesture_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QTapAndHoldGesture) Delete() { - C.QTapAndHoldGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QTapAndHoldGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1408,7 +1408,7 @@ func (this *QGestureEvent) MapToGraphicsScene(gesturePoint *QPointF) *QPointF { // Delete this object from C++ memory. func (this *QGestureEvent) Delete() { - C.QGestureEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGestureEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgesture.h b/qt/gen_qgesture.h index 7007b294..4530cdbd 100644 --- a/qt/gen_qgesture.h +++ b/qt/gen_qgesture.h @@ -81,7 +81,7 @@ void QGesture_override_virtual_ConnectNotify(void* self, intptr_t slot); void QGesture_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGesture_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGesture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGesture_Delete(QGesture* self, bool isSubclass); +void QGesture_Delete(QGesture* self); QPanGesture* QPanGesture_new(); QPanGesture* QPanGesture_new2(QObject* parent); @@ -101,7 +101,7 @@ struct miqt_string QPanGesture_Tr2(const char* s, const char* c); struct miqt_string QPanGesture_Tr3(const char* s, const char* c, int n); struct miqt_string QPanGesture_TrUtf82(const char* s, const char* c); struct miqt_string QPanGesture_TrUtf83(const char* s, const char* c, int n); -void QPanGesture_Delete(QPanGesture* self, bool isSubclass); +void QPanGesture_Delete(QPanGesture* self); QPinchGesture* QPinchGesture_new(); QPinchGesture* QPinchGesture_new2(QObject* parent); @@ -136,7 +136,7 @@ struct miqt_string QPinchGesture_Tr2(const char* s, const char* c); struct miqt_string QPinchGesture_Tr3(const char* s, const char* c, int n); struct miqt_string QPinchGesture_TrUtf82(const char* s, const char* c); struct miqt_string QPinchGesture_TrUtf83(const char* s, const char* c, int n); -void QPinchGesture_Delete(QPinchGesture* self, bool isSubclass); +void QPinchGesture_Delete(QPinchGesture* self); QSwipeGesture* QSwipeGesture_new(); QSwipeGesture* QSwipeGesture_new2(QObject* parent); @@ -153,7 +153,7 @@ struct miqt_string QSwipeGesture_Tr2(const char* s, const char* c); struct miqt_string QSwipeGesture_Tr3(const char* s, const char* c, int n); struct miqt_string QSwipeGesture_TrUtf82(const char* s, const char* c); struct miqt_string QSwipeGesture_TrUtf83(const char* s, const char* c, int n); -void QSwipeGesture_Delete(QSwipeGesture* self, bool isSubclass); +void QSwipeGesture_Delete(QSwipeGesture* self); QTapGesture* QTapGesture_new(); QTapGesture* QTapGesture_new2(QObject* parent); @@ -168,7 +168,7 @@ struct miqt_string QTapGesture_Tr2(const char* s, const char* c); struct miqt_string QTapGesture_Tr3(const char* s, const char* c, int n); struct miqt_string QTapGesture_TrUtf82(const char* s, const char* c); struct miqt_string QTapGesture_TrUtf83(const char* s, const char* c, int n); -void QTapGesture_Delete(QTapGesture* self, bool isSubclass); +void QTapGesture_Delete(QTapGesture* self); QTapAndHoldGesture* QTapAndHoldGesture_new(); QTapAndHoldGesture* QTapAndHoldGesture_new2(QObject* parent); @@ -185,7 +185,7 @@ struct miqt_string QTapAndHoldGesture_Tr2(const char* s, const char* c); struct miqt_string QTapAndHoldGesture_Tr3(const char* s, const char* c, int n); struct miqt_string QTapAndHoldGesture_TrUtf82(const char* s, const char* c); struct miqt_string QTapAndHoldGesture_TrUtf83(const char* s, const char* c, int n); -void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self, bool isSubclass); +void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self); QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures); QGestureEvent* QGestureEvent_new2(QGestureEvent* param1); @@ -205,7 +205,7 @@ bool QGestureEvent_IsAcceptedWithQtGestureType(const QGestureEvent* self, int pa void QGestureEvent_SetWidget(QGestureEvent* self, QWidget* widget); QWidget* QGestureEvent_Widget(const QGestureEvent* self); QPointF* QGestureEvent_MapToGraphicsScene(const QGestureEvent* self, QPointF* gesturePoint); -void QGestureEvent_Delete(QGestureEvent* self, bool isSubclass); +void QGestureEvent_Delete(QGestureEvent* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgesturerecognizer.cpp b/qt/gen_qgesturerecognizer.cpp index fff91da3..8bee34d8 100644 --- a/qt/gen_qgesturerecognizer.cpp +++ b/qt/gen_qgesturerecognizer.cpp @@ -16,12 +16,12 @@ void miqt_exec_callback_QGestureRecognizer_Reset(void*, intptr_t, QGesture*); } /* extern C */ #endif -class MiqtVirtualQGestureRecognizer : public virtual QGestureRecognizer { +class MiqtVirtualQGestureRecognizer final : public QGestureRecognizer { public: MiqtVirtualQGestureRecognizer(): QGestureRecognizer() {}; - virtual ~MiqtVirtualQGestureRecognizer() = default; + virtual ~MiqtVirtualQGestureRecognizer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -140,11 +140,7 @@ void QGestureRecognizer_virtualbase_Reset(void* self, QGesture* state) { ( (MiqtVirtualQGestureRecognizer*)(self) )->virtualbase_Reset(state); } -void QGestureRecognizer_Delete(QGestureRecognizer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGestureRecognizer_Delete(QGestureRecognizer* self) { + delete self; } diff --git a/qt/gen_qgesturerecognizer.go b/qt/gen_qgesturerecognizer.go index 38dd1881..2a001324 100644 --- a/qt/gen_qgesturerecognizer.go +++ b/qt/gen_qgesturerecognizer.go @@ -174,7 +174,7 @@ func miqt_exec_callback_QGestureRecognizer_Reset(self *C.QGestureRecognizer, cb // Delete this object from C++ memory. func (this *QGestureRecognizer) Delete() { - C.QGestureRecognizer_Delete(this.h, C.bool(this.isSubclass)) + C.QGestureRecognizer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgesturerecognizer.h b/qt/gen_qgesturerecognizer.h index ca93638a..801202cf 100644 --- a/qt/gen_qgesturerecognizer.h +++ b/qt/gen_qgesturerecognizer.h @@ -39,7 +39,7 @@ void QGestureRecognizer_override_virtual_Recognize(void* self, intptr_t slot); int QGestureRecognizer_virtualbase_Recognize(void* self, QGesture* state, QObject* watched, QEvent* event); void QGestureRecognizer_override_virtual_Reset(void* self, intptr_t slot); void QGestureRecognizer_virtualbase_Reset(void* self, QGesture* state); -void QGestureRecognizer_Delete(QGestureRecognizer* self, bool isSubclass); +void QGestureRecognizer_Delete(QGestureRecognizer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qglyphrun.cpp b/qt/gen_qglyphrun.cpp index 098a5f5a..541f8cd1 100644 --- a/qt/gen_qglyphrun.cpp +++ b/qt/gen_qglyphrun.cpp @@ -161,11 +161,7 @@ void QGlyphRun_SetFlag2(QGlyphRun* self, int flag, bool enabled) { self->setFlag(static_cast(flag), enabled); } -void QGlyphRun_Delete(QGlyphRun* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGlyphRun_Delete(QGlyphRun* self) { + delete self; } diff --git a/qt/gen_qglyphrun.go b/qt/gen_qglyphrun.go index 35d0e8ad..916cfddb 100644 --- a/qt/gen_qglyphrun.go +++ b/qt/gen_qglyphrun.go @@ -212,7 +212,7 @@ func (this *QGlyphRun) SetFlag2(flag QGlyphRun__GlyphRunFlag, enabled bool) { // Delete this object from C++ memory. func (this *QGlyphRun) Delete() { - C.QGlyphRun_Delete(this.h, C.bool(this.isSubclass)) + C.QGlyphRun_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qglyphrun.h b/qt/gen_qglyphrun.h index 1128ff62..7c723b62 100644 --- a/qt/gen_qglyphrun.h +++ b/qt/gen_qglyphrun.h @@ -55,7 +55,7 @@ void QGlyphRun_SetBoundingRect(QGlyphRun* self, QRectF* boundingRect); QRectF* QGlyphRun_BoundingRect(const QGlyphRun* self); bool QGlyphRun_IsEmpty(const QGlyphRun* self); void QGlyphRun_SetFlag2(QGlyphRun* self, int flag, bool enabled); -void QGlyphRun_Delete(QGlyphRun* self, bool isSubclass); +void QGlyphRun_Delete(QGlyphRun* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicsanchorlayout.cpp b/qt/gen_qgraphicsanchorlayout.cpp index 44abb206..d619dccb 100644 --- a/qt/gen_qgraphicsanchorlayout.cpp +++ b/qt/gen_qgraphicsanchorlayout.cpp @@ -130,21 +130,17 @@ struct miqt_string QGraphicsAnchor_TrUtf83(const char* s, const char* c, int n) return _ms; } -void QGraphicsAnchor_Delete(QGraphicsAnchor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsAnchor_Delete(QGraphicsAnchor* self) { + delete self; } -class MiqtVirtualQGraphicsAnchorLayout : public virtual QGraphicsAnchorLayout { +class MiqtVirtualQGraphicsAnchorLayout final : public QGraphicsAnchorLayout { public: MiqtVirtualQGraphicsAnchorLayout(): QGraphicsAnchorLayout() {}; MiqtVirtualQGraphicsAnchorLayout(QGraphicsLayoutItem* parent): QGraphicsAnchorLayout(parent) {}; - virtual ~MiqtVirtualQGraphicsAnchorLayout() = default; + virtual ~MiqtVirtualQGraphicsAnchorLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__RemoveAt = 0; @@ -517,11 +513,7 @@ void QGraphicsAnchorLayout_virtualbase_WidgetEvent(void* self, QEvent* e) { ( (MiqtVirtualQGraphicsAnchorLayout*)(self) )->virtualbase_WidgetEvent(e); } -void QGraphicsAnchorLayout_Delete(QGraphicsAnchorLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsAnchorLayout_Delete(QGraphicsAnchorLayout* self) { + delete self; } diff --git a/qt/gen_qgraphicsanchorlayout.go b/qt/gen_qgraphicsanchorlayout.go index 21a7ee96..ac21cacb 100644 --- a/qt/gen_qgraphicsanchorlayout.go +++ b/qt/gen_qgraphicsanchorlayout.go @@ -145,7 +145,7 @@ func QGraphicsAnchor_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QGraphicsAnchor) Delete() { - C.QGraphicsAnchor_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsAnchor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -513,7 +513,7 @@ func miqt_exec_callback_QGraphicsAnchorLayout_WidgetEvent(self *C.QGraphicsAncho // Delete this object from C++ memory. func (this *QGraphicsAnchorLayout) Delete() { - C.QGraphicsAnchorLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsAnchorLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicsanchorlayout.h b/qt/gen_qgraphicsanchorlayout.h index 35589aa3..79dadb29 100644 --- a/qt/gen_qgraphicsanchorlayout.h +++ b/qt/gen_qgraphicsanchorlayout.h @@ -50,7 +50,7 @@ struct miqt_string QGraphicsAnchor_Tr2(const char* s, const char* c); struct miqt_string QGraphicsAnchor_Tr3(const char* s, const char* c, int n); struct miqt_string QGraphicsAnchor_TrUtf82(const char* s, const char* c); struct miqt_string QGraphicsAnchor_TrUtf83(const char* s, const char* c, int n); -void QGraphicsAnchor_Delete(QGraphicsAnchor* self, bool isSubclass); +void QGraphicsAnchor_Delete(QGraphicsAnchor* self); QGraphicsAnchorLayout* QGraphicsAnchorLayout_new(); QGraphicsAnchorLayout* QGraphicsAnchorLayout_new2(QGraphicsLayoutItem* parent); @@ -89,7 +89,7 @@ void QGraphicsAnchorLayout_override_virtual_UpdateGeometry(void* self, intptr_t void QGraphicsAnchorLayout_virtualbase_UpdateGeometry(void* self); void QGraphicsAnchorLayout_override_virtual_WidgetEvent(void* self, intptr_t slot); void QGraphicsAnchorLayout_virtualbase_WidgetEvent(void* self, QEvent* e); -void QGraphicsAnchorLayout_Delete(QGraphicsAnchorLayout* self, bool isSubclass); +void QGraphicsAnchorLayout_Delete(QGraphicsAnchorLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicseffect.cpp b/qt/gen_qgraphicseffect.cpp index a076ce16..ca440904 100644 --- a/qt/gen_qgraphicseffect.cpp +++ b/qt/gen_qgraphicseffect.cpp @@ -60,13 +60,13 @@ void miqt_exec_callback_QGraphicsOpacityEffect_SourceChanged(void*, intptr_t, in } /* extern C */ #endif -class MiqtVirtualQGraphicsEffect : public virtual QGraphicsEffect { +class MiqtVirtualQGraphicsEffect final : public QGraphicsEffect { public: MiqtVirtualQGraphicsEffect(): QGraphicsEffect() {}; MiqtVirtualQGraphicsEffect(QObject* parent): QGraphicsEffect(parent) {}; - virtual ~MiqtVirtualQGraphicsEffect() = default; + virtual ~MiqtVirtualQGraphicsEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRectFor = 0; @@ -500,21 +500,17 @@ void QGraphicsEffect_virtualbase_DisconnectNotify(void* self, QMetaMethod* signa ( (MiqtVirtualQGraphicsEffect*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGraphicsEffect_Delete(QGraphicsEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsEffect_Delete(QGraphicsEffect* self) { + delete self; } -class MiqtVirtualQGraphicsColorizeEffect : public virtual QGraphicsColorizeEffect { +class MiqtVirtualQGraphicsColorizeEffect final : public QGraphicsColorizeEffect { public: MiqtVirtualQGraphicsColorizeEffect(): QGraphicsColorizeEffect() {}; MiqtVirtualQGraphicsColorizeEffect(QObject* parent): QGraphicsColorizeEffect(parent) {}; - virtual ~MiqtVirtualQGraphicsColorizeEffect() = default; + virtual ~MiqtVirtualQGraphicsColorizeEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Draw = 0; @@ -744,21 +740,17 @@ void QGraphicsColorizeEffect_virtualbase_SourceChanged(void* self, int flags) { ( (MiqtVirtualQGraphicsColorizeEffect*)(self) )->virtualbase_SourceChanged(flags); } -void QGraphicsColorizeEffect_Delete(QGraphicsColorizeEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsColorizeEffect_Delete(QGraphicsColorizeEffect* self) { + delete self; } -class MiqtVirtualQGraphicsBlurEffect : public virtual QGraphicsBlurEffect { +class MiqtVirtualQGraphicsBlurEffect final : public QGraphicsBlurEffect { public: MiqtVirtualQGraphicsBlurEffect(): QGraphicsBlurEffect() {}; MiqtVirtualQGraphicsBlurEffect(QObject* parent): QGraphicsBlurEffect(parent) {}; - virtual ~MiqtVirtualQGraphicsBlurEffect() = default; + virtual ~MiqtVirtualQGraphicsBlurEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRectFor = 0; @@ -992,21 +984,17 @@ void QGraphicsBlurEffect_virtualbase_SourceChanged(void* self, int flags) { ( (MiqtVirtualQGraphicsBlurEffect*)(self) )->virtualbase_SourceChanged(flags); } -void QGraphicsBlurEffect_Delete(QGraphicsBlurEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsBlurEffect_Delete(QGraphicsBlurEffect* self) { + delete self; } -class MiqtVirtualQGraphicsDropShadowEffect : public virtual QGraphicsDropShadowEffect { +class MiqtVirtualQGraphicsDropShadowEffect final : public QGraphicsDropShadowEffect { public: MiqtVirtualQGraphicsDropShadowEffect(): QGraphicsDropShadowEffect() {}; MiqtVirtualQGraphicsDropShadowEffect(QObject* parent): QGraphicsDropShadowEffect(parent) {}; - virtual ~MiqtVirtualQGraphicsDropShadowEffect() = default; + virtual ~MiqtVirtualQGraphicsDropShadowEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRectFor = 0; @@ -1287,21 +1275,17 @@ void QGraphicsDropShadowEffect_virtualbase_SourceChanged(void* self, int flags) ( (MiqtVirtualQGraphicsDropShadowEffect*)(self) )->virtualbase_SourceChanged(flags); } -void QGraphicsDropShadowEffect_Delete(QGraphicsDropShadowEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsDropShadowEffect_Delete(QGraphicsDropShadowEffect* self) { + delete self; } -class MiqtVirtualQGraphicsOpacityEffect : public virtual QGraphicsOpacityEffect { +class MiqtVirtualQGraphicsOpacityEffect final : public QGraphicsOpacityEffect { public: MiqtVirtualQGraphicsOpacityEffect(): QGraphicsOpacityEffect() {}; MiqtVirtualQGraphicsOpacityEffect(QObject* parent): QGraphicsOpacityEffect(parent) {}; - virtual ~MiqtVirtualQGraphicsOpacityEffect() = default; + virtual ~MiqtVirtualQGraphicsOpacityEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Draw = 0; @@ -1531,11 +1515,7 @@ void QGraphicsOpacityEffect_virtualbase_SourceChanged(void* self, int flags) { ( (MiqtVirtualQGraphicsOpacityEffect*)(self) )->virtualbase_SourceChanged(flags); } -void QGraphicsOpacityEffect_Delete(QGraphicsOpacityEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsOpacityEffect_Delete(QGraphicsOpacityEffect* self) { + delete self; } diff --git a/qt/gen_qgraphicseffect.go b/qt/gen_qgraphicseffect.go index 0034fac1..edea3d25 100644 --- a/qt/gen_qgraphicseffect.go +++ b/qt/gen_qgraphicseffect.go @@ -474,7 +474,7 @@ func miqt_exec_callback_QGraphicsEffect_DisconnectNotify(self *C.QGraphicsEffect // Delete this object from C++ memory. func (this *QGraphicsEffect) Delete() { - C.QGraphicsEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -753,7 +753,7 @@ func miqt_exec_callback_QGraphicsColorizeEffect_SourceChanged(self *C.QGraphicsC // Delete this object from C++ memory. func (this *QGraphicsColorizeEffect) Delete() { - C.QGraphicsColorizeEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsColorizeEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1036,7 +1036,7 @@ func miqt_exec_callback_QGraphicsBlurEffect_SourceChanged(self *C.QGraphicsBlurE // Delete this object from C++ memory. func (this *QGraphicsBlurEffect) Delete() { - C.QGraphicsBlurEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsBlurEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1375,7 +1375,7 @@ func miqt_exec_callback_QGraphicsDropShadowEffect_SourceChanged(self *C.QGraphic // Delete this object from C++ memory. func (this *QGraphicsDropShadowEffect) Delete() { - C.QGraphicsDropShadowEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsDropShadowEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1654,7 +1654,7 @@ func miqt_exec_callback_QGraphicsOpacityEffect_SourceChanged(self *C.QGraphicsOp // Delete this object from C++ memory. func (this *QGraphicsOpacityEffect) Delete() { - C.QGraphicsOpacityEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsOpacityEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicseffect.h b/qt/gen_qgraphicseffect.h index 30ac8e13..8177f159 100644 --- a/qt/gen_qgraphicseffect.h +++ b/qt/gen_qgraphicseffect.h @@ -90,7 +90,7 @@ void QGraphicsEffect_override_virtual_ConnectNotify(void* self, intptr_t slot); void QGraphicsEffect_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGraphicsEffect_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGraphicsEffect_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGraphicsEffect_Delete(QGraphicsEffect* self, bool isSubclass); +void QGraphicsEffect_Delete(QGraphicsEffect* self); QGraphicsColorizeEffect* QGraphicsColorizeEffect_new(); QGraphicsColorizeEffect* QGraphicsColorizeEffect_new2(QObject* parent); @@ -118,7 +118,7 @@ void QGraphicsColorizeEffect_override_virtual_BoundingRectFor(void* self, intptr QRectF* QGraphicsColorizeEffect_virtualbase_BoundingRectFor(const void* self, QRectF* sourceRect); void QGraphicsColorizeEffect_override_virtual_SourceChanged(void* self, intptr_t slot); void QGraphicsColorizeEffect_virtualbase_SourceChanged(void* self, int flags); -void QGraphicsColorizeEffect_Delete(QGraphicsColorizeEffect* self, bool isSubclass); +void QGraphicsColorizeEffect_Delete(QGraphicsColorizeEffect* self); QGraphicsBlurEffect* QGraphicsBlurEffect_new(); QGraphicsBlurEffect* QGraphicsBlurEffect_new2(QObject* parent); @@ -147,7 +147,7 @@ void QGraphicsBlurEffect_override_virtual_Draw(void* self, intptr_t slot); void QGraphicsBlurEffect_virtualbase_Draw(void* self, QPainter* painter); void QGraphicsBlurEffect_override_virtual_SourceChanged(void* self, intptr_t slot); void QGraphicsBlurEffect_virtualbase_SourceChanged(void* self, int flags); -void QGraphicsBlurEffect_Delete(QGraphicsBlurEffect* self, bool isSubclass); +void QGraphicsBlurEffect_Delete(QGraphicsBlurEffect* self); QGraphicsDropShadowEffect* QGraphicsDropShadowEffect_new(); QGraphicsDropShadowEffect* QGraphicsDropShadowEffect_new2(QObject* parent); @@ -186,7 +186,7 @@ void QGraphicsDropShadowEffect_override_virtual_Draw(void* self, intptr_t slot); void QGraphicsDropShadowEffect_virtualbase_Draw(void* self, QPainter* painter); void QGraphicsDropShadowEffect_override_virtual_SourceChanged(void* self, intptr_t slot); void QGraphicsDropShadowEffect_virtualbase_SourceChanged(void* self, int flags); -void QGraphicsDropShadowEffect_Delete(QGraphicsDropShadowEffect* self, bool isSubclass); +void QGraphicsDropShadowEffect_Delete(QGraphicsDropShadowEffect* self); QGraphicsOpacityEffect* QGraphicsOpacityEffect_new(); QGraphicsOpacityEffect* QGraphicsOpacityEffect_new2(QObject* parent); @@ -214,7 +214,7 @@ void QGraphicsOpacityEffect_override_virtual_BoundingRectFor(void* self, intptr_ QRectF* QGraphicsOpacityEffect_virtualbase_BoundingRectFor(const void* self, QRectF* sourceRect); void QGraphicsOpacityEffect_override_virtual_SourceChanged(void* self, intptr_t slot); void QGraphicsOpacityEffect_virtualbase_SourceChanged(void* self, int flags); -void QGraphicsOpacityEffect_Delete(QGraphicsOpacityEffect* self, bool isSubclass); +void QGraphicsOpacityEffect_Delete(QGraphicsOpacityEffect* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicsgridlayout.cpp b/qt/gen_qgraphicsgridlayout.cpp index 7498121f..6a1eda3b 100644 --- a/qt/gen_qgraphicsgridlayout.cpp +++ b/qt/gen_qgraphicsgridlayout.cpp @@ -24,13 +24,13 @@ void miqt_exec_callback_QGraphicsGridLayout_WidgetEvent(void*, intptr_t, QEvent* } /* extern C */ #endif -class MiqtVirtualQGraphicsGridLayout : public virtual QGraphicsGridLayout { +class MiqtVirtualQGraphicsGridLayout final : public QGraphicsGridLayout { public: MiqtVirtualQGraphicsGridLayout(): QGraphicsGridLayout() {}; MiqtVirtualQGraphicsGridLayout(QGraphicsLayoutItem* parent): QGraphicsGridLayout(parent) {}; - virtual ~MiqtVirtualQGraphicsGridLayout() = default; + virtual ~MiqtVirtualQGraphicsGridLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Count = 0; @@ -542,11 +542,7 @@ void QGraphicsGridLayout_virtualbase_WidgetEvent(void* self, QEvent* e) { ( (MiqtVirtualQGraphicsGridLayout*)(self) )->virtualbase_WidgetEvent(e); } -void QGraphicsGridLayout_Delete(QGraphicsGridLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsGridLayout_Delete(QGraphicsGridLayout* self) { + delete self; } diff --git a/qt/gen_qgraphicsgridlayout.go b/qt/gen_qgraphicsgridlayout.go index 6602ce28..3dd416c0 100644 --- a/qt/gen_qgraphicsgridlayout.go +++ b/qt/gen_qgraphicsgridlayout.go @@ -500,7 +500,7 @@ func miqt_exec_callback_QGraphicsGridLayout_WidgetEvent(self *C.QGraphicsGridLay // Delete this object from C++ memory. func (this *QGraphicsGridLayout) Delete() { - C.QGraphicsGridLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsGridLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicsgridlayout.h b/qt/gen_qgraphicsgridlayout.h index b190b781..70226f54 100644 --- a/qt/gen_qgraphicsgridlayout.h +++ b/qt/gen_qgraphicsgridlayout.h @@ -98,7 +98,7 @@ void QGraphicsGridLayout_override_virtual_UpdateGeometry(void* self, intptr_t sl void QGraphicsGridLayout_virtualbase_UpdateGeometry(void* self); void QGraphicsGridLayout_override_virtual_WidgetEvent(void* self, intptr_t slot); void QGraphicsGridLayout_virtualbase_WidgetEvent(void* self, QEvent* e); -void QGraphicsGridLayout_Delete(QGraphicsGridLayout* self, bool isSubclass); +void QGraphicsGridLayout_Delete(QGraphicsGridLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicsitem.cpp b/qt/gen_qgraphicsitem.cpp index c4648920..ef667d72 100644 --- a/qt/gen_qgraphicsitem.cpp +++ b/qt/gen_qgraphicsitem.cpp @@ -374,13 +374,13 @@ QVariant* miqt_exec_callback_QGraphicsItemGroup_Extension(void*, intptr_t, QVari } /* extern C */ #endif -class MiqtVirtualQGraphicsItem : public virtual QGraphicsItem { +class MiqtVirtualQGraphicsItem final : public QGraphicsItem { public: MiqtVirtualQGraphicsItem(): QGraphicsItem() {}; MiqtVirtualQGraphicsItem(QGraphicsItem* parent): QGraphicsItem(parent) {}; - virtual ~MiqtVirtualQGraphicsItem() = default; + virtual ~MiqtVirtualQGraphicsItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Advance = 0; @@ -2277,21 +2277,17 @@ QVariant* QGraphicsItem_virtualbase_Extension(const void* self, QVariant* varian return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsItem_Delete(QGraphicsItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsItem_Delete(QGraphicsItem* self) { + delete self; } -class MiqtVirtualQGraphicsObject : public virtual QGraphicsObject { +class MiqtVirtualQGraphicsObject final : public QGraphicsObject { public: MiqtVirtualQGraphicsObject(): QGraphicsObject() {}; MiqtVirtualQGraphicsObject(QGraphicsItem* parent): QGraphicsObject(parent) {}; - virtual ~MiqtVirtualQGraphicsObject() = default; + virtual ~MiqtVirtualQGraphicsObject() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -3843,21 +3839,17 @@ QVariant* QGraphicsObject_virtualbase_Extension(const void* self, QVariant* vari return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_Extension(variant); } -void QGraphicsObject_Delete(QGraphicsObject* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsObject_Delete(QGraphicsObject* self) { + delete self; } -class MiqtVirtualQAbstractGraphicsShapeItem : public virtual QAbstractGraphicsShapeItem { +class MiqtVirtualQAbstractGraphicsShapeItem final : public QAbstractGraphicsShapeItem { public: MiqtVirtualQAbstractGraphicsShapeItem(): QAbstractGraphicsShapeItem() {}; MiqtVirtualQAbstractGraphicsShapeItem(QGraphicsItem* parent): QAbstractGraphicsShapeItem(parent) {}; - virtual ~MiqtVirtualQAbstractGraphicsShapeItem() = default; + virtual ~MiqtVirtualQAbstractGraphicsShapeItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; @@ -4999,15 +4991,11 @@ QVariant* QAbstractGraphicsShapeItem_virtualbase_Extension(const void* self, QVa return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_Extension(variant); } -void QAbstractGraphicsShapeItem_Delete(QAbstractGraphicsShapeItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractGraphicsShapeItem_Delete(QAbstractGraphicsShapeItem* self) { + delete self; } -class MiqtVirtualQGraphicsPathItem : public virtual QGraphicsPathItem { +class MiqtVirtualQGraphicsPathItem final : public QGraphicsPathItem { public: MiqtVirtualQGraphicsPathItem(): QGraphicsPathItem() {}; @@ -5015,7 +5003,7 @@ public: MiqtVirtualQGraphicsPathItem(QGraphicsItem* parent): QGraphicsPathItem(parent) {}; MiqtVirtualQGraphicsPathItem(const QPainterPath& path, QGraphicsItem* parent): QGraphicsPathItem(path, parent) {}; - virtual ~MiqtVirtualQGraphicsPathItem() = default; + virtual ~MiqtVirtualQGraphicsPathItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -5394,15 +5382,11 @@ QVariant* QGraphicsPathItem_virtualbase_Extension(const void* self, QVariant* va return ( (const MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsPathItem_Delete(QGraphicsPathItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsPathItem_Delete(QGraphicsPathItem* self) { + delete self; } -class MiqtVirtualQGraphicsRectItem : public virtual QGraphicsRectItem { +class MiqtVirtualQGraphicsRectItem final : public QGraphicsRectItem { public: MiqtVirtualQGraphicsRectItem(): QGraphicsRectItem() {}; @@ -5412,7 +5396,7 @@ public: MiqtVirtualQGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent): QGraphicsRectItem(rect, parent) {}; MiqtVirtualQGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent): QGraphicsRectItem(x, y, w, h, parent) {}; - virtual ~MiqtVirtualQGraphicsRectItem() = default; + virtual ~MiqtVirtualQGraphicsRectItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -5803,15 +5787,11 @@ QVariant* QGraphicsRectItem_virtualbase_Extension(const void* self, QVariant* va return ( (const MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsRectItem_Delete(QGraphicsRectItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsRectItem_Delete(QGraphicsRectItem* self) { + delete self; } -class MiqtVirtualQGraphicsEllipseItem : public virtual QGraphicsEllipseItem { +class MiqtVirtualQGraphicsEllipseItem final : public QGraphicsEllipseItem { public: MiqtVirtualQGraphicsEllipseItem(): QGraphicsEllipseItem() {}; @@ -5821,7 +5801,7 @@ public: MiqtVirtualQGraphicsEllipseItem(const QRectF& rect, QGraphicsItem* parent): QGraphicsEllipseItem(rect, parent) {}; MiqtVirtualQGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent): QGraphicsEllipseItem(x, y, w, h, parent) {}; - virtual ~MiqtVirtualQGraphicsEllipseItem() = default; + virtual ~MiqtVirtualQGraphicsEllipseItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -6228,21 +6208,17 @@ QVariant* QGraphicsEllipseItem_virtualbase_Extension(const void* self, QVariant* return ( (const MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsEllipseItem_Delete(QGraphicsEllipseItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsEllipseItem_Delete(QGraphicsEllipseItem* self) { + delete self; } -class MiqtVirtualQGraphicsPolygonItem : public virtual QGraphicsPolygonItem { +class MiqtVirtualQGraphicsPolygonItem final : public QGraphicsPolygonItem { public: MiqtVirtualQGraphicsPolygonItem(): QGraphicsPolygonItem() {}; MiqtVirtualQGraphicsPolygonItem(QGraphicsItem* parent): QGraphicsPolygonItem(parent) {}; - virtual ~MiqtVirtualQGraphicsPolygonItem() = default; + virtual ~MiqtVirtualQGraphicsPolygonItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -6614,15 +6590,11 @@ QVariant* QGraphicsPolygonItem_virtualbase_Extension(const void* self, QVariant* return ( (const MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsPolygonItem_Delete(QGraphicsPolygonItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsPolygonItem_Delete(QGraphicsPolygonItem* self) { + delete self; } -class MiqtVirtualQGraphicsLineItem : public virtual QGraphicsLineItem { +class MiqtVirtualQGraphicsLineItem final : public QGraphicsLineItem { public: MiqtVirtualQGraphicsLineItem(): QGraphicsLineItem() {}; @@ -6632,7 +6604,7 @@ public: MiqtVirtualQGraphicsLineItem(const QLineF& line, QGraphicsItem* parent): QGraphicsLineItem(line, parent) {}; MiqtVirtualQGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2, QGraphicsItem* parent): QGraphicsLineItem(x1, y1, x2, y2, parent) {}; - virtual ~MiqtVirtualQGraphicsLineItem() = default; + virtual ~MiqtVirtualQGraphicsLineItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -7837,15 +7809,11 @@ QVariant* QGraphicsLineItem_virtualbase_ItemChange(void* self, int change, QVari return ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_ItemChange(change, value); } -void QGraphicsLineItem_Delete(QGraphicsLineItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsLineItem_Delete(QGraphicsLineItem* self) { + delete self; } -class MiqtVirtualQGraphicsPixmapItem : public virtual QGraphicsPixmapItem { +class MiqtVirtualQGraphicsPixmapItem final : public QGraphicsPixmapItem { public: MiqtVirtualQGraphicsPixmapItem(): QGraphicsPixmapItem() {}; @@ -7853,7 +7821,7 @@ public: MiqtVirtualQGraphicsPixmapItem(QGraphicsItem* parent): QGraphicsPixmapItem(parent) {}; MiqtVirtualQGraphicsPixmapItem(const QPixmap& pixmap, QGraphicsItem* parent): QGraphicsPixmapItem(pixmap, parent) {}; - virtual ~MiqtVirtualQGraphicsPixmapItem() = default; + virtual ~MiqtVirtualQGraphicsPixmapItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -9068,15 +9036,11 @@ QVariant* QGraphicsPixmapItem_virtualbase_ItemChange(void* self, int change, QVa return ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_ItemChange(change, value); } -void QGraphicsPixmapItem_Delete(QGraphicsPixmapItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsPixmapItem_Delete(QGraphicsPixmapItem* self) { + delete self; } -class MiqtVirtualQGraphicsTextItem : public virtual QGraphicsTextItem { +class MiqtVirtualQGraphicsTextItem final : public QGraphicsTextItem { public: MiqtVirtualQGraphicsTextItem(): QGraphicsTextItem() {}; @@ -9084,7 +9048,7 @@ public: MiqtVirtualQGraphicsTextItem(QGraphicsItem* parent): QGraphicsTextItem(parent) {}; MiqtVirtualQGraphicsTextItem(const QString& text, QGraphicsItem* parent): QGraphicsTextItem(text, parent) {}; - virtual ~MiqtVirtualQGraphicsTextItem() = default; + virtual ~MiqtVirtualQGraphicsTextItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -10309,15 +10273,11 @@ bool QGraphicsTextItem_virtualbase_Event(void* self, QEvent* ev) { return ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_Event(ev); } -void QGraphicsTextItem_Delete(QGraphicsTextItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsTextItem_Delete(QGraphicsTextItem* self) { + delete self; } -class MiqtVirtualQGraphicsSimpleTextItem : public virtual QGraphicsSimpleTextItem { +class MiqtVirtualQGraphicsSimpleTextItem final : public QGraphicsSimpleTextItem { public: MiqtVirtualQGraphicsSimpleTextItem(): QGraphicsSimpleTextItem() {}; @@ -10325,7 +10285,7 @@ public: MiqtVirtualQGraphicsSimpleTextItem(QGraphicsItem* parent): QGraphicsSimpleTextItem(parent) {}; MiqtVirtualQGraphicsSimpleTextItem(const QString& text, QGraphicsItem* parent): QGraphicsSimpleTextItem(text, parent) {}; - virtual ~MiqtVirtualQGraphicsSimpleTextItem() = default; + virtual ~MiqtVirtualQGraphicsSimpleTextItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -10722,21 +10682,17 @@ QVariant* QGraphicsSimpleTextItem_virtualbase_Extension(const void* self, QVaria return ( (const MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsSimpleTextItem_Delete(QGraphicsSimpleTextItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSimpleTextItem_Delete(QGraphicsSimpleTextItem* self) { + delete self; } -class MiqtVirtualQGraphicsItemGroup : public virtual QGraphicsItemGroup { +class MiqtVirtualQGraphicsItemGroup final : public QGraphicsItemGroup { public: MiqtVirtualQGraphicsItemGroup(): QGraphicsItemGroup() {}; MiqtVirtualQGraphicsItemGroup(QGraphicsItem* parent): QGraphicsItemGroup(parent) {}; - virtual ~MiqtVirtualQGraphicsItemGroup() = default; + virtual ~MiqtVirtualQGraphicsItemGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -11905,11 +11861,7 @@ QVariant* QGraphicsItemGroup_virtualbase_Extension(const void* self, QVariant* v return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_Extension(variant); } -void QGraphicsItemGroup_Delete(QGraphicsItemGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsItemGroup_Delete(QGraphicsItemGroup* self) { + delete self; } diff --git a/qt/gen_qgraphicsitem.go b/qt/gen_qgraphicsitem.go index 9735f97d..2e8b7c15 100644 --- a/qt/gen_qgraphicsitem.go +++ b/qt/gen_qgraphicsitem.go @@ -2009,7 +2009,7 @@ func miqt_exec_callback_QGraphicsItem_Extension(self *C.QGraphicsItem, cb C.intp // Delete this object from C++ memory. func (this *QGraphicsItem) Delete() { - C.QGraphicsItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3493,7 +3493,7 @@ func miqt_exec_callback_QGraphicsObject_Extension(self *C.QGraphicsObject, cb C. // Delete this object from C++ memory. func (this *QGraphicsObject) Delete() { - C.QGraphicsObject_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsObject_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4528,7 +4528,7 @@ func miqt_exec_callback_QAbstractGraphicsShapeItem_Extension(self *C.QAbstractGr // Delete this object from C++ memory. func (this *QAbstractGraphicsShapeItem) Delete() { - C.QAbstractGraphicsShapeItem_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractGraphicsShapeItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4933,7 +4933,7 @@ func miqt_exec_callback_QGraphicsPathItem_Extension(self *C.QGraphicsPathItem, c // Delete this object from C++ memory. func (this *QGraphicsPathItem) Delete() { - C.QGraphicsPathItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsPathItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5358,7 +5358,7 @@ func miqt_exec_callback_QGraphicsRectItem_Extension(self *C.QGraphicsRectItem, c // Delete this object from C++ memory. func (this *QGraphicsRectItem) Delete() { - C.QGraphicsRectItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsRectItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5799,7 +5799,7 @@ func miqt_exec_callback_QGraphicsEllipseItem_Extension(self *C.QGraphicsEllipseI // Delete this object from C++ memory. func (this *QGraphicsEllipseItem) Delete() { - C.QGraphicsEllipseItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsEllipseItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -6186,7 +6186,7 @@ func miqt_exec_callback_QGraphicsPolygonItem_Extension(self *C.QGraphicsPolygonI // Delete this object from C++ memory. func (this *QGraphicsPolygonItem) Delete() { - C.QGraphicsPolygonItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsPolygonItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -7295,7 +7295,7 @@ func miqt_exec_callback_QGraphicsLineItem_ItemChange(self *C.QGraphicsLineItem, // Delete this object from C++ memory. func (this *QGraphicsLineItem) Delete() { - C.QGraphicsLineItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsLineItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -8404,7 +8404,7 @@ func miqt_exec_callback_QGraphicsPixmapItem_ItemChange(self *C.QGraphicsPixmapIt // Delete this object from C++ memory. func (this *QGraphicsPixmapItem) Delete() { - C.QGraphicsPixmapItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsPixmapItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -9565,7 +9565,7 @@ func miqt_exec_callback_QGraphicsTextItem_Event(self *C.QGraphicsTextItem, cb C. // Delete this object from C++ memory. func (this *QGraphicsTextItem) Delete() { - C.QGraphicsTextItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsTextItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -9993,7 +9993,7 @@ func miqt_exec_callback_QGraphicsSimpleTextItem_Extension(self *C.QGraphicsSimpl // Delete this object from C++ memory. func (this *QGraphicsSimpleTextItem) Delete() { - C.QGraphicsSimpleTextItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSimpleTextItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -11044,7 +11044,7 @@ func miqt_exec_callback_QGraphicsItemGroup_Extension(self *C.QGraphicsItemGroup, // Delete this object from C++ memory. func (this *QGraphicsItemGroup) Delete() { - C.QGraphicsItemGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsItemGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicsitem.h b/qt/gen_qgraphicsitem.h index 33126d92..1bdea60d 100644 --- a/qt/gen_qgraphicsitem.h +++ b/qt/gen_qgraphicsitem.h @@ -395,7 +395,7 @@ void QGraphicsItem_override_virtual_SetExtension(void* self, intptr_t slot); void QGraphicsItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsItem_Delete(QGraphicsItem* self, bool isSubclass); +void QGraphicsItem_Delete(QGraphicsItem* self); QGraphicsObject* QGraphicsObject_new(); QGraphicsObject* QGraphicsObject_new2(QGraphicsItem* parent); @@ -520,7 +520,7 @@ void QGraphicsObject_override_virtual_SetExtension(void* self, intptr_t slot); void QGraphicsObject_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsObject_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsObject_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsObject_Delete(QGraphicsObject* self, bool isSubclass); +void QGraphicsObject_Delete(QGraphicsObject* self); QAbstractGraphicsShapeItem* QAbstractGraphicsShapeItem_new(); QAbstractGraphicsShapeItem* QAbstractGraphicsShapeItem_new2(QGraphicsItem* parent); @@ -601,7 +601,7 @@ void QAbstractGraphicsShapeItem_override_virtual_SetExtension(void* self, intptr void QAbstractGraphicsShapeItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QAbstractGraphicsShapeItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QAbstractGraphicsShapeItem_virtualbase_Extension(const void* self, QVariant* variant); -void QAbstractGraphicsShapeItem_Delete(QAbstractGraphicsShapeItem* self, bool isSubclass); +void QAbstractGraphicsShapeItem_Delete(QAbstractGraphicsShapeItem* self); QGraphicsPathItem* QGraphicsPathItem_new(); QGraphicsPathItem* QGraphicsPathItem_new2(QPainterPath* path); @@ -640,7 +640,7 @@ void QGraphicsPathItem_override_virtual_SetExtension(void* self, intptr_t slot); void QGraphicsPathItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsPathItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsPathItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsPathItem_Delete(QGraphicsPathItem* self, bool isSubclass); +void QGraphicsPathItem_Delete(QGraphicsPathItem* self); QGraphicsRectItem* QGraphicsRectItem_new(); QGraphicsRectItem* QGraphicsRectItem_new2(QRectF* rect); @@ -682,7 +682,7 @@ void QGraphicsRectItem_override_virtual_SetExtension(void* self, intptr_t slot); void QGraphicsRectItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsRectItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsRectItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsRectItem_Delete(QGraphicsRectItem* self, bool isSubclass); +void QGraphicsRectItem_Delete(QGraphicsRectItem* self); QGraphicsEllipseItem* QGraphicsEllipseItem_new(); QGraphicsEllipseItem* QGraphicsEllipseItem_new2(QRectF* rect); @@ -728,7 +728,7 @@ void QGraphicsEllipseItem_override_virtual_SetExtension(void* self, intptr_t slo void QGraphicsEllipseItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsEllipseItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsEllipseItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsEllipseItem_Delete(QGraphicsEllipseItem* self, bool isSubclass); +void QGraphicsEllipseItem_Delete(QGraphicsEllipseItem* self); QGraphicsPolygonItem* QGraphicsPolygonItem_new(); QGraphicsPolygonItem* QGraphicsPolygonItem_new2(QGraphicsItem* parent); @@ -765,7 +765,7 @@ void QGraphicsPolygonItem_override_virtual_SetExtension(void* self, intptr_t slo void QGraphicsPolygonItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsPolygonItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsPolygonItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsPolygonItem_Delete(QGraphicsPolygonItem* self, bool isSubclass); +void QGraphicsPolygonItem_Delete(QGraphicsPolygonItem* self); QGraphicsLineItem* QGraphicsLineItem_new(); QGraphicsLineItem* QGraphicsLineItem_new2(QLineF* line); @@ -859,7 +859,7 @@ void QGraphicsLineItem_override_virtual_InputMethodQuery(void* self, intptr_t sl QVariant* QGraphicsLineItem_virtualbase_InputMethodQuery(const void* self, int query); void QGraphicsLineItem_override_virtual_ItemChange(void* self, intptr_t slot); QVariant* QGraphicsLineItem_virtualbase_ItemChange(void* self, int change, QVariant* value); -void QGraphicsLineItem_Delete(QGraphicsLineItem* self, bool isSubclass); +void QGraphicsLineItem_Delete(QGraphicsLineItem* self); QGraphicsPixmapItem* QGraphicsPixmapItem_new(); QGraphicsPixmapItem* QGraphicsPixmapItem_new2(QPixmap* pixmap); @@ -955,7 +955,7 @@ void QGraphicsPixmapItem_override_virtual_InputMethodQuery(void* self, intptr_t QVariant* QGraphicsPixmapItem_virtualbase_InputMethodQuery(const void* self, int query); void QGraphicsPixmapItem_override_virtual_ItemChange(void* self, intptr_t slot); QVariant* QGraphicsPixmapItem_virtualbase_ItemChange(void* self, int change, QVariant* value); -void QGraphicsPixmapItem_Delete(QGraphicsPixmapItem* self, bool isSubclass); +void QGraphicsPixmapItem_Delete(QGraphicsPixmapItem* self); QGraphicsTextItem* QGraphicsTextItem_new(); QGraphicsTextItem* QGraphicsTextItem_new2(struct miqt_string text); @@ -1084,7 +1084,7 @@ void QGraphicsTextItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsTextItem_virtualbase_Extension(const void* self, QVariant* variant); void QGraphicsTextItem_override_virtual_Event(void* self, intptr_t slot); bool QGraphicsTextItem_virtualbase_Event(void* self, QEvent* ev); -void QGraphicsTextItem_Delete(QGraphicsTextItem* self, bool isSubclass); +void QGraphicsTextItem_Delete(QGraphicsTextItem* self); QGraphicsSimpleTextItem* QGraphicsSimpleTextItem_new(); QGraphicsSimpleTextItem* QGraphicsSimpleTextItem_new2(struct miqt_string text); @@ -1125,7 +1125,7 @@ void QGraphicsSimpleTextItem_override_virtual_SetExtension(void* self, intptr_t void QGraphicsSimpleTextItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsSimpleTextItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsSimpleTextItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsSimpleTextItem_Delete(QGraphicsSimpleTextItem* self, bool isSubclass); +void QGraphicsSimpleTextItem_Delete(QGraphicsSimpleTextItem* self); QGraphicsItemGroup* QGraphicsItemGroup_new(); QGraphicsItemGroup* QGraphicsItemGroup_new2(QGraphicsItem* parent); @@ -1207,7 +1207,7 @@ void QGraphicsItemGroup_override_virtual_SetExtension(void* self, intptr_t slot) void QGraphicsItemGroup_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsItemGroup_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsItemGroup_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsItemGroup_Delete(QGraphicsItemGroup* self, bool isSubclass); +void QGraphicsItemGroup_Delete(QGraphicsItemGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicsitemanimation.cpp b/qt/gen_qgraphicsitemanimation.cpp index d7ac0eba..718b2bcb 100644 --- a/qt/gen_qgraphicsitemanimation.cpp +++ b/qt/gen_qgraphicsitemanimation.cpp @@ -35,13 +35,13 @@ void miqt_exec_callback_QGraphicsItemAnimation_DisconnectNotify(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQGraphicsItemAnimation : public virtual QGraphicsItemAnimation { +class MiqtVirtualQGraphicsItemAnimation final : public QGraphicsItemAnimation { public: MiqtVirtualQGraphicsItemAnimation(): QGraphicsItemAnimation() {}; MiqtVirtualQGraphicsItemAnimation(QObject* parent): QGraphicsItemAnimation(parent) {}; - virtual ~MiqtVirtualQGraphicsItemAnimation() = default; + virtual ~MiqtVirtualQGraphicsItemAnimation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BeforeAnimationStep = 0; @@ -634,11 +634,7 @@ void QGraphicsItemAnimation_virtualbase_DisconnectNotify(void* self, QMetaMethod ( (MiqtVirtualQGraphicsItemAnimation*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGraphicsItemAnimation_Delete(QGraphicsItemAnimation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsItemAnimation_Delete(QGraphicsItemAnimation* self) { + delete self; } diff --git a/qt/gen_qgraphicsitemanimation.go b/qt/gen_qgraphicsitemanimation.go index 0d7120e4..b28b0a2f 100644 --- a/qt/gen_qgraphicsitemanimation.go +++ b/qt/gen_qgraphicsitemanimation.go @@ -613,7 +613,7 @@ func miqt_exec_callback_QGraphicsItemAnimation_DisconnectNotify(self *C.QGraphic // Delete this object from C++ memory. func (this *QGraphicsItemAnimation) Delete() { - C.QGraphicsItemAnimation_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsItemAnimation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicsitemanimation.h b/qt/gen_qgraphicsitemanimation.h index 9dc98af7..fd478477 100644 --- a/qt/gen_qgraphicsitemanimation.h +++ b/qt/gen_qgraphicsitemanimation.h @@ -100,7 +100,7 @@ void QGraphicsItemAnimation_override_virtual_ConnectNotify(void* self, intptr_t void QGraphicsItemAnimation_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGraphicsItemAnimation_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGraphicsItemAnimation_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGraphicsItemAnimation_Delete(QGraphicsItemAnimation* self, bool isSubclass); +void QGraphicsItemAnimation_Delete(QGraphicsItemAnimation* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicslayout.cpp b/qt/gen_qgraphicslayout.cpp index 1a20cbea..994dc0ea 100644 --- a/qt/gen_qgraphicslayout.cpp +++ b/qt/gen_qgraphicslayout.cpp @@ -23,13 +23,13 @@ QSizeF* miqt_exec_callback_QGraphicsLayout_SizeHint(void*, intptr_t, int, QSizeF } /* extern C */ #endif -class MiqtVirtualQGraphicsLayout : public virtual QGraphicsLayout { +class MiqtVirtualQGraphicsLayout final : public QGraphicsLayout { public: MiqtVirtualQGraphicsLayout(): QGraphicsLayout() {}; MiqtVirtualQGraphicsLayout(QGraphicsLayoutItem* parent): QGraphicsLayout(parent) {}; - virtual ~MiqtVirtualQGraphicsLayout() = default; + virtual ~MiqtVirtualQGraphicsLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__GetContentsMargins = 0; @@ -343,11 +343,7 @@ void QGraphicsLayout_override_virtual_SizeHint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLayout*)(self) )->handle__SizeHint = slot; } -void QGraphicsLayout_Delete(QGraphicsLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsLayout_Delete(QGraphicsLayout* self) { + delete self; } diff --git a/qt/gen_qgraphicslayout.go b/qt/gen_qgraphicslayout.go index b23ec123..3ff7aaae 100644 --- a/qt/gen_qgraphicslayout.go +++ b/qt/gen_qgraphicslayout.go @@ -332,7 +332,7 @@ func miqt_exec_callback_QGraphicsLayout_SizeHint(self *C.QGraphicsLayout, cb C.i // Delete this object from C++ memory. func (this *QGraphicsLayout) Delete() { - C.QGraphicsLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicslayout.h b/qt/gen_qgraphicslayout.h index 23d7681a..bc578c6f 100644 --- a/qt/gen_qgraphicslayout.h +++ b/qt/gen_qgraphicslayout.h @@ -61,7 +61,7 @@ void QGraphicsLayout_override_virtual_SetGeometry(void* self, intptr_t slot); void QGraphicsLayout_virtualbase_SetGeometry(void* self, QRectF* rect); void QGraphicsLayout_override_virtual_SizeHint(void* self, intptr_t slot); QSizeF* QGraphicsLayout_virtualbase_SizeHint(const void* self, int which, QSizeF* constraint); -void QGraphicsLayout_Delete(QGraphicsLayout* self, bool isSubclass); +void QGraphicsLayout_Delete(QGraphicsLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicslayoutitem.cpp b/qt/gen_qgraphicslayoutitem.cpp index febf4fe9..5d5be88b 100644 --- a/qt/gen_qgraphicslayoutitem.cpp +++ b/qt/gen_qgraphicslayoutitem.cpp @@ -18,14 +18,14 @@ QSizeF* miqt_exec_callback_QGraphicsLayoutItem_SizeHint(void*, intptr_t, int, QS } /* extern C */ #endif -class MiqtVirtualQGraphicsLayoutItem : public virtual QGraphicsLayoutItem { +class MiqtVirtualQGraphicsLayoutItem final : public QGraphicsLayoutItem { public: MiqtVirtualQGraphicsLayoutItem(): QGraphicsLayoutItem() {}; MiqtVirtualQGraphicsLayoutItem(QGraphicsLayoutItem* parent): QGraphicsLayoutItem(parent) {}; MiqtVirtualQGraphicsLayoutItem(QGraphicsLayoutItem* parent, bool isLayout): QGraphicsLayoutItem(parent, isLayout) {}; - virtual ~MiqtVirtualQGraphicsLayoutItem() = default; + virtual ~MiqtVirtualQGraphicsLayoutItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetGeometry = 0; @@ -323,11 +323,7 @@ void QGraphicsLayoutItem_override_virtual_SizeHint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLayoutItem*)(self) )->handle__SizeHint = slot; } -void QGraphicsLayoutItem_Delete(QGraphicsLayoutItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsLayoutItem_Delete(QGraphicsLayoutItem* self) { + delete self; } diff --git a/qt/gen_qgraphicslayoutitem.go b/qt/gen_qgraphicslayoutitem.go index 0b264ecc..3f6c3152 100644 --- a/qt/gen_qgraphicslayoutitem.go +++ b/qt/gen_qgraphicslayoutitem.go @@ -342,7 +342,7 @@ func miqt_exec_callback_QGraphicsLayoutItem_SizeHint(self *C.QGraphicsLayoutItem // Delete this object from C++ memory. func (this *QGraphicsLayoutItem) Delete() { - C.QGraphicsLayoutItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsLayoutItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicslayoutitem.h b/qt/gen_qgraphicslayoutitem.h index fac611fe..16914703 100644 --- a/qt/gen_qgraphicslayoutitem.h +++ b/qt/gen_qgraphicslayoutitem.h @@ -77,7 +77,7 @@ void QGraphicsLayoutItem_override_virtual_UpdateGeometry(void* self, intptr_t sl void QGraphicsLayoutItem_virtualbase_UpdateGeometry(void* self); void QGraphicsLayoutItem_override_virtual_SizeHint(void* self, intptr_t slot); QSizeF* QGraphicsLayoutItem_virtualbase_SizeHint(const void* self, int which, QSizeF* constraint); -void QGraphicsLayoutItem_Delete(QGraphicsLayoutItem* self, bool isSubclass); +void QGraphicsLayoutItem_Delete(QGraphicsLayoutItem* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicslinearlayout.cpp b/qt/gen_qgraphicslinearlayout.cpp index db2aab10..06ccb00a 100644 --- a/qt/gen_qgraphicslinearlayout.cpp +++ b/qt/gen_qgraphicslinearlayout.cpp @@ -24,7 +24,7 @@ void miqt_exec_callback_QGraphicsLinearLayout_WidgetEvent(void*, intptr_t, QEven } /* extern C */ #endif -class MiqtVirtualQGraphicsLinearLayout : public virtual QGraphicsLinearLayout { +class MiqtVirtualQGraphicsLinearLayout final : public QGraphicsLinearLayout { public: MiqtVirtualQGraphicsLinearLayout(): QGraphicsLinearLayout() {}; @@ -32,7 +32,7 @@ public: MiqtVirtualQGraphicsLinearLayout(QGraphicsLayoutItem* parent): QGraphicsLinearLayout(parent) {}; MiqtVirtualQGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem* parent): QGraphicsLinearLayout(orientation, parent) {}; - virtual ~MiqtVirtualQGraphicsLinearLayout() = default; + virtual ~MiqtVirtualQGraphicsLinearLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__RemoveAt = 0; @@ -455,11 +455,7 @@ void QGraphicsLinearLayout_virtualbase_WidgetEvent(void* self, QEvent* e) { ( (MiqtVirtualQGraphicsLinearLayout*)(self) )->virtualbase_WidgetEvent(e); } -void QGraphicsLinearLayout_Delete(QGraphicsLinearLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsLinearLayout_Delete(QGraphicsLinearLayout* self) { + delete self; } diff --git a/qt/gen_qgraphicslinearlayout.go b/qt/gen_qgraphicslinearlayout.go index dc1bdaf3..4c3d1f45 100644 --- a/qt/gen_qgraphicslinearlayout.go +++ b/qt/gen_qgraphicslinearlayout.go @@ -428,7 +428,7 @@ func miqt_exec_callback_QGraphicsLinearLayout_WidgetEvent(self *C.QGraphicsLinea // Delete this object from C++ memory. func (this *QGraphicsLinearLayout) Delete() { - C.QGraphicsLinearLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsLinearLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicslinearlayout.h b/qt/gen_qgraphicslinearlayout.h index 65e9f3bb..4d4939f9 100644 --- a/qt/gen_qgraphicslinearlayout.h +++ b/qt/gen_qgraphicslinearlayout.h @@ -78,7 +78,7 @@ void QGraphicsLinearLayout_override_virtual_UpdateGeometry(void* self, intptr_t void QGraphicsLinearLayout_virtualbase_UpdateGeometry(void* self); void QGraphicsLinearLayout_override_virtual_WidgetEvent(void* self, intptr_t slot); void QGraphicsLinearLayout_virtualbase_WidgetEvent(void* self, QEvent* e); -void QGraphicsLinearLayout_Delete(QGraphicsLinearLayout* self, bool isSubclass); +void QGraphicsLinearLayout_Delete(QGraphicsLinearLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicsproxywidget.cpp b/qt/gen_qgraphicsproxywidget.cpp index 0a8e8fe0..c69b3ebd 100644 --- a/qt/gen_qgraphicsproxywidget.cpp +++ b/qt/gen_qgraphicsproxywidget.cpp @@ -90,14 +90,14 @@ void miqt_exec_callback_QGraphicsProxyWidget_UngrabKeyboardEvent(void*, intptr_t } /* extern C */ #endif -class MiqtVirtualQGraphicsProxyWidget : public virtual QGraphicsProxyWidget { +class MiqtVirtualQGraphicsProxyWidget final : public QGraphicsProxyWidget { public: MiqtVirtualQGraphicsProxyWidget(): QGraphicsProxyWidget() {}; MiqtVirtualQGraphicsProxyWidget(QGraphicsItem* parent): QGraphicsProxyWidget(parent) {}; MiqtVirtualQGraphicsProxyWidget(QGraphicsItem* parent, Qt::WindowFlags wFlags): QGraphicsProxyWidget(parent, wFlags) {}; - virtual ~MiqtVirtualQGraphicsProxyWidget() = default; + virtual ~MiqtVirtualQGraphicsProxyWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetGeometry = 0; @@ -1774,11 +1774,7 @@ void QGraphicsProxyWidget_virtualbase_UngrabKeyboardEvent(void* self, QEvent* ev ( (MiqtVirtualQGraphicsProxyWidget*)(self) )->virtualbase_UngrabKeyboardEvent(event); } -void QGraphicsProxyWidget_Delete(QGraphicsProxyWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsProxyWidget_Delete(QGraphicsProxyWidget* self) { + delete self; } diff --git a/qt/gen_qgraphicsproxywidget.go b/qt/gen_qgraphicsproxywidget.go index db204121..3362eae3 100644 --- a/qt/gen_qgraphicsproxywidget.go +++ b/qt/gen_qgraphicsproxywidget.go @@ -1484,7 +1484,7 @@ func miqt_exec_callback_QGraphicsProxyWidget_UngrabKeyboardEvent(self *C.QGraphi // Delete this object from C++ memory. func (this *QGraphicsProxyWidget) Delete() { - C.QGraphicsProxyWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsProxyWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicsproxywidget.h b/qt/gen_qgraphicsproxywidget.h index 00725dcd..32b1bcdd 100644 --- a/qt/gen_qgraphicsproxywidget.h +++ b/qt/gen_qgraphicsproxywidget.h @@ -222,7 +222,7 @@ void QGraphicsProxyWidget_override_virtual_GrabKeyboardEvent(void* self, intptr_ void QGraphicsProxyWidget_virtualbase_GrabKeyboardEvent(void* self, QEvent* event); void QGraphicsProxyWidget_override_virtual_UngrabKeyboardEvent(void* self, intptr_t slot); void QGraphicsProxyWidget_virtualbase_UngrabKeyboardEvent(void* self, QEvent* event); -void QGraphicsProxyWidget_Delete(QGraphicsProxyWidget* self, bool isSubclass); +void QGraphicsProxyWidget_Delete(QGraphicsProxyWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicsscene.cpp b/qt/gen_qgraphicsscene.cpp index dda7bf38..3463e23b 100644 --- a/qt/gen_qgraphicsscene.cpp +++ b/qt/gen_qgraphicsscene.cpp @@ -84,7 +84,7 @@ void miqt_exec_callback_QGraphicsScene_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQGraphicsScene : public virtual QGraphicsScene { +class MiqtVirtualQGraphicsScene final : public QGraphicsScene { public: MiqtVirtualQGraphicsScene(): QGraphicsScene() {}; @@ -94,7 +94,7 @@ public: MiqtVirtualQGraphicsScene(const QRectF& sceneRect, QObject* parent): QGraphicsScene(sceneRect, parent) {}; MiqtVirtualQGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject* parent): QGraphicsScene(x, y, width, height, parent) {}; - virtual ~MiqtVirtualQGraphicsScene() = default; + virtual ~MiqtVirtualQGraphicsScene() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodQuery = 0; @@ -1770,11 +1770,7 @@ void QGraphicsScene_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQGraphicsScene*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGraphicsScene_Delete(QGraphicsScene* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsScene_Delete(QGraphicsScene* self) { + delete self; } diff --git a/qt/gen_qgraphicsscene.go b/qt/gen_qgraphicsscene.go index 81d15939..bdb49ad4 100644 --- a/qt/gen_qgraphicsscene.go +++ b/qt/gen_qgraphicsscene.go @@ -1604,7 +1604,7 @@ func miqt_exec_callback_QGraphicsScene_DisconnectNotify(self *C.QGraphicsScene, // Delete this object from C++ memory. func (this *QGraphicsScene) Delete() { - C.QGraphicsScene_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsScene_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicsscene.h b/qt/gen_qgraphicsscene.h index 8c996f54..de0179d1 100644 --- a/qt/gen_qgraphicsscene.h +++ b/qt/gen_qgraphicsscene.h @@ -313,7 +313,7 @@ void QGraphicsScene_override_virtual_ConnectNotify(void* self, intptr_t slot); void QGraphicsScene_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGraphicsScene_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGraphicsScene_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGraphicsScene_Delete(QGraphicsScene* self, bool isSubclass); +void QGraphicsScene_Delete(QGraphicsScene* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicssceneevent.cpp b/qt/gen_qgraphicssceneevent.cpp index c87783fb..d95d6cf9 100644 --- a/qt/gen_qgraphicssceneevent.cpp +++ b/qt/gen_qgraphicssceneevent.cpp @@ -40,12 +40,8 @@ void QGraphicsSceneEvent_SetWidget(QGraphicsSceneEvent* self, QWidget* widget) { self->setWidget(widget); } -void QGraphicsSceneEvent_Delete(QGraphicsSceneEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneEvent_Delete(QGraphicsSceneEvent* self) { + delete self; } QGraphicsSceneMouseEvent* QGraphicsSceneMouseEvent_new() { @@ -177,12 +173,8 @@ void QGraphicsSceneMouseEvent_SetFlags(QGraphicsSceneMouseEvent* self, int flags self->setFlags(static_cast(flags)); } -void QGraphicsSceneMouseEvent_Delete(QGraphicsSceneMouseEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneMouseEvent_Delete(QGraphicsSceneMouseEvent* self) { + delete self; } QGraphicsSceneWheelEvent* QGraphicsSceneWheelEvent_new() { @@ -256,12 +248,8 @@ void QGraphicsSceneWheelEvent_SetOrientation(QGraphicsSceneWheelEvent* self, int self->setOrientation(static_cast(orientation)); } -void QGraphicsSceneWheelEvent_Delete(QGraphicsSceneWheelEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneWheelEvent_Delete(QGraphicsSceneWheelEvent* self) { + delete self; } QGraphicsSceneContextMenuEvent* QGraphicsSceneContextMenuEvent_new() { @@ -318,12 +306,8 @@ void QGraphicsSceneContextMenuEvent_SetReason(QGraphicsSceneContextMenuEvent* se self->setReason(static_cast(reason)); } -void QGraphicsSceneContextMenuEvent_Delete(QGraphicsSceneContextMenuEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneContextMenuEvent_Delete(QGraphicsSceneContextMenuEvent* self) { + delete self; } QGraphicsSceneHoverEvent* QGraphicsSceneHoverEvent_new() { @@ -395,12 +379,8 @@ void QGraphicsSceneHoverEvent_SetModifiers(QGraphicsSceneHoverEvent* self, int m self->setModifiers(static_cast(modifiers)); } -void QGraphicsSceneHoverEvent_Delete(QGraphicsSceneHoverEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneHoverEvent_Delete(QGraphicsSceneHoverEvent* self) { + delete self; } QGraphicsSceneHelpEvent* QGraphicsSceneHelpEvent_new() { @@ -431,12 +411,8 @@ void QGraphicsSceneHelpEvent_SetScreenPos(QGraphicsSceneHelpEvent* self, QPoint* self->setScreenPos(*pos); } -void QGraphicsSceneHelpEvent_Delete(QGraphicsSceneHelpEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneHelpEvent_Delete(QGraphicsSceneHelpEvent* self) { + delete self; } QGraphicsSceneDragDropEvent* QGraphicsSceneDragDropEvent_new() { @@ -540,12 +516,8 @@ void QGraphicsSceneDragDropEvent_SetMimeData(QGraphicsSceneDragDropEvent* self, self->setMimeData(data); } -void QGraphicsSceneDragDropEvent_Delete(QGraphicsSceneDragDropEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneDragDropEvent_Delete(QGraphicsSceneDragDropEvent* self) { + delete self; } QGraphicsSceneResizeEvent* QGraphicsSceneResizeEvent_new() { @@ -572,12 +544,8 @@ void QGraphicsSceneResizeEvent_SetNewSize(QGraphicsSceneResizeEvent* self, QSize self->setNewSize(*size); } -void QGraphicsSceneResizeEvent_Delete(QGraphicsSceneResizeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneResizeEvent_Delete(QGraphicsSceneResizeEvent* self) { + delete self; } QGraphicsSceneMoveEvent* QGraphicsSceneMoveEvent_new() { @@ -604,11 +572,7 @@ void QGraphicsSceneMoveEvent_SetNewPos(QGraphicsSceneMoveEvent* self, QPointF* p self->setNewPos(*pos); } -void QGraphicsSceneMoveEvent_Delete(QGraphicsSceneMoveEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneMoveEvent_Delete(QGraphicsSceneMoveEvent* self) { + delete self; } diff --git a/qt/gen_qgraphicssceneevent.go b/qt/gen_qgraphicssceneevent.go index 071b0da0..3fe57b6c 100644 --- a/qt/gen_qgraphicssceneevent.go +++ b/qt/gen_qgraphicssceneevent.go @@ -76,7 +76,7 @@ func (this *QGraphicsSceneEvent) SetWidget(widget *QWidget) { // Delete this object from C++ memory. func (this *QGraphicsSceneEvent) Delete() { - C.QGraphicsSceneEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -273,7 +273,7 @@ func (this *QGraphicsSceneMouseEvent) SetFlags(flags MouseEventFlag) { // Delete this object from C++ memory. func (this *QGraphicsSceneMouseEvent) Delete() { - C.QGraphicsSceneMouseEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneMouseEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -402,7 +402,7 @@ func (this *QGraphicsSceneWheelEvent) SetOrientation(orientation Orientation) { // Delete this object from C++ memory. func (this *QGraphicsSceneWheelEvent) Delete() { - C.QGraphicsSceneWheelEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneWheelEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -515,7 +515,7 @@ func (this *QGraphicsSceneContextMenuEvent) SetReason(reason QGraphicsSceneConte // Delete this object from C++ memory. func (this *QGraphicsSceneContextMenuEvent) Delete() { - C.QGraphicsSceneContextMenuEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneContextMenuEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -650,7 +650,7 @@ func (this *QGraphicsSceneHoverEvent) SetModifiers(modifiers KeyboardModifier) { // Delete this object from C++ memory. func (this *QGraphicsSceneHoverEvent) Delete() { - C.QGraphicsSceneHoverEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneHoverEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -737,7 +737,7 @@ func (this *QGraphicsSceneHelpEvent) SetScreenPos(pos *QPoint) { // Delete this object from C++ memory. func (this *QGraphicsSceneHelpEvent) Delete() { - C.QGraphicsSceneHelpEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneHelpEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -894,7 +894,7 @@ func (this *QGraphicsSceneDragDropEvent) SetMimeData(data *QMimeData) { // Delete this object from C++ memory. func (this *QGraphicsSceneDragDropEvent) Delete() { - C.QGraphicsSceneDragDropEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneDragDropEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -973,7 +973,7 @@ func (this *QGraphicsSceneResizeEvent) SetNewSize(size *QSizeF) { // Delete this object from C++ memory. func (this *QGraphicsSceneResizeEvent) Delete() { - C.QGraphicsSceneResizeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneResizeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1052,7 +1052,7 @@ func (this *QGraphicsSceneMoveEvent) SetNewPos(pos *QPointF) { // Delete this object from C++ memory. func (this *QGraphicsSceneMoveEvent) Delete() { - C.QGraphicsSceneMoveEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneMoveEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicssceneevent.h b/qt/gen_qgraphicssceneevent.h index 13808443..edd24e0c 100644 --- a/qt/gen_qgraphicssceneevent.h +++ b/qt/gen_qgraphicssceneevent.h @@ -52,7 +52,7 @@ QGraphicsSceneEvent* QGraphicsSceneEvent_new(int typeVal); void QGraphicsSceneEvent_virtbase(QGraphicsSceneEvent* src, QEvent** outptr_QEvent); QWidget* QGraphicsSceneEvent_Widget(const QGraphicsSceneEvent* self); void QGraphicsSceneEvent_SetWidget(QGraphicsSceneEvent* self, QWidget* widget); -void QGraphicsSceneEvent_Delete(QGraphicsSceneEvent* self, bool isSubclass); +void QGraphicsSceneEvent_Delete(QGraphicsSceneEvent* self); QGraphicsSceneMouseEvent* QGraphicsSceneMouseEvent_new(); QGraphicsSceneMouseEvent* QGraphicsSceneMouseEvent_new2(int typeVal); @@ -85,7 +85,7 @@ int QGraphicsSceneMouseEvent_Source(const QGraphicsSceneMouseEvent* self); void QGraphicsSceneMouseEvent_SetSource(QGraphicsSceneMouseEvent* self, int source); int QGraphicsSceneMouseEvent_Flags(const QGraphicsSceneMouseEvent* self); void QGraphicsSceneMouseEvent_SetFlags(QGraphicsSceneMouseEvent* self, int flags); -void QGraphicsSceneMouseEvent_Delete(QGraphicsSceneMouseEvent* self, bool isSubclass); +void QGraphicsSceneMouseEvent_Delete(QGraphicsSceneMouseEvent* self); QGraphicsSceneWheelEvent* QGraphicsSceneWheelEvent_new(); QGraphicsSceneWheelEvent* QGraphicsSceneWheelEvent_new2(int typeVal); @@ -104,7 +104,7 @@ int QGraphicsSceneWheelEvent_Delta(const QGraphicsSceneWheelEvent* self); void QGraphicsSceneWheelEvent_SetDelta(QGraphicsSceneWheelEvent* self, int delta); int QGraphicsSceneWheelEvent_Orientation(const QGraphicsSceneWheelEvent* self); void QGraphicsSceneWheelEvent_SetOrientation(QGraphicsSceneWheelEvent* self, int orientation); -void QGraphicsSceneWheelEvent_Delete(QGraphicsSceneWheelEvent* self, bool isSubclass); +void QGraphicsSceneWheelEvent_Delete(QGraphicsSceneWheelEvent* self); QGraphicsSceneContextMenuEvent* QGraphicsSceneContextMenuEvent_new(); QGraphicsSceneContextMenuEvent* QGraphicsSceneContextMenuEvent_new2(int typeVal); @@ -119,7 +119,7 @@ int QGraphicsSceneContextMenuEvent_Modifiers(const QGraphicsSceneContextMenuEven void QGraphicsSceneContextMenuEvent_SetModifiers(QGraphicsSceneContextMenuEvent* self, int modifiers); int QGraphicsSceneContextMenuEvent_Reason(const QGraphicsSceneContextMenuEvent* self); void QGraphicsSceneContextMenuEvent_SetReason(QGraphicsSceneContextMenuEvent* self, int reason); -void QGraphicsSceneContextMenuEvent_Delete(QGraphicsSceneContextMenuEvent* self, bool isSubclass); +void QGraphicsSceneContextMenuEvent_Delete(QGraphicsSceneContextMenuEvent* self); QGraphicsSceneHoverEvent* QGraphicsSceneHoverEvent_new(); QGraphicsSceneHoverEvent* QGraphicsSceneHoverEvent_new2(int typeVal); @@ -138,7 +138,7 @@ QPoint* QGraphicsSceneHoverEvent_LastScreenPos(const QGraphicsSceneHoverEvent* s void QGraphicsSceneHoverEvent_SetLastScreenPos(QGraphicsSceneHoverEvent* self, QPoint* pos); int QGraphicsSceneHoverEvent_Modifiers(const QGraphicsSceneHoverEvent* self); void QGraphicsSceneHoverEvent_SetModifiers(QGraphicsSceneHoverEvent* self, int modifiers); -void QGraphicsSceneHoverEvent_Delete(QGraphicsSceneHoverEvent* self, bool isSubclass); +void QGraphicsSceneHoverEvent_Delete(QGraphicsSceneHoverEvent* self); QGraphicsSceneHelpEvent* QGraphicsSceneHelpEvent_new(); QGraphicsSceneHelpEvent* QGraphicsSceneHelpEvent_new2(int typeVal); @@ -147,7 +147,7 @@ QPointF* QGraphicsSceneHelpEvent_ScenePos(const QGraphicsSceneHelpEvent* self); void QGraphicsSceneHelpEvent_SetScenePos(QGraphicsSceneHelpEvent* self, QPointF* pos); QPoint* QGraphicsSceneHelpEvent_ScreenPos(const QGraphicsSceneHelpEvent* self); void QGraphicsSceneHelpEvent_SetScreenPos(QGraphicsSceneHelpEvent* self, QPoint* pos); -void QGraphicsSceneHelpEvent_Delete(QGraphicsSceneHelpEvent* self, bool isSubclass); +void QGraphicsSceneHelpEvent_Delete(QGraphicsSceneHelpEvent* self); QGraphicsSceneDragDropEvent* QGraphicsSceneDragDropEvent_new(); QGraphicsSceneDragDropEvent* QGraphicsSceneDragDropEvent_new2(int typeVal); @@ -173,7 +173,7 @@ QWidget* QGraphicsSceneDragDropEvent_Source(const QGraphicsSceneDragDropEvent* s void QGraphicsSceneDragDropEvent_SetSource(QGraphicsSceneDragDropEvent* self, QWidget* source); QMimeData* QGraphicsSceneDragDropEvent_MimeData(const QGraphicsSceneDragDropEvent* self); void QGraphicsSceneDragDropEvent_SetMimeData(QGraphicsSceneDragDropEvent* self, QMimeData* data); -void QGraphicsSceneDragDropEvent_Delete(QGraphicsSceneDragDropEvent* self, bool isSubclass); +void QGraphicsSceneDragDropEvent_Delete(QGraphicsSceneDragDropEvent* self); QGraphicsSceneResizeEvent* QGraphicsSceneResizeEvent_new(); void QGraphicsSceneResizeEvent_virtbase(QGraphicsSceneResizeEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent); @@ -181,7 +181,7 @@ QSizeF* QGraphicsSceneResizeEvent_OldSize(const QGraphicsSceneResizeEvent* self) void QGraphicsSceneResizeEvent_SetOldSize(QGraphicsSceneResizeEvent* self, QSizeF* size); QSizeF* QGraphicsSceneResizeEvent_NewSize(const QGraphicsSceneResizeEvent* self); void QGraphicsSceneResizeEvent_SetNewSize(QGraphicsSceneResizeEvent* self, QSizeF* size); -void QGraphicsSceneResizeEvent_Delete(QGraphicsSceneResizeEvent* self, bool isSubclass); +void QGraphicsSceneResizeEvent_Delete(QGraphicsSceneResizeEvent* self); QGraphicsSceneMoveEvent* QGraphicsSceneMoveEvent_new(); void QGraphicsSceneMoveEvent_virtbase(QGraphicsSceneMoveEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent); @@ -189,7 +189,7 @@ QPointF* QGraphicsSceneMoveEvent_OldPos(const QGraphicsSceneMoveEvent* self); void QGraphicsSceneMoveEvent_SetOldPos(QGraphicsSceneMoveEvent* self, QPointF* pos); QPointF* QGraphicsSceneMoveEvent_NewPos(const QGraphicsSceneMoveEvent* self); void QGraphicsSceneMoveEvent_SetNewPos(QGraphicsSceneMoveEvent* self, QPointF* pos); -void QGraphicsSceneMoveEvent_Delete(QGraphicsSceneMoveEvent* self, bool isSubclass); +void QGraphicsSceneMoveEvent_Delete(QGraphicsSceneMoveEvent* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicstransform.cpp b/qt/gen_qgraphicstransform.cpp index dcd2f2a4..60ffef23 100644 --- a/qt/gen_qgraphicstransform.cpp +++ b/qt/gen_qgraphicstransform.cpp @@ -41,13 +41,13 @@ void miqt_exec_callback_QGraphicsRotation_ApplyTo(void*, intptr_t, QMatrix4x4*); } /* extern C */ #endif -class MiqtVirtualQGraphicsTransform : public virtual QGraphicsTransform { +class MiqtVirtualQGraphicsTransform final : public QGraphicsTransform { public: MiqtVirtualQGraphicsTransform(): QGraphicsTransform() {}; MiqtVirtualQGraphicsTransform(QObject* parent): QGraphicsTransform(parent) {}; - virtual ~MiqtVirtualQGraphicsTransform() = default; + virtual ~MiqtVirtualQGraphicsTransform() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ApplyTo = 0; @@ -388,21 +388,17 @@ void QGraphicsTransform_virtualbase_DisconnectNotify(void* self, QMetaMethod* si ( (MiqtVirtualQGraphicsTransform*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGraphicsTransform_Delete(QGraphicsTransform* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsTransform_Delete(QGraphicsTransform* self) { + delete self; } -class MiqtVirtualQGraphicsScale : public virtual QGraphicsScale { +class MiqtVirtualQGraphicsScale final : public QGraphicsScale { public: MiqtVirtualQGraphicsScale(): QGraphicsScale() {}; MiqtVirtualQGraphicsScale(QObject* parent): QGraphicsScale(parent) {}; - virtual ~MiqtVirtualQGraphicsScale() = default; + virtual ~MiqtVirtualQGraphicsScale() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ApplyTo = 0; @@ -613,21 +609,17 @@ void QGraphicsScale_virtualbase_ApplyTo(const void* self, QMatrix4x4* matrix) { ( (const MiqtVirtualQGraphicsScale*)(self) )->virtualbase_ApplyTo(matrix); } -void QGraphicsScale_Delete(QGraphicsScale* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsScale_Delete(QGraphicsScale* self) { + delete self; } -class MiqtVirtualQGraphicsRotation : public virtual QGraphicsRotation { +class MiqtVirtualQGraphicsRotation final : public QGraphicsRotation { public: MiqtVirtualQGraphicsRotation(): QGraphicsRotation() {}; MiqtVirtualQGraphicsRotation(QObject* parent): QGraphicsRotation(parent) {}; - virtual ~MiqtVirtualQGraphicsRotation() = default; + virtual ~MiqtVirtualQGraphicsRotation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ApplyTo = 0; @@ -812,11 +804,7 @@ void QGraphicsRotation_virtualbase_ApplyTo(const void* self, QMatrix4x4* matrix) ( (const MiqtVirtualQGraphicsRotation*)(self) )->virtualbase_ApplyTo(matrix); } -void QGraphicsRotation_Delete(QGraphicsRotation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsRotation_Delete(QGraphicsRotation* self) { + delete self; } diff --git a/qt/gen_qgraphicstransform.go b/qt/gen_qgraphicstransform.go index 2a1c9b5b..312a252c 100644 --- a/qt/gen_qgraphicstransform.go +++ b/qt/gen_qgraphicstransform.go @@ -353,7 +353,7 @@ func miqt_exec_callback_QGraphicsTransform_DisconnectNotify(self *C.QGraphicsTra // Delete this object from C++ memory. func (this *QGraphicsTransform) Delete() { - C.QGraphicsTransform_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsTransform_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -641,7 +641,7 @@ func miqt_exec_callback_QGraphicsScale_ApplyTo(self *C.QGraphicsScale, cb C.intp // Delete this object from C++ memory. func (this *QGraphicsScale) Delete() { - C.QGraphicsScale_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsScale_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -893,7 +893,7 @@ func miqt_exec_callback_QGraphicsRotation_ApplyTo(self *C.QGraphicsRotation, cb // Delete this object from C++ memory. func (this *QGraphicsRotation) Delete() { - C.QGraphicsRotation_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsRotation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicstransform.h b/qt/gen_qgraphicstransform.h index 2fb6fa58..74ecb0fe 100644 --- a/qt/gen_qgraphicstransform.h +++ b/qt/gen_qgraphicstransform.h @@ -68,7 +68,7 @@ void QGraphicsTransform_override_virtual_ConnectNotify(void* self, intptr_t slot void QGraphicsTransform_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGraphicsTransform_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGraphicsTransform_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGraphicsTransform_Delete(QGraphicsTransform* self, bool isSubclass); +void QGraphicsTransform_Delete(QGraphicsTransform* self); QGraphicsScale* QGraphicsScale_new(); QGraphicsScale* QGraphicsScale_new2(QObject* parent); @@ -102,7 +102,7 @@ struct miqt_string QGraphicsScale_TrUtf82(const char* s, const char* c); struct miqt_string QGraphicsScale_TrUtf83(const char* s, const char* c, int n); void QGraphicsScale_override_virtual_ApplyTo(void* self, intptr_t slot); void QGraphicsScale_virtualbase_ApplyTo(const void* self, QMatrix4x4* matrix); -void QGraphicsScale_Delete(QGraphicsScale* self, bool isSubclass); +void QGraphicsScale_Delete(QGraphicsScale* self); QGraphicsRotation* QGraphicsRotation_new(); QGraphicsRotation* QGraphicsRotation_new2(QObject* parent); @@ -131,7 +131,7 @@ struct miqt_string QGraphicsRotation_TrUtf82(const char* s, const char* c); struct miqt_string QGraphicsRotation_TrUtf83(const char* s, const char* c, int n); void QGraphicsRotation_override_virtual_ApplyTo(void* self, intptr_t slot); void QGraphicsRotation_virtualbase_ApplyTo(const void* self, QMatrix4x4* matrix); -void QGraphicsRotation_Delete(QGraphicsRotation* self, bool isSubclass); +void QGraphicsRotation_Delete(QGraphicsRotation* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicsview.cpp b/qt/gen_qgraphicsview.cpp index f66736fb..7fbac36a 100644 --- a/qt/gen_qgraphicsview.cpp +++ b/qt/gen_qgraphicsview.cpp @@ -78,7 +78,7 @@ QSize* miqt_exec_callback_QGraphicsView_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQGraphicsView : public virtual QGraphicsView { +class MiqtVirtualQGraphicsView final : public QGraphicsView { public: MiqtVirtualQGraphicsView(QWidget* parent): QGraphicsView(parent) {}; @@ -86,7 +86,7 @@ public: MiqtVirtualQGraphicsView(QGraphicsScene* scene): QGraphicsView(scene) {}; MiqtVirtualQGraphicsView(QGraphicsScene* scene, QWidget* parent): QGraphicsView(scene, parent) {}; - virtual ~MiqtVirtualQGraphicsView() = default; + virtual ~MiqtVirtualQGraphicsView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1631,11 +1631,7 @@ QSize* QGraphicsView_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQGraphicsView*)(self) )->virtualbase_ViewportSizeHint(); } -void QGraphicsView_Delete(QGraphicsView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsView_Delete(QGraphicsView* self) { + delete self; } diff --git a/qt/gen_qgraphicsview.go b/qt/gen_qgraphicsview.go index c66de106..2c436e5d 100644 --- a/qt/gen_qgraphicsview.go +++ b/qt/gen_qgraphicsview.go @@ -1502,7 +1502,7 @@ func miqt_exec_callback_QGraphicsView_ViewportSizeHint(self *C.QGraphicsView, cb // Delete this object from C++ memory. func (this *QGraphicsView) Delete() { - C.QGraphicsView_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicsview.h b/qt/gen_qgraphicsview.h index 1240af8a..7e982022 100644 --- a/qt/gen_qgraphicsview.h +++ b/qt/gen_qgraphicsview.h @@ -281,7 +281,7 @@ void QGraphicsView_override_virtual_EventFilter(void* self, intptr_t slot); bool QGraphicsView_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); void QGraphicsView_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QGraphicsView_virtualbase_ViewportSizeHint(const void* self); -void QGraphicsView_Delete(QGraphicsView* self, bool isSubclass); +void QGraphicsView_Delete(QGraphicsView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgraphicswidget.cpp b/qt/gen_qgraphicswidget.cpp index aabffc67..8d850d45 100644 --- a/qt/gen_qgraphicswidget.cpp +++ b/qt/gen_qgraphicswidget.cpp @@ -77,14 +77,14 @@ void miqt_exec_callback_QGraphicsWidget_UngrabKeyboardEvent(void*, intptr_t, QEv } /* extern C */ #endif -class MiqtVirtualQGraphicsWidget : public virtual QGraphicsWidget { +class MiqtVirtualQGraphicsWidget final : public QGraphicsWidget { public: MiqtVirtualQGraphicsWidget(): QGraphicsWidget() {}; MiqtVirtualQGraphicsWidget(QGraphicsItem* parent): QGraphicsWidget(parent) {}; MiqtVirtualQGraphicsWidget(QGraphicsItem* parent, Qt::WindowFlags wFlags): QGraphicsWidget(parent, wFlags) {}; - virtual ~MiqtVirtualQGraphicsWidget() = default; + virtual ~MiqtVirtualQGraphicsWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetGeometry = 0; @@ -1519,11 +1519,7 @@ void QGraphicsWidget_virtualbase_UngrabKeyboardEvent(void* self, QEvent* event) ( (MiqtVirtualQGraphicsWidget*)(self) )->virtualbase_UngrabKeyboardEvent(event); } -void QGraphicsWidget_Delete(QGraphicsWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsWidget_Delete(QGraphicsWidget* self) { + delete self; } diff --git a/qt/gen_qgraphicswidget.go b/qt/gen_qgraphicswidget.go index a380b67f..20de6b90 100644 --- a/qt/gen_qgraphicswidget.go +++ b/qt/gen_qgraphicswidget.go @@ -1352,7 +1352,7 @@ func miqt_exec_callback_QGraphicsWidget_UngrabKeyboardEvent(self *C.QGraphicsWid // Delete this object from C++ memory. func (this *QGraphicsWidget) Delete() { - C.QGraphicsWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgraphicswidget.h b/qt/gen_qgraphicswidget.h index 25793f7c..01b081c4 100644 --- a/qt/gen_qgraphicswidget.h +++ b/qt/gen_qgraphicswidget.h @@ -244,7 +244,7 @@ void QGraphicsWidget_override_virtual_GrabKeyboardEvent(void* self, intptr_t slo void QGraphicsWidget_virtualbase_GrabKeyboardEvent(void* self, QEvent* event); void QGraphicsWidget_override_virtual_UngrabKeyboardEvent(void* self, intptr_t slot); void QGraphicsWidget_virtualbase_UngrabKeyboardEvent(void* self, QEvent* event); -void QGraphicsWidget_Delete(QGraphicsWidget* self, bool isSubclass); +void QGraphicsWidget_Delete(QGraphicsWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgridlayout.cpp b/qt/gen_qgridlayout.cpp index a3b73539..e1119bd6 100644 --- a/qt/gen_qgridlayout.cpp +++ b/qt/gen_qgridlayout.cpp @@ -40,13 +40,13 @@ void miqt_exec_callback_QGridLayout_ChildEvent(void*, intptr_t, QChildEvent*); } /* extern C */ #endif -class MiqtVirtualQGridLayout : public virtual QGridLayout { +class MiqtVirtualQGridLayout final : public QGridLayout { public: MiqtVirtualQGridLayout(QWidget* parent): QGridLayout(parent) {}; MiqtVirtualQGridLayout(): QGridLayout() {}; - virtual ~MiqtVirtualQGridLayout() = default; + virtual ~MiqtVirtualQGridLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -912,11 +912,7 @@ void QGridLayout_virtualbase_ChildEvent(void* self, QChildEvent* e) { ( (MiqtVirtualQGridLayout*)(self) )->virtualbase_ChildEvent(e); } -void QGridLayout_Delete(QGridLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGridLayout_Delete(QGridLayout* self) { + delete self; } diff --git a/qt/gen_qgridlayout.go b/qt/gen_qgridlayout.go index 5de5442a..d4e8fb16 100644 --- a/qt/gen_qgridlayout.go +++ b/qt/gen_qgridlayout.go @@ -836,7 +836,7 @@ func miqt_exec_callback_QGridLayout_ChildEvent(self *C.QGridLayout, cb C.intptr_ // Delete this object from C++ memory. func (this *QGridLayout) Delete() { - C.QGridLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QGridLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgridlayout.h b/qt/gen_qgridlayout.h index 4a2c5411..7551095f 100644 --- a/qt/gen_qgridlayout.h +++ b/qt/gen_qgridlayout.h @@ -133,7 +133,7 @@ void QGridLayout_override_virtual_Layout(void* self, intptr_t slot); QLayout* QGridLayout_virtualbase_Layout(void* self); void QGridLayout_override_virtual_ChildEvent(void* self, intptr_t slot); void QGridLayout_virtualbase_ChildEvent(void* self, QChildEvent* e); -void QGridLayout_Delete(QGridLayout* self, bool isSubclass); +void QGridLayout_Delete(QGridLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qgroupbox.cpp b/qt/gen_qgroupbox.cpp index dd312064..bcf84bee 100644 --- a/qt/gen_qgroupbox.cpp +++ b/qt/gen_qgroupbox.cpp @@ -88,7 +88,7 @@ bool miqt_exec_callback_QGroupBox_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQGroupBox : public virtual QGroupBox { +class MiqtVirtualQGroupBox final : public QGroupBox { public: MiqtVirtualQGroupBox(QWidget* parent): QGroupBox(parent) {}; @@ -96,7 +96,7 @@ public: MiqtVirtualQGroupBox(const QString& title): QGroupBox(title) {}; MiqtVirtualQGroupBox(const QString& title, QWidget* parent): QGroupBox(title, parent) {}; - virtual ~MiqtVirtualQGroupBox() = default; + virtual ~MiqtVirtualQGroupBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MinimumSizeHint = 0; @@ -1616,11 +1616,7 @@ bool QGroupBox_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQGroupBox*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QGroupBox_Delete(QGroupBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGroupBox_Delete(QGroupBox* self) { + delete self; } diff --git a/qt/gen_qgroupbox.go b/qt/gen_qgroupbox.go index b5a7e5f8..24910da4 100644 --- a/qt/gen_qgroupbox.go +++ b/qt/gen_qgroupbox.go @@ -1390,7 +1390,7 @@ func miqt_exec_callback_QGroupBox_FocusNextPrevChild(self *C.QGroupBox, cb C.int // Delete this object from C++ memory. func (this *QGroupBox) Delete() { - C.QGroupBox_Delete(this.h, C.bool(this.isSubclass)) + C.QGroupBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qgroupbox.h b/qt/gen_qgroupbox.h index f9bc7018..3ffe1d1f 100644 --- a/qt/gen_qgroupbox.h +++ b/qt/gen_qgroupbox.h @@ -201,7 +201,7 @@ void QGroupBox_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QGroupBox_virtualbase_InputMethodQuery(const void* self, int param1); void QGroupBox_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QGroupBox_virtualbase_FocusNextPrevChild(void* self, bool next); -void QGroupBox_Delete(QGroupBox* self, bool isSubclass); +void QGroupBox_Delete(QGroupBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qguiapplication.cpp b/qt/gen_qguiapplication.cpp index 4b491784..21790960 100644 --- a/qt/gen_qguiapplication.cpp +++ b/qt/gen_qguiapplication.cpp @@ -45,13 +45,13 @@ bool miqt_exec_callback_QGuiApplication_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQGuiApplication : public virtual QGuiApplication { +class MiqtVirtualQGuiApplication final : public QGuiApplication { public: MiqtVirtualQGuiApplication(int& argc, char** argv): QGuiApplication(argc, argv) {}; MiqtVirtualQGuiApplication(int& argc, char** argv, int param3): QGuiApplication(argc, argv, param3) {}; - virtual ~MiqtVirtualQGuiApplication() = default; + virtual ~MiqtVirtualQGuiApplication() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Notify = 0; @@ -640,11 +640,7 @@ bool QGuiApplication_virtualbase_Event(void* self, QEvent* param1) { return ( (MiqtVirtualQGuiApplication*)(self) )->virtualbase_Event(param1); } -void QGuiApplication_Delete(QGuiApplication* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGuiApplication_Delete(QGuiApplication* self) { + delete self; } diff --git a/qt/gen_qguiapplication.go b/qt/gen_qguiapplication.go index 80d43536..9c5947c3 100644 --- a/qt/gen_qguiapplication.go +++ b/qt/gen_qguiapplication.go @@ -739,7 +739,7 @@ func miqt_exec_callback_QGuiApplication_Event(self *C.QGuiApplication, cb C.intp // Delete this object from C++ memory. func (this *QGuiApplication) Delete() { - C.QGuiApplication_Delete(this.h, C.bool(this.isSubclass)) + C.QGuiApplication_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qguiapplication.h b/qt/gen_qguiapplication.h index 62905bc1..5d4eac73 100644 --- a/qt/gen_qguiapplication.h +++ b/qt/gen_qguiapplication.h @@ -145,7 +145,7 @@ void QGuiApplication_override_virtual_Notify(void* self, intptr_t slot); bool QGuiApplication_virtualbase_Notify(void* self, QObject* param1, QEvent* param2); void QGuiApplication_override_virtual_Event(void* self, intptr_t slot); bool QGuiApplication_virtualbase_Event(void* self, QEvent* param1); -void QGuiApplication_Delete(QGuiApplication* self, bool isSubclass); +void QGuiApplication_Delete(QGuiApplication* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qheaderview.cpp b/qt/gen_qheaderview.cpp index 21a20319..bc54c817 100644 --- a/qt/gen_qheaderview.cpp +++ b/qt/gen_qheaderview.cpp @@ -119,13 +119,13 @@ QSize* miqt_exec_callback_QHeaderView_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQHeaderView : public virtual QHeaderView { +class MiqtVirtualQHeaderView final : public QHeaderView { public: MiqtVirtualQHeaderView(Qt::Orientation orientation): QHeaderView(orientation) {}; MiqtVirtualQHeaderView(Qt::Orientation orientation, QWidget* parent): QHeaderView(orientation, parent) {}; - virtual ~MiqtVirtualQHeaderView() = default; + virtual ~MiqtVirtualQHeaderView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetModel = 0; @@ -2730,11 +2730,7 @@ QSize* QHeaderView_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQHeaderView*)(self) )->virtualbase_ViewportSizeHint(); } -void QHeaderView_Delete(QHeaderView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHeaderView_Delete(QHeaderView* self) { + delete self; } diff --git a/qt/gen_qheaderview.go b/qt/gen_qheaderview.go index 127ca47b..931906ac 100644 --- a/qt/gen_qheaderview.go +++ b/qt/gen_qheaderview.go @@ -2399,7 +2399,7 @@ func miqt_exec_callback_QHeaderView_ViewportSizeHint(self *C.QHeaderView, cb C.i // Delete this object from C++ memory. func (this *QHeaderView) Delete() { - C.QHeaderView_Delete(this.h, C.bool(this.isSubclass)) + C.QHeaderView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qheaderview.h b/qt/gen_qheaderview.h index 390a24cf..6c672310 100644 --- a/qt/gen_qheaderview.h +++ b/qt/gen_qheaderview.h @@ -330,7 +330,7 @@ void QHeaderView_override_virtual_EventFilter(void* self, intptr_t slot); bool QHeaderView_virtualbase_EventFilter(void* self, QObject* object, QEvent* event); void QHeaderView_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QHeaderView_virtualbase_ViewportSizeHint(const void* self); -void QHeaderView_Delete(QHeaderView* self, bool isSubclass); +void QHeaderView_Delete(QHeaderView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qhistorystate.cpp b/qt/gen_qhistorystate.cpp index bfcc45eb..442943ee 100644 --- a/qt/gen_qhistorystate.cpp +++ b/qt/gen_qhistorystate.cpp @@ -22,7 +22,7 @@ bool miqt_exec_callback_QHistoryState_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQHistoryState : public virtual QHistoryState { +class MiqtVirtualQHistoryState final : public QHistoryState { public: MiqtVirtualQHistoryState(): QHistoryState() {}; @@ -30,7 +30,7 @@ public: MiqtVirtualQHistoryState(QState* parent): QHistoryState(parent) {}; MiqtVirtualQHistoryState(QHistoryState::HistoryType typeVal, QState* parent): QHistoryState(typeVal, parent) {}; - virtual ~MiqtVirtualQHistoryState() = default; + virtual ~MiqtVirtualQHistoryState() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__OnEntry = 0; @@ -248,11 +248,7 @@ bool QHistoryState_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQHistoryState*)(self) )->virtualbase_Event(e); } -void QHistoryState_Delete(QHistoryState* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHistoryState_Delete(QHistoryState* self) { + delete self; } diff --git a/qt/gen_qhistorystate.go b/qt/gen_qhistorystate.go index 22c1e038..7f9c44a0 100644 --- a/qt/gen_qhistorystate.go +++ b/qt/gen_qhistorystate.go @@ -268,7 +268,7 @@ func miqt_exec_callback_QHistoryState_Event(self *C.QHistoryState, cb C.intptr_t // Delete this object from C++ memory. func (this *QHistoryState) Delete() { - C.QHistoryState_Delete(this.h, C.bool(this.isSubclass)) + C.QHistoryState_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qhistorystate.h b/qt/gen_qhistorystate.h index dbf48eb2..49ece37d 100644 --- a/qt/gen_qhistorystate.h +++ b/qt/gen_qhistorystate.h @@ -60,7 +60,7 @@ void QHistoryState_override_virtual_OnExit(void* self, intptr_t slot); void QHistoryState_virtualbase_OnExit(void* self, QEvent* event); void QHistoryState_override_virtual_Event(void* self, intptr_t slot); bool QHistoryState_virtualbase_Event(void* self, QEvent* e); -void QHistoryState_Delete(QHistoryState* self, bool isSubclass); +void QHistoryState_Delete(QHistoryState* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qicon.cpp b/qt/gen_qicon.cpp index 7cddfcc7..be7385ff 100644 --- a/qt/gen_qicon.cpp +++ b/qt/gen_qicon.cpp @@ -374,11 +374,7 @@ struct miqt_array /* of QSize* */ QIcon_AvailableSizes2(const QIcon* self, int return _out; } -void QIcon_Delete(QIcon* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIcon_Delete(QIcon* self) { + delete self; } diff --git a/qt/gen_qicon.go b/qt/gen_qicon.go index fa1125ea..e4105edb 100644 --- a/qt/gen_qicon.go +++ b/qt/gen_qicon.go @@ -485,7 +485,7 @@ func (this *QIcon) AvailableSizes2(mode QIcon__Mode, state QIcon__State) []QSize // Delete this object from C++ memory. func (this *QIcon) Delete() { - C.QIcon_Delete(this.h, C.bool(this.isSubclass)) + C.QIcon_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qicon.h b/qt/gen_qicon.h index 6bfaaacd..6e536034 100644 --- a/qt/gen_qicon.h +++ b/qt/gen_qicon.h @@ -96,7 +96,7 @@ void QIcon_AddFile3(QIcon* self, struct miqt_string fileName, QSize* size, int m void QIcon_AddFile4(QIcon* self, struct miqt_string fileName, QSize* size, int mode, int state); struct miqt_array /* of QSize* */ QIcon_AvailableSizes1(const QIcon* self, int mode); struct miqt_array /* of QSize* */ QIcon_AvailableSizes2(const QIcon* self, int mode, int state); -void QIcon_Delete(QIcon* self, bool isSubclass); +void QIcon_Delete(QIcon* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qiconengine.cpp b/qt/gen_qiconengine.cpp index cff35458..d02df09a 100644 --- a/qt/gen_qiconengine.cpp +++ b/qt/gen_qiconengine.cpp @@ -33,13 +33,13 @@ void miqt_exec_callback_QIconEngine_VirtualHook(void*, intptr_t, int, void*); } /* extern C */ #endif -class MiqtVirtualQIconEngine : public virtual QIconEngine { +class MiqtVirtualQIconEngine final : public QIconEngine { public: MiqtVirtualQIconEngine(): QIconEngine() {}; MiqtVirtualQIconEngine(const QIconEngine& other): QIconEngine(other) {}; - virtual ~MiqtVirtualQIconEngine() = default; + virtual ~MiqtVirtualQIconEngine() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; @@ -560,12 +560,8 @@ void QIconEngine_virtualbase_VirtualHook(void* self, int id, void* data) { ( (MiqtVirtualQIconEngine*)(self) )->virtualbase_VirtualHook(id, data); } -void QIconEngine_Delete(QIconEngine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIconEngine_Delete(QIconEngine* self) { + delete self; } QIconEngine__AvailableSizesArgument* QIconEngine__AvailableSizesArgument_new(QIconEngine__AvailableSizesArgument* param1) { @@ -576,12 +572,8 @@ void QIconEngine__AvailableSizesArgument_OperatorAssign(QIconEngine__AvailableSi self->operator=(*param1); } -void QIconEngine__AvailableSizesArgument_Delete(QIconEngine__AvailableSizesArgument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIconEngine__AvailableSizesArgument_Delete(QIconEngine__AvailableSizesArgument* self) { + delete self; } QIconEngine__ScaledPixmapArgument* QIconEngine__ScaledPixmapArgument_new(QIconEngine__ScaledPixmapArgument* param1) { @@ -592,11 +584,7 @@ void QIconEngine__ScaledPixmapArgument_OperatorAssign(QIconEngine__ScaledPixmapA self->operator=(*param1); } -void QIconEngine__ScaledPixmapArgument_Delete(QIconEngine__ScaledPixmapArgument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIconEngine__ScaledPixmapArgument_Delete(QIconEngine__ScaledPixmapArgument* self) { + delete self; } diff --git a/qt/gen_qiconengine.go b/qt/gen_qiconengine.go index 94c47ef1..828f4b54 100644 --- a/qt/gen_qiconengine.go +++ b/qt/gen_qiconengine.go @@ -525,7 +525,7 @@ func miqt_exec_callback_QIconEngine_VirtualHook(self *C.QIconEngine, cb C.intptr // Delete this object from C++ memory. func (this *QIconEngine) Delete() { - C.QIconEngine_Delete(this.h, C.bool(this.isSubclass)) + C.QIconEngine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -584,7 +584,7 @@ func (this *QIconEngine__AvailableSizesArgument) OperatorAssign(param1 *QIconEng // Delete this object from C++ memory. func (this *QIconEngine__AvailableSizesArgument) Delete() { - C.QIconEngine__AvailableSizesArgument_Delete(this.h, C.bool(this.isSubclass)) + C.QIconEngine__AvailableSizesArgument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -643,7 +643,7 @@ func (this *QIconEngine__ScaledPixmapArgument) OperatorAssign(param1 *QIconEngin // Delete this object from C++ memory. func (this *QIconEngine__ScaledPixmapArgument) Delete() { - C.QIconEngine__ScaledPixmapArgument_Delete(this.h, C.bool(this.isSubclass)) + C.QIconEngine__ScaledPixmapArgument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qiconengine.h b/qt/gen_qiconengine.h index fb0fe1bb..f6910b8a 100644 --- a/qt/gen_qiconengine.h +++ b/qt/gen_qiconengine.h @@ -82,15 +82,15 @@ void QIconEngine_override_virtual_IconName(void* self, intptr_t slot); struct miqt_string QIconEngine_virtualbase_IconName(const void* self); void QIconEngine_override_virtual_VirtualHook(void* self, intptr_t slot); void QIconEngine_virtualbase_VirtualHook(void* self, int id, void* data); -void QIconEngine_Delete(QIconEngine* self, bool isSubclass); +void QIconEngine_Delete(QIconEngine* self); QIconEngine__AvailableSizesArgument* QIconEngine__AvailableSizesArgument_new(QIconEngine__AvailableSizesArgument* param1); void QIconEngine__AvailableSizesArgument_OperatorAssign(QIconEngine__AvailableSizesArgument* self, QIconEngine__AvailableSizesArgument* param1); -void QIconEngine__AvailableSizesArgument_Delete(QIconEngine__AvailableSizesArgument* self, bool isSubclass); +void QIconEngine__AvailableSizesArgument_Delete(QIconEngine__AvailableSizesArgument* self); QIconEngine__ScaledPixmapArgument* QIconEngine__ScaledPixmapArgument_new(QIconEngine__ScaledPixmapArgument* param1); void QIconEngine__ScaledPixmapArgument_OperatorAssign(QIconEngine__ScaledPixmapArgument* self, QIconEngine__ScaledPixmapArgument* param1); -void QIconEngine__ScaledPixmapArgument_Delete(QIconEngine__ScaledPixmapArgument* self, bool isSubclass); +void QIconEngine__ScaledPixmapArgument_Delete(QIconEngine__ScaledPixmapArgument* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qiconengineplugin.cpp b/qt/gen_qiconengineplugin.cpp index 6b0b322c..2f0e8778 100644 --- a/qt/gen_qiconengineplugin.cpp +++ b/qt/gen_qiconengineplugin.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QIconEnginePlugin_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQIconEnginePlugin : public virtual QIconEnginePlugin { +class MiqtVirtualQIconEnginePlugin final : public QIconEnginePlugin { public: MiqtVirtualQIconEnginePlugin(): QIconEnginePlugin() {}; MiqtVirtualQIconEnginePlugin(QObject* parent): QIconEnginePlugin(parent) {}; - virtual ~MiqtVirtualQIconEnginePlugin() = default; + virtual ~MiqtVirtualQIconEnginePlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -383,11 +383,7 @@ void QIconEnginePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQIconEnginePlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QIconEnginePlugin_Delete(QIconEnginePlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIconEnginePlugin_Delete(QIconEnginePlugin* self) { + delete self; } diff --git a/qt/gen_qiconengineplugin.go b/qt/gen_qiconengineplugin.go index aa1b4e25..cdf2c18c 100644 --- a/qt/gen_qiconengineplugin.go +++ b/qt/gen_qiconengineplugin.go @@ -362,7 +362,7 @@ func miqt_exec_callback_QIconEnginePlugin_DisconnectNotify(self *C.QIconEnginePl // Delete this object from C++ memory. func (this *QIconEnginePlugin) Delete() { - C.QIconEnginePlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QIconEnginePlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qiconengineplugin.h b/qt/gen_qiconengineplugin.h index 4cd5ba9d..bdb4fe30 100644 --- a/qt/gen_qiconengineplugin.h +++ b/qt/gen_qiconengineplugin.h @@ -62,7 +62,7 @@ void QIconEnginePlugin_override_virtual_ConnectNotify(void* self, intptr_t slot) void QIconEnginePlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QIconEnginePlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QIconEnginePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QIconEnginePlugin_Delete(QIconEnginePlugin* self, bool isSubclass); +void QIconEnginePlugin_Delete(QIconEnginePlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qidentityproxymodel.cpp b/qt/gen_qidentityproxymodel.cpp index 59e0830a..2e340040 100644 --- a/qt/gen_qidentityproxymodel.cpp +++ b/qt/gen_qidentityproxymodel.cpp @@ -62,13 +62,13 @@ int miqt_exec_callback_QIdentityProxyModel_SupportedDropActions(void*, intptr_t) } /* extern C */ #endif -class MiqtVirtualQIdentityProxyModel : public virtual QIdentityProxyModel { +class MiqtVirtualQIdentityProxyModel final : public QIdentityProxyModel { public: MiqtVirtualQIdentityProxyModel(): QIdentityProxyModel() {}; MiqtVirtualQIdentityProxyModel(QObject* parent): QIdentityProxyModel(parent) {}; - virtual ~MiqtVirtualQIdentityProxyModel() = default; + virtual ~MiqtVirtualQIdentityProxyModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ColumnCount = 0; @@ -1630,11 +1630,7 @@ int QIdentityProxyModel_virtualbase_SupportedDropActions(const void* self) { return ( (const MiqtVirtualQIdentityProxyModel*)(self) )->virtualbase_SupportedDropActions(); } -void QIdentityProxyModel_Delete(QIdentityProxyModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIdentityProxyModel_Delete(QIdentityProxyModel* self) { + delete self; } diff --git a/qt/gen_qidentityproxymodel.go b/qt/gen_qidentityproxymodel.go index 8402e7ad..20d289d9 100644 --- a/qt/gen_qidentityproxymodel.go +++ b/qt/gen_qidentityproxymodel.go @@ -1491,7 +1491,7 @@ func miqt_exec_callback_QIdentityProxyModel_SupportedDropActions(self *C.QIdenti // Delete this object from C++ memory. func (this *QIdentityProxyModel) Delete() { - C.QIdentityProxyModel_Delete(this.h, C.bool(this.isSubclass)) + C.QIdentityProxyModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qidentityproxymodel.h b/qt/gen_qidentityproxymodel.h index 70b414bd..0089510b 100644 --- a/qt/gen_qidentityproxymodel.h +++ b/qt/gen_qidentityproxymodel.h @@ -144,7 +144,7 @@ void QIdentityProxyModel_override_virtual_SupportedDragActions(void* self, intpt int QIdentityProxyModel_virtualbase_SupportedDragActions(const void* self); void QIdentityProxyModel_override_virtual_SupportedDropActions(void* self, intptr_t slot); int QIdentityProxyModel_virtualbase_SupportedDropActions(const void* self); -void QIdentityProxyModel_Delete(QIdentityProxyModel* self, bool isSubclass); +void QIdentityProxyModel_Delete(QIdentityProxyModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qimage.cpp b/qt/gen_qimage.cpp index 4f53f1be..cd6bc502 100644 --- a/qt/gen_qimage.cpp +++ b/qt/gen_qimage.cpp @@ -35,7 +35,7 @@ QPainter* miqt_exec_callback_QImage_SharedPainter(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQImage : public virtual QImage { +class MiqtVirtualQImage final : public QImage { public: MiqtVirtualQImage(): QImage() {}; @@ -49,7 +49,7 @@ public: MiqtVirtualQImage(const QImage& param1): QImage(param1) {}; MiqtVirtualQImage(const QString& fileName, const char* format): QImage(fileName, format) {}; - virtual ~MiqtVirtualQImage() = default; + virtual ~MiqtVirtualQImage() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -879,11 +879,7 @@ QPainter* QImage_virtualbase_SharedPainter(const void* self) { return ( (const MiqtVirtualQImage*)(self) )->virtualbase_SharedPainter(); } -void QImage_Delete(QImage* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImage_Delete(QImage* self) { + delete self; } diff --git a/qt/gen_qimage.go b/qt/gen_qimage.go index bbad4082..84797bf3 100644 --- a/qt/gen_qimage.go +++ b/qt/gen_qimage.go @@ -1054,7 +1054,7 @@ func miqt_exec_callback_QImage_SharedPainter(self *C.QImage, cb C.intptr_t) *C.Q // Delete this object from C++ memory. func (this *QImage) Delete() { - C.QImage_Delete(this.h, C.bool(this.isSubclass)) + C.QImage_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qimage.h b/qt/gen_qimage.h index 0418cf0d..13bd30b3 100644 --- a/qt/gen_qimage.h +++ b/qt/gen_qimage.h @@ -200,7 +200,7 @@ void QImage_override_virtual_Redirected(void* self, intptr_t slot); QPaintDevice* QImage_virtualbase_Redirected(const void* self, QPoint* offset); void QImage_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QImage_virtualbase_SharedPainter(const void* self); -void QImage_Delete(QImage* self, bool isSubclass); +void QImage_Delete(QImage* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qimageiohandler.cpp b/qt/gen_qimageiohandler.cpp index e9c4c517..77ad07ac 100644 --- a/qt/gen_qimageiohandler.cpp +++ b/qt/gen_qimageiohandler.cpp @@ -48,12 +48,12 @@ void miqt_exec_callback_QImageIOPlugin_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQImageIOHandler : public virtual QImageIOHandler { +class MiqtVirtualQImageIOHandler final : public QImageIOHandler { public: MiqtVirtualQImageIOHandler(): QImageIOHandler() {}; - virtual ~MiqtVirtualQImageIOHandler() = default; + virtual ~MiqtVirtualQImageIOHandler() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Name = 0; @@ -568,21 +568,17 @@ QRect* QImageIOHandler_virtualbase_CurrentImageRect(const void* self) { return ( (const MiqtVirtualQImageIOHandler*)(self) )->virtualbase_CurrentImageRect(); } -void QImageIOHandler_Delete(QImageIOHandler* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImageIOHandler_Delete(QImageIOHandler* self) { + delete self; } -class MiqtVirtualQImageIOPlugin : public virtual QImageIOPlugin { +class MiqtVirtualQImageIOPlugin final : public QImageIOPlugin { public: MiqtVirtualQImageIOPlugin(): QImageIOPlugin() {}; MiqtVirtualQImageIOPlugin(QObject* parent): QImageIOPlugin(parent) {}; - virtual ~MiqtVirtualQImageIOPlugin() = default; + virtual ~MiqtVirtualQImageIOPlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Capabilities = 0; @@ -962,11 +958,7 @@ void QImageIOPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQImageIOPlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QImageIOPlugin_Delete(QImageIOPlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImageIOPlugin_Delete(QImageIOPlugin* self) { + delete self; } diff --git a/qt/gen_qimageiohandler.go b/qt/gen_qimageiohandler.go index 618209fc..38bc3823 100644 --- a/qt/gen_qimageiohandler.go +++ b/qt/gen_qimageiohandler.go @@ -560,7 +560,7 @@ func miqt_exec_callback_QImageIOHandler_CurrentImageRect(self *C.QImageIOHandler // Delete this object from C++ memory. func (this *QImageIOHandler) Delete() { - C.QImageIOHandler_Delete(this.h, C.bool(this.isSubclass)) + C.QImageIOHandler_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -955,7 +955,7 @@ func miqt_exec_callback_QImageIOPlugin_DisconnectNotify(self *C.QImageIOPlugin, // Delete this object from C++ memory. func (this *QImageIOPlugin) Delete() { - C.QImageIOPlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QImageIOPlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qimageiohandler.h b/qt/gen_qimageiohandler.h index a0be4937..1614e92e 100644 --- a/qt/gen_qimageiohandler.h +++ b/qt/gen_qimageiohandler.h @@ -90,7 +90,7 @@ void QImageIOHandler_override_virtual_CurrentImageNumber(void* self, intptr_t sl int QImageIOHandler_virtualbase_CurrentImageNumber(const void* self); void QImageIOHandler_override_virtual_CurrentImageRect(void* self, intptr_t slot); QRect* QImageIOHandler_virtualbase_CurrentImageRect(const void* self); -void QImageIOHandler_Delete(QImageIOHandler* self, bool isSubclass); +void QImageIOHandler_Delete(QImageIOHandler* self); QImageIOPlugin* QImageIOPlugin_new(); QImageIOPlugin* QImageIOPlugin_new2(QObject* parent); @@ -123,7 +123,7 @@ void QImageIOPlugin_override_virtual_ConnectNotify(void* self, intptr_t slot); void QImageIOPlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QImageIOPlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QImageIOPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QImageIOPlugin_Delete(QImageIOPlugin* self, bool isSubclass); +void QImageIOPlugin_Delete(QImageIOPlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qimagereader.cpp b/qt/gen_qimagereader.cpp index 63ab862d..e2a190ec 100644 --- a/qt/gen_qimagereader.cpp +++ b/qt/gen_qimagereader.cpp @@ -431,11 +431,7 @@ struct miqt_string QImageReader_TrUtf83(const char* sourceText, const char* disa return _ms; } -void QImageReader_Delete(QImageReader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImageReader_Delete(QImageReader* self) { + delete self; } diff --git a/qt/gen_qimagereader.go b/qt/gen_qimagereader.go index 8d691de1..7e79e06c 100644 --- a/qt/gen_qimagereader.go +++ b/qt/gen_qimagereader.go @@ -472,7 +472,7 @@ func QImageReader_TrUtf83(sourceText string, disambiguation string, n int) strin // Delete this object from C++ memory. func (this *QImageReader) Delete() { - C.QImageReader_Delete(this.h, C.bool(this.isSubclass)) + C.QImageReader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qimagereader.h b/qt/gen_qimagereader.h index cfcba022..61499e81 100644 --- a/qt/gen_qimagereader.h +++ b/qt/gen_qimagereader.h @@ -91,7 +91,7 @@ struct miqt_string QImageReader_Tr2(const char* sourceText, const char* disambig struct miqt_string QImageReader_Tr3(const char* sourceText, const char* disambiguation, int n); struct miqt_string QImageReader_TrUtf82(const char* sourceText, const char* disambiguation); struct miqt_string QImageReader_TrUtf83(const char* sourceText, const char* disambiguation, int n); -void QImageReader_Delete(QImageReader* self, bool isSubclass); +void QImageReader_Delete(QImageReader* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qimagewriter.cpp b/qt/gen_qimagewriter.cpp index f2e73b3a..519323b7 100644 --- a/qt/gen_qimagewriter.cpp +++ b/qt/gen_qimagewriter.cpp @@ -327,11 +327,7 @@ struct miqt_string QImageWriter_TrUtf83(const char* sourceText, const char* disa return _ms; } -void QImageWriter_Delete(QImageWriter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImageWriter_Delete(QImageWriter* self) { + delete self; } diff --git a/qt/gen_qimagewriter.go b/qt/gen_qimagewriter.go index 33f6026b..7f116667 100644 --- a/qt/gen_qimagewriter.go +++ b/qt/gen_qimagewriter.go @@ -369,7 +369,7 @@ func QImageWriter_TrUtf83(sourceText string, disambiguation string, n int) strin // Delete this object from C++ memory. func (this *QImageWriter) Delete() { - C.QImageWriter_Delete(this.h, C.bool(this.isSubclass)) + C.QImageWriter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qimagewriter.h b/qt/gen_qimagewriter.h index 7851108a..674e403e 100644 --- a/qt/gen_qimagewriter.h +++ b/qt/gen_qimagewriter.h @@ -66,7 +66,7 @@ struct miqt_string QImageWriter_Tr2(const char* sourceText, const char* disambig struct miqt_string QImageWriter_Tr3(const char* sourceText, const char* disambiguation, int n); struct miqt_string QImageWriter_TrUtf82(const char* sourceText, const char* disambiguation); struct miqt_string QImageWriter_TrUtf83(const char* sourceText, const char* disambiguation, int n); -void QImageWriter_Delete(QImageWriter* self, bool isSubclass); +void QImageWriter_Delete(QImageWriter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qinputdialog.cpp b/qt/gen_qinputdialog.cpp index 826d6357..24e3977e 100644 --- a/qt/gen_qinputdialog.cpp +++ b/qt/gen_qinputdialog.cpp @@ -46,14 +46,14 @@ bool miqt_exec_callback_QInputDialog_EventFilter(void*, intptr_t, QObject*, QEve } /* extern C */ #endif -class MiqtVirtualQInputDialog : public virtual QInputDialog { +class MiqtVirtualQInputDialog final : public QInputDialog { public: MiqtVirtualQInputDialog(QWidget* parent): QInputDialog(parent) {}; MiqtVirtualQInputDialog(): QInputDialog() {}; MiqtVirtualQInputDialog(QWidget* parent, Qt::WindowFlags flags): QInputDialog(parent, flags) {}; - virtual ~MiqtVirtualQInputDialog() = default; + virtual ~MiqtVirtualQInputDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MinimumSizeHint = 0; @@ -1267,11 +1267,7 @@ bool QInputDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* p return ( (MiqtVirtualQInputDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QInputDialog_Delete(QInputDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInputDialog_Delete(QInputDialog* self) { + delete self; } diff --git a/qt/gen_qinputdialog.go b/qt/gen_qinputdialog.go index f17d6e52..eaf308c2 100644 --- a/qt/gen_qinputdialog.go +++ b/qt/gen_qinputdialog.go @@ -1417,7 +1417,7 @@ func miqt_exec_callback_QInputDialog_EventFilter(self *C.QInputDialog, cb C.intp // Delete this object from C++ memory. func (this *QInputDialog) Delete() { - C.QInputDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QInputDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qinputdialog.h b/qt/gen_qinputdialog.h index f3eff45c..0a3ed54b 100644 --- a/qt/gen_qinputdialog.h +++ b/qt/gen_qinputdialog.h @@ -173,7 +173,7 @@ void QInputDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QInputDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QInputDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QInputDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QInputDialog_Delete(QInputDialog* self, bool isSubclass); +void QInputDialog_Delete(QInputDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qiodevice.cpp b/qt/gen_qiodevice.cpp index 51c1a6be..22b227fe 100644 --- a/qt/gen_qiodevice.cpp +++ b/qt/gen_qiodevice.cpp @@ -49,13 +49,13 @@ void miqt_exec_callback_QIODevice_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQIODevice : public virtual QIODevice { +class MiqtVirtualQIODevice final : public QIODevice { public: MiqtVirtualQIODevice(): QIODevice() {}; MiqtVirtualQIODevice(QObject* parent): QIODevice(parent) {}; - virtual ~MiqtVirtualQIODevice() = default; + virtual ~MiqtVirtualQIODevice() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IsSequential = 0; @@ -1142,11 +1142,7 @@ void QIODevice_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQIODevice*)(self) )->virtualbase_DisconnectNotify(signal); } -void QIODevice_Delete(QIODevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIODevice_Delete(QIODevice* self) { + delete self; } diff --git a/qt/gen_qiodevice.go b/qt/gen_qiodevice.go index a54b49d8..e08ecb19 100644 --- a/qt/gen_qiodevice.go +++ b/qt/gen_qiodevice.go @@ -1088,7 +1088,7 @@ func miqt_exec_callback_QIODevice_DisconnectNotify(self *C.QIODevice, cb C.intpt // Delete this object from C++ memory. func (this *QIODevice) Delete() { - C.QIODevice_Delete(this.h, C.bool(this.isSubclass)) + C.QIODevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qiodevice.h b/qt/gen_qiodevice.h index a1d69e7c..a8033942 100644 --- a/qt/gen_qiodevice.h +++ b/qt/gen_qiodevice.h @@ -149,7 +149,7 @@ void QIODevice_override_virtual_ConnectNotify(void* self, intptr_t slot); void QIODevice_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QIODevice_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QIODevice_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QIODevice_Delete(QIODevice* self, bool isSubclass); +void QIODevice_Delete(QIODevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qitemdelegate.cpp b/qt/gen_qitemdelegate.cpp index 97083eed..b215e6c3 100644 --- a/qt/gen_qitemdelegate.cpp +++ b/qt/gen_qitemdelegate.cpp @@ -44,13 +44,13 @@ struct miqt_array /* of int */ miqt_exec_callback_QItemDelegate_PaintingRoles(v } /* extern C */ #endif -class MiqtVirtualQItemDelegate : public virtual QItemDelegate { +class MiqtVirtualQItemDelegate final : public QItemDelegate { public: MiqtVirtualQItemDelegate(): QItemDelegate() {}; MiqtVirtualQItemDelegate(QObject* parent): QItemDelegate(parent) {}; - virtual ~MiqtVirtualQItemDelegate() = default; + virtual ~MiqtVirtualQItemDelegate() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; @@ -754,11 +754,7 @@ struct miqt_array /* of int */ QItemDelegate_virtualbase_PaintingRoles(const vo return ( (const MiqtVirtualQItemDelegate*)(self) )->virtualbase_PaintingRoles(); } -void QItemDelegate_Delete(QItemDelegate* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemDelegate_Delete(QItemDelegate* self) { + delete self; } diff --git a/qt/gen_qitemdelegate.go b/qt/gen_qitemdelegate.go index f7d226c3..39f0768a 100644 --- a/qt/gen_qitemdelegate.go +++ b/qt/gen_qitemdelegate.go @@ -661,7 +661,7 @@ func miqt_exec_callback_QItemDelegate_PaintingRoles(self *C.QItemDelegate, cb C. // Delete this object from C++ memory. func (this *QItemDelegate) Delete() { - C.QItemDelegate_Delete(this.h, C.bool(this.isSubclass)) + C.QItemDelegate_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qitemdelegate.h b/qt/gen_qitemdelegate.h index ed4e6938..502a0b58 100644 --- a/qt/gen_qitemdelegate.h +++ b/qt/gen_qitemdelegate.h @@ -107,7 +107,7 @@ void QItemDelegate_override_virtual_HelpEvent(void* self, intptr_t slot); bool QItemDelegate_virtualbase_HelpEvent(void* self, QHelpEvent* event, QAbstractItemView* view, QStyleOptionViewItem* option, QModelIndex* index); void QItemDelegate_override_virtual_PaintingRoles(void* self, intptr_t slot); struct miqt_array /* of int */ QItemDelegate_virtualbase_PaintingRoles(const void* self); -void QItemDelegate_Delete(QItemDelegate* self, bool isSubclass); +void QItemDelegate_Delete(QItemDelegate* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qitemeditorfactory.cpp b/qt/gen_qitemeditorfactory.cpp index 8c83fb0c..cc82df44 100644 --- a/qt/gen_qitemeditorfactory.cpp +++ b/qt/gen_qitemeditorfactory.cpp @@ -32,21 +32,17 @@ void QItemEditorCreatorBase_OperatorAssign(QItemEditorCreatorBase* self, QItemEd self->operator=(*param1); } -void QItemEditorCreatorBase_Delete(QItemEditorCreatorBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemEditorCreatorBase_Delete(QItemEditorCreatorBase* self) { + delete self; } -class MiqtVirtualQItemEditorFactory : public virtual QItemEditorFactory { +class MiqtVirtualQItemEditorFactory final : public QItemEditorFactory { public: MiqtVirtualQItemEditorFactory(): QItemEditorFactory() {}; MiqtVirtualQItemEditorFactory(const QItemEditorFactory& param1): QItemEditorFactory(param1) {}; - virtual ~MiqtVirtualQItemEditorFactory() = default; + virtual ~MiqtVirtualQItemEditorFactory() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CreateEditor = 0; @@ -152,11 +148,7 @@ struct miqt_string QItemEditorFactory_virtualbase_ValuePropertyName(const void* return ( (const MiqtVirtualQItemEditorFactory*)(self) )->virtualbase_ValuePropertyName(userType); } -void QItemEditorFactory_Delete(QItemEditorFactory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemEditorFactory_Delete(QItemEditorFactory* self) { + delete self; } diff --git a/qt/gen_qitemeditorfactory.go b/qt/gen_qitemeditorfactory.go index be36c4ab..e2a1218b 100644 --- a/qt/gen_qitemeditorfactory.go +++ b/qt/gen_qitemeditorfactory.go @@ -64,7 +64,7 @@ func (this *QItemEditorCreatorBase) OperatorAssign(param1 *QItemEditorCreatorBas // Delete this object from C++ memory. func (this *QItemEditorCreatorBase) Delete() { - C.QItemEditorCreatorBase_Delete(this.h, C.bool(this.isSubclass)) + C.QItemEditorCreatorBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -213,7 +213,7 @@ func miqt_exec_callback_QItemEditorFactory_ValuePropertyName(self *C.QItemEditor // Delete this object from C++ memory. func (this *QItemEditorFactory) Delete() { - C.QItemEditorFactory_Delete(this.h, C.bool(this.isSubclass)) + C.QItemEditorFactory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qitemeditorfactory.h b/qt/gen_qitemeditorfactory.h index 7ee8f89f..2b57ff01 100644 --- a/qt/gen_qitemeditorfactory.h +++ b/qt/gen_qitemeditorfactory.h @@ -27,7 +27,7 @@ typedef struct QWidget QWidget; QWidget* QItemEditorCreatorBase_CreateWidget(const QItemEditorCreatorBase* self, QWidget* parent); struct miqt_string QItemEditorCreatorBase_ValuePropertyName(const QItemEditorCreatorBase* self); void QItemEditorCreatorBase_OperatorAssign(QItemEditorCreatorBase* self, QItemEditorCreatorBase* param1); -void QItemEditorCreatorBase_Delete(QItemEditorCreatorBase* self, bool isSubclass); +void QItemEditorCreatorBase_Delete(QItemEditorCreatorBase* self); QItemEditorFactory* QItemEditorFactory_new(); QItemEditorFactory* QItemEditorFactory_new2(QItemEditorFactory* param1); @@ -40,7 +40,7 @@ void QItemEditorFactory_override_virtual_CreateEditor(void* self, intptr_t slot) QWidget* QItemEditorFactory_virtualbase_CreateEditor(const void* self, int userType, QWidget* parent); void QItemEditorFactory_override_virtual_ValuePropertyName(void* self, intptr_t slot); struct miqt_string QItemEditorFactory_virtualbase_ValuePropertyName(const void* self, int userType); -void QItemEditorFactory_Delete(QItemEditorFactory* self, bool isSubclass); +void QItemEditorFactory_Delete(QItemEditorFactory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qitemselectionmodel.cpp b/qt/gen_qitemselectionmodel.cpp index e781e5cf..87e17e57 100644 --- a/qt/gen_qitemselectionmodel.cpp +++ b/qt/gen_qitemselectionmodel.cpp @@ -160,22 +160,18 @@ struct miqt_array /* of QModelIndex* */ QItemSelectionRange_Indexes(const QItem return _out; } -void QItemSelectionRange_Delete(QItemSelectionRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemSelectionRange_Delete(QItemSelectionRange* self) { + delete self; } -class MiqtVirtualQItemSelectionModel : public virtual QItemSelectionModel { +class MiqtVirtualQItemSelectionModel final : public QItemSelectionModel { public: MiqtVirtualQItemSelectionModel(): QItemSelectionModel() {}; MiqtVirtualQItemSelectionModel(QAbstractItemModel* model, QObject* parent): QItemSelectionModel(model, parent) {}; MiqtVirtualQItemSelectionModel(QAbstractItemModel* model): QItemSelectionModel(model) {}; - virtual ~MiqtVirtualQItemSelectionModel() = default; + virtual ~MiqtVirtualQItemSelectionModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetCurrentIndex = 0; @@ -925,12 +921,8 @@ void QItemSelectionModel_virtualbase_DisconnectNotify(void* self, QMetaMethod* s ( (MiqtVirtualQItemSelectionModel*)(self) )->virtualbase_DisconnectNotify(signal); } -void QItemSelectionModel_Delete(QItemSelectionModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemSelectionModel_Delete(QItemSelectionModel* self) { + delete self; } QItemSelection* QItemSelection_new() { @@ -974,11 +966,7 @@ void QItemSelection_OperatorAssign(QItemSelection* self, QItemSelection* param1) self->operator=(*param1); } -void QItemSelection_Delete(QItemSelection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemSelection_Delete(QItemSelection* self) { + delete self; } diff --git a/qt/gen_qitemselectionmodel.go b/qt/gen_qitemselectionmodel.go index 8b157c32..183ccec5 100644 --- a/qt/gen_qitemselectionmodel.go +++ b/qt/gen_qitemselectionmodel.go @@ -197,7 +197,7 @@ func (this *QItemSelectionRange) Indexes() []QModelIndex { // Delete this object from C++ memory. func (this *QItemSelectionRange) Delete() { - C.QItemSelectionRange_Delete(this.h, C.bool(this.isSubclass)) + C.QItemSelectionRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -945,7 +945,7 @@ func miqt_exec_callback_QItemSelectionModel_DisconnectNotify(self *C.QItemSelect // Delete this object from C++ memory. func (this *QItemSelectionModel) Delete() { - C.QItemSelectionModel_Delete(this.h, C.bool(this.isSubclass)) + C.QItemSelectionModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1042,7 +1042,7 @@ func (this *QItemSelection) OperatorAssign(param1 *QItemSelection) { // Delete this object from C++ memory. func (this *QItemSelection) Delete() { - C.QItemSelection_Delete(this.h, C.bool(this.isSubclass)) + C.QItemSelection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qitemselectionmodel.h b/qt/gen_qitemselectionmodel.h index fe083d91..f1e0c99a 100644 --- a/qt/gen_qitemselectionmodel.h +++ b/qt/gen_qitemselectionmodel.h @@ -68,7 +68,7 @@ bool QItemSelectionRange_OperatorLesser(const QItemSelectionRange* self, QItemSe bool QItemSelectionRange_IsValid(const QItemSelectionRange* self); bool QItemSelectionRange_IsEmpty(const QItemSelectionRange* self); struct miqt_array /* of QModelIndex* */ QItemSelectionRange_Indexes(const QItemSelectionRange* self); -void QItemSelectionRange_Delete(QItemSelectionRange* self, bool isSubclass); +void QItemSelectionRange_Delete(QItemSelectionRange* self); QItemSelectionModel* QItemSelectionModel_new(); QItemSelectionModel* QItemSelectionModel_new2(QAbstractItemModel* model, QObject* parent); @@ -145,7 +145,7 @@ void QItemSelectionModel_override_virtual_ConnectNotify(void* self, intptr_t slo void QItemSelectionModel_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QItemSelectionModel_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QItemSelectionModel_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QItemSelectionModel_Delete(QItemSelectionModel* self, bool isSubclass); +void QItemSelectionModel_Delete(QItemSelectionModel* self); QItemSelection* QItemSelection_new(); QItemSelection* QItemSelection_new2(QModelIndex* topLeft, QModelIndex* bottomRight); @@ -155,7 +155,7 @@ struct miqt_array /* of QModelIndex* */ QItemSelection_Indexes(const QItemSelec void QItemSelection_Merge(QItemSelection* self, QItemSelection* other, int command); void QItemSelection_Split(QItemSelectionRange* rangeVal, QItemSelectionRange* other, QItemSelection* result); void QItemSelection_OperatorAssign(QItemSelection* self, QItemSelection* param1); -void QItemSelection_Delete(QItemSelection* self, bool isSubclass); +void QItemSelection_Delete(QItemSelection* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qjsonarray.cpp b/qt/gen_qjsonarray.cpp index 46db7c0d..bd7f9d07 100644 --- a/qt/gen_qjsonarray.cpp +++ b/qt/gen_qjsonarray.cpp @@ -199,12 +199,8 @@ bool QJsonArray_Empty(const QJsonArray* self) { return self->empty(); } -void QJsonArray_Delete(QJsonArray* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonArray_Delete(QJsonArray* self) { + delete self; } QJsonArray__iterator* QJsonArray__iterator_new() { @@ -323,12 +319,8 @@ int QJsonArray__iterator_OperatorMinusWithQJsonArrayiterator(const QJsonArray__i return self->operator-(*j); } -void QJsonArray__iterator_Delete(QJsonArray__iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonArray__iterator_Delete(QJsonArray__iterator* self) { + delete self; } QJsonArray__const_iterator* QJsonArray__const_iterator_new() { @@ -427,11 +419,7 @@ int QJsonArray__const_iterator_OperatorMinusWithQJsonArrayconstIterator(const QJ return self->operator-(*j); } -void QJsonArray__const_iterator_Delete(QJsonArray__const_iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonArray__const_iterator_Delete(QJsonArray__const_iterator* self) { + delete self; } diff --git a/qt/gen_qjsonarray.go b/qt/gen_qjsonarray.go index 2fb6b2da..f5cf01dd 100644 --- a/qt/gen_qjsonarray.go +++ b/qt/gen_qjsonarray.go @@ -270,7 +270,7 @@ func (this *QJsonArray) Empty() bool { // Delete this object from C++ memory. func (this *QJsonArray) Delete() { - C.QJsonArray_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonArray_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -451,7 +451,7 @@ func (this *QJsonArray__iterator) OperatorMinusWithQJsonArrayiterator(j QJsonArr // Delete this object from C++ memory. func (this *QJsonArray__iterator) Delete() { - C.QJsonArray__iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonArray__iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -616,7 +616,7 @@ func (this *QJsonArray__const_iterator) OperatorMinusWithQJsonArrayconstIterator // Delete this object from C++ memory. func (this *QJsonArray__const_iterator) Delete() { - C.QJsonArray__const_iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonArray__const_iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qjsonarray.h b/qt/gen_qjsonarray.h index ad460964..667e3e2c 100644 --- a/qt/gen_qjsonarray.h +++ b/qt/gen_qjsonarray.h @@ -82,7 +82,7 @@ void QJsonArray_PushFront(QJsonArray* self, QJsonValue* t); void QJsonArray_PopFront(QJsonArray* self); void QJsonArray_PopBack(QJsonArray* self); bool QJsonArray_Empty(const QJsonArray* self); -void QJsonArray_Delete(QJsonArray* self, bool isSubclass); +void QJsonArray_Delete(QJsonArray* self); QJsonArray__iterator* QJsonArray__iterator_new(); QJsonArray__iterator* QJsonArray__iterator_new2(QJsonArray* array, int index); @@ -111,7 +111,7 @@ QJsonArray__iterator* QJsonArray__iterator_OperatorMinusAssign(QJsonArray__itera QJsonArray__iterator* QJsonArray__iterator_OperatorPlus(const QJsonArray__iterator* self, int j); QJsonArray__iterator* QJsonArray__iterator_OperatorMinus(const QJsonArray__iterator* self, int j); int QJsonArray__iterator_OperatorMinusWithQJsonArrayiterator(const QJsonArray__iterator* self, QJsonArray__iterator* j); -void QJsonArray__iterator_Delete(QJsonArray__iterator* self, bool isSubclass); +void QJsonArray__iterator_Delete(QJsonArray__iterator* self); QJsonArray__const_iterator* QJsonArray__const_iterator_new(); QJsonArray__const_iterator* QJsonArray__const_iterator_new2(QJsonArray* array, int index); @@ -135,7 +135,7 @@ QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinusAssign(QJson QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorPlus(const QJsonArray__const_iterator* self, int j); QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinus(const QJsonArray__const_iterator* self, int j); int QJsonArray__const_iterator_OperatorMinusWithQJsonArrayconstIterator(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* j); -void QJsonArray__const_iterator_Delete(QJsonArray__const_iterator* self, bool isSubclass); +void QJsonArray__const_iterator_Delete(QJsonArray__const_iterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qjsondocument.cpp b/qt/gen_qjsondocument.cpp index 77b00bc1..40354027 100644 --- a/qt/gen_qjsondocument.cpp +++ b/qt/gen_qjsondocument.cpp @@ -30,12 +30,8 @@ struct miqt_string QJsonParseError_ErrorString(const QJsonParseError* self) { return _ms; } -void QJsonParseError_Delete(QJsonParseError* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonParseError_Delete(QJsonParseError* self) { + delete self; } QJsonDocument* QJsonDocument_new() { @@ -178,11 +174,7 @@ QJsonDocument* QJsonDocument_FromJson2(struct miqt_string json, QJsonParseError* return new QJsonDocument(QJsonDocument::fromJson(json_QByteArray, error)); } -void QJsonDocument_Delete(QJsonDocument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonDocument_Delete(QJsonDocument* self) { + delete self; } diff --git a/qt/gen_qjsondocument.go b/qt/gen_qjsondocument.go index 7886cd78..e1c6e725 100644 --- a/qt/gen_qjsondocument.go +++ b/qt/gen_qjsondocument.go @@ -89,7 +89,7 @@ func (this *QJsonParseError) ErrorString() string { // Delete this object from C++ memory. func (this *QJsonParseError) Delete() { - C.QJsonParseError_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonParseError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -326,7 +326,7 @@ func QJsonDocument_FromJson2(json []byte, error *QJsonParseError) *QJsonDocument // Delete this object from C++ memory. func (this *QJsonDocument) Delete() { - C.QJsonDocument_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonDocument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qjsondocument.h b/qt/gen_qjsondocument.h index 41ba09bb..bf70d7e5 100644 --- a/qt/gen_qjsondocument.h +++ b/qt/gen_qjsondocument.h @@ -31,7 +31,7 @@ typedef struct QVariant QVariant; #endif struct miqt_string QJsonParseError_ErrorString(const QJsonParseError* self); -void QJsonParseError_Delete(QJsonParseError* self, bool isSubclass); +void QJsonParseError_Delete(QJsonParseError* self); QJsonDocument* QJsonDocument_new(); QJsonDocument* QJsonDocument_new2(QJsonObject* object); @@ -63,7 +63,7 @@ bool QJsonDocument_IsNull(const QJsonDocument* self); QJsonDocument* QJsonDocument_FromRawData3(const char* data, int size, int validation); QJsonDocument* QJsonDocument_FromBinaryData2(struct miqt_string data, int validation); QJsonDocument* QJsonDocument_FromJson2(struct miqt_string json, QJsonParseError* error); -void QJsonDocument_Delete(QJsonDocument* self, bool isSubclass); +void QJsonDocument_Delete(QJsonDocument* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qjsonobject.cpp b/qt/gen_qjsonobject.cpp index e4c02161..3bdaa6e0 100644 --- a/qt/gen_qjsonobject.cpp +++ b/qt/gen_qjsonobject.cpp @@ -237,12 +237,8 @@ bool QJsonObject_Empty(const QJsonObject* self) { return self->empty(); } -void QJsonObject_Delete(QJsonObject* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonObject_Delete(QJsonObject* self) { + delete self; } QJsonObject__iterator* QJsonObject__iterator_new() { @@ -376,12 +372,8 @@ bool QJsonObject__iterator_OperatorGreaterOrEqualWithOther(const QJsonObject__it return (*self >= *other); } -void QJsonObject__iterator_Delete(QJsonObject__iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonObject__iterator_Delete(QJsonObject__iterator* self) { + delete self; } QJsonObject__const_iterator* QJsonObject__const_iterator_new() { @@ -519,11 +511,7 @@ bool QJsonObject__const_iterator_OperatorGreaterOrEqualWithOther(const QJsonObje return (*self >= *other); } -void QJsonObject__const_iterator_Delete(QJsonObject__const_iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonObject__const_iterator_Delete(QJsonObject__const_iterator* self) { + delete self; } diff --git a/qt/gen_qjsonobject.go b/qt/gen_qjsonobject.go index a5b75428..9da64649 100644 --- a/qt/gen_qjsonobject.go +++ b/qt/gen_qjsonobject.go @@ -339,7 +339,7 @@ func (this *QJsonObject) Empty() bool { // Delete this object from C++ memory. func (this *QJsonObject) Delete() { - C.QJsonObject_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonObject_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -533,7 +533,7 @@ func (this *QJsonObject__iterator) OperatorGreaterOrEqualWithOther(other *QJsonO // Delete this object from C++ memory. func (this *QJsonObject__iterator) Delete() { - C.QJsonObject__iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonObject__iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -735,7 +735,7 @@ func (this *QJsonObject__const_iterator) OperatorGreaterOrEqualWithOther(other * // Delete this object from C++ memory. func (this *QJsonObject__const_iterator) Delete() { - C.QJsonObject__const_iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonObject__const_iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qjsonobject.h b/qt/gen_qjsonobject.h index d505dd7e..6b903a38 100644 --- a/qt/gen_qjsonobject.h +++ b/qt/gen_qjsonobject.h @@ -75,7 +75,7 @@ QJsonObject__const_iterator* QJsonObject_FindWithKey(const QJsonObject* self, st QJsonObject__const_iterator* QJsonObject_ConstFind(const QJsonObject* self, struct miqt_string key); QJsonObject__iterator* QJsonObject_Insert(QJsonObject* self, struct miqt_string key, QJsonValue* value); bool QJsonObject_Empty(const QJsonObject* self); -void QJsonObject_Delete(QJsonObject* self, bool isSubclass); +void QJsonObject_Delete(QJsonObject* self); QJsonObject__iterator* QJsonObject__iterator_new(); QJsonObject__iterator* QJsonObject__iterator_new2(QJsonObject* obj, int index); @@ -106,7 +106,7 @@ bool QJsonObject__iterator_OperatorLesserWithOther(const QJsonObject__iterator* bool QJsonObject__iterator_OperatorLesserOrEqualWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other); bool QJsonObject__iterator_OperatorGreaterWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other); bool QJsonObject__iterator_OperatorGreaterOrEqualWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other); -void QJsonObject__iterator_Delete(QJsonObject__iterator* self, bool isSubclass); +void QJsonObject__iterator_Delete(QJsonObject__iterator* self); QJsonObject__const_iterator* QJsonObject__const_iterator_new(); QJsonObject__const_iterator* QJsonObject__const_iterator_new2(QJsonObject* obj, int index); @@ -138,7 +138,7 @@ bool QJsonObject__const_iterator_OperatorLesserWithOther(const QJsonObject__cons bool QJsonObject__const_iterator_OperatorLesserOrEqualWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other); bool QJsonObject__const_iterator_OperatorGreaterWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other); bool QJsonObject__const_iterator_OperatorGreaterOrEqualWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other); -void QJsonObject__const_iterator_Delete(QJsonObject__const_iterator* self, bool isSubclass); +void QJsonObject__const_iterator_Delete(QJsonObject__const_iterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qjsonvalue.cpp b/qt/gen_qjsonvalue.cpp index 1af51313..fe18122c 100644 --- a/qt/gen_qjsonvalue.cpp +++ b/qt/gen_qjsonvalue.cpp @@ -193,12 +193,8 @@ double QJsonValue_ToDouble1(const QJsonValue* self, double defaultValue) { return self->toDouble(static_cast(defaultValue)); } -void QJsonValue_Delete(QJsonValue* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonValue_Delete(QJsonValue* self) { + delete self; } QJsonValueRef* QJsonValueRef_new(QJsonValueRef* param1) { @@ -325,12 +321,8 @@ bool QJsonValueRef_OperatorNotEqual(const QJsonValueRef* self, QJsonValue* other return (*self != *other); } -void QJsonValueRef_Delete(QJsonValueRef* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonValueRef_Delete(QJsonValueRef* self) { + delete self; } QJsonValuePtr* QJsonValuePtr_new(QJsonValue* val) { @@ -355,12 +347,8 @@ void QJsonValuePtr_OperatorAssign(QJsonValuePtr* self, QJsonValuePtr* param1) { self->operator=(*param1); } -void QJsonValuePtr_Delete(QJsonValuePtr* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonValuePtr_Delete(QJsonValuePtr* self) { + delete self; } QJsonValueRefPtr* QJsonValueRefPtr_new(QJsonArray* array, int idx) { @@ -389,11 +377,7 @@ void QJsonValueRefPtr_OperatorAssign(QJsonValueRefPtr* self, QJsonValueRefPtr* p self->operator=(*param1); } -void QJsonValueRefPtr_Delete(QJsonValueRefPtr* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonValueRefPtr_Delete(QJsonValueRefPtr* self) { + delete self; } diff --git a/qt/gen_qjsonvalue.go b/qt/gen_qjsonvalue.go index 8705218d..26e14a05 100644 --- a/qt/gen_qjsonvalue.go +++ b/qt/gen_qjsonvalue.go @@ -296,7 +296,7 @@ func (this *QJsonValue) ToDouble1(defaultValue float64) float64 { // Delete this object from C++ memory. func (this *QJsonValue) Delete() { - C.QJsonValue_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonValue_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -481,7 +481,7 @@ func (this *QJsonValueRef) OperatorNotEqual(other *QJsonValue) bool { // Delete this object from C++ memory. func (this *QJsonValueRef) Delete() { - C.QJsonValueRef_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonValueRef_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -556,7 +556,7 @@ func (this *QJsonValuePtr) OperatorAssign(param1 *QJsonValuePtr) { // Delete this object from C++ memory. func (this *QJsonValuePtr) Delete() { - C.QJsonValuePtr_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonValuePtr_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -639,7 +639,7 @@ func (this *QJsonValueRefPtr) OperatorAssign(param1 *QJsonValueRefPtr) { // Delete this object from C++ memory. func (this *QJsonValueRefPtr) Delete() { - C.QJsonValueRefPtr_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonValueRefPtr_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qjsonvalue.h b/qt/gen_qjsonvalue.h index 945128e6..7d0767b4 100644 --- a/qt/gen_qjsonvalue.h +++ b/qt/gen_qjsonvalue.h @@ -71,7 +71,7 @@ bool QJsonValue_OperatorNotEqual(const QJsonValue* self, QJsonValue* other); bool QJsonValue_ToBool1(const QJsonValue* self, bool defaultValue); int QJsonValue_ToInt1(const QJsonValue* self, int defaultValue); double QJsonValue_ToDouble1(const QJsonValue* self, double defaultValue); -void QJsonValue_Delete(QJsonValue* self, bool isSubclass); +void QJsonValue_Delete(QJsonValue* self); QJsonValueRef* QJsonValueRef_new(QJsonValueRef* param1); QJsonValueRef* QJsonValueRef_new2(QJsonArray* array, int idx); @@ -100,14 +100,14 @@ double QJsonValueRef_ToDoubleWithDefaultValue(const QJsonValueRef* self, double struct miqt_string QJsonValueRef_ToStringWithDefaultValue(const QJsonValueRef* self, struct miqt_string defaultValue); bool QJsonValueRef_OperatorEqual(const QJsonValueRef* self, QJsonValue* other); bool QJsonValueRef_OperatorNotEqual(const QJsonValueRef* self, QJsonValue* other); -void QJsonValueRef_Delete(QJsonValueRef* self, bool isSubclass); +void QJsonValueRef_Delete(QJsonValueRef* self); QJsonValuePtr* QJsonValuePtr_new(QJsonValue* val); QJsonValuePtr* QJsonValuePtr_new2(QJsonValuePtr* param1); QJsonValue* QJsonValuePtr_OperatorMultiply(QJsonValuePtr* self); QJsonValue* QJsonValuePtr_OperatorMinusGreater(QJsonValuePtr* self); void QJsonValuePtr_OperatorAssign(QJsonValuePtr* self, QJsonValuePtr* param1); -void QJsonValuePtr_Delete(QJsonValuePtr* self, bool isSubclass); +void QJsonValuePtr_Delete(QJsonValuePtr* self); QJsonValueRefPtr* QJsonValueRefPtr_new(QJsonArray* array, int idx); QJsonValueRefPtr* QJsonValueRefPtr_new2(QJsonObject* object, int idx); @@ -115,7 +115,7 @@ QJsonValueRefPtr* QJsonValueRefPtr_new3(QJsonValueRefPtr* param1); QJsonValueRef* QJsonValueRefPtr_OperatorMultiply(QJsonValueRefPtr* self); QJsonValueRef* QJsonValueRefPtr_OperatorMinusGreater(QJsonValueRefPtr* self); void QJsonValueRefPtr_OperatorAssign(QJsonValueRefPtr* self, QJsonValueRefPtr* param1); -void QJsonValueRefPtr_Delete(QJsonValueRefPtr* self, bool isSubclass); +void QJsonValueRefPtr_Delete(QJsonValueRefPtr* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qkeyeventtransition.cpp b/qt/gen_qkeyeventtransition.cpp index cfce3dc9..461625e1 100644 --- a/qt/gen_qkeyeventtransition.cpp +++ b/qt/gen_qkeyeventtransition.cpp @@ -22,7 +22,7 @@ bool miqt_exec_callback_QKeyEventTransition_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQKeyEventTransition : public virtual QKeyEventTransition { +class MiqtVirtualQKeyEventTransition final : public QKeyEventTransition { public: MiqtVirtualQKeyEventTransition(): QKeyEventTransition() {}; @@ -30,7 +30,7 @@ public: MiqtVirtualQKeyEventTransition(QState* sourceState): QKeyEventTransition(sourceState) {}; MiqtVirtualQKeyEventTransition(QObject* object, QEvent::Type typeVal, int key, QState* sourceState): QKeyEventTransition(object, typeVal, key, sourceState) {}; - virtual ~MiqtVirtualQKeyEventTransition() = default; + virtual ~MiqtVirtualQKeyEventTransition() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__OnTransition = 0; @@ -239,11 +239,7 @@ bool QKeyEventTransition_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQKeyEventTransition*)(self) )->virtualbase_Event(e); } -void QKeyEventTransition_Delete(QKeyEventTransition* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QKeyEventTransition_Delete(QKeyEventTransition* self) { + delete self; } diff --git a/qt/gen_qkeyeventtransition.go b/qt/gen_qkeyeventtransition.go index 54cbd1b9..871b543e 100644 --- a/qt/gen_qkeyeventtransition.go +++ b/qt/gen_qkeyeventtransition.go @@ -255,7 +255,7 @@ func miqt_exec_callback_QKeyEventTransition_Event(self *C.QKeyEventTransition, c // Delete this object from C++ memory. func (this *QKeyEventTransition) Delete() { - C.QKeyEventTransition_Delete(this.h, C.bool(this.isSubclass)) + C.QKeyEventTransition_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qkeyeventtransition.h b/qt/gen_qkeyeventtransition.h index 076a7e46..4571bc37 100644 --- a/qt/gen_qkeyeventtransition.h +++ b/qt/gen_qkeyeventtransition.h @@ -57,7 +57,7 @@ void QKeyEventTransition_override_virtual_EventTest(void* self, intptr_t slot); bool QKeyEventTransition_virtualbase_EventTest(void* self, QEvent* event); void QKeyEventTransition_override_virtual_Event(void* self, intptr_t slot); bool QKeyEventTransition_virtualbase_Event(void* self, QEvent* e); -void QKeyEventTransition_Delete(QKeyEventTransition* self, bool isSubclass); +void QKeyEventTransition_Delete(QKeyEventTransition* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qkeysequence.cpp b/qt/gen_qkeysequence.cpp index d528924b..011478d9 100644 --- a/qt/gen_qkeysequence.cpp +++ b/qt/gen_qkeysequence.cpp @@ -222,11 +222,7 @@ struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequen return _ms; } -void QKeySequence_Delete(QKeySequence* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QKeySequence_Delete(QKeySequence* self) { + delete self; } diff --git a/qt/gen_qkeysequence.go b/qt/gen_qkeysequence.go index e9404e66..18fcd981 100644 --- a/qt/gen_qkeysequence.go +++ b/qt/gen_qkeysequence.go @@ -391,7 +391,7 @@ func QKeySequence_ListToString2(list []QKeySequence, format QKeySequence__Sequen // Delete this object from C++ memory. func (this *QKeySequence) Delete() { - C.QKeySequence_Delete(this.h, C.bool(this.isSubclass)) + C.QKeySequence_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qkeysequence.h b/qt/gen_qkeysequence.h index 4d5a84d3..0081e947 100644 --- a/qt/gen_qkeysequence.h +++ b/qt/gen_qkeysequence.h @@ -55,7 +55,7 @@ struct miqt_string QKeySequence_ToString1(const QKeySequence* self, int format); QKeySequence* QKeySequence_FromString2(struct miqt_string str, int format); struct miqt_array /* of QKeySequence* */ QKeySequence_ListFromString2(struct miqt_string str, int format); struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequence* */ list, int format); -void QKeySequence_Delete(QKeySequence* self, bool isSubclass); +void QKeySequence_Delete(QKeySequence* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qkeysequenceedit.cpp b/qt/gen_qkeysequenceedit.cpp index 5fec7db0..07d60d9a 100644 --- a/qt/gen_qkeysequenceedit.cpp +++ b/qt/gen_qkeysequenceedit.cpp @@ -88,7 +88,7 @@ bool miqt_exec_callback_QKeySequenceEdit_FocusNextPrevChild(void*, intptr_t, boo } /* extern C */ #endif -class MiqtVirtualQKeySequenceEdit : public virtual QKeySequenceEdit { +class MiqtVirtualQKeySequenceEdit final : public QKeySequenceEdit { public: MiqtVirtualQKeySequenceEdit(QWidget* parent): QKeySequenceEdit(parent) {}; @@ -96,7 +96,7 @@ public: MiqtVirtualQKeySequenceEdit(const QKeySequence& keySequence): QKeySequenceEdit(keySequence) {}; MiqtVirtualQKeySequenceEdit(const QKeySequence& keySequence, QWidget* parent): QKeySequenceEdit(keySequence, parent) {}; - virtual ~MiqtVirtualQKeySequenceEdit() = default; + virtual ~MiqtVirtualQKeySequenceEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1564,11 +1564,7 @@ bool QKeySequenceEdit_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQKeySequenceEdit*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QKeySequenceEdit_Delete(QKeySequenceEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QKeySequenceEdit_Delete(QKeySequenceEdit* self) { + delete self; } diff --git a/qt/gen_qkeysequenceedit.go b/qt/gen_qkeysequenceedit.go index 22b55e4f..c241dd9b 100644 --- a/qt/gen_qkeysequenceedit.go +++ b/qt/gen_qkeysequenceedit.go @@ -1323,7 +1323,7 @@ func miqt_exec_callback_QKeySequenceEdit_FocusNextPrevChild(self *C.QKeySequence // Delete this object from C++ memory. func (this *QKeySequenceEdit) Delete() { - C.QKeySequenceEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QKeySequenceEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qkeysequenceedit.h b/qt/gen_qkeysequenceedit.h index cb468b83..f5c7599f 100644 --- a/qt/gen_qkeysequenceedit.h +++ b/qt/gen_qkeysequenceedit.h @@ -188,7 +188,7 @@ void QKeySequenceEdit_override_virtual_InputMethodQuery(void* self, intptr_t slo QVariant* QKeySequenceEdit_virtualbase_InputMethodQuery(const void* self, int param1); void QKeySequenceEdit_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QKeySequenceEdit_virtualbase_FocusNextPrevChild(void* self, bool next); -void QKeySequenceEdit_Delete(QKeySequenceEdit* self, bool isSubclass); +void QKeySequenceEdit_Delete(QKeySequenceEdit* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlabel.cpp b/qt/gen_qlabel.cpp index 9c20ed38..7ac6fe82 100644 --- a/qt/gen_qlabel.cpp +++ b/qt/gen_qlabel.cpp @@ -44,7 +44,7 @@ bool miqt_exec_callback_QLabel_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQLabel : public virtual QLabel { +class MiqtVirtualQLabel final : public QLabel { public: MiqtVirtualQLabel(QWidget* parent): QLabel(parent) {}; @@ -54,7 +54,7 @@ public: MiqtVirtualQLabel(const QString& text, QWidget* parent): QLabel(text, parent) {}; MiqtVirtualQLabel(const QString& text, QWidget* parent, Qt::WindowFlags f): QLabel(text, parent, f) {}; - virtual ~MiqtVirtualQLabel() = default; + virtual ~MiqtVirtualQLabel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -812,11 +812,7 @@ bool QLabel_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQLabel*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QLabel_Delete(QLabel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLabel_Delete(QLabel* self) { + delete self; } diff --git a/qt/gen_qlabel.go b/qt/gen_qlabel.go index e7b4c739..20bde9ef 100644 --- a/qt/gen_qlabel.go +++ b/qt/gen_qlabel.go @@ -781,7 +781,7 @@ func miqt_exec_callback_QLabel_FocusNextPrevChild(self *C.QLabel, cb C.intptr_t, // Delete this object from C++ memory. func (this *QLabel) Delete() { - C.QLabel_Delete(this.h, C.bool(this.isSubclass)) + C.QLabel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlabel.h b/qt/gen_qlabel.h index f277d39e..249c61a9 100644 --- a/qt/gen_qlabel.h +++ b/qt/gen_qlabel.h @@ -146,7 +146,7 @@ void QLabel_override_virtual_FocusOutEvent(void* self, intptr_t slot); void QLabel_virtualbase_FocusOutEvent(void* self, QFocusEvent* ev); void QLabel_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QLabel_virtualbase_FocusNextPrevChild(void* self, bool next); -void QLabel_Delete(QLabel* self, bool isSubclass); +void QLabel_Delete(QLabel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlayout.cpp b/qt/gen_qlayout.cpp index a8c90336..7554f18e 100644 --- a/qt/gen_qlayout.cpp +++ b/qt/gen_qlayout.cpp @@ -52,13 +52,13 @@ QSpacerItem* miqt_exec_callback_QLayout_SpacerItem(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQLayout : public virtual QLayout { +class MiqtVirtualQLayout final : public QLayout { public: MiqtVirtualQLayout(QWidget* parent): QLayout(parent) {}; MiqtVirtualQLayout(): QLayout() {}; - virtual ~MiqtVirtualQLayout() = default; + virtual ~MiqtVirtualQLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Invalidate = 0; @@ -1117,11 +1117,7 @@ QSpacerItem* QLayout_virtualbase_SpacerItem(void* self) { return ( (MiqtVirtualQLayout*)(self) )->virtualbase_SpacerItem(); } -void QLayout_Delete(QLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLayout_Delete(QLayout* self) { + delete self; } diff --git a/qt/gen_qlayout.go b/qt/gen_qlayout.go index 4804a6d6..3b93a4c3 100644 --- a/qt/gen_qlayout.go +++ b/qt/gen_qlayout.go @@ -1032,7 +1032,7 @@ func miqt_exec_callback_QLayout_SpacerItem(self *C.QLayout, cb C.intptr_t) *C.QS // Delete this object from C++ memory. func (this *QLayout) Delete() { - C.QLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlayout.h b/qt/gen_qlayout.h index 0f809238..63d4c075 100644 --- a/qt/gen_qlayout.h +++ b/qt/gen_qlayout.h @@ -155,7 +155,7 @@ void QLayout_override_virtual_Widget(void* self, intptr_t slot); QWidget* QLayout_virtualbase_Widget(void* self); void QLayout_override_virtual_SpacerItem(void* self, intptr_t slot); QSpacerItem* QLayout_virtualbase_SpacerItem(void* self); -void QLayout_Delete(QLayout* self, bool isSubclass); +void QLayout_Delete(QLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlayoutitem.cpp b/qt/gen_qlayoutitem.cpp index c98a1190..f70980e0 100644 --- a/qt/gen_qlayoutitem.cpp +++ b/qt/gen_qlayoutitem.cpp @@ -74,14 +74,14 @@ int miqt_exec_callback_QWidgetItemV2_ControlTypes(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQLayoutItem : public virtual QLayoutItem { +class MiqtVirtualQLayoutItem final : public QLayoutItem { public: MiqtVirtualQLayoutItem(): QLayoutItem() {}; MiqtVirtualQLayoutItem(const QLayoutItem& param1): QLayoutItem(param1) {}; MiqtVirtualQLayoutItem(Qt::Alignment alignment): QLayoutItem(alignment) {}; - virtual ~MiqtVirtualQLayoutItem() = default; + virtual ~MiqtVirtualQLayoutItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -548,15 +548,11 @@ int QLayoutItem_virtualbase_ControlTypes(const void* self) { return ( (const MiqtVirtualQLayoutItem*)(self) )->virtualbase_ControlTypes(); } -void QLayoutItem_Delete(QLayoutItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLayoutItem_Delete(QLayoutItem* self) { + delete self; } -class MiqtVirtualQSpacerItem : public virtual QSpacerItem { +class MiqtVirtualQSpacerItem final : public QSpacerItem { public: MiqtVirtualQSpacerItem(int w, int h): QSpacerItem(w, h) {}; @@ -564,7 +560,7 @@ public: MiqtVirtualQSpacerItem(int w, int h, QSizePolicy::Policy hData): QSpacerItem(w, h, hData) {}; MiqtVirtualQSpacerItem(int w, int h, QSizePolicy::Policy hData, QSizePolicy::Policy vData): QSpacerItem(w, h, hData, vData) {}; - virtual ~MiqtVirtualQSpacerItem() = default; + virtual ~MiqtVirtualQSpacerItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1096,20 +1092,16 @@ int QSpacerItem_virtualbase_ControlTypes(const void* self) { return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_ControlTypes(); } -void QSpacerItem_Delete(QSpacerItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSpacerItem_Delete(QSpacerItem* self) { + delete self; } -class MiqtVirtualQWidgetItem : public virtual QWidgetItem { +class MiqtVirtualQWidgetItem final : public QWidgetItem { public: MiqtVirtualQWidgetItem(QWidget* w): QWidgetItem(w) {}; - virtual ~MiqtVirtualQWidgetItem() = default; + virtual ~MiqtVirtualQWidgetItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1626,20 +1618,16 @@ QSpacerItem* QWidgetItem_virtualbase_SpacerItem(void* self) { return ( (MiqtVirtualQWidgetItem*)(self) )->virtualbase_SpacerItem(); } -void QWidgetItem_Delete(QWidgetItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWidgetItem_Delete(QWidgetItem* self) { + delete self; } -class MiqtVirtualQWidgetItemV2 : public virtual QWidgetItemV2 { +class MiqtVirtualQWidgetItemV2 final : public QWidgetItemV2 { public: MiqtVirtualQWidgetItemV2(QWidget* widget): QWidgetItemV2(widget) {}; - virtual ~MiqtVirtualQWidgetItemV2() = default; + virtual ~MiqtVirtualQWidgetItemV2() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -2004,11 +1992,7 @@ int QWidgetItemV2_virtualbase_ControlTypes(const void* self) { return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_ControlTypes(); } -void QWidgetItemV2_Delete(QWidgetItemV2* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWidgetItemV2_Delete(QWidgetItemV2* self) { + delete self; } diff --git a/qt/gen_qlayoutitem.go b/qt/gen_qlayoutitem.go index 466e9186..22793ba3 100644 --- a/qt/gen_qlayoutitem.go +++ b/qt/gen_qlayoutitem.go @@ -487,7 +487,7 @@ func miqt_exec_callback_QLayoutItem_ControlTypes(self *C.QLayoutItem, cb C.intpt // Delete this object from C++ memory. func (this *QLayoutItem) Delete() { - C.QLayoutItem_Delete(this.h, C.bool(this.isSubclass)) + C.QLayoutItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1016,7 +1016,7 @@ func miqt_exec_callback_QSpacerItem_ControlTypes(self *C.QSpacerItem, cb C.intpt // Delete this object from C++ memory. func (this *QSpacerItem) Delete() { - C.QSpacerItem_Delete(this.h, C.bool(this.isSubclass)) + C.QSpacerItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1515,7 +1515,7 @@ func miqt_exec_callback_QWidgetItem_SpacerItem(self *C.QWidgetItem, cb C.intptr_ // Delete this object from C++ memory. func (this *QWidgetItem) Delete() { - C.QWidgetItem_Delete(this.h, C.bool(this.isSubclass)) + C.QWidgetItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1883,7 +1883,7 @@ func miqt_exec_callback_QWidgetItemV2_ControlTypes(self *C.QWidgetItemV2, cb C.i // Delete this object from C++ memory. func (this *QWidgetItemV2) Delete() { - C.QWidgetItemV2_Delete(this.h, C.bool(this.isSubclass)) + C.QWidgetItemV2_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlayoutitem.h b/qt/gen_qlayoutitem.h index 729f475e..bb5a31cc 100644 --- a/qt/gen_qlayoutitem.h +++ b/qt/gen_qlayoutitem.h @@ -86,7 +86,7 @@ void QLayoutItem_override_virtual_SpacerItem(void* self, intptr_t slot); QSpacerItem* QLayoutItem_virtualbase_SpacerItem(void* self); void QLayoutItem_override_virtual_ControlTypes(void* self, intptr_t slot); int QLayoutItem_virtualbase_ControlTypes(const void* self); -void QLayoutItem_Delete(QLayoutItem* self, bool isSubclass); +void QLayoutItem_Delete(QLayoutItem* self); QSpacerItem* QSpacerItem_new(int w, int h); QSpacerItem* QSpacerItem_new2(QSpacerItem* param1); @@ -135,7 +135,7 @@ void QSpacerItem_override_virtual_Layout(void* self, intptr_t slot); QLayout* QSpacerItem_virtualbase_Layout(void* self); void QSpacerItem_override_virtual_ControlTypes(void* self, intptr_t slot); int QSpacerItem_virtualbase_ControlTypes(const void* self); -void QSpacerItem_Delete(QSpacerItem* self, bool isSubclass); +void QSpacerItem_Delete(QSpacerItem* self); QWidgetItem* QWidgetItem_new(QWidget* w); void QWidgetItem_virtbase(QWidgetItem* src, QLayoutItem** outptr_QLayoutItem); @@ -180,7 +180,7 @@ void QWidgetItem_override_virtual_Layout(void* self, intptr_t slot); QLayout* QWidgetItem_virtualbase_Layout(void* self); void QWidgetItem_override_virtual_SpacerItem(void* self, intptr_t slot); QSpacerItem* QWidgetItem_virtualbase_SpacerItem(void* self); -void QWidgetItem_Delete(QWidgetItem* self, bool isSubclass); +void QWidgetItem_Delete(QWidgetItem* self); QWidgetItemV2* QWidgetItemV2_new(QWidget* widget); void QWidgetItemV2_virtbase(QWidgetItemV2* src, QWidgetItem** outptr_QWidgetItem); @@ -210,7 +210,7 @@ void QWidgetItemV2_override_virtual_HasHeightForWidth(void* self, intptr_t slot) bool QWidgetItemV2_virtualbase_HasHeightForWidth(const void* self); void QWidgetItemV2_override_virtual_ControlTypes(void* self, intptr_t slot); int QWidgetItemV2_virtualbase_ControlTypes(const void* self); -void QWidgetItemV2_Delete(QWidgetItemV2* self, bool isSubclass); +void QWidgetItemV2_Delete(QWidgetItemV2* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlcdnumber.cpp b/qt/gen_qlcdnumber.cpp index 1aecbf0f..a895206b 100644 --- a/qt/gen_qlcdnumber.cpp +++ b/qt/gen_qlcdnumber.cpp @@ -26,7 +26,7 @@ void miqt_exec_callback_QLCDNumber_ChangeEvent(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQLCDNumber : public virtual QLCDNumber { +class MiqtVirtualQLCDNumber final : public QLCDNumber { public: MiqtVirtualQLCDNumber(QWidget* parent): QLCDNumber(parent) {}; @@ -34,7 +34,7 @@ public: MiqtVirtualQLCDNumber(uint numDigits): QLCDNumber(numDigits) {}; MiqtVirtualQLCDNumber(uint numDigits, QWidget* parent): QLCDNumber(numDigits, parent) {}; - virtual ~MiqtVirtualQLCDNumber() = default; + virtual ~MiqtVirtualQLCDNumber() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -350,11 +350,7 @@ void QLCDNumber_virtualbase_ChangeEvent(void* self, QEvent* param1) { ( (MiqtVirtualQLCDNumber*)(self) )->virtualbase_ChangeEvent(param1); } -void QLCDNumber_Delete(QLCDNumber* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLCDNumber_Delete(QLCDNumber* self) { + delete self; } diff --git a/qt/gen_qlcdnumber.go b/qt/gen_qlcdnumber.go index 7ff7aa78..980cfb1c 100644 --- a/qt/gen_qlcdnumber.go +++ b/qt/gen_qlcdnumber.go @@ -384,7 +384,7 @@ func miqt_exec_callback_QLCDNumber_ChangeEvent(self *C.QLCDNumber, cb C.intptr_t // Delete this object from C++ memory. func (this *QLCDNumber) Delete() { - C.QLCDNumber_Delete(this.h, C.bool(this.isSubclass)) + C.QLCDNumber_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlcdnumber.h b/qt/gen_qlcdnumber.h index 855af8a3..bfe45eea 100644 --- a/qt/gen_qlcdnumber.h +++ b/qt/gen_qlcdnumber.h @@ -81,7 +81,7 @@ void QLCDNumber_override_virtual_PaintEvent(void* self, intptr_t slot); void QLCDNumber_virtualbase_PaintEvent(void* self, QPaintEvent* param1); void QLCDNumber_override_virtual_ChangeEvent(void* self, intptr_t slot); void QLCDNumber_virtualbase_ChangeEvent(void* self, QEvent* param1); -void QLCDNumber_Delete(QLCDNumber* self, bool isSubclass); +void QLCDNumber_Delete(QLCDNumber* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlibrary.cpp b/qt/gen_qlibrary.cpp index 7a33870d..09baf725 100644 --- a/qt/gen_qlibrary.cpp +++ b/qt/gen_qlibrary.cpp @@ -26,7 +26,7 @@ void miqt_exec_callback_QLibrary_DisconnectNotify(void*, intptr_t, QMetaMethod*) } /* extern C */ #endif -class MiqtVirtualQLibrary : public virtual QLibrary { +class MiqtVirtualQLibrary final : public QLibrary { public: MiqtVirtualQLibrary(): QLibrary() {}; @@ -38,7 +38,7 @@ public: MiqtVirtualQLibrary(const QString& fileName, int verNum, QObject* parent): QLibrary(fileName, verNum, parent) {}; MiqtVirtualQLibrary(const QString& fileName, const QString& version, QObject* parent): QLibrary(fileName, version, parent) {}; - virtual ~MiqtVirtualQLibrary() = default; + virtual ~MiqtVirtualQLibrary() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -451,11 +451,7 @@ void QLibrary_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQLibrary*)(self) )->virtualbase_DisconnectNotify(signal); } -void QLibrary_Delete(QLibrary* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLibrary_Delete(QLibrary* self) { + delete self; } diff --git a/qt/gen_qlibrary.go b/qt/gen_qlibrary.go index f30de40c..607e6ec2 100644 --- a/qt/gen_qlibrary.go +++ b/qt/gen_qlibrary.go @@ -489,7 +489,7 @@ func miqt_exec_callback_QLibrary_DisconnectNotify(self *C.QLibrary, cb C.intptr_ // Delete this object from C++ memory. func (this *QLibrary) Delete() { - C.QLibrary_Delete(this.h, C.bool(this.isSubclass)) + C.QLibrary_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlibrary.h b/qt/gen_qlibrary.h index a8b1349c..7b4d4dbe 100644 --- a/qt/gen_qlibrary.h +++ b/qt/gen_qlibrary.h @@ -74,7 +74,7 @@ void QLibrary_override_virtual_ConnectNotify(void* self, intptr_t slot); void QLibrary_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QLibrary_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QLibrary_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QLibrary_Delete(QLibrary* self, bool isSubclass); +void QLibrary_Delete(QLibrary* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlibraryinfo.cpp b/qt/gen_qlibraryinfo.cpp index f44813b6..4f5e253b 100644 --- a/qt/gen_qlibraryinfo.cpp +++ b/qt/gen_qlibraryinfo.cpp @@ -86,11 +86,7 @@ struct miqt_array /* of struct miqt_string */ QLibraryInfo_PlatformPluginArgume return _out; } -void QLibraryInfo_Delete(QLibraryInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLibraryInfo_Delete(QLibraryInfo* self) { + delete self; } diff --git a/qt/gen_qlibraryinfo.go b/qt/gen_qlibraryinfo.go index 78147a57..3b9b0507 100644 --- a/qt/gen_qlibraryinfo.go +++ b/qt/gen_qlibraryinfo.go @@ -127,7 +127,7 @@ func QLibraryInfo_PlatformPluginArguments(platformName string) []string { // Delete this object from C++ memory. func (this *QLibraryInfo) Delete() { - C.QLibraryInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QLibraryInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlibraryinfo.h b/qt/gen_qlibraryinfo.h index 2b0e3fa5..27fde647 100644 --- a/qt/gen_qlibraryinfo.h +++ b/qt/gen_qlibraryinfo.h @@ -32,7 +32,7 @@ bool QLibraryInfo_IsDebugBuild(); QVersionNumber* QLibraryInfo_Version(); struct miqt_string QLibraryInfo_Location(int param1); struct miqt_array /* of struct miqt_string */ QLibraryInfo_PlatformPluginArguments(struct miqt_string platformName); -void QLibraryInfo_Delete(QLibraryInfo* self, bool isSubclass); +void QLibraryInfo_Delete(QLibraryInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qline.cpp b/qt/gen_qline.cpp index f2cf6390..2ea90c50 100644 --- a/qt/gen_qline.cpp +++ b/qt/gen_qline.cpp @@ -109,12 +109,8 @@ bool QLine_OperatorNotEqual(const QLine* self, QLine* d) { return (*self != *d); } -void QLine_Delete(QLine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLine_Delete(QLine* self) { + delete self; } QLineF* QLineF_new() { @@ -281,11 +277,7 @@ QLine* QLineF_ToLine(const QLineF* self) { return new QLine(self->toLine()); } -void QLineF_Delete(QLineF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLineF_Delete(QLineF* self) { + delete self; } diff --git a/qt/gen_qline.go b/qt/gen_qline.go index 7a87f9c4..09d6a9ee 100644 --- a/qt/gen_qline.go +++ b/qt/gen_qline.go @@ -178,7 +178,7 @@ func (this *QLine) OperatorNotEqual(d *QLine) bool { // Delete this object from C++ memory. func (this *QLine) Delete() { - C.QLine_Delete(this.h, C.bool(this.isSubclass)) + C.QLine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -417,7 +417,7 @@ func (this *QLineF) ToLine() *QLine { // Delete this object from C++ memory. func (this *QLineF) Delete() { - C.QLineF_Delete(this.h, C.bool(this.isSubclass)) + C.QLineF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qline.h b/qt/gen_qline.h index 62361d7e..d13d5233 100644 --- a/qt/gen_qline.h +++ b/qt/gen_qline.h @@ -50,7 +50,7 @@ void QLine_SetPoints(QLine* self, QPoint* p1, QPoint* p2); void QLine_SetLine(QLine* self, int x1, int y1, int x2, int y2); bool QLine_OperatorEqual(const QLine* self, QLine* d); bool QLine_OperatorNotEqual(const QLine* self, QLine* d); -void QLine_Delete(QLine* self, bool isSubclass); +void QLine_Delete(QLine* self); QLineF* QLineF_new(); QLineF* QLineF_new2(QPointF* pt1, QPointF* pt2); @@ -90,7 +90,7 @@ void QLineF_SetLine(QLineF* self, double x1, double y1, double x2, double y2); bool QLineF_OperatorEqual(const QLineF* self, QLineF* d); bool QLineF_OperatorNotEqual(const QLineF* self, QLineF* d); QLine* QLineF_ToLine(const QLineF* self); -void QLineF_Delete(QLineF* self, bool isSubclass); +void QLineF_Delete(QLineF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlineedit.cpp b/qt/gen_qlineedit.cpp index bf04e299..7b2e1b04 100644 --- a/qt/gen_qlineedit.cpp +++ b/qt/gen_qlineedit.cpp @@ -96,7 +96,7 @@ bool miqt_exec_callback_QLineEdit_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQLineEdit : public virtual QLineEdit { +class MiqtVirtualQLineEdit final : public QLineEdit { public: MiqtVirtualQLineEdit(QWidget* parent): QLineEdit(parent) {}; @@ -104,7 +104,7 @@ public: MiqtVirtualQLineEdit(const QString& param1): QLineEdit(param1) {}; MiqtVirtualQLineEdit(const QString& param1, QWidget* parent): QLineEdit(param1, parent) {}; - virtual ~MiqtVirtualQLineEdit() = default; + virtual ~MiqtVirtualQLineEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1927,11 +1927,7 @@ bool QLineEdit_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQLineEdit*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QLineEdit_Delete(QLineEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLineEdit_Delete(QLineEdit* self) { + delete self; } diff --git a/qt/gen_qlineedit.go b/qt/gen_qlineedit.go index b2ae7847..8c464ae0 100644 --- a/qt/gen_qlineedit.go +++ b/qt/gen_qlineedit.go @@ -1743,7 +1743,7 @@ func miqt_exec_callback_QLineEdit_FocusNextPrevChild(self *C.QLineEdit, cb C.int // Delete this object from C++ memory. func (this *QLineEdit) Delete() { - C.QLineEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QLineEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlineedit.h b/qt/gen_qlineedit.h index 224df175..0282b4f8 100644 --- a/qt/gen_qlineedit.h +++ b/qt/gen_qlineedit.h @@ -284,7 +284,7 @@ void QLineEdit_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QLineEdit_virtualbase_SharedPainter(const void* self); void QLineEdit_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QLineEdit_virtualbase_FocusNextPrevChild(void* self, bool next); -void QLineEdit_Delete(QLineEdit* self, bool isSubclass); +void QLineEdit_Delete(QLineEdit* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlinkedlist.cpp b/qt/gen_qlinkedlist.cpp index 87b7f123..99b1159f 100644 --- a/qt/gen_qlinkedlist.cpp +++ b/qt/gen_qlinkedlist.cpp @@ -14,11 +14,7 @@ QLinkedListData* QLinkedListData_new() { return new QLinkedListData(); } -void QLinkedListData_Delete(QLinkedListData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLinkedListData_Delete(QLinkedListData* self) { + delete self; } diff --git a/qt/gen_qlinkedlist.go b/qt/gen_qlinkedlist.go index 8725c1f3..4bb7b4fe 100644 --- a/qt/gen_qlinkedlist.go +++ b/qt/gen_qlinkedlist.go @@ -56,7 +56,7 @@ func NewQLinkedListData() *QLinkedListData { // Delete this object from C++ memory. func (this *QLinkedListData) Delete() { - C.QLinkedListData_Delete(this.h, C.bool(this.isSubclass)) + C.QLinkedListData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlinkedlist.h b/qt/gen_qlinkedlist.h index f76bc869..654f36f1 100644 --- a/qt/gen_qlinkedlist.h +++ b/qt/gen_qlinkedlist.h @@ -21,7 +21,7 @@ typedef struct QLinkedListData QLinkedListData; #endif QLinkedListData* QLinkedListData_new(); -void QLinkedListData_Delete(QLinkedListData* self, bool isSubclass); +void QLinkedListData_Delete(QLinkedListData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlistview.cpp b/qt/gen_qlistview.cpp index 3cb897fb..7eca72d8 100644 --- a/qt/gen_qlistview.cpp +++ b/qt/gen_qlistview.cpp @@ -106,13 +106,13 @@ bool miqt_exec_callback_QListView_EventFilter(void*, intptr_t, QObject*, QEvent* } /* extern C */ #endif -class MiqtVirtualQListView : public virtual QListView { +class MiqtVirtualQListView final : public QListView { public: MiqtVirtualQListView(QWidget* parent): QListView(parent) {}; MiqtVirtualQListView(): QListView() {}; - virtual ~MiqtVirtualQListView() = default; + virtual ~MiqtVirtualQListView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__VisualRect = 0; @@ -2402,11 +2402,7 @@ bool QListView_virtualbase_EventFilter(void* self, QObject* object, QEvent* even return ( (MiqtVirtualQListView*)(self) )->virtualbase_EventFilter(object, event); } -void QListView_Delete(QListView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QListView_Delete(QListView* self) { + delete self; } diff --git a/qt/gen_qlistview.go b/qt/gen_qlistview.go index ccf6764a..25519a72 100644 --- a/qt/gen_qlistview.go +++ b/qt/gen_qlistview.go @@ -2037,7 +2037,7 @@ func miqt_exec_callback_QListView_EventFilter(self *C.QListView, cb C.intptr_t, // Delete this object from C++ memory. func (this *QListView) Delete() { - C.QListView_Delete(this.h, C.bool(this.isSubclass)) + C.QListView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlistview.h b/qt/gen_qlistview.h index 45400cd0..4e223025 100644 --- a/qt/gen_qlistview.h +++ b/qt/gen_qlistview.h @@ -279,7 +279,7 @@ void QListView_override_virtual_InputMethodEvent(void* self, intptr_t slot); void QListView_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event); void QListView_override_virtual_EventFilter(void* self, intptr_t slot); bool QListView_virtualbase_EventFilter(void* self, QObject* object, QEvent* event); -void QListView_Delete(QListView* self, bool isSubclass); +void QListView_Delete(QListView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlistwidget.cpp b/qt/gen_qlistwidget.cpp index 1d988431..f7b26089 100644 --- a/qt/gen_qlistwidget.cpp +++ b/qt/gen_qlistwidget.cpp @@ -102,7 +102,7 @@ QSize* miqt_exec_callback_QListWidget_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQListWidgetItem : public virtual QListWidgetItem { +class MiqtVirtualQListWidgetItem final : public QListWidgetItem { public: MiqtVirtualQListWidgetItem(): QListWidgetItem() {}; @@ -116,7 +116,7 @@ public: MiqtVirtualQListWidgetItem(const QIcon& icon, const QString& text, QListWidget* listview): QListWidgetItem(icon, text, listview) {}; MiqtVirtualQListWidgetItem(const QIcon& icon, const QString& text, QListWidget* listview, int typeVal): QListWidgetItem(icon, text, listview, typeVal) {}; - virtual ~MiqtVirtualQListWidgetItem() = default; + virtual ~MiqtVirtualQListWidgetItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -595,21 +595,17 @@ void QListWidgetItem_virtualbase_Write(const void* self, QDataStream* out) { ( (const MiqtVirtualQListWidgetItem*)(self) )->virtualbase_Write(out); } -void QListWidgetItem_Delete(QListWidgetItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QListWidgetItem_Delete(QListWidgetItem* self) { + delete self; } -class MiqtVirtualQListWidget : public virtual QListWidget { +class MiqtVirtualQListWidget final : public QListWidget { public: MiqtVirtualQListWidget(QWidget* parent): QListWidget(parent) {}; MiqtVirtualQListWidget(): QListWidget() {}; - virtual ~MiqtVirtualQListWidget() = default; + virtual ~MiqtVirtualQListWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetSelectionModel = 0; @@ -2326,11 +2322,7 @@ QSize* QListWidget_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQListWidget*)(self) )->virtualbase_ViewportSizeHint(); } -void QListWidget_Delete(QListWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QListWidget_Delete(QListWidget* self) { + delete self; } diff --git a/qt/gen_qlistwidget.go b/qt/gen_qlistwidget.go index 70d71686..dd7da8b3 100644 --- a/qt/gen_qlistwidget.go +++ b/qt/gen_qlistwidget.go @@ -557,7 +557,7 @@ func miqt_exec_callback_QListWidgetItem_Write(self *C.QListWidgetItem, cb C.intp // Delete this object from C++ memory. func (this *QListWidgetItem) Delete() { - C.QListWidgetItem_Delete(this.h, C.bool(this.isSubclass)) + C.QListWidgetItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2197,7 +2197,7 @@ func miqt_exec_callback_QListWidget_ViewportSizeHint(self *C.QListWidget, cb C.i // Delete this object from C++ memory. func (this *QListWidget) Delete() { - C.QListWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QListWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlistwidget.h b/qt/gen_qlistwidget.h index ba42c424..819c5b7a 100644 --- a/qt/gen_qlistwidget.h +++ b/qt/gen_qlistwidget.h @@ -151,7 +151,7 @@ void QListWidgetItem_override_virtual_Read(void* self, intptr_t slot); void QListWidgetItem_virtualbase_Read(void* self, QDataStream* in); void QListWidgetItem_override_virtual_Write(void* self, intptr_t slot); void QListWidgetItem_virtualbase_Write(const void* self, QDataStream* out); -void QListWidgetItem_Delete(QListWidgetItem* self, bool isSubclass); +void QListWidgetItem_Delete(QListWidgetItem* self); QListWidget* QListWidget_new(QWidget* parent); QListWidget* QListWidget_new2(); @@ -306,7 +306,7 @@ void QListWidget_override_virtual_CurrentChanged(void* self, intptr_t slot); void QListWidget_virtualbase_CurrentChanged(void* self, QModelIndex* current, QModelIndex* previous); void QListWidget_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QListWidget_virtualbase_ViewportSizeHint(const void* self); -void QListWidget_Delete(QListWidget* self, bool isSubclass); +void QListWidget_Delete(QListWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlocale.cpp b/qt/gen_qlocale.cpp index d45b6f3e..a21185bb 100644 --- a/qt/gen_qlocale.cpp +++ b/qt/gen_qlocale.cpp @@ -1288,11 +1288,7 @@ struct miqt_string QLocale_QuoteString2(const QLocale* self, struct miqt_string return _ms; } -void QLocale_Delete(QLocale* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLocale_Delete(QLocale* self) { + delete self; } diff --git a/qt/gen_qlocale.go b/qt/gen_qlocale.go index ed564212..30ec710c 100644 --- a/qt/gen_qlocale.go +++ b/qt/gen_qlocale.go @@ -2100,7 +2100,7 @@ func (this *QLocale) QuoteString2(str string, style QLocale__QuotationStyle) str // Delete this object from C++ memory. func (this *QLocale) Delete() { - C.QLocale_Delete(this.h, C.bool(this.isSubclass)) + C.QLocale_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlocale.h b/qt/gen_qlocale.h index 3c1da5e9..fbb3c92d 100644 --- a/qt/gen_qlocale.h +++ b/qt/gen_qlocale.h @@ -177,7 +177,7 @@ struct miqt_string QLocale_FormattedDataSize3(QLocale* self, long long bytes, in struct miqt_string QLocale_FormattedDataSize22(const QLocale* self, long long bytes, int precision); struct miqt_string QLocale_FormattedDataSize32(const QLocale* self, long long bytes, int precision, int format); struct miqt_string QLocale_QuoteString2(const QLocale* self, struct miqt_string str, int style); -void QLocale_Delete(QLocale* self, bool isSubclass); +void QLocale_Delete(QLocale* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qlockfile.cpp b/qt/gen_qlockfile.cpp index 173d133e..e372b92d 100644 --- a/qt/gen_qlockfile.cpp +++ b/qt/gen_qlockfile.cpp @@ -55,11 +55,7 @@ bool QLockFile_TryLock1(QLockFile* self, int timeout) { return self->tryLock(static_cast(timeout)); } -void QLockFile_Delete(QLockFile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLockFile_Delete(QLockFile* self) { + delete self; } diff --git a/qt/gen_qlockfile.go b/qt/gen_qlockfile.go index 62701321..8f24710f 100644 --- a/qt/gen_qlockfile.go +++ b/qt/gen_qlockfile.go @@ -105,7 +105,7 @@ func (this *QLockFile) TryLock1(timeout int) bool { // Delete this object from C++ memory. func (this *QLockFile) Delete() { - C.QLockFile_Delete(this.h, C.bool(this.isSubclass)) + C.QLockFile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qlockfile.h b/qt/gen_qlockfile.h index 6d165dcb..09497f8b 100644 --- a/qt/gen_qlockfile.h +++ b/qt/gen_qlockfile.h @@ -30,7 +30,7 @@ bool QLockFile_IsLocked(const QLockFile* self); bool QLockFile_RemoveStaleLockFile(QLockFile* self); int QLockFile_Error(const QLockFile* self); bool QLockFile_TryLock1(QLockFile* self, int timeout); -void QLockFile_Delete(QLockFile* self, bool isSubclass); +void QLockFile_Delete(QLockFile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qloggingcategory.cpp b/qt/gen_qloggingcategory.cpp index 86219aa2..755bef24 100644 --- a/qt/gen_qloggingcategory.cpp +++ b/qt/gen_qloggingcategory.cpp @@ -58,11 +58,7 @@ void QLoggingCategory_SetFilterRules(struct miqt_string rules) { QLoggingCategory::setFilterRules(rules_QString); } -void QLoggingCategory_Delete(QLoggingCategory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLoggingCategory_Delete(QLoggingCategory* self) { + delete self; } diff --git a/qt/gen_qloggingcategory.go b/qt/gen_qloggingcategory.go index 2163f641..96721e5d 100644 --- a/qt/gen_qloggingcategory.go +++ b/qt/gen_qloggingcategory.go @@ -99,7 +99,7 @@ func QLoggingCategory_SetFilterRules(rules string) { // Delete this object from C++ memory. func (this *QLoggingCategory) Delete() { - C.QLoggingCategory_Delete(this.h, C.bool(this.isSubclass)) + C.QLoggingCategory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qloggingcategory.h b/qt/gen_qloggingcategory.h index a14acf5e..8dacc814 100644 --- a/qt/gen_qloggingcategory.h +++ b/qt/gen_qloggingcategory.h @@ -30,7 +30,7 @@ QLoggingCategory* QLoggingCategory_OperatorCall(QLoggingCategory* self); QLoggingCategory* QLoggingCategory_OperatorCall2(const QLoggingCategory* self); QLoggingCategory* QLoggingCategory_DefaultCategory(); void QLoggingCategory_SetFilterRules(struct miqt_string rules); -void QLoggingCategory_Delete(QLoggingCategory* self, bool isSubclass); +void QLoggingCategory_Delete(QLoggingCategory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmainwindow.cpp b/qt/gen_qmainwindow.cpp index 95f854ef..ba3e48bb 100644 --- a/qt/gen_qmainwindow.cpp +++ b/qt/gen_qmainwindow.cpp @@ -93,14 +93,14 @@ bool miqt_exec_callback_QMainWindow_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQMainWindow : public virtual QMainWindow { +class MiqtVirtualQMainWindow final : public QMainWindow { public: MiqtVirtualQMainWindow(QWidget* parent): QMainWindow(parent) {}; MiqtVirtualQMainWindow(): QMainWindow() {}; MiqtVirtualQMainWindow(QWidget* parent, Qt::WindowFlags flags): QMainWindow(parent, flags) {}; - virtual ~MiqtVirtualQMainWindow() = default; + virtual ~MiqtVirtualQMainWindow() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CreatePopupMenu = 0; @@ -1824,11 +1824,7 @@ bool QMainWindow_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQMainWindow*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QMainWindow_Delete(QMainWindow* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMainWindow_Delete(QMainWindow* self) { + delete self; } diff --git a/qt/gen_qmainwindow.go b/qt/gen_qmainwindow.go index 98b56d8a..01e31a72 100644 --- a/qt/gen_qmainwindow.go +++ b/qt/gen_qmainwindow.go @@ -1590,7 +1590,7 @@ func miqt_exec_callback_QMainWindow_FocusNextPrevChild(self *C.QMainWindow, cb C // Delete this object from C++ memory. func (this *QMainWindow) Delete() { - C.QMainWindow_Delete(this.h, C.bool(this.isSubclass)) + C.QMainWindow_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmainwindow.h b/qt/gen_qmainwindow.h index de5df4ba..53337821 100644 --- a/qt/gen_qmainwindow.h +++ b/qt/gen_qmainwindow.h @@ -245,7 +245,7 @@ void QMainWindow_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QMainWindow_virtualbase_InputMethodQuery(const void* self, int param1); void QMainWindow_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QMainWindow_virtualbase_FocusNextPrevChild(void* self, bool next); -void QMainWindow_Delete(QMainWindow* self, bool isSubclass); +void QMainWindow_Delete(QMainWindow* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmargins.cpp b/qt/gen_qmargins.cpp index f96f440f..bc08cf7c 100644 --- a/qt/gen_qmargins.cpp +++ b/qt/gen_qmargins.cpp @@ -107,12 +107,8 @@ QMargins* QMargins_OperatorDivideAssignWithQreal(QMargins* self, double param1) return &_ret; } -void QMargins_Delete(QMargins* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMargins_Delete(QMargins* self) { + delete self; } QMarginsF* QMarginsF_new() { @@ -211,11 +207,7 @@ QMargins* QMarginsF_ToMargins(const QMarginsF* self) { return new QMargins(self->toMargins()); } -void QMarginsF_Delete(QMarginsF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMarginsF_Delete(QMarginsF* self) { + delete self; } diff --git a/qt/gen_qmargins.go b/qt/gen_qmargins.go index 84c748ec..6a2d7fb9 100644 --- a/qt/gen_qmargins.go +++ b/qt/gen_qmargins.go @@ -140,7 +140,7 @@ func (this *QMargins) OperatorDivideAssignWithQreal(param1 float64) *QMargins { // Delete this object from C++ memory. func (this *QMargins) Delete() { - C.QMargins_Delete(this.h, C.bool(this.isSubclass)) + C.QMargins_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -285,7 +285,7 @@ func (this *QMarginsF) ToMargins() *QMargins { // Delete this object from C++ memory. func (this *QMarginsF) Delete() { - C.QMarginsF_Delete(this.h, C.bool(this.isSubclass)) + C.QMarginsF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmargins.h b/qt/gen_qmargins.h index 4ebec5dd..3e3d9958 100644 --- a/qt/gen_qmargins.h +++ b/qt/gen_qmargins.h @@ -42,7 +42,7 @@ QMargins* QMargins_OperatorMultiplyAssign(QMargins* self, int param1); QMargins* QMargins_OperatorDivideAssign(QMargins* self, int param1); QMargins* QMargins_OperatorMultiplyAssignWithQreal(QMargins* self, double param1); QMargins* QMargins_OperatorDivideAssignWithQreal(QMargins* self, double param1); -void QMargins_Delete(QMargins* self, bool isSubclass); +void QMargins_Delete(QMargins* self); QMarginsF* QMarginsF_new(); QMarginsF* QMarginsF_new2(double left, double top, double right, double bottom); @@ -64,7 +64,7 @@ QMarginsF* QMarginsF_OperatorMinusAssignWithSubtrahend(QMarginsF* self, double s QMarginsF* QMarginsF_OperatorMultiplyAssign(QMarginsF* self, double factor); QMarginsF* QMarginsF_OperatorDivideAssign(QMarginsF* self, double divisor); QMargins* QMarginsF_ToMargins(const QMarginsF* self); -void QMarginsF_Delete(QMarginsF* self, bool isSubclass); +void QMarginsF_Delete(QMarginsF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmatrix.cpp b/qt/gen_qmatrix.cpp index 5d37f9c4..1021a3bb 100644 --- a/qt/gen_qmatrix.cpp +++ b/qt/gen_qmatrix.cpp @@ -184,11 +184,7 @@ QMatrix* QMatrix_Inverted1(const QMatrix* self, bool* invertible) { return new QMatrix(self->inverted(invertible)); } -void QMatrix_Delete(QMatrix* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMatrix_Delete(QMatrix* self) { + delete self; } diff --git a/qt/gen_qmatrix.go b/qt/gen_qmatrix.go index 27ac0d4e..6d6f6dcb 100644 --- a/qt/gen_qmatrix.go +++ b/qt/gen_qmatrix.go @@ -236,7 +236,7 @@ func (this *QMatrix) Inverted1(invertible *bool) *QMatrix { // Delete this object from C++ memory. func (this *QMatrix) Delete() { - C.QMatrix_Delete(this.h, C.bool(this.isSubclass)) + C.QMatrix_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmatrix.h b/qt/gen_qmatrix.h index a9e36a5c..fc7628e3 100644 --- a/qt/gen_qmatrix.h +++ b/qt/gen_qmatrix.h @@ -75,7 +75,7 @@ QMatrix* QMatrix_OperatorMultiplyAssign(QMatrix* self, QMatrix* param1); QMatrix* QMatrix_OperatorMultiply(const QMatrix* self, QMatrix* o); QVariant* QMatrix_ToQVariant(const QMatrix* self); QMatrix* QMatrix_Inverted1(const QMatrix* self, bool* invertible); -void QMatrix_Delete(QMatrix* self, bool isSubclass); +void QMatrix_Delete(QMatrix* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmatrix4x4.cpp b/qt/gen_qmatrix4x4.cpp index bb69ac98..34c4a288 100644 --- a/qt/gen_qmatrix4x4.cpp +++ b/qt/gen_qmatrix4x4.cpp @@ -290,11 +290,7 @@ void QMatrix4x4_Viewport6(QMatrix4x4* self, float left, float bottom, float widt self->viewport(static_cast(left), static_cast(bottom), static_cast(width), static_cast(height), static_cast(nearPlane), static_cast(farPlane)); } -void QMatrix4x4_Delete(QMatrix4x4* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMatrix4x4_Delete(QMatrix4x4* self) { + delete self; } diff --git a/qt/gen_qmatrix4x4.go b/qt/gen_qmatrix4x4.go index 11755049..f8f67686 100644 --- a/qt/gen_qmatrix4x4.go +++ b/qt/gen_qmatrix4x4.go @@ -372,7 +372,7 @@ func (this *QMatrix4x4) Viewport6(left float32, bottom float32, width float32, h // Delete this object from C++ memory. func (this *QMatrix4x4) Delete() { - C.QMatrix4x4_Delete(this.h, C.bool(this.isSubclass)) + C.QMatrix4x4_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmatrix4x4.h b/qt/gen_qmatrix4x4.h index 0191d168..366f0866 100644 --- a/qt/gen_qmatrix4x4.h +++ b/qt/gen_qmatrix4x4.h @@ -105,7 +105,7 @@ QMatrix4x4* QMatrix4x4_Inverted1(const QMatrix4x4* self, bool* invertible); void QMatrix4x4_Rotate4(QMatrix4x4* self, float angle, float x, float y, float z); void QMatrix4x4_Viewport5(QMatrix4x4* self, float left, float bottom, float width, float height, float nearPlane); void QMatrix4x4_Viewport6(QMatrix4x4* self, float left, float bottom, float width, float height, float nearPlane, float farPlane); -void QMatrix4x4_Delete(QMatrix4x4* self, bool isSubclass); +void QMatrix4x4_Delete(QMatrix4x4* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmdiarea.cpp b/qt/gen_qmdiarea.cpp index 4e1ecda8..bc673560 100644 --- a/qt/gen_qmdiarea.cpp +++ b/qt/gen_qmdiarea.cpp @@ -62,13 +62,13 @@ QSize* miqt_exec_callback_QMdiArea_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQMdiArea : public virtual QMdiArea { +class MiqtVirtualQMdiArea final : public QMdiArea { public: MiqtVirtualQMdiArea(QWidget* parent): QMdiArea(parent) {}; MiqtVirtualQMdiArea(): QMdiArea() {}; - virtual ~MiqtVirtualQMdiArea() = default; + virtual ~MiqtVirtualQMdiArea() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1092,11 +1092,7 @@ QSize* QMdiArea_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_ViewportSizeHint(); } -void QMdiArea_Delete(QMdiArea* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMdiArea_Delete(QMdiArea* self) { + delete self; } diff --git a/qt/gen_qmdiarea.go b/qt/gen_qmdiarea.go index 48a1f785..ed514dc8 100644 --- a/qt/gen_qmdiarea.go +++ b/qt/gen_qmdiarea.go @@ -977,7 +977,7 @@ func miqt_exec_callback_QMdiArea_ViewportSizeHint(self *C.QMdiArea, cb C.intptr_ // Delete this object from C++ memory. func (this *QMdiArea) Delete() { - C.QMdiArea_Delete(this.h, C.bool(this.isSubclass)) + C.QMdiArea_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmdiarea.h b/qt/gen_qmdiarea.h index da286302..683c6b3c 100644 --- a/qt/gen_qmdiarea.h +++ b/qt/gen_qmdiarea.h @@ -172,7 +172,7 @@ void QMdiArea_override_virtual_KeyPressEvent(void* self, intptr_t slot); void QMdiArea_virtualbase_KeyPressEvent(void* self, QKeyEvent* param1); void QMdiArea_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QMdiArea_virtualbase_ViewportSizeHint(const void* self); -void QMdiArea_Delete(QMdiArea* self, bool isSubclass); +void QMdiArea_Delete(QMdiArea* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmdisubwindow.cpp b/qt/gen_qmdisubwindow.cpp index b3c7fd9c..9ef3cc61 100644 --- a/qt/gen_qmdisubwindow.cpp +++ b/qt/gen_qmdisubwindow.cpp @@ -92,14 +92,14 @@ bool miqt_exec_callback_QMdiSubWindow_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQMdiSubWindow : public virtual QMdiSubWindow { +class MiqtVirtualQMdiSubWindow final : public QMdiSubWindow { public: MiqtVirtualQMdiSubWindow(QWidget* parent): QMdiSubWindow(parent) {}; MiqtVirtualQMdiSubWindow(): QMdiSubWindow() {}; MiqtVirtualQMdiSubWindow(QWidget* parent, Qt::WindowFlags flags): QMdiSubWindow(parent, flags) {}; - virtual ~MiqtVirtualQMdiSubWindow() = default; + virtual ~MiqtVirtualQMdiSubWindow() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1692,11 +1692,7 @@ bool QMdiSubWindow_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQMdiSubWindow*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QMdiSubWindow_Delete(QMdiSubWindow* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMdiSubWindow_Delete(QMdiSubWindow* self) { + delete self; } diff --git a/qt/gen_qmdisubwindow.go b/qt/gen_qmdisubwindow.go index c1b62f7a..9b6b0d01 100644 --- a/qt/gen_qmdisubwindow.go +++ b/qt/gen_qmdisubwindow.go @@ -1448,7 +1448,7 @@ func miqt_exec_callback_QMdiSubWindow_FocusNextPrevChild(self *C.QMdiSubWindow, // Delete this object from C++ memory. func (this *QMdiSubWindow) Delete() { - C.QMdiSubWindow_Delete(this.h, C.bool(this.isSubclass)) + C.QMdiSubWindow_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmdisubwindow.h b/qt/gen_qmdisubwindow.h index a32f8a1b..8829dd9e 100644 --- a/qt/gen_qmdisubwindow.h +++ b/qt/gen_qmdisubwindow.h @@ -227,7 +227,7 @@ void QMdiSubWindow_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QMdiSubWindow_virtualbase_InputMethodQuery(const void* self, int param1); void QMdiSubWindow_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QMdiSubWindow_virtualbase_FocusNextPrevChild(void* self, bool next); -void QMdiSubWindow_Delete(QMdiSubWindow* self, bool isSubclass); +void QMdiSubWindow_Delete(QMdiSubWindow* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmenu.cpp b/qt/gen_qmenu.cpp index ecb0b337..fdc2b0a6 100644 --- a/qt/gen_qmenu.cpp +++ b/qt/gen_qmenu.cpp @@ -93,7 +93,7 @@ QVariant* miqt_exec_callback_QMenu_InputMethodQuery(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQMenu : public virtual QMenu { +class MiqtVirtualQMenu final : public QMenu { public: MiqtVirtualQMenu(QWidget* parent): QMenu(parent) {}; @@ -101,7 +101,7 @@ public: MiqtVirtualQMenu(const QString& title): QMenu(title) {}; MiqtVirtualQMenu(const QString& title, QWidget* parent): QMenu(title, parent) {}; - virtual ~MiqtVirtualQMenu() = default; + virtual ~MiqtVirtualQMenu() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1792,11 +1792,7 @@ QVariant* QMenu_virtualbase_InputMethodQuery(const void* self, int param1) { return ( (const MiqtVirtualQMenu*)(self) )->virtualbase_InputMethodQuery(param1); } -void QMenu_Delete(QMenu* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMenu_Delete(QMenu* self) { + delete self; } diff --git a/qt/gen_qmenu.go b/qt/gen_qmenu.go index cfcc36bf..5962769b 100644 --- a/qt/gen_qmenu.go +++ b/qt/gen_qmenu.go @@ -1597,7 +1597,7 @@ func miqt_exec_callback_QMenu_InputMethodQuery(self *C.QMenu, cb C.intptr_t, par // Delete this object from C++ memory. func (this *QMenu) Delete() { - C.QMenu_Delete(this.h, C.bool(this.isSubclass)) + C.QMenu_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmenu.h b/qt/gen_qmenu.h index e3a77d13..a43dfcb7 100644 --- a/qt/gen_qmenu.h +++ b/qt/gen_qmenu.h @@ -248,7 +248,7 @@ void QMenu_override_virtual_InputMethodEvent(void* self, intptr_t slot); void QMenu_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* param1); void QMenu_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QMenu_virtualbase_InputMethodQuery(const void* self, int param1); -void QMenu_Delete(QMenu* self, bool isSubclass); +void QMenu_Delete(QMenu* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmenubar.cpp b/qt/gen_qmenubar.cpp index 365e2fdc..d4ee7939 100644 --- a/qt/gen_qmenubar.cpp +++ b/qt/gen_qmenubar.cpp @@ -92,13 +92,13 @@ bool miqt_exec_callback_QMenuBar_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQMenuBar : public virtual QMenuBar { +class MiqtVirtualQMenuBar final : public QMenuBar { public: MiqtVirtualQMenuBar(QWidget* parent): QMenuBar(parent) {}; MiqtVirtualQMenuBar(): QMenuBar() {}; - virtual ~MiqtVirtualQMenuBar() = default; + virtual ~MiqtVirtualQMenuBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1676,11 +1676,7 @@ bool QMenuBar_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQMenuBar*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QMenuBar_Delete(QMenuBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMenuBar_Delete(QMenuBar* self) { + delete self; } diff --git a/qt/gen_qmenubar.go b/qt/gen_qmenubar.go index 392190b2..4d180af6 100644 --- a/qt/gen_qmenubar.go +++ b/qt/gen_qmenubar.go @@ -1440,7 +1440,7 @@ func miqt_exec_callback_QMenuBar_FocusNextPrevChild(self *C.QMenuBar, cb C.intpt // Delete this object from C++ memory. func (this *QMenuBar) Delete() { - C.QMenuBar_Delete(this.h, C.bool(this.isSubclass)) + C.QMenuBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmenubar.h b/qt/gen_qmenubar.h index a0096687..341c81f0 100644 --- a/qt/gen_qmenubar.h +++ b/qt/gen_qmenubar.h @@ -225,7 +225,7 @@ void QMenuBar_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QMenuBar_virtualbase_InputMethodQuery(const void* self, int param1); void QMenuBar_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QMenuBar_virtualbase_FocusNextPrevChild(void* self, bool next); -void QMenuBar_Delete(QMenuBar* self, bool isSubclass); +void QMenuBar_Delete(QMenuBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmessageauthenticationcode.cpp b/qt/gen_qmessageauthenticationcode.cpp index 91044fc8..86251f0d 100644 --- a/qt/gen_qmessageauthenticationcode.cpp +++ b/qt/gen_qmessageauthenticationcode.cpp @@ -63,11 +63,7 @@ struct miqt_string QMessageAuthenticationCode_Hash(struct miqt_string message, s return _ms; } -void QMessageAuthenticationCode_Delete(QMessageAuthenticationCode* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMessageAuthenticationCode_Delete(QMessageAuthenticationCode* self) { + delete self; } diff --git a/qt/gen_qmessageauthenticationcode.go b/qt/gen_qmessageauthenticationcode.go index 70104cce..feed322e 100644 --- a/qt/gen_qmessageauthenticationcode.go +++ b/qt/gen_qmessageauthenticationcode.go @@ -115,7 +115,7 @@ func QMessageAuthenticationCode_Hash(message []byte, key []byte, method QCryptog // Delete this object from C++ memory. func (this *QMessageAuthenticationCode) Delete() { - C.QMessageAuthenticationCode_Delete(this.h, C.bool(this.isSubclass)) + C.QMessageAuthenticationCode_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmessageauthenticationcode.h b/qt/gen_qmessageauthenticationcode.h index 3c038719..acef1b95 100644 --- a/qt/gen_qmessageauthenticationcode.h +++ b/qt/gen_qmessageauthenticationcode.h @@ -31,7 +31,7 @@ void QMessageAuthenticationCode_AddDataWithData(QMessageAuthenticationCode* self bool QMessageAuthenticationCode_AddDataWithDevice(QMessageAuthenticationCode* self, QIODevice* device); struct miqt_string QMessageAuthenticationCode_Result(const QMessageAuthenticationCode* self); struct miqt_string QMessageAuthenticationCode_Hash(struct miqt_string message, struct miqt_string key, int method); -void QMessageAuthenticationCode_Delete(QMessageAuthenticationCode* self, bool isSubclass); +void QMessageAuthenticationCode_Delete(QMessageAuthenticationCode* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmessagebox.cpp b/qt/gen_qmessagebox.cpp index da7e57e6..1f64b39a 100644 --- a/qt/gen_qmessagebox.cpp +++ b/qt/gen_qmessagebox.cpp @@ -47,7 +47,7 @@ bool miqt_exec_callback_QMessageBox_EventFilter(void*, intptr_t, QObject*, QEven } /* extern C */ #endif -class MiqtVirtualQMessageBox : public virtual QMessageBox { +class MiqtVirtualQMessageBox final : public QMessageBox { public: MiqtVirtualQMessageBox(QWidget* parent): QMessageBox(parent) {}; @@ -60,7 +60,7 @@ public: MiqtVirtualQMessageBox(const QString& title, const QString& text, QMessageBox::Icon icon, int button0, int button1, int button2, QWidget* parent): QMessageBox(title, text, icon, button0, button1, button2, parent) {}; MiqtVirtualQMessageBox(const QString& title, const QString& text, QMessageBox::Icon icon, int button0, int button1, int button2, QWidget* parent, Qt::WindowFlags f): QMessageBox(title, text, icon, button0, button1, button2, parent, f) {}; - virtual ~MiqtVirtualQMessageBox() = default; + virtual ~MiqtVirtualQMessageBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1265,11 +1265,7 @@ bool QMessageBox_virtualbase_EventFilter(void* self, QObject* param1, QEvent* pa return ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_EventFilter(param1, param2); } -void QMessageBox_Delete(QMessageBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMessageBox_Delete(QMessageBox* self) { + delete self; } diff --git a/qt/gen_qmessagebox.go b/qt/gen_qmessagebox.go index 40d6d228..2f3139f6 100644 --- a/qt/gen_qmessagebox.go +++ b/qt/gen_qmessagebox.go @@ -1723,7 +1723,7 @@ func miqt_exec_callback_QMessageBox_EventFilter(self *C.QMessageBox, cb C.intptr // Delete this object from C++ memory. func (this *QMessageBox) Delete() { - C.QMessageBox_Delete(this.h, C.bool(this.isSubclass)) + C.QMessageBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmessagebox.h b/qt/gen_qmessagebox.h index 487ae13f..27d0509c 100644 --- a/qt/gen_qmessagebox.h +++ b/qt/gen_qmessagebox.h @@ -198,7 +198,7 @@ void QMessageBox_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QMessageBox_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QMessageBox_override_virtual_EventFilter(void* self, intptr_t slot); bool QMessageBox_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QMessageBox_Delete(QMessageBox* self, bool isSubclass); +void QMessageBox_Delete(QMessageBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmetaobject.cpp b/qt/gen_qmetaobject.cpp index b7e5e457..dcd44e89 100644 --- a/qt/gen_qmetaobject.cpp +++ b/qt/gen_qmetaobject.cpp @@ -400,12 +400,8 @@ bool QMetaMethod_InvokeOnGadget112(const QMetaMethod* self, void* gadget, QGener return self->invokeOnGadget(gadget, *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8, *val9); } -void QMetaMethod_Delete(QMetaMethod* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaMethod_Delete(QMetaMethod* self) { + delete self; } QMetaEnum* QMetaEnum_new() { @@ -485,12 +481,8 @@ int QMetaEnum_KeysToValue2(const QMetaEnum* self, const char* keys, bool* ok) { return self->keysToValue(keys, ok); } -void QMetaEnum_Delete(QMetaEnum* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaEnum_Delete(QMetaEnum* self) { + delete self; } QMetaProperty* QMetaProperty_new() { @@ -650,12 +642,8 @@ bool QMetaProperty_IsUser1(const QMetaProperty* self, QObject* obj) { return self->isUser(obj); } -void QMetaProperty_Delete(QMetaProperty* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaProperty_Delete(QMetaProperty* self) { + delete self; } QMetaClassInfo* QMetaClassInfo_new() { @@ -674,11 +662,7 @@ QMetaObject* QMetaClassInfo_EnclosingMetaObject(const QMetaClassInfo* self) { return (QMetaObject*) self->enclosingMetaObject(); } -void QMetaClassInfo_Delete(QMetaClassInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaClassInfo_Delete(QMetaClassInfo* self) { + delete self; } diff --git a/qt/gen_qmetaobject.go b/qt/gen_qmetaobject.go index 88bcb0fa..dacaeecf 100644 --- a/qt/gen_qmetaobject.go +++ b/qt/gen_qmetaobject.go @@ -447,7 +447,7 @@ func (this *QMetaMethod) InvokeOnGadget112(gadget unsafe.Pointer, val0 QGenericA // Delete this object from C++ memory. func (this *QMetaMethod) Delete() { - C.QMetaMethod_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaMethod_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -590,7 +590,7 @@ func (this *QMetaEnum) KeysToValue2(keys string, ok *bool) int { // Delete this object from C++ memory. func (this *QMetaEnum) Delete() { - C.QMetaEnum_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaEnum_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -807,7 +807,7 @@ func (this *QMetaProperty) IsUser1(obj *QObject) bool { // Delete this object from C++ memory. func (this *QMetaProperty) Delete() { - C.QMetaProperty_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaProperty_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -876,7 +876,7 @@ func (this *QMetaClassInfo) EnclosingMetaObject() *QMetaObject { // Delete this object from C++ memory. func (this *QMetaClassInfo) Delete() { - C.QMetaClassInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaClassInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmetaobject.h b/qt/gen_qmetaobject.h index 52a3f49a..990060ee 100644 --- a/qt/gen_qmetaobject.h +++ b/qt/gen_qmetaobject.h @@ -121,7 +121,7 @@ bool QMetaMethod_InvokeOnGadget82(const QMetaMethod* self, void* gadget, QGeneri bool QMetaMethod_InvokeOnGadget92(const QMetaMethod* self, void* gadget, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7); bool QMetaMethod_InvokeOnGadget102(const QMetaMethod* self, void* gadget, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8); bool QMetaMethod_InvokeOnGadget112(const QMetaMethod* self, void* gadget, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8, QGenericArgument* val9); -void QMetaMethod_Delete(QMetaMethod* self, bool isSubclass); +void QMetaMethod_Delete(QMetaMethod* self); QMetaEnum* QMetaEnum_new(); QMetaEnum* QMetaEnum_new2(QMetaEnum* param1); @@ -141,7 +141,7 @@ QMetaObject* QMetaEnum_EnclosingMetaObject(const QMetaEnum* self); bool QMetaEnum_IsValid(const QMetaEnum* self); int QMetaEnum_KeyToValue2(const QMetaEnum* self, const char* key, bool* ok); int QMetaEnum_KeysToValue2(const QMetaEnum* self, const char* keys, bool* ok); -void QMetaEnum_Delete(QMetaEnum* self, bool isSubclass); +void QMetaEnum_Delete(QMetaEnum* self); QMetaProperty* QMetaProperty_new(); const char* QMetaProperty_Name(const QMetaProperty* self); @@ -182,13 +182,13 @@ bool QMetaProperty_IsScriptable1(const QMetaProperty* self, QObject* obj); bool QMetaProperty_IsStored1(const QMetaProperty* self, QObject* obj); bool QMetaProperty_IsEditable1(const QMetaProperty* self, QObject* obj); bool QMetaProperty_IsUser1(const QMetaProperty* self, QObject* obj); -void QMetaProperty_Delete(QMetaProperty* self, bool isSubclass); +void QMetaProperty_Delete(QMetaProperty* self); QMetaClassInfo* QMetaClassInfo_new(); const char* QMetaClassInfo_Name(const QMetaClassInfo* self); const char* QMetaClassInfo_Value(const QMetaClassInfo* self); QMetaObject* QMetaClassInfo_EnclosingMetaObject(const QMetaClassInfo* self); -void QMetaClassInfo_Delete(QMetaClassInfo* self, bool isSubclass); +void QMetaClassInfo_Delete(QMetaClassInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmetatype.cpp b/qt/gen_qmetatype.cpp index af92987f..249c31c7 100644 --- a/qt/gen_qmetatype.cpp +++ b/qt/gen_qmetatype.cpp @@ -179,11 +179,7 @@ void* QMetaType_Construct2(const QMetaType* self, void* where, const void* copyV return self->construct(where, copyVal); } -void QMetaType_Delete(QMetaType* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaType_Delete(QMetaType* self) { + delete self; } diff --git a/qt/gen_qmetatype.go b/qt/gen_qmetatype.go index bae27d7d..3d1c47b9 100644 --- a/qt/gen_qmetatype.go +++ b/qt/gen_qmetatype.go @@ -360,7 +360,7 @@ func (this *QMetaType) Construct2(where unsafe.Pointer, copyVal unsafe.Pointer) // Delete this object from C++ memory. func (this *QMetaType) Delete() { - C.QMetaType_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaType_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmetatype.h b/qt/gen_qmetatype.h index 40efa701..206fd143 100644 --- a/qt/gen_qmetatype.h +++ b/qt/gen_qmetatype.h @@ -65,7 +65,7 @@ bool QMetaType_HasRegisteredConverterFunction(int fromTypeId, int toTypeId); void* QMetaType_Create22(int typeVal, const void* copyVal); void* QMetaType_Create1(const QMetaType* self, const void* copyVal); void* QMetaType_Construct2(const QMetaType* self, void* where, const void* copyVal); -void QMetaType_Delete(QMetaType* self, bool isSubclass); +void QMetaType_Delete(QMetaType* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmimedata.cpp b/qt/gen_qmimedata.cpp index 07df0a1a..e00aa59a 100644 --- a/qt/gen_qmimedata.cpp +++ b/qt/gen_qmimedata.cpp @@ -33,12 +33,12 @@ void miqt_exec_callback_QMimeData_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQMimeData : public virtual QMimeData { +class MiqtVirtualQMimeData final : public QMimeData { public: MiqtVirtualQMimeData(): QMimeData() {}; - virtual ~MiqtVirtualQMimeData() = default; + virtual ~MiqtVirtualQMimeData() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__HasFormat = 0; @@ -625,11 +625,7 @@ void QMimeData_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQMimeData*)(self) )->virtualbase_DisconnectNotify(signal); } -void QMimeData_Delete(QMimeData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMimeData_Delete(QMimeData* self) { + delete self; } diff --git a/qt/gen_qmimedata.go b/qt/gen_qmimedata.go index 9c4d434f..dbda1b4e 100644 --- a/qt/gen_qmimedata.go +++ b/qt/gen_qmimedata.go @@ -585,7 +585,7 @@ func miqt_exec_callback_QMimeData_DisconnectNotify(self *C.QMimeData, cb C.intpt // Delete this object from C++ memory. func (this *QMimeData) Delete() { - C.QMimeData_Delete(this.h, C.bool(this.isSubclass)) + C.QMimeData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmimedata.h b/qt/gen_qmimedata.h index f33a44e5..8bf208d3 100644 --- a/qt/gen_qmimedata.h +++ b/qt/gen_qmimedata.h @@ -88,7 +88,7 @@ void QMimeData_override_virtual_ConnectNotify(void* self, intptr_t slot); void QMimeData_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QMimeData_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QMimeData_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QMimeData_Delete(QMimeData* self, bool isSubclass); +void QMimeData_Delete(QMimeData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmimedatabase.cpp b/qt/gen_qmimedatabase.cpp index 31f780f4..1b68bc69 100644 --- a/qt/gen_qmimedatabase.cpp +++ b/qt/gen_qmimedatabase.cpp @@ -109,11 +109,7 @@ QMimeType* QMimeDatabase_MimeTypeForFile22(const QMimeDatabase* self, QFileInfo* return new QMimeType(self->mimeTypeForFile(*fileInfo, static_cast(mode))); } -void QMimeDatabase_Delete(QMimeDatabase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMimeDatabase_Delete(QMimeDatabase* self) { + delete self; } diff --git a/qt/gen_qmimedatabase.go b/qt/gen_qmimedatabase.go index e88d8071..5d4cca1d 100644 --- a/qt/gen_qmimedatabase.go +++ b/qt/gen_qmimedatabase.go @@ -189,7 +189,7 @@ func (this *QMimeDatabase) MimeTypeForFile22(fileInfo *QFileInfo, mode QMimeData // Delete this object from C++ memory. func (this *QMimeDatabase) Delete() { - C.QMimeDatabase_Delete(this.h, C.bool(this.isSubclass)) + C.QMimeDatabase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmimedatabase.h b/qt/gen_qmimedatabase.h index bac5cde2..474b3b03 100644 --- a/qt/gen_qmimedatabase.h +++ b/qt/gen_qmimedatabase.h @@ -42,7 +42,7 @@ struct miqt_string QMimeDatabase_SuffixForFileName(const QMimeDatabase* self, st struct miqt_array /* of QMimeType* */ QMimeDatabase_AllMimeTypes(const QMimeDatabase* self); QMimeType* QMimeDatabase_MimeTypeForFile2(const QMimeDatabase* self, struct miqt_string fileName, int mode); QMimeType* QMimeDatabase_MimeTypeForFile22(const QMimeDatabase* self, QFileInfo* fileInfo, int mode); -void QMimeDatabase_Delete(QMimeDatabase* self, bool isSubclass); +void QMimeDatabase_Delete(QMimeDatabase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmimetype.cpp b/qt/gen_qmimetype.cpp index d27007d1..8ebfa6fb 100644 --- a/qt/gen_qmimetype.cpp +++ b/qt/gen_qmimetype.cpp @@ -217,11 +217,7 @@ struct miqt_string QMimeType_FilterString(const QMimeType* self) { return _ms; } -void QMimeType_Delete(QMimeType* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMimeType_Delete(QMimeType* self) { + delete self; } diff --git a/qt/gen_qmimetype.go b/qt/gen_qmimetype.go index a7bb2694..aac27dfd 100644 --- a/qt/gen_qmimetype.go +++ b/qt/gen_qmimetype.go @@ -203,7 +203,7 @@ func (this *QMimeType) FilterString() string { // Delete this object from C++ memory. func (this *QMimeType) Delete() { - C.QMimeType_Delete(this.h, C.bool(this.isSubclass)) + C.QMimeType_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmimetype.h b/qt/gen_qmimetype.h index da419fce..56cc7e9c 100644 --- a/qt/gen_qmimetype.h +++ b/qt/gen_qmimetype.h @@ -40,7 +40,7 @@ struct miqt_array /* of struct miqt_string */ QMimeType_Suffixes(const QMimeTyp struct miqt_string QMimeType_PreferredSuffix(const QMimeType* self); bool QMimeType_Inherits(const QMimeType* self, struct miqt_string mimeTypeName); struct miqt_string QMimeType_FilterString(const QMimeType* self); -void QMimeType_Delete(QMimeType* self, bool isSubclass); +void QMimeType_Delete(QMimeType* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmouseeventtransition.cpp b/qt/gen_qmouseeventtransition.cpp index 5064d698..9adc90f4 100644 --- a/qt/gen_qmouseeventtransition.cpp +++ b/qt/gen_qmouseeventtransition.cpp @@ -23,7 +23,7 @@ bool miqt_exec_callback_QMouseEventTransition_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQMouseEventTransition : public virtual QMouseEventTransition { +class MiqtVirtualQMouseEventTransition final : public QMouseEventTransition { public: MiqtVirtualQMouseEventTransition(): QMouseEventTransition() {}; @@ -31,7 +31,7 @@ public: MiqtVirtualQMouseEventTransition(QState* sourceState): QMouseEventTransition(sourceState) {}; MiqtVirtualQMouseEventTransition(QObject* object, QEvent::Type typeVal, Qt::MouseButton button, QState* sourceState): QMouseEventTransition(object, typeVal, button, sourceState) {}; - virtual ~MiqtVirtualQMouseEventTransition() = default; + virtual ~MiqtVirtualQMouseEventTransition() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__OnTransition = 0; @@ -249,11 +249,7 @@ bool QMouseEventTransition_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQMouseEventTransition*)(self) )->virtualbase_Event(e); } -void QMouseEventTransition_Delete(QMouseEventTransition* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMouseEventTransition_Delete(QMouseEventTransition* self) { + delete self; } diff --git a/qt/gen_qmouseeventtransition.go b/qt/gen_qmouseeventtransition.go index a9cbbf7b..c61170fe 100644 --- a/qt/gen_qmouseeventtransition.go +++ b/qt/gen_qmouseeventtransition.go @@ -265,7 +265,7 @@ func miqt_exec_callback_QMouseEventTransition_Event(self *C.QMouseEventTransitio // Delete this object from C++ memory. func (this *QMouseEventTransition) Delete() { - C.QMouseEventTransition_Delete(this.h, C.bool(this.isSubclass)) + C.QMouseEventTransition_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmouseeventtransition.h b/qt/gen_qmouseeventtransition.h index ecc3532f..4edc9dc1 100644 --- a/qt/gen_qmouseeventtransition.h +++ b/qt/gen_qmouseeventtransition.h @@ -61,7 +61,7 @@ void QMouseEventTransition_override_virtual_EventTest(void* self, intptr_t slot) bool QMouseEventTransition_virtualbase_EventTest(void* self, QEvent* event); void QMouseEventTransition_override_virtual_Event(void* self, intptr_t slot); bool QMouseEventTransition_virtualbase_Event(void* self, QEvent* e); -void QMouseEventTransition_Delete(QMouseEventTransition* self, bool isSubclass); +void QMouseEventTransition_Delete(QMouseEventTransition* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmovie.cpp b/qt/gen_qmovie.cpp index f5cc60c8..1d951189 100644 --- a/qt/gen_qmovie.cpp +++ b/qt/gen_qmovie.cpp @@ -41,7 +41,7 @@ void miqt_exec_callback_QMovie_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQMovie : public virtual QMovie { +class MiqtVirtualQMovie final : public QMovie { public: MiqtVirtualQMovie(): QMovie() {}; @@ -53,7 +53,7 @@ public: MiqtVirtualQMovie(const QString& fileName, const QByteArray& format): QMovie(fileName, format) {}; MiqtVirtualQMovie(const QString& fileName, const QByteArray& format, QObject* parent): QMovie(fileName, format, parent) {}; - virtual ~MiqtVirtualQMovie() = default; + virtual ~MiqtVirtualQMovie() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -644,11 +644,7 @@ void QMovie_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQMovie*)(self) )->virtualbase_DisconnectNotify(signal); } -void QMovie_Delete(QMovie* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMovie_Delete(QMovie* self) { + delete self; } diff --git a/qt/gen_qmovie.go b/qt/gen_qmovie.go index 68d36356..d592e011 100644 --- a/qt/gen_qmovie.go +++ b/qt/gen_qmovie.go @@ -709,7 +709,7 @@ func miqt_exec_callback_QMovie_DisconnectNotify(self *C.QMovie, cb C.intptr_t, s // Delete this object from C++ memory. func (this *QMovie) Delete() { - C.QMovie_Delete(this.h, C.bool(this.isSubclass)) + C.QMovie_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmovie.h b/qt/gen_qmovie.h index 48f0a3da..a5f193c6 100644 --- a/qt/gen_qmovie.h +++ b/qt/gen_qmovie.h @@ -120,7 +120,7 @@ void QMovie_override_virtual_ConnectNotify(void* self, intptr_t slot); void QMovie_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QMovie_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QMovie_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QMovie_Delete(QMovie* self, bool isSubclass); +void QMovie_Delete(QMovie* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qmutex.cpp b/qt/gen_qmutex.cpp index e13b7726..7d7f0570 100644 --- a/qt/gen_qmutex.cpp +++ b/qt/gen_qmutex.cpp @@ -41,12 +41,8 @@ bool QBasicMutex_IsRecursive2(const QBasicMutex* self) { return self->isRecursive(); } -void QBasicMutex_Delete(QBasicMutex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBasicMutex_Delete(QBasicMutex* self) { + delete self; } QMutex* QMutex_new() { @@ -85,24 +81,16 @@ bool QMutex_TryLock1(QMutex* self, int timeout) { return self->tryLock(static_cast(timeout)); } -void QMutex_Delete(QMutex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMutex_Delete(QMutex* self) { + delete self; } QRecursiveMutex* QRecursiveMutex_new() { return new QRecursiveMutex(); } -void QRecursiveMutex_Delete(QRecursiveMutex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRecursiveMutex_Delete(QRecursiveMutex* self) { + delete self; } QMutexLocker* QMutexLocker_new(QBasicMutex* m) { @@ -125,11 +113,7 @@ QMutex* QMutexLocker_Mutex(const QMutexLocker* self) { return self->mutex(); } -void QMutexLocker_Delete(QMutexLocker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMutexLocker_Delete(QMutexLocker* self) { + delete self; } diff --git a/qt/gen_qmutex.go b/qt/gen_qmutex.go index f4c13197..5350d1c9 100644 --- a/qt/gen_qmutex.go +++ b/qt/gen_qmutex.go @@ -87,7 +87,7 @@ func (this *QBasicMutex) IsRecursive2() bool { // Delete this object from C++ memory. func (this *QBasicMutex) Delete() { - C.QBasicMutex_Delete(this.h, C.bool(this.isSubclass)) + C.QBasicMutex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -178,7 +178,7 @@ func (this *QMutex) TryLock1(timeout int) bool { // Delete this object from C++ memory. func (this *QMutex) Delete() { - C.QMutex_Delete(this.h, C.bool(this.isSubclass)) + C.QMutex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -233,7 +233,7 @@ func NewQRecursiveMutex() *QRecursiveMutex { // Delete this object from C++ memory. func (this *QRecursiveMutex) Delete() { - C.QRecursiveMutex_Delete(this.h, C.bool(this.isSubclass)) + C.QRecursiveMutex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -308,7 +308,7 @@ func (this *QMutexLocker) Mutex() *QMutex { // Delete this object from C++ memory. func (this *QMutexLocker) Delete() { - C.QMutexLocker_Delete(this.h, C.bool(this.isSubclass)) + C.QMutexLocker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qmutex.h b/qt/gen_qmutex.h index 5aa4b55c..9e792c9c 100644 --- a/qt/gen_qmutex.h +++ b/qt/gen_qmutex.h @@ -33,7 +33,7 @@ bool QBasicMutex_TryLock(QBasicMutex* self); bool QBasicMutex_TryLock2(QBasicMutex* self); bool QBasicMutex_IsRecursive(QBasicMutex* self); bool QBasicMutex_IsRecursive2(const QBasicMutex* self); -void QBasicMutex_Delete(QBasicMutex* self, bool isSubclass); +void QBasicMutex_Delete(QBasicMutex* self); QMutex* QMutex_new(); QMutex* QMutex_new2(int mode); @@ -44,17 +44,17 @@ void QMutex_Unlock(QMutex* self); bool QMutex_TryLock2(QMutex* self); bool QMutex_IsRecursive(const QMutex* self); bool QMutex_TryLock1(QMutex* self, int timeout); -void QMutex_Delete(QMutex* self, bool isSubclass); +void QMutex_Delete(QMutex* self); QRecursiveMutex* QRecursiveMutex_new(); -void QRecursiveMutex_Delete(QRecursiveMutex* self, bool isSubclass); +void QRecursiveMutex_Delete(QRecursiveMutex* self); QMutexLocker* QMutexLocker_new(QBasicMutex* m); QMutexLocker* QMutexLocker_new2(QRecursiveMutex* m); void QMutexLocker_Unlock(QMutexLocker* self); void QMutexLocker_Relock(QMutexLocker* self); QMutex* QMutexLocker_Mutex(const QMutexLocker* self); -void QMutexLocker_Delete(QMutexLocker* self, bool isSubclass); +void QMutexLocker_Delete(QMutexLocker* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qnamespace.cpp b/qt/gen_qnamespace.cpp index 9927a21d..1ac4f670 100644 --- a/qt/gen_qnamespace.cpp +++ b/qt/gen_qnamespace.cpp @@ -10,11 +10,7 @@ extern "C" { } /* extern C */ #endif -void QInternal_Delete(QInternal* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInternal_Delete(QInternal* self) { + delete self; } diff --git a/qt/gen_qnamespace.go b/qt/gen_qnamespace.go index cfa37bc9..01d8c9ad 100644 --- a/qt/gen_qnamespace.go +++ b/qt/gen_qnamespace.go @@ -1728,7 +1728,7 @@ func UnsafeNewQInternal(h unsafe.Pointer) *QInternal { // Delete this object from C++ memory. func (this *QInternal) Delete() { - C.QInternal_Delete(this.h, C.bool(this.isSubclass)) + C.QInternal_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qnamespace.h b/qt/gen_qnamespace.h index 19f68d80..0e475d6b 100644 --- a/qt/gen_qnamespace.h +++ b/qt/gen_qnamespace.h @@ -20,7 +20,7 @@ class QInternal; typedef struct QInternal QInternal; #endif -void QInternal_Delete(QInternal* self, bool isSubclass); +void QInternal_Delete(QInternal* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qobject.cpp b/qt/gen_qobject.cpp index 5d529d66..ee41a358 100644 --- a/qt/gen_qobject.cpp +++ b/qt/gen_qobject.cpp @@ -39,21 +39,17 @@ QMetaObject* QObjectData_DynamicMetaObject(const QObjectData* self) { return self->dynamicMetaObject(); } -void QObjectData_Delete(QObjectData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QObjectData_Delete(QObjectData* self) { + delete self; } -class MiqtVirtualQObject : public virtual QObject { +class MiqtVirtualQObject final : public QObject { public: MiqtVirtualQObject(): QObject() {}; MiqtVirtualQObject(QObject* parent): QObject(parent) {}; - virtual ~MiqtVirtualQObject() = default; + virtual ~MiqtVirtualQObject() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -563,24 +559,16 @@ void QObject_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQObject*)(self) )->virtualbase_DisconnectNotify(signal); } -void QObject_Delete(QObject* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QObject_Delete(QObject* self) { + delete self; } QObjectUserData* QObjectUserData_new() { return new QObjectUserData(); } -void QObjectUserData_Delete(QObjectUserData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QObjectUserData_Delete(QObjectUserData* self) { + delete self; } QSignalBlocker* QSignalBlocker_new(QObject* o) { @@ -599,11 +587,7 @@ void QSignalBlocker_Unblock(QSignalBlocker* self) { self->unblock(); } -void QSignalBlocker_Delete(QSignalBlocker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSignalBlocker_Delete(QSignalBlocker* self) { + delete self; } diff --git a/qt/gen_qobject.go b/qt/gen_qobject.go index 632d226c..0ce3e841 100644 --- a/qt/gen_qobject.go +++ b/qt/gen_qobject.go @@ -59,7 +59,7 @@ func (this *QObjectData) DynamicMetaObject() *QMetaObject { // Delete this object from C++ memory. func (this *QObjectData) Delete() { - C.QObjectData_Delete(this.h, C.bool(this.isSubclass)) + C.QObjectData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -609,7 +609,7 @@ func miqt_exec_callback_QObject_DisconnectNotify(self *C.QObject, cb C.intptr_t, // Delete this object from C++ memory. func (this *QObject) Delete() { - C.QObject_Delete(this.h, C.bool(this.isSubclass)) + C.QObject_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -664,7 +664,7 @@ func NewQObjectUserData() *QObjectUserData { // Delete this object from C++ memory. func (this *QObjectUserData) Delete() { - C.QObjectUserData_Delete(this.h, C.bool(this.isSubclass)) + C.QObjectUserData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -735,7 +735,7 @@ func (this *QSignalBlocker) Unblock() { // Delete this object from C++ memory. func (this *QSignalBlocker) Delete() { - C.QSignalBlocker_Delete(this.h, C.bool(this.isSubclass)) + C.QSignalBlocker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qobject.h b/qt/gen_qobject.h index c6d9b51c..7fde61da 100644 --- a/qt/gen_qobject.h +++ b/qt/gen_qobject.h @@ -47,7 +47,7 @@ typedef struct QVariant QVariant; #endif QMetaObject* QObjectData_DynamicMetaObject(const QObjectData* self); -void QObjectData_Delete(QObjectData* self, bool isSubclass); +void QObjectData_Delete(QObjectData* self); QObject* QObject_new(); QObject* QObject_new2(QObject* parent); @@ -118,16 +118,16 @@ void QObject_override_virtual_ConnectNotify(void* self, intptr_t slot); void QObject_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QObject_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QObject_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QObject_Delete(QObject* self, bool isSubclass); +void QObject_Delete(QObject* self); QObjectUserData* QObjectUserData_new(); -void QObjectUserData_Delete(QObjectUserData* self, bool isSubclass); +void QObjectUserData_Delete(QObjectUserData* self); QSignalBlocker* QSignalBlocker_new(QObject* o); QSignalBlocker* QSignalBlocker_new2(QObject* o); void QSignalBlocker_Reblock(QSignalBlocker* self); void QSignalBlocker_Unblock(QSignalBlocker* self); -void QSignalBlocker_Delete(QSignalBlocker* self, bool isSubclass); +void QSignalBlocker_Delete(QSignalBlocker* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qobjectcleanuphandler.cpp b/qt/gen_qobjectcleanuphandler.cpp index aedba09c..f9518388 100644 --- a/qt/gen_qobjectcleanuphandler.cpp +++ b/qt/gen_qobjectcleanuphandler.cpp @@ -26,12 +26,12 @@ void miqt_exec_callback_QObjectCleanupHandler_DisconnectNotify(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQObjectCleanupHandler : public virtual QObjectCleanupHandler { +class MiqtVirtualQObjectCleanupHandler final : public QObjectCleanupHandler { public: MiqtVirtualQObjectCleanupHandler(): QObjectCleanupHandler() {}; - virtual ~MiqtVirtualQObjectCleanupHandler() = default; + virtual ~MiqtVirtualQObjectCleanupHandler() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -360,11 +360,7 @@ void QObjectCleanupHandler_virtualbase_DisconnectNotify(void* self, QMetaMethod* ( (MiqtVirtualQObjectCleanupHandler*)(self) )->virtualbase_DisconnectNotify(signal); } -void QObjectCleanupHandler_Delete(QObjectCleanupHandler* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QObjectCleanupHandler_Delete(QObjectCleanupHandler* self) { + delete self; } diff --git a/qt/gen_qobjectcleanuphandler.go b/qt/gen_qobjectcleanuphandler.go index e0bfa582..202da239 100644 --- a/qt/gen_qobjectcleanuphandler.go +++ b/qt/gen_qobjectcleanuphandler.go @@ -337,7 +337,7 @@ func miqt_exec_callback_QObjectCleanupHandler_DisconnectNotify(self *C.QObjectCl // Delete this object from C++ memory. func (this *QObjectCleanupHandler) Delete() { - C.QObjectCleanupHandler_Delete(this.h, C.bool(this.isSubclass)) + C.QObjectCleanupHandler_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qobjectcleanuphandler.h b/qt/gen_qobjectcleanuphandler.h index 5f569477..91c5d212 100644 --- a/qt/gen_qobjectcleanuphandler.h +++ b/qt/gen_qobjectcleanuphandler.h @@ -60,7 +60,7 @@ void QObjectCleanupHandler_override_virtual_ConnectNotify(void* self, intptr_t s void QObjectCleanupHandler_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QObjectCleanupHandler_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QObjectCleanupHandler_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QObjectCleanupHandler_Delete(QObjectCleanupHandler* self, bool isSubclass); +void QObjectCleanupHandler_Delete(QObjectCleanupHandler* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qobjectdefs.cpp b/qt/gen_qobjectdefs.cpp index 3a7795d3..d99b6214 100644 --- a/qt/gen_qobjectdefs.cpp +++ b/qt/gen_qobjectdefs.cpp @@ -47,12 +47,8 @@ const char* QGenericArgument_Name(const QGenericArgument* self) { return (const char*) self->name(); } -void QGenericArgument_Delete(QGenericArgument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGenericArgument_Delete(QGenericArgument* self) { + delete self; } QGenericReturnArgument* QGenericReturnArgument_new() { @@ -75,12 +71,8 @@ void QGenericReturnArgument_virtbase(QGenericReturnArgument* src, QGenericArgume *outptr_QGenericArgument = static_cast(src); } -void QGenericReturnArgument_Delete(QGenericReturnArgument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGenericReturnArgument_Delete(QGenericReturnArgument* self) { + delete self; } QMetaObject* QMetaObject_new() { @@ -491,12 +483,8 @@ QObject* QMetaObject_NewInstance10(const QMetaObject* self, QGenericArgument* va return self->newInstance(*val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8, *val9); } -void QMetaObject_Delete(QMetaObject* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaObject_Delete(QMetaObject* self) { + delete self; } QMetaObject__Connection* QMetaObject__Connection_new() { @@ -511,12 +499,8 @@ void QMetaObject__Connection_OperatorAssign(QMetaObject__Connection* self, QMeta self->operator=(*other); } -void QMetaObject__Connection_Delete(QMetaObject__Connection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaObject__Connection_Delete(QMetaObject__Connection* self) { + delete self; } QMetaObject__SuperData* QMetaObject__SuperData_new() { @@ -543,11 +527,7 @@ void QMetaObject__SuperData_OperatorAssign(QMetaObject__SuperData* self, QMetaOb self->operator=(*param1); } -void QMetaObject__SuperData_Delete(QMetaObject__SuperData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaObject__SuperData_Delete(QMetaObject__SuperData* self) { + delete self; } diff --git a/qt/gen_qobjectdefs.go b/qt/gen_qobjectdefs.go index 013da57b..8bf4b377 100644 --- a/qt/gen_qobjectdefs.go +++ b/qt/gen_qobjectdefs.go @@ -111,7 +111,7 @@ func (this *QGenericArgument) Name() string { // Delete this object from C++ memory. func (this *QGenericArgument) Delete() { - C.QGenericArgument_Delete(this.h, C.bool(this.isSubclass)) + C.QGenericArgument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -198,7 +198,7 @@ func NewQGenericReturnArgument4(aName string, aData unsafe.Pointer) *QGenericRet // Delete this object from C++ memory. func (this *QGenericReturnArgument) Delete() { - C.QGenericReturnArgument_Delete(this.h, C.bool(this.isSubclass)) + C.QGenericReturnArgument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -786,7 +786,7 @@ func (this *QMetaObject) NewInstance10(val0 QGenericArgument, val1 QGenericArgum // Delete this object from C++ memory. func (this *QMetaObject) Delete() { - C.QMetaObject_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaObject_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -853,7 +853,7 @@ func (this *QMetaObject__Connection) OperatorAssign(other *QMetaObject__Connecti // Delete this object from C++ memory. func (this *QMetaObject__Connection) Delete() { - C.QMetaObject__Connection_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaObject__Connection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -936,7 +936,7 @@ func (this *QMetaObject__SuperData) OperatorAssign(param1 *QMetaObject__SuperDat // Delete this object from C++ memory. func (this *QMetaObject__SuperData) Delete() { - C.QMetaObject__SuperData_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaObject__SuperData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qobjectdefs.h b/qt/gen_qobjectdefs.h index eacf1cf8..91ad61b0 100644 --- a/qt/gen_qobjectdefs.h +++ b/qt/gen_qobjectdefs.h @@ -52,14 +52,14 @@ QGenericArgument* QGenericArgument_new3(const char* aName); QGenericArgument* QGenericArgument_new4(const char* aName, const void* aData); void* QGenericArgument_Data(const QGenericArgument* self); const char* QGenericArgument_Name(const QGenericArgument* self); -void QGenericArgument_Delete(QGenericArgument* self, bool isSubclass); +void QGenericArgument_Delete(QGenericArgument* self); QGenericReturnArgument* QGenericReturnArgument_new(); QGenericReturnArgument* QGenericReturnArgument_new2(QGenericReturnArgument* param1); QGenericReturnArgument* QGenericReturnArgument_new3(const char* aName); QGenericReturnArgument* QGenericReturnArgument_new4(const char* aName, void* aData); void QGenericReturnArgument_virtbase(QGenericReturnArgument* src, QGenericArgument** outptr_QGenericArgument); -void QGenericReturnArgument_Delete(QGenericReturnArgument* self, bool isSubclass); +void QGenericReturnArgument_Delete(QGenericReturnArgument* self); QMetaObject* QMetaObject_new(); QMetaObject* QMetaObject_new2(QMetaObject* param1); @@ -157,12 +157,12 @@ QObject* QMetaObject_NewInstance7(const QMetaObject* self, QGenericArgument* val QObject* QMetaObject_NewInstance8(const QMetaObject* self, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7); QObject* QMetaObject_NewInstance9(const QMetaObject* self, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8); QObject* QMetaObject_NewInstance10(const QMetaObject* self, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8, QGenericArgument* val9); -void QMetaObject_Delete(QMetaObject* self, bool isSubclass); +void QMetaObject_Delete(QMetaObject* self); QMetaObject__Connection* QMetaObject__Connection_new(); QMetaObject__Connection* QMetaObject__Connection_new2(QMetaObject__Connection* other); void QMetaObject__Connection_OperatorAssign(QMetaObject__Connection* self, QMetaObject__Connection* other); -void QMetaObject__Connection_Delete(QMetaObject__Connection* self, bool isSubclass); +void QMetaObject__Connection_Delete(QMetaObject__Connection* self); QMetaObject__SuperData* QMetaObject__SuperData_new(); QMetaObject__SuperData* QMetaObject__SuperData_new2(QMetaObject* mo); @@ -170,7 +170,7 @@ QMetaObject__SuperData* QMetaObject__SuperData_new3(QMetaObject__SuperData* para QMetaObject* QMetaObject__SuperData_OperatorMinusGreater(const QMetaObject__SuperData* self); QMetaObject* QMetaObject__SuperData_ToConstQMetaObjectMultiply(const QMetaObject__SuperData* self); void QMetaObject__SuperData_OperatorAssign(QMetaObject__SuperData* self, QMetaObject__SuperData* param1); -void QMetaObject__SuperData_Delete(QMetaObject__SuperData* self, bool isSubclass); +void QMetaObject__SuperData_Delete(QMetaObject__SuperData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qoffscreensurface.cpp b/qt/gen_qoffscreensurface.cpp index 2cb3da2e..0062fca7 100644 --- a/qt/gen_qoffscreensurface.cpp +++ b/qt/gen_qoffscreensurface.cpp @@ -34,14 +34,14 @@ void miqt_exec_callback_QOffscreenSurface_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQOffscreenSurface : public virtual QOffscreenSurface { +class MiqtVirtualQOffscreenSurface final : public QOffscreenSurface { public: MiqtVirtualQOffscreenSurface(QScreen* screen, QObject* parent): QOffscreenSurface(screen, parent) {}; MiqtVirtualQOffscreenSurface(): QOffscreenSurface() {}; MiqtVirtualQOffscreenSurface(QScreen* screen): QOffscreenSurface(screen) {}; - virtual ~MiqtVirtualQOffscreenSurface() = default; + virtual ~MiqtVirtualQOffscreenSurface() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SurfaceType = 0; @@ -514,11 +514,7 @@ void QOffscreenSurface_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQOffscreenSurface*)(self) )->virtualbase_DisconnectNotify(signal); } -void QOffscreenSurface_Delete(QOffscreenSurface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QOffscreenSurface_Delete(QOffscreenSurface* self) { + delete self; } diff --git a/qt/gen_qoffscreensurface.go b/qt/gen_qoffscreensurface.go index 2bb018fe..feacdef7 100644 --- a/qt/gen_qoffscreensurface.go +++ b/qt/gen_qoffscreensurface.go @@ -493,7 +493,7 @@ func miqt_exec_callback_QOffscreenSurface_DisconnectNotify(self *C.QOffscreenSur // Delete this object from C++ memory. func (this *QOffscreenSurface) Delete() { - C.QOffscreenSurface_Delete(this.h, C.bool(this.isSubclass)) + C.QOffscreenSurface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qoffscreensurface.h b/qt/gen_qoffscreensurface.h index 48184093..62b11250 100644 --- a/qt/gen_qoffscreensurface.h +++ b/qt/gen_qoffscreensurface.h @@ -86,7 +86,7 @@ void QOffscreenSurface_override_virtual_ConnectNotify(void* self, intptr_t slot) void QOffscreenSurface_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QOffscreenSurface_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QOffscreenSurface_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QOffscreenSurface_Delete(QOffscreenSurface* self, bool isSubclass); +void QOffscreenSurface_Delete(QOffscreenSurface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qoperatingsystemversion.cpp b/qt/gen_qoperatingsystemversion.cpp index 631450f6..3f615a8d 100644 --- a/qt/gen_qoperatingsystemversion.cpp +++ b/qt/gen_qoperatingsystemversion.cpp @@ -66,11 +66,7 @@ struct miqt_string QOperatingSystemVersion_Name(const QOperatingSystemVersion* s return _ms; } -void QOperatingSystemVersion_Delete(QOperatingSystemVersion* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QOperatingSystemVersion_Delete(QOperatingSystemVersion* self) { + delete self; } diff --git a/qt/gen_qoperatingsystemversion.go b/qt/gen_qoperatingsystemversion.go index cc83cd66..31c929ae 100644 --- a/qt/gen_qoperatingsystemversion.go +++ b/qt/gen_qoperatingsystemversion.go @@ -121,7 +121,7 @@ func (this *QOperatingSystemVersion) Name() string { // Delete this object from C++ memory. func (this *QOperatingSystemVersion) Delete() { - C.QOperatingSystemVersion_Delete(this.h, C.bool(this.isSubclass)) + C.QOperatingSystemVersion_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qoperatingsystemversion.h b/qt/gen_qoperatingsystemversion.h index 8a58240e..fe4215a7 100644 --- a/qt/gen_qoperatingsystemversion.h +++ b/qt/gen_qoperatingsystemversion.h @@ -31,7 +31,7 @@ int QOperatingSystemVersion_MicroVersion(const QOperatingSystemVersion* self); int QOperatingSystemVersion_SegmentCount(const QOperatingSystemVersion* self); int QOperatingSystemVersion_Type(const QOperatingSystemVersion* self); struct miqt_string QOperatingSystemVersion_Name(const QOperatingSystemVersion* self); -void QOperatingSystemVersion_Delete(QOperatingSystemVersion* self, bool isSubclass); +void QOperatingSystemVersion_Delete(QOperatingSystemVersion* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpagedpaintdevice.cpp b/qt/gen_qpagedpaintdevice.cpp index dc71b58d..6c552e9f 100644 --- a/qt/gen_qpagedpaintdevice.cpp +++ b/qt/gen_qpagedpaintdevice.cpp @@ -29,12 +29,12 @@ QPainter* miqt_exec_callback_QPagedPaintDevice_SharedPainter(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQPagedPaintDevice : public virtual QPagedPaintDevice { +class MiqtVirtualQPagedPaintDevice final : public QPagedPaintDevice { public: MiqtVirtualQPagedPaintDevice(): QPagedPaintDevice() {}; - virtual ~MiqtVirtualQPagedPaintDevice() = default; + virtual ~MiqtVirtualQPagedPaintDevice() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__NewPage = 0; @@ -393,19 +393,11 @@ QPainter* QPagedPaintDevice_virtualbase_SharedPainter(const void* self) { return ( (const MiqtVirtualQPagedPaintDevice*)(self) )->virtualbase_SharedPainter(); } -void QPagedPaintDevice_Delete(QPagedPaintDevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPagedPaintDevice_Delete(QPagedPaintDevice* self) { + delete self; } -void QPagedPaintDevice__Margins_Delete(QPagedPaintDevice__Margins* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPagedPaintDevice__Margins_Delete(QPagedPaintDevice__Margins* self) { + delete self; } diff --git a/qt/gen_qpagedpaintdevice.go b/qt/gen_qpagedpaintdevice.go index e70022a7..b3e498f4 100644 --- a/qt/gen_qpagedpaintdevice.go +++ b/qt/gen_qpagedpaintdevice.go @@ -507,7 +507,7 @@ func miqt_exec_callback_QPagedPaintDevice_SharedPainter(self *C.QPagedPaintDevic // Delete this object from C++ memory. func (this *QPagedPaintDevice) Delete() { - C.QPagedPaintDevice_Delete(this.h, C.bool(this.isSubclass)) + C.QPagedPaintDevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -554,7 +554,7 @@ func UnsafeNewQPagedPaintDevice__Margins(h unsafe.Pointer) *QPagedPaintDevice__M // Delete this object from C++ memory. func (this *QPagedPaintDevice__Margins) Delete() { - C.QPagedPaintDevice__Margins_Delete(this.h, C.bool(this.isSubclass)) + C.QPagedPaintDevice__Margins_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpagedpaintdevice.h b/qt/gen_qpagedpaintdevice.h index 878fb24c..c93784e2 100644 --- a/qt/gen_qpagedpaintdevice.h +++ b/qt/gen_qpagedpaintdevice.h @@ -77,9 +77,9 @@ void QPagedPaintDevice_override_virtual_Redirected(void* self, intptr_t slot); QPaintDevice* QPagedPaintDevice_virtualbase_Redirected(const void* self, QPoint* offset); void QPagedPaintDevice_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QPagedPaintDevice_virtualbase_SharedPainter(const void* self); -void QPagedPaintDevice_Delete(QPagedPaintDevice* self, bool isSubclass); +void QPagedPaintDevice_Delete(QPagedPaintDevice* self); -void QPagedPaintDevice__Margins_Delete(QPagedPaintDevice__Margins* self, bool isSubclass); +void QPagedPaintDevice__Margins_Delete(QPagedPaintDevice__Margins* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpagelayout.cpp b/qt/gen_qpagelayout.cpp index f8568a31..c6963b51 100644 --- a/qt/gen_qpagelayout.cpp +++ b/qt/gen_qpagelayout.cpp @@ -170,11 +170,7 @@ void QPageLayout_SetPageSize2(QPageLayout* self, QPageSize* pageSize, QMarginsF* self->setPageSize(*pageSize, *minMargins); } -void QPageLayout_Delete(QPageLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPageLayout_Delete(QPageLayout* self) { + delete self; } diff --git a/qt/gen_qpagelayout.go b/qt/gen_qpagelayout.go index 7ee3657e..86c00cb9 100644 --- a/qt/gen_qpagelayout.go +++ b/qt/gen_qpagelayout.go @@ -275,7 +275,7 @@ func (this *QPageLayout) SetPageSize2(pageSize *QPageSize, minMargins *QMarginsF // Delete this object from C++ memory. func (this *QPageLayout) Delete() { - C.QPageLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QPageLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpagelayout.h b/qt/gen_qpagelayout.h index fd9b5f3e..98baca3f 100644 --- a/qt/gen_qpagelayout.h +++ b/qt/gen_qpagelayout.h @@ -68,7 +68,7 @@ QRectF* QPageLayout_PaintRectWithUnits(const QPageLayout* self, int units); QRect* QPageLayout_PaintRectPoints(const QPageLayout* self); QRect* QPageLayout_PaintRectPixels(const QPageLayout* self, int resolution); void QPageLayout_SetPageSize2(QPageLayout* self, QPageSize* pageSize, QMarginsF* minMargins); -void QPageLayout_Delete(QPageLayout* self, bool isSubclass); +void QPageLayout_Delete(QPageLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpagesize.cpp b/qt/gen_qpagesize.cpp index 6ce39c20..0f9ffa3e 100644 --- a/qt/gen_qpagesize.cpp +++ b/qt/gen_qpagesize.cpp @@ -209,11 +209,7 @@ int QPageSize_Id3(QSizeF* size, int units, int matchPolicy) { return static_cast(_ret); } -void QPageSize_Delete(QPageSize* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPageSize_Delete(QPageSize* self) { + delete self; } diff --git a/qt/gen_qpagesize.go b/qt/gen_qpagesize.go index 6ecf8263..c9889075 100644 --- a/qt/gen_qpagesize.go +++ b/qt/gen_qpagesize.go @@ -437,7 +437,7 @@ func QPageSize_Id3(size *QSizeF, units QPageSize__Unit, matchPolicy QPageSize__S // Delete this object from C++ memory. func (this *QPageSize) Delete() { - C.QPageSize_Delete(this.h, C.bool(this.isSubclass)) + C.QPageSize_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpagesize.h b/qt/gen_qpagesize.h index 75d9a3d0..7afb23bf 100644 --- a/qt/gen_qpagesize.h +++ b/qt/gen_qpagesize.h @@ -66,7 +66,7 @@ QSize* QPageSize_SizePointsWithPageSizeId(int pageSizeId); QSize* QPageSize_SizePixels2(int pageSizeId, int resolution); int QPageSize_Id22(QSize* pointSize, int matchPolicy); int QPageSize_Id3(QSizeF* size, int units, int matchPolicy); -void QPageSize_Delete(QPageSize* self, bool isSubclass); +void QPageSize_Delete(QPageSize* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpaintdevice.cpp b/qt/gen_qpaintdevice.cpp index 3a68a9ce..000e425b 100644 --- a/qt/gen_qpaintdevice.cpp +++ b/qt/gen_qpaintdevice.cpp @@ -79,11 +79,7 @@ double QPaintDevice_DevicePixelRatioFScale() { return static_cast(_ret); } -void QPaintDevice_Delete(QPaintDevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPaintDevice_Delete(QPaintDevice* self) { + delete self; } diff --git a/qt/gen_qpaintdevice.go b/qt/gen_qpaintdevice.go index 54841057..2e5c0969 100644 --- a/qt/gen_qpaintdevice.go +++ b/qt/gen_qpaintdevice.go @@ -129,7 +129,7 @@ func QPaintDevice_DevicePixelRatioFScale() float64 { // Delete this object from C++ memory. func (this *QPaintDevice) Delete() { - C.QPaintDevice_Delete(this.h, C.bool(this.isSubclass)) + C.QPaintDevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpaintdevice.h b/qt/gen_qpaintdevice.h index 9220ead0..ebd39857 100644 --- a/qt/gen_qpaintdevice.h +++ b/qt/gen_qpaintdevice.h @@ -46,7 +46,7 @@ int QPaintDevice_Metric(const QPaintDevice* self, int metric); void QPaintDevice_InitPainter(const QPaintDevice* self, QPainter* painter); QPaintDevice* QPaintDevice_Redirected(const QPaintDevice* self, QPoint* offset); QPainter* QPaintDevice_SharedPainter(const QPaintDevice* self); -void QPaintDevice_Delete(QPaintDevice* self, bool isSubclass); +void QPaintDevice_Delete(QPaintDevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpaintdevicewindow.cpp b/qt/gen_qpaintdevicewindow.cpp index 3d0efc9d..24783546 100644 --- a/qt/gen_qpaintdevicewindow.cpp +++ b/qt/gen_qpaintdevicewindow.cpp @@ -114,11 +114,7 @@ struct miqt_string QPaintDeviceWindow_TrUtf83(const char* s, const char* c, int return _ms; } -void QPaintDeviceWindow_Delete(QPaintDeviceWindow* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPaintDeviceWindow_Delete(QPaintDeviceWindow* self) { + delete self; } diff --git a/qt/gen_qpaintdevicewindow.go b/qt/gen_qpaintdevicewindow.go index d27f516a..42f97f76 100644 --- a/qt/gen_qpaintdevicewindow.go +++ b/qt/gen_qpaintdevicewindow.go @@ -139,7 +139,7 @@ func QPaintDeviceWindow_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QPaintDeviceWindow) Delete() { - C.QPaintDeviceWindow_Delete(this.h, C.bool(this.isSubclass)) + C.QPaintDeviceWindow_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpaintdevicewindow.h b/qt/gen_qpaintdevicewindow.h index 03e165f5..72217a9f 100644 --- a/qt/gen_qpaintdevicewindow.h +++ b/qt/gen_qpaintdevicewindow.h @@ -56,7 +56,7 @@ struct miqt_string QPaintDeviceWindow_Tr2(const char* s, const char* c); struct miqt_string QPaintDeviceWindow_Tr3(const char* s, const char* c, int n); struct miqt_string QPaintDeviceWindow_TrUtf82(const char* s, const char* c); struct miqt_string QPaintDeviceWindow_TrUtf83(const char* s, const char* c, int n); -void QPaintDeviceWindow_Delete(QPaintDeviceWindow* self, bool isSubclass); +void QPaintDeviceWindow_Delete(QPaintDeviceWindow* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpaintengine.cpp b/qt/gen_qpaintengine.cpp index 8aefa41f..84943e72 100644 --- a/qt/gen_qpaintengine.cpp +++ b/qt/gen_qpaintengine.cpp @@ -87,21 +87,17 @@ QFont* QTextItem_Font(const QTextItem* self) { return new QFont(self->font()); } -void QTextItem_Delete(QTextItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextItem_Delete(QTextItem* self) { + delete self; } -class MiqtVirtualQPaintEngine : public virtual QPaintEngine { +class MiqtVirtualQPaintEngine final : public QPaintEngine { public: MiqtVirtualQPaintEngine(): QPaintEngine() {}; MiqtVirtualQPaintEngine(QPaintEngine::PaintEngineFeatures features): QPaintEngine(features) {}; - virtual ~MiqtVirtualQPaintEngine() = default; + virtual ~MiqtVirtualQPaintEngine() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Begin = 0; @@ -885,12 +881,8 @@ void QPaintEngine_override_virtual_Type(void* self, intptr_t slot) { dynamic_cast( (QPaintEngine*)(self) )->handle__Type = slot; } -void QPaintEngine_Delete(QPaintEngine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPaintEngine_Delete(QPaintEngine* self) { + delete self; } int QPaintEngineState_State(const QPaintEngineState* self) { @@ -975,11 +967,7 @@ bool QPaintEngineState_PenNeedsResolving(const QPaintEngineState* self) { return self->penNeedsResolving(); } -void QPaintEngineState_Delete(QPaintEngineState* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPaintEngineState_Delete(QPaintEngineState* self) { + delete self; } diff --git a/qt/gen_qpaintengine.go b/qt/gen_qpaintengine.go index b0734eda..507da545 100644 --- a/qt/gen_qpaintengine.go +++ b/qt/gen_qpaintengine.go @@ -164,7 +164,7 @@ func (this *QTextItem) Font() *QFont { // Delete this object from C++ memory. func (this *QTextItem) Delete() { - C.QTextItem_Delete(this.h, C.bool(this.isSubclass)) + C.QTextItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -904,7 +904,7 @@ func miqt_exec_callback_QPaintEngine_Type(self *C.QPaintEngine, cb C.intptr_t) C // Delete this object from C++ memory. func (this *QPaintEngine) Delete() { - C.QPaintEngine_Delete(this.h, C.bool(this.isSubclass)) + C.QPaintEngine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1045,7 +1045,7 @@ func (this *QPaintEngineState) PenNeedsResolving() bool { // Delete this object from C++ memory. func (this *QPaintEngineState) Delete() { - C.QPaintEngineState_Delete(this.h, C.bool(this.isSubclass)) + C.QPaintEngineState_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpaintengine.h b/qt/gen_qpaintengine.h index e5aca81b..dcca965b 100644 --- a/qt/gen_qpaintengine.h +++ b/qt/gen_qpaintengine.h @@ -64,7 +64,7 @@ double QTextItem_Width(const QTextItem* self); int QTextItem_RenderFlags(const QTextItem* self); struct miqt_string QTextItem_Text(const QTextItem* self); QFont* QTextItem_Font(const QTextItem* self); -void QTextItem_Delete(QTextItem* self, bool isSubclass); +void QTextItem_Delete(QTextItem* self); QPaintEngine* QPaintEngine_new(); QPaintEngine* QPaintEngine_new2(int features); @@ -144,7 +144,7 @@ void QPaintEngine_override_virtual_CoordinateOffset(void* self, intptr_t slot); QPoint* QPaintEngine_virtualbase_CoordinateOffset(const void* self); void QPaintEngine_override_virtual_Type(void* self, intptr_t slot); int QPaintEngine_virtualbase_Type(const void* self); -void QPaintEngine_Delete(QPaintEngine* self, bool isSubclass); +void QPaintEngine_Delete(QPaintEngine* self); int QPaintEngineState_State(const QPaintEngineState* self); QPen* QPaintEngineState_Pen(const QPaintEngineState* self); @@ -165,7 +165,7 @@ double QPaintEngineState_Opacity(const QPaintEngineState* self); QPainter* QPaintEngineState_Painter(const QPaintEngineState* self); bool QPaintEngineState_BrushNeedsResolving(const QPaintEngineState* self); bool QPaintEngineState_PenNeedsResolving(const QPaintEngineState* self); -void QPaintEngineState_Delete(QPaintEngineState* self, bool isSubclass); +void QPaintEngineState_Delete(QPaintEngineState* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpainter.cpp b/qt/gen_qpainter.cpp index ade323ee..a5fe8383 100644 --- a/qt/gen_qpainter.cpp +++ b/qt/gen_qpainter.cpp @@ -1106,12 +1106,8 @@ QPaintDevice* QPainter_Redirected2(QPaintDevice* device, QPoint* offset) { return QPainter::redirected(device, offset); } -void QPainter_Delete(QPainter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPainter_Delete(QPainter* self) { + delete self; } QPainter__PixmapFragment* QPainter__PixmapFragment_Create(QPointF* pos, QRectF* sourceRect) { @@ -1134,11 +1130,7 @@ QPainter__PixmapFragment* QPainter__PixmapFragment_Create6(QPointF* pos, QRectF* return new QPainter::PixmapFragment(QPainter::PixmapFragment::create(*pos, *sourceRect, static_cast(scaleX), static_cast(scaleY), static_cast(rotation), static_cast(opacity))); } -void QPainter__PixmapFragment_Delete(QPainter__PixmapFragment* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPainter__PixmapFragment_Delete(QPainter__PixmapFragment* self) { + delete self; } diff --git a/qt/gen_qpainter.go b/qt/gen_qpainter.go index ee72d350..a899f9b5 100644 --- a/qt/gen_qpainter.go +++ b/qt/gen_qpainter.go @@ -1239,7 +1239,7 @@ func QPainter_Redirected2(device *QPaintDevice, offset *QPoint) *QPaintDevice { // Delete this object from C++ memory. func (this *QPainter) Delete() { - C.QPainter_Delete(this.h, C.bool(this.isSubclass)) + C.QPainter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1316,7 +1316,7 @@ func QPainter__PixmapFragment_Create6(pos *QPointF, sourceRect *QRectF, scaleX f // Delete this object from C++ memory. func (this *QPainter__PixmapFragment) Delete() { - C.QPainter__PixmapFragment_Delete(this.h, C.bool(this.isSubclass)) + C.QPainter__PixmapFragment_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpainter.h b/qt/gen_qpainter.h index 59189fa9..2d3b33bf 100644 --- a/qt/gen_qpainter.h +++ b/qt/gen_qpainter.h @@ -323,14 +323,14 @@ void QPainter_SetRenderHint2(QPainter* self, int hint, bool on); void QPainter_SetRenderHints2(QPainter* self, int hints, bool on); void QPainter_SetRedirected3(QPaintDevice* device, QPaintDevice* replacement, QPoint* offset); QPaintDevice* QPainter_Redirected2(QPaintDevice* device, QPoint* offset); -void QPainter_Delete(QPainter* self, bool isSubclass); +void QPainter_Delete(QPainter* self); QPainter__PixmapFragment* QPainter__PixmapFragment_Create(QPointF* pos, QRectF* sourceRect); QPainter__PixmapFragment* QPainter__PixmapFragment_Create3(QPointF* pos, QRectF* sourceRect, double scaleX); QPainter__PixmapFragment* QPainter__PixmapFragment_Create4(QPointF* pos, QRectF* sourceRect, double scaleX, double scaleY); QPainter__PixmapFragment* QPainter__PixmapFragment_Create5(QPointF* pos, QRectF* sourceRect, double scaleX, double scaleY, double rotation); QPainter__PixmapFragment* QPainter__PixmapFragment_Create6(QPointF* pos, QRectF* sourceRect, double scaleX, double scaleY, double rotation, double opacity); -void QPainter__PixmapFragment_Delete(QPainter__PixmapFragment* self, bool isSubclass); +void QPainter__PixmapFragment_Delete(QPainter__PixmapFragment* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpainterpath.cpp b/qt/gen_qpainterpath.cpp index 753b792b..a7f68ec0 100644 --- a/qt/gen_qpainterpath.cpp +++ b/qt/gen_qpainterpath.cpp @@ -344,12 +344,8 @@ void QPainterPath_AddRoundedRect7(QPainterPath* self, double x, double y, double self->addRoundedRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(xRadius), static_cast(yRadius), static_cast(mode)); } -void QPainterPath_Delete(QPainterPath* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPainterPath_Delete(QPainterPath* self) { + delete self; } QPainterPathStroker* QPainterPathStroker_new() { @@ -445,12 +441,8 @@ QPainterPath* QPainterPathStroker_CreateStroke(const QPainterPathStroker* self, return new QPainterPath(self->createStroke(*path)); } -void QPainterPathStroker_Delete(QPainterPathStroker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPainterPathStroker_Delete(QPainterPathStroker* self) { + delete self; } bool QPainterPath__Element_IsMoveTo(const QPainterPath__Element* self) { @@ -477,11 +469,7 @@ bool QPainterPath__Element_OperatorNotEqual(const QPainterPath__Element* self, Q return (*self != *e); } -void QPainterPath__Element_Delete(QPainterPath__Element* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPainterPath__Element_Delete(QPainterPath__Element* self) { + delete self; } diff --git a/qt/gen_qpainterpath.go b/qt/gen_qpainterpath.go index 10be0399..acc8de42 100644 --- a/qt/gen_qpainterpath.go +++ b/qt/gen_qpainterpath.go @@ -423,7 +423,7 @@ func (this *QPainterPath) AddRoundedRect7(x float64, y float64, w float64, h flo // Delete this object from C++ memory. func (this *QPainterPath) Delete() { - C.QPainterPath_Delete(this.h, C.bool(this.isSubclass)) + C.QPainterPath_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -564,7 +564,7 @@ func (this *QPainterPathStroker) CreateStroke(path *QPainterPath) *QPainterPath // Delete this object from C++ memory. func (this *QPainterPathStroker) Delete() { - C.QPainterPathStroker_Delete(this.h, C.bool(this.isSubclass)) + C.QPainterPathStroker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -637,7 +637,7 @@ func (this *QPainterPath__Element) OperatorNotEqual(e *QPainterPath__Element) bo // Delete this object from C++ memory. func (this *QPainterPath__Element) Delete() { - C.QPainterPath__Element_Delete(this.h, C.bool(this.isSubclass)) + C.QPainterPath__Element_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpainterpath.h b/qt/gen_qpainterpath.h index 5e5f7971..29f613ce 100644 --- a/qt/gen_qpainterpath.h +++ b/qt/gen_qpainterpath.h @@ -116,7 +116,7 @@ QPainterPath* QPainterPath_OperatorPlusAssign(QPainterPath* self, QPainterPath* QPainterPath* QPainterPath_OperatorMinusAssign(QPainterPath* self, QPainterPath* other); void QPainterPath_AddRoundedRect4(QPainterPath* self, QRectF* rect, double xRadius, double yRadius, int mode); void QPainterPath_AddRoundedRect7(QPainterPath* self, double x, double y, double w, double h, double xRadius, double yRadius, int mode); -void QPainterPath_Delete(QPainterPath* self, bool isSubclass); +void QPainterPath_Delete(QPainterPath* self); QPainterPathStroker* QPainterPathStroker_new(); QPainterPathStroker* QPainterPathStroker_new2(QPen* pen); @@ -136,7 +136,7 @@ struct miqt_array /* of double */ QPainterPathStroker_DashPattern(const QPainte void QPainterPathStroker_SetDashOffset(QPainterPathStroker* self, double offset); double QPainterPathStroker_DashOffset(const QPainterPathStroker* self); QPainterPath* QPainterPathStroker_CreateStroke(const QPainterPathStroker* self, QPainterPath* path); -void QPainterPathStroker_Delete(QPainterPathStroker* self, bool isSubclass); +void QPainterPathStroker_Delete(QPainterPathStroker* self); bool QPainterPath__Element_IsMoveTo(const QPainterPath__Element* self); bool QPainterPath__Element_IsLineTo(const QPainterPath__Element* self); @@ -144,7 +144,7 @@ bool QPainterPath__Element_IsCurveTo(const QPainterPath__Element* self); QPointF* QPainterPath__Element_ToQPointF(const QPainterPath__Element* self); bool QPainterPath__Element_OperatorEqual(const QPainterPath__Element* self, QPainterPath__Element* e); bool QPainterPath__Element_OperatorNotEqual(const QPainterPath__Element* self, QPainterPath__Element* e); -void QPainterPath__Element_Delete(QPainterPath__Element* self, bool isSubclass); +void QPainterPath__Element_Delete(QPainterPath__Element* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpalette.cpp b/qt/gen_qpalette.cpp index a8b250d0..da05edf4 100644 --- a/qt/gen_qpalette.cpp +++ b/qt/gen_qpalette.cpp @@ -276,11 +276,7 @@ void QPalette_ResolveWithMask(QPalette* self, unsigned int mask) { self->resolve(static_cast(mask)); } -void QPalette_Delete(QPalette* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPalette_Delete(QPalette* self) { + delete self; } diff --git a/qt/gen_qpalette.go b/qt/gen_qpalette.go index 7ae35434..e06dd231 100644 --- a/qt/gen_qpalette.go +++ b/qt/gen_qpalette.go @@ -329,7 +329,7 @@ func (this *QPalette) ResolveWithMask(mask uint) { // Delete this object from C++ memory. func (this *QPalette) Delete() { - C.QPalette_Delete(this.h, C.bool(this.isSubclass)) + C.QPalette_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpalette.h b/qt/gen_qpalette.h index 9ecf1569..248e4e4c 100644 --- a/qt/gen_qpalette.h +++ b/qt/gen_qpalette.h @@ -78,7 +78,7 @@ long long QPalette_CacheKey(const QPalette* self); QPalette* QPalette_Resolve(const QPalette* self, QPalette* param1); unsigned int QPalette_Resolve2(const QPalette* self); void QPalette_ResolveWithMask(QPalette* self, unsigned int mask); -void QPalette_Delete(QPalette* self, bool isSubclass); +void QPalette_Delete(QPalette* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qparallelanimationgroup.cpp b/qt/gen_qparallelanimationgroup.cpp index 093e72ba..fba362da 100644 --- a/qt/gen_qparallelanimationgroup.cpp +++ b/qt/gen_qparallelanimationgroup.cpp @@ -23,13 +23,13 @@ void miqt_exec_callback_QParallelAnimationGroup_UpdateDirection(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQParallelAnimationGroup : public virtual QParallelAnimationGroup { +class MiqtVirtualQParallelAnimationGroup final : public QParallelAnimationGroup { public: MiqtVirtualQParallelAnimationGroup(): QParallelAnimationGroup() {}; MiqtVirtualQParallelAnimationGroup(QObject* parent): QParallelAnimationGroup(parent) {}; - virtual ~MiqtVirtualQParallelAnimationGroup() = default; + virtual ~MiqtVirtualQParallelAnimationGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Duration = 0; @@ -284,11 +284,7 @@ void QParallelAnimationGroup_virtualbase_UpdateDirection(void* self, int directi ( (MiqtVirtualQParallelAnimationGroup*)(self) )->virtualbase_UpdateDirection(direction); } -void QParallelAnimationGroup_Delete(QParallelAnimationGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QParallelAnimationGroup_Delete(QParallelAnimationGroup* self) { + delete self; } diff --git a/qt/gen_qparallelanimationgroup.go b/qt/gen_qparallelanimationgroup.go index 5a413663..161f4505 100644 --- a/qt/gen_qparallelanimationgroup.go +++ b/qt/gen_qparallelanimationgroup.go @@ -278,7 +278,7 @@ func miqt_exec_callback_QParallelAnimationGroup_UpdateDirection(self *C.QParalle // Delete this object from C++ memory. func (this *QParallelAnimationGroup) Delete() { - C.QParallelAnimationGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QParallelAnimationGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qparallelanimationgroup.h b/qt/gen_qparallelanimationgroup.h index 44c5ea60..c9983e9d 100644 --- a/qt/gen_qparallelanimationgroup.h +++ b/qt/gen_qparallelanimationgroup.h @@ -56,7 +56,7 @@ void QParallelAnimationGroup_override_virtual_UpdateState(void* self, intptr_t s void QParallelAnimationGroup_virtualbase_UpdateState(void* self, int newState, int oldState); void QParallelAnimationGroup_override_virtual_UpdateDirection(void* self, intptr_t slot); void QParallelAnimationGroup_virtualbase_UpdateDirection(void* self, int direction); -void QParallelAnimationGroup_Delete(QParallelAnimationGroup* self, bool isSubclass); +void QParallelAnimationGroup_Delete(QParallelAnimationGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpauseanimation.cpp b/qt/gen_qpauseanimation.cpp index f2924788..777527d7 100644 --- a/qt/gen_qpauseanimation.cpp +++ b/qt/gen_qpauseanimation.cpp @@ -22,7 +22,7 @@ void miqt_exec_callback_QPauseAnimation_UpdateDirection(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQPauseAnimation : public virtual QPauseAnimation { +class MiqtVirtualQPauseAnimation final : public QPauseAnimation { public: MiqtVirtualQPauseAnimation(): QPauseAnimation() {}; @@ -30,7 +30,7 @@ public: MiqtVirtualQPauseAnimation(QObject* parent): QPauseAnimation(parent) {}; MiqtVirtualQPauseAnimation(int msecs, QObject* parent): QPauseAnimation(msecs, parent) {}; - virtual ~MiqtVirtualQPauseAnimation() = default; + virtual ~MiqtVirtualQPauseAnimation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Duration = 0; @@ -297,11 +297,7 @@ void QPauseAnimation_virtualbase_UpdateDirection(void* self, int direction) { ( (MiqtVirtualQPauseAnimation*)(self) )->virtualbase_UpdateDirection(direction); } -void QPauseAnimation_Delete(QPauseAnimation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPauseAnimation_Delete(QPauseAnimation* self) { + delete self; } diff --git a/qt/gen_qpauseanimation.go b/qt/gen_qpauseanimation.go index 16ce749c..80d35156 100644 --- a/qt/gen_qpauseanimation.go +++ b/qt/gen_qpauseanimation.go @@ -298,7 +298,7 @@ func miqt_exec_callback_QPauseAnimation_UpdateDirection(self *C.QPauseAnimation, // Delete this object from C++ memory. func (this *QPauseAnimation) Delete() { - C.QPauseAnimation_Delete(this.h, C.bool(this.isSubclass)) + C.QPauseAnimation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpauseanimation.h b/qt/gen_qpauseanimation.h index d5535cf8..2a20509e 100644 --- a/qt/gen_qpauseanimation.h +++ b/qt/gen_qpauseanimation.h @@ -55,7 +55,7 @@ void QPauseAnimation_override_virtual_UpdateState(void* self, intptr_t slot); void QPauseAnimation_virtualbase_UpdateState(void* self, int newState, int oldState); void QPauseAnimation_override_virtual_UpdateDirection(void* self, intptr_t slot); void QPauseAnimation_virtualbase_UpdateDirection(void* self, int direction); -void QPauseAnimation_Delete(QPauseAnimation* self, bool isSubclass); +void QPauseAnimation_Delete(QPauseAnimation* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpdfwriter.cpp b/qt/gen_qpdfwriter.cpp index 1bc7fd76..8aaa2a01 100644 --- a/qt/gen_qpdfwriter.cpp +++ b/qt/gen_qpdfwriter.cpp @@ -39,13 +39,13 @@ void miqt_exec_callback_QPdfWriter_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQPdfWriter : public virtual QPdfWriter { +class MiqtVirtualQPdfWriter final : public QPdfWriter { public: MiqtVirtualQPdfWriter(const QString& filename): QPdfWriter(filename) {}; MiqtVirtualQPdfWriter(QIODevice* device): QPdfWriter(device) {}; - virtual ~MiqtVirtualQPdfWriter() = default; + virtual ~MiqtVirtualQPdfWriter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__NewPage = 0; @@ -649,11 +649,7 @@ void QPdfWriter_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQPdfWriter*)(self) )->virtualbase_DisconnectNotify(signal); } -void QPdfWriter_Delete(QPdfWriter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPdfWriter_Delete(QPdfWriter* self) { + delete self; } diff --git a/qt/gen_qpdfwriter.go b/qt/gen_qpdfwriter.go index 766fa706..2d7bdcf0 100644 --- a/qt/gen_qpdfwriter.go +++ b/qt/gen_qpdfwriter.go @@ -594,7 +594,7 @@ func miqt_exec_callback_QPdfWriter_DisconnectNotify(self *C.QPdfWriter, cb C.int // Delete this object from C++ memory. func (this *QPdfWriter) Delete() { - C.QPdfWriter_Delete(this.h, C.bool(this.isSubclass)) + C.QPdfWriter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpdfwriter.h b/qt/gen_qpdfwriter.h index 270f27fe..0f239b66 100644 --- a/qt/gen_qpdfwriter.h +++ b/qt/gen_qpdfwriter.h @@ -103,7 +103,7 @@ void QPdfWriter_override_virtual_ConnectNotify(void* self, intptr_t slot); void QPdfWriter_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QPdfWriter_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QPdfWriter_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QPdfWriter_Delete(QPdfWriter* self, bool isSubclass); +void QPdfWriter_Delete(QPdfWriter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpen.cpp b/qt/gen_qpen.cpp index ff54b3e2..55879a8f 100644 --- a/qt/gen_qpen.cpp +++ b/qt/gen_qpen.cpp @@ -183,11 +183,7 @@ bool QPen_IsDetached(QPen* self) { return self->isDetached(); } -void QPen_Delete(QPen* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPen_Delete(QPen* self) { + delete self; } diff --git a/qt/gen_qpen.go b/qt/gen_qpen.go index 64b8e58d..cf28fdf5 100644 --- a/qt/gen_qpen.go +++ b/qt/gen_qpen.go @@ -246,7 +246,7 @@ func (this *QPen) IsDetached() bool { // Delete this object from C++ memory. func (this *QPen) Delete() { - C.QPen_Delete(this.h, C.bool(this.isSubclass)) + C.QPen_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpen.h b/qt/gen_qpen.h index ba950f4e..065dde2e 100644 --- a/qt/gen_qpen.h +++ b/qt/gen_qpen.h @@ -63,7 +63,7 @@ bool QPen_OperatorEqual(const QPen* self, QPen* p); bool QPen_OperatorNotEqual(const QPen* self, QPen* p); QVariant* QPen_ToQVariant(const QPen* self); bool QPen_IsDetached(QPen* self); -void QPen_Delete(QPen* self, bool isSubclass); +void QPen_Delete(QPen* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpicture.cpp b/qt/gen_qpicture.cpp index acb54350..9f88860a 100644 --- a/qt/gen_qpicture.cpp +++ b/qt/gen_qpicture.cpp @@ -29,14 +29,14 @@ QPainter* miqt_exec_callback_QPicture_SharedPainter(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQPicture : public virtual QPicture { +class MiqtVirtualQPicture final : public QPicture { public: MiqtVirtualQPicture(): QPicture() {}; MiqtVirtualQPicture(const QPicture& param1): QPicture(param1) {}; MiqtVirtualQPicture(int formatVersion): QPicture(formatVersion) {}; - virtual ~MiqtVirtualQPicture() = default; + virtual ~MiqtVirtualQPicture() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -445,12 +445,8 @@ QPainter* QPicture_virtualbase_SharedPainter(const void* self) { return ( (const MiqtVirtualQPicture*)(self) )->virtualbase_SharedPainter(); } -void QPicture_Delete(QPicture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPicture_Delete(QPicture* self) { + delete self; } QPictureIO* QPictureIO_new() { @@ -619,11 +615,7 @@ struct miqt_array /* of struct miqt_string */ QPictureIO_OutputFormats() { return _out; } -void QPictureIO_Delete(QPictureIO* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPictureIO_Delete(QPictureIO* self) { + delete self; } diff --git a/qt/gen_qpicture.go b/qt/gen_qpicture.go index 748bbfa0..abbcf791 100644 --- a/qt/gen_qpicture.go +++ b/qt/gen_qpicture.go @@ -439,7 +439,7 @@ func miqt_exec_callback_QPicture_SharedPainter(self *C.QPicture, cb C.intptr_t) // Delete this object from C++ memory. func (this *QPicture) Delete() { - C.QPicture_Delete(this.h, C.bool(this.isSubclass)) + C.QPicture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -662,7 +662,7 @@ func QPictureIO_OutputFormats() [][]byte { // Delete this object from C++ memory. func (this *QPictureIO) Delete() { - C.QPictureIO_Delete(this.h, C.bool(this.isSubclass)) + C.QPictureIO_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpicture.h b/qt/gen_qpicture.h index 7da4ca9e..6923f04b 100644 --- a/qt/gen_qpicture.h +++ b/qt/gen_qpicture.h @@ -79,7 +79,7 @@ void QPicture_override_virtual_Redirected(void* self, intptr_t slot); QPaintDevice* QPicture_virtualbase_Redirected(const void* self, QPoint* offset); void QPicture_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QPicture_virtualbase_SharedPainter(const void* self); -void QPicture_Delete(QPicture* self, bool isSubclass); +void QPicture_Delete(QPicture* self); QPictureIO* QPictureIO_new(); QPictureIO* QPictureIO_new2(QIODevice* ioDevice, const char* format); @@ -108,7 +108,7 @@ struct miqt_string QPictureIO_PictureFormat(struct miqt_string fileName); struct miqt_string QPictureIO_PictureFormatWithQIODevice(QIODevice* param1); struct miqt_array /* of struct miqt_string */ QPictureIO_InputFormats(); struct miqt_array /* of struct miqt_string */ QPictureIO_OutputFormats(); -void QPictureIO_Delete(QPictureIO* self, bool isSubclass); +void QPictureIO_Delete(QPictureIO* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpictureformatplugin.cpp b/qt/gen_qpictureformatplugin.cpp index 90e5ee26..d72fd27c 100644 --- a/qt/gen_qpictureformatplugin.cpp +++ b/qt/gen_qpictureformatplugin.cpp @@ -30,13 +30,13 @@ void miqt_exec_callback_QPictureFormatPlugin_DisconnectNotify(void*, intptr_t, Q } /* extern C */ #endif -class MiqtVirtualQPictureFormatPlugin : public virtual QPictureFormatPlugin { +class MiqtVirtualQPictureFormatPlugin final : public QPictureFormatPlugin { public: MiqtVirtualQPictureFormatPlugin(): QPictureFormatPlugin() {}; MiqtVirtualQPictureFormatPlugin(QObject* parent): QPictureFormatPlugin(parent) {}; - virtual ~MiqtVirtualQPictureFormatPlugin() = default; + virtual ~MiqtVirtualQPictureFormatPlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__LoadPicture = 0; @@ -497,11 +497,7 @@ void QPictureFormatPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* ( (MiqtVirtualQPictureFormatPlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QPictureFormatPlugin_Delete(QPictureFormatPlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPictureFormatPlugin_Delete(QPictureFormatPlugin* self) { + delete self; } diff --git a/qt/gen_qpictureformatplugin.go b/qt/gen_qpictureformatplugin.go index ed2dadf8..4318252d 100644 --- a/qt/gen_qpictureformatplugin.go +++ b/qt/gen_qpictureformatplugin.go @@ -474,7 +474,7 @@ func miqt_exec_callback_QPictureFormatPlugin_DisconnectNotify(self *C.QPictureFo // Delete this object from C++ memory. func (this *QPictureFormatPlugin) Delete() { - C.QPictureFormatPlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QPictureFormatPlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpictureformatplugin.h b/qt/gen_qpictureformatplugin.h index c18e8408..76eb6eed 100644 --- a/qt/gen_qpictureformatplugin.h +++ b/qt/gen_qpictureformatplugin.h @@ -68,7 +68,7 @@ void QPictureFormatPlugin_override_virtual_ConnectNotify(void* self, intptr_t sl void QPictureFormatPlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QPictureFormatPlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QPictureFormatPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QPictureFormatPlugin_Delete(QPictureFormatPlugin* self, bool isSubclass); +void QPictureFormatPlugin_Delete(QPictureFormatPlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpixelformat.cpp b/qt/gen_qpixelformat.cpp index 388e521a..40c5e83b 100644 --- a/qt/gen_qpixelformat.cpp +++ b/qt/gen_qpixelformat.cpp @@ -140,11 +140,7 @@ unsigned char QPixelFormat_SubEnum(const QPixelFormat* self) { return static_cast(_ret); } -void QPixelFormat_Delete(QPixelFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPixelFormat_Delete(QPixelFormat* self) { + delete self; } diff --git a/qt/gen_qpixelformat.go b/qt/gen_qpixelformat.go index 0bb6dfe0..058fac5b 100644 --- a/qt/gen_qpixelformat.go +++ b/qt/gen_qpixelformat.go @@ -249,7 +249,7 @@ func (this *QPixelFormat) SubEnum() byte { // Delete this object from C++ memory. func (this *QPixelFormat) Delete() { - C.QPixelFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QPixelFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpixelformat.h b/qt/gen_qpixelformat.h index 84a9ff38..54d8f91d 100644 --- a/qt/gen_qpixelformat.h +++ b/qt/gen_qpixelformat.h @@ -47,7 +47,7 @@ int QPixelFormat_TypeInterpretation(const QPixelFormat* self); int QPixelFormat_ByteOrder(const QPixelFormat* self); int QPixelFormat_YuvLayout(const QPixelFormat* self); unsigned char QPixelFormat_SubEnum(const QPixelFormat* self); -void QPixelFormat_Delete(QPixelFormat* self, bool isSubclass); +void QPixelFormat_Delete(QPixelFormat* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpixmap.cpp b/qt/gen_qpixmap.cpp index e1df75f4..b292e721 100644 --- a/qt/gen_qpixmap.cpp +++ b/qt/gen_qpixmap.cpp @@ -36,7 +36,7 @@ QPainter* miqt_exec_callback_QPixmap_SharedPainter(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQPixmap : public virtual QPixmap { +class MiqtVirtualQPixmap final : public QPixmap { public: MiqtVirtualQPixmap(): QPixmap() {}; @@ -47,7 +47,7 @@ public: MiqtVirtualQPixmap(const QString& fileName, const char* format): QPixmap(fileName, format) {}; MiqtVirtualQPixmap(const QString& fileName, const char* format, Qt::ImageConversionFlags flags): QPixmap(fileName, format, flags) {}; - virtual ~MiqtVirtualQPixmap() = default; + virtual ~MiqtVirtualQPixmap() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -630,11 +630,7 @@ QPainter* QPixmap_virtualbase_SharedPainter(const void* self) { return ( (const MiqtVirtualQPixmap*)(self) )->virtualbase_SharedPainter(); } -void QPixmap_Delete(QPixmap* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPixmap_Delete(QPixmap* self) { + delete self; } diff --git a/qt/gen_qpixmap.go b/qt/gen_qpixmap.go index 3f0597e2..d9ecc709 100644 --- a/qt/gen_qpixmap.go +++ b/qt/gen_qpixmap.go @@ -769,7 +769,7 @@ func miqt_exec_callback_QPixmap_SharedPainter(self *C.QPixmap, cb C.intptr_t) *C // Delete this object from C++ memory. func (this *QPixmap) Delete() { - C.QPixmap_Delete(this.h, C.bool(this.isSubclass)) + C.QPixmap_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpixmap.h b/qt/gen_qpixmap.h index bb21294b..1c3c66a0 100644 --- a/qt/gen_qpixmap.h +++ b/qt/gen_qpixmap.h @@ -160,7 +160,7 @@ void QPixmap_override_virtual_Redirected(void* self, intptr_t slot); QPaintDevice* QPixmap_virtualbase_Redirected(const void* self, QPoint* offset); void QPixmap_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QPixmap_virtualbase_SharedPainter(const void* self); -void QPixmap_Delete(QPixmap* self, bool isSubclass); +void QPixmap_Delete(QPixmap* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpixmapcache.cpp b/qt/gen_qpixmapcache.cpp index b56c1765..321909d6 100644 --- a/qt/gen_qpixmapcache.cpp +++ b/qt/gen_qpixmapcache.cpp @@ -68,12 +68,8 @@ void QPixmapCache_Clear() { QPixmapCache::clear(); } -void QPixmapCache_Delete(QPixmapCache* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPixmapCache_Delete(QPixmapCache* self) { + delete self; } QPixmapCache__Key* QPixmapCache__Key_new() { @@ -104,11 +100,7 @@ bool QPixmapCache__Key_IsValid(const QPixmapCache__Key* self) { return self->isValid(); } -void QPixmapCache__Key_Delete(QPixmapCache__Key* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPixmapCache__Key_Delete(QPixmapCache__Key* self) { + delete self; } diff --git a/qt/gen_qpixmapcache.go b/qt/gen_qpixmapcache.go index 38aafce0..36fb220d 100644 --- a/qt/gen_qpixmapcache.go +++ b/qt/gen_qpixmapcache.go @@ -118,7 +118,7 @@ func QPixmapCache_Clear() { // Delete this object from C++ memory. func (this *QPixmapCache) Delete() { - C.QPixmapCache_Delete(this.h, C.bool(this.isSubclass)) + C.QPixmapCache_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -201,7 +201,7 @@ func (this *QPixmapCache__Key) IsValid() bool { // Delete this object from C++ memory. func (this *QPixmapCache__Key) Delete() { - C.QPixmapCache__Key_Delete(this.h, C.bool(this.isSubclass)) + C.QPixmapCache__Key_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpixmapcache.h b/qt/gen_qpixmapcache.h index bed57df3..db73126d 100644 --- a/qt/gen_qpixmapcache.h +++ b/qt/gen_qpixmapcache.h @@ -40,7 +40,7 @@ bool QPixmapCache_Replace(QPixmapCache__Key* key, QPixmap* pixmap); void QPixmapCache_Remove(struct miqt_string key); void QPixmapCache_RemoveWithKey(QPixmapCache__Key* key); void QPixmapCache_Clear(); -void QPixmapCache_Delete(QPixmapCache* self, bool isSubclass); +void QPixmapCache_Delete(QPixmapCache* self); QPixmapCache__Key* QPixmapCache__Key_new(); QPixmapCache__Key* QPixmapCache__Key_new2(QPixmapCache__Key* other); @@ -49,7 +49,7 @@ bool QPixmapCache__Key_OperatorNotEqual(const QPixmapCache__Key* self, QPixmapCa void QPixmapCache__Key_OperatorAssign(QPixmapCache__Key* self, QPixmapCache__Key* other); void QPixmapCache__Key_Swap(QPixmapCache__Key* self, QPixmapCache__Key* other); bool QPixmapCache__Key_IsValid(const QPixmapCache__Key* self); -void QPixmapCache__Key_Delete(QPixmapCache__Key* self, bool isSubclass); +void QPixmapCache__Key_Delete(QPixmapCache__Key* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qplaintextedit.cpp b/qt/gen_qplaintextedit.cpp index ca7703d4..0ef155d8 100644 --- a/qt/gen_qplaintextedit.cpp +++ b/qt/gen_qplaintextedit.cpp @@ -114,7 +114,7 @@ void miqt_exec_callback_QPlainTextDocumentLayout_DrawInlineObject(void*, intptr_ } /* extern C */ #endif -class MiqtVirtualQPlainTextEdit : public virtual QPlainTextEdit { +class MiqtVirtualQPlainTextEdit final : public QPlainTextEdit { public: MiqtVirtualQPlainTextEdit(QWidget* parent): QPlainTextEdit(parent) {}; @@ -122,7 +122,7 @@ public: MiqtVirtualQPlainTextEdit(const QString& text): QPlainTextEdit(text) {}; MiqtVirtualQPlainTextEdit(const QString& text, QWidget* parent): QPlainTextEdit(text, parent) {}; - virtual ~MiqtVirtualQPlainTextEdit() = default; + virtual ~MiqtVirtualQPlainTextEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__LoadResource = 0; @@ -1797,20 +1797,16 @@ QSize* QPlainTextEdit_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQPlainTextEdit*)(self) )->virtualbase_ViewportSizeHint(); } -void QPlainTextEdit_Delete(QPlainTextEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPlainTextEdit_Delete(QPlainTextEdit* self) { + delete self; } -class MiqtVirtualQPlainTextDocumentLayout : public virtual QPlainTextDocumentLayout { +class MiqtVirtualQPlainTextDocumentLayout final : public QPlainTextDocumentLayout { public: MiqtVirtualQPlainTextDocumentLayout(QTextDocument* document): QPlainTextDocumentLayout(document) {}; - virtual ~MiqtVirtualQPlainTextDocumentLayout() = default; + virtual ~MiqtVirtualQPlainTextDocumentLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Draw = 0; @@ -2276,11 +2272,7 @@ void QPlainTextDocumentLayout_virtualbase_DrawInlineObject(void* self, QPainter* ( (MiqtVirtualQPlainTextDocumentLayout*)(self) )->virtualbase_DrawInlineObject(painter, rect, object, posInDocument, format); } -void QPlainTextDocumentLayout_Delete(QPlainTextDocumentLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPlainTextDocumentLayout_Delete(QPlainTextDocumentLayout* self) { + delete self; } diff --git a/qt/gen_qplaintextedit.go b/qt/gen_qplaintextedit.go index 39227194..23f112cd 100644 --- a/qt/gen_qplaintextedit.go +++ b/qt/gen_qplaintextedit.go @@ -1663,7 +1663,7 @@ func miqt_exec_callback_QPlainTextEdit_ViewportSizeHint(self *C.QPlainTextEdit, // Delete this object from C++ memory. func (this *QPlainTextEdit) Delete() { - C.QPlainTextEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QPlainTextEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2140,7 +2140,7 @@ func miqt_exec_callback_QPlainTextDocumentLayout_DrawInlineObject(self *C.QPlain // Delete this object from C++ memory. func (this *QPlainTextDocumentLayout) Delete() { - C.QPlainTextDocumentLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QPlainTextDocumentLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qplaintextedit.h b/qt/gen_qplaintextedit.h index ec72f022..538fe9f5 100644 --- a/qt/gen_qplaintextedit.h +++ b/qt/gen_qplaintextedit.h @@ -325,7 +325,7 @@ void QPlainTextEdit_override_virtual_ViewportEvent(void* self, intptr_t slot); bool QPlainTextEdit_virtualbase_ViewportEvent(void* self, QEvent* param1); void QPlainTextEdit_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QPlainTextEdit_virtualbase_ViewportSizeHint(const void* self); -void QPlainTextEdit_Delete(QPlainTextEdit* self, bool isSubclass); +void QPlainTextEdit_Delete(QPlainTextEdit* self); QPlainTextDocumentLayout* QPlainTextDocumentLayout_new(QTextDocument* document); void QPlainTextDocumentLayout_virtbase(QPlainTextDocumentLayout* src, QAbstractTextDocumentLayout** outptr_QAbstractTextDocumentLayout); @@ -368,7 +368,7 @@ void QPlainTextDocumentLayout_override_virtual_PositionInlineObject(void* self, void QPlainTextDocumentLayout_virtualbase_PositionInlineObject(void* self, QTextInlineObject* item, int posInDocument, QTextFormat* format); void QPlainTextDocumentLayout_override_virtual_DrawInlineObject(void* self, intptr_t slot); void QPlainTextDocumentLayout_virtualbase_DrawInlineObject(void* self, QPainter* painter, QRectF* rect, QTextInlineObject* object, int posInDocument, QTextFormat* format); -void QPlainTextDocumentLayout_Delete(QPlainTextDocumentLayout* self, bool isSubclass); +void QPlainTextDocumentLayout_Delete(QPlainTextDocumentLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qplugin.cpp b/qt/gen_qplugin.cpp index 98180bbc..0ed85799 100644 --- a/qt/gen_qplugin.cpp +++ b/qt/gen_qplugin.cpp @@ -15,11 +15,7 @@ QJsonObject* QStaticPlugin_MetaData(const QStaticPlugin* self) { return new QJsonObject(self->metaData()); } -void QStaticPlugin_Delete(QStaticPlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStaticPlugin_Delete(QStaticPlugin* self) { + delete self; } diff --git a/qt/gen_qplugin.go b/qt/gen_qplugin.go index bc716da1..770844e0 100644 --- a/qt/gen_qplugin.go +++ b/qt/gen_qplugin.go @@ -54,7 +54,7 @@ func (this *QStaticPlugin) MetaData() *QJsonObject { // Delete this object from C++ memory. func (this *QStaticPlugin) Delete() { - C.QStaticPlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QStaticPlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qplugin.h b/qt/gen_qplugin.h index af529939..4ea0fda4 100644 --- a/qt/gen_qplugin.h +++ b/qt/gen_qplugin.h @@ -23,7 +23,7 @@ typedef struct QStaticPlugin QStaticPlugin; #endif QJsonObject* QStaticPlugin_MetaData(const QStaticPlugin* self); -void QStaticPlugin_Delete(QStaticPlugin* self, bool isSubclass); +void QStaticPlugin_Delete(QStaticPlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpluginloader.cpp b/qt/gen_qpluginloader.cpp index b55e6fcb..912ed6f3 100644 --- a/qt/gen_qpluginloader.cpp +++ b/qt/gen_qpluginloader.cpp @@ -29,7 +29,7 @@ void miqt_exec_callback_QPluginLoader_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQPluginLoader : public virtual QPluginLoader { +class MiqtVirtualQPluginLoader final : public QPluginLoader { public: MiqtVirtualQPluginLoader(): QPluginLoader() {}; @@ -37,7 +37,7 @@ public: MiqtVirtualQPluginLoader(QObject* parent): QPluginLoader(parent) {}; MiqtVirtualQPluginLoader(const QString& fileName, QObject* parent): QPluginLoader(fileName, parent) {}; - virtual ~MiqtVirtualQPluginLoader() = default; + virtual ~MiqtVirtualQPluginLoader() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -446,11 +446,7 @@ void QPluginLoader_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQPluginLoader*)(self) )->virtualbase_DisconnectNotify(signal); } -void QPluginLoader_Delete(QPluginLoader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPluginLoader_Delete(QPluginLoader* self) { + delete self; } diff --git a/qt/gen_qpluginloader.go b/qt/gen_qpluginloader.go index 4e59613b..4087e8d6 100644 --- a/qt/gen_qpluginloader.go +++ b/qt/gen_qpluginloader.go @@ -427,7 +427,7 @@ func miqt_exec_callback_QPluginLoader_DisconnectNotify(self *C.QPluginLoader, cb // Delete this object from C++ memory. func (this *QPluginLoader) Delete() { - C.QPluginLoader_Delete(this.h, C.bool(this.isSubclass)) + C.QPluginLoader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpluginloader.h b/qt/gen_qpluginloader.h index dccd58a5..e2ae2e70 100644 --- a/qt/gen_qpluginloader.h +++ b/qt/gen_qpluginloader.h @@ -75,7 +75,7 @@ void QPluginLoader_override_virtual_ConnectNotify(void* self, intptr_t slot); void QPluginLoader_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QPluginLoader_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QPluginLoader_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QPluginLoader_Delete(QPluginLoader* self, bool isSubclass); +void QPluginLoader_Delete(QPluginLoader* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpoint.cpp b/qt/gen_qpoint.cpp index 72ddf5a5..6e10033a 100644 --- a/qt/gen_qpoint.cpp +++ b/qt/gen_qpoint.cpp @@ -91,12 +91,8 @@ int QPoint_DotProduct(QPoint* p1, QPoint* p2) { return QPoint::dotProduct(*p1, *p2); } -void QPoint_Delete(QPoint* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPoint_Delete(QPoint* self) { + delete self; } QPointF* QPointF_new() { @@ -179,11 +175,7 @@ QPoint* QPointF_ToPoint(const QPointF* self) { return new QPoint(self->toPoint()); } -void QPointF_Delete(QPointF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPointF_Delete(QPointF* self) { + delete self; } diff --git a/qt/gen_qpoint.go b/qt/gen_qpoint.go index 27ffed5b..c5dbc132 100644 --- a/qt/gen_qpoint.go +++ b/qt/gen_qpoint.go @@ -130,7 +130,7 @@ func QPoint_DotProduct(p1 *QPoint, p2 *QPoint) int { // Delete this object from C++ memory. func (this *QPoint) Delete() { - C.QPoint_Delete(this.h, C.bool(this.isSubclass)) + C.QPoint_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -265,7 +265,7 @@ func (this *QPointF) ToPoint() *QPoint { // Delete this object from C++ memory. func (this *QPointF) Delete() { - C.QPointF_Delete(this.h, C.bool(this.isSubclass)) + C.QPointF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpoint.h b/qt/gen_qpoint.h index 1bcdcce9..e8b349ee 100644 --- a/qt/gen_qpoint.h +++ b/qt/gen_qpoint.h @@ -39,7 +39,7 @@ QPoint* QPoint_OperatorMultiplyAssignWithFactor(QPoint* self, double factor); QPoint* QPoint_OperatorMultiplyAssign2(QPoint* self, int factor); QPoint* QPoint_OperatorDivideAssign(QPoint* self, double divisor); int QPoint_DotProduct(QPoint* p1, QPoint* p2); -void QPoint_Delete(QPoint* self, bool isSubclass); +void QPoint_Delete(QPoint* self); QPointF* QPointF_new(); QPointF* QPointF_new2(QPoint* p); @@ -58,7 +58,7 @@ QPointF* QPointF_OperatorMultiplyAssign(QPointF* self, double c); QPointF* QPointF_OperatorDivideAssign(QPointF* self, double c); double QPointF_DotProduct(QPointF* p1, QPointF* p2); QPoint* QPointF_ToPoint(const QPointF* self); -void QPointF_Delete(QPointF* self, bool isSubclass); +void QPointF_Delete(QPointF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qprocess.cpp b/qt/gen_qprocess.cpp index 86b77310..afc590d9 100644 --- a/qt/gen_qprocess.cpp +++ b/qt/gen_qprocess.cpp @@ -161,21 +161,17 @@ struct miqt_string QProcessEnvironment_Value2(const QProcessEnvironment* self, s return _ms; } -void QProcessEnvironment_Delete(QProcessEnvironment* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QProcessEnvironment_Delete(QProcessEnvironment* self) { + delete self; } -class MiqtVirtualQProcess : public virtual QProcess { +class MiqtVirtualQProcess final : public QProcess { public: MiqtVirtualQProcess(): QProcess() {}; MiqtVirtualQProcess(QObject* parent): QProcess(parent) {}; - virtual ~MiqtVirtualQProcess() = default; + virtual ~MiqtVirtualQProcess() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Open = 0; @@ -1277,11 +1273,7 @@ long long QProcess_virtualbase_ReadLineData(void* self, char* data, long long ma return ( (MiqtVirtualQProcess*)(self) )->virtualbase_ReadLineData(data, maxlen); } -void QProcess_Delete(QProcess* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QProcess_Delete(QProcess* self) { + delete self; } diff --git a/qt/gen_qprocess.go b/qt/gen_qprocess.go index 85af292b..e8f57010 100644 --- a/qt/gen_qprocess.go +++ b/qt/gen_qprocess.go @@ -229,7 +229,7 @@ func (this *QProcessEnvironment) Value2(name string, defaultValue string) string // Delete this object from C++ memory. func (this *QProcessEnvironment) Delete() { - C.QProcessEnvironment_Delete(this.h, C.bool(this.isSubclass)) + C.QProcessEnvironment_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1371,7 +1371,7 @@ func miqt_exec_callback_QProcess_ReadLineData(self *C.QProcess, cb C.intptr_t, d // Delete this object from C++ memory. func (this *QProcess) Delete() { - C.QProcess_Delete(this.h, C.bool(this.isSubclass)) + C.QProcess_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qprocess.h b/qt/gen_qprocess.h index ffcc198e..35a19e4d 100644 --- a/qt/gen_qprocess.h +++ b/qt/gen_qprocess.h @@ -45,7 +45,7 @@ struct miqt_array /* of struct miqt_string */ QProcessEnvironment_Keys(const QP void QProcessEnvironment_InsertWithQProcessEnvironment(QProcessEnvironment* self, QProcessEnvironment* e); QProcessEnvironment* QProcessEnvironment_SystemEnvironment(); struct miqt_string QProcessEnvironment_Value2(const QProcessEnvironment* self, struct miqt_string name, struct miqt_string defaultValue); -void QProcessEnvironment_Delete(QProcessEnvironment* self, bool isSubclass); +void QProcessEnvironment_Delete(QProcessEnvironment* self); QProcess* QProcess_new(); QProcess* QProcess_new2(QObject* parent); @@ -168,7 +168,7 @@ void QProcess_override_virtual_Reset(void* self, intptr_t slot); bool QProcess_virtualbase_Reset(void* self); void QProcess_override_virtual_ReadLineData(void* self, intptr_t slot); long long QProcess_virtualbase_ReadLineData(void* self, char* data, long long maxlen); -void QProcess_Delete(QProcess* self, bool isSubclass); +void QProcess_Delete(QProcess* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qprogressbar.cpp b/qt/gen_qprogressbar.cpp index d6eeeef4..dad3802d 100644 --- a/qt/gen_qprogressbar.cpp +++ b/qt/gen_qprogressbar.cpp @@ -85,13 +85,13 @@ bool miqt_exec_callback_QProgressBar_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQProgressBar : public virtual QProgressBar { +class MiqtVirtualQProgressBar final : public QProgressBar { public: MiqtVirtualQProgressBar(QWidget* parent): QProgressBar(parent) {}; MiqtVirtualQProgressBar(): QProgressBar() {}; - virtual ~MiqtVirtualQProgressBar() = default; + virtual ~MiqtVirtualQProgressBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Text = 0; @@ -1647,11 +1647,7 @@ bool QProgressBar_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQProgressBar*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QProgressBar_Delete(QProgressBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QProgressBar_Delete(QProgressBar* self) { + delete self; } diff --git a/qt/gen_qprogressbar.go b/qt/gen_qprogressbar.go index bc181747..f3d5f115 100644 --- a/qt/gen_qprogressbar.go +++ b/qt/gen_qprogressbar.go @@ -1398,7 +1398,7 @@ func miqt_exec_callback_QProgressBar_FocusNextPrevChild(self *C.QProgressBar, cb // Delete this object from C++ memory. func (this *QProgressBar) Delete() { - C.QProgressBar_Delete(this.h, C.bool(this.isSubclass)) + C.QProgressBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qprogressbar.h b/qt/gen_qprogressbar.h index f5b86277..86706981 100644 --- a/qt/gen_qprogressbar.h +++ b/qt/gen_qprogressbar.h @@ -199,7 +199,7 @@ void QProgressBar_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QProgressBar_virtualbase_InputMethodQuery(const void* self, int param1); void QProgressBar_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QProgressBar_virtualbase_FocusNextPrevChild(void* self, bool next); -void QProgressBar_Delete(QProgressBar* self, bool isSubclass); +void QProgressBar_Delete(QProgressBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qprogressdialog.cpp b/qt/gen_qprogressdialog.cpp index 165a396f..b9f8cdb1 100644 --- a/qt/gen_qprogressdialog.cpp +++ b/qt/gen_qprogressdialog.cpp @@ -44,7 +44,7 @@ bool miqt_exec_callback_QProgressDialog_EventFilter(void*, intptr_t, QObject*, Q } /* extern C */ #endif -class MiqtVirtualQProgressDialog : public virtual QProgressDialog { +class MiqtVirtualQProgressDialog final : public QProgressDialog { public: MiqtVirtualQProgressDialog(QWidget* parent): QProgressDialog(parent) {}; @@ -54,7 +54,7 @@ public: MiqtVirtualQProgressDialog(const QString& labelText, const QString& cancelButtonText, int minimum, int maximum, QWidget* parent): QProgressDialog(labelText, cancelButtonText, minimum, maximum, parent) {}; MiqtVirtualQProgressDialog(const QString& labelText, const QString& cancelButtonText, int minimum, int maximum, QWidget* parent, Qt::WindowFlags flags): QProgressDialog(labelText, cancelButtonText, minimum, maximum, parent, flags) {}; - virtual ~MiqtVirtualQProgressDialog() = default; + virtual ~MiqtVirtualQProgressDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -748,11 +748,7 @@ bool QProgressDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent return ( (MiqtVirtualQProgressDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QProgressDialog_Delete(QProgressDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QProgressDialog_Delete(QProgressDialog* self) { + delete self; } diff --git a/qt/gen_qprogressdialog.go b/qt/gen_qprogressdialog.go index 1b10c428..d0a516da 100644 --- a/qt/gen_qprogressdialog.go +++ b/qt/gen_qprogressdialog.go @@ -705,7 +705,7 @@ func miqt_exec_callback_QProgressDialog_EventFilter(self *C.QProgressDialog, cb // Delete this object from C++ memory. func (this *QProgressDialog) Delete() { - C.QProgressDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QProgressDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qprogressdialog.h b/qt/gen_qprogressdialog.h index 65a31e5f..0b09379e 100644 --- a/qt/gen_qprogressdialog.h +++ b/qt/gen_qprogressdialog.h @@ -124,7 +124,7 @@ void QProgressDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slot void QProgressDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QProgressDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QProgressDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QProgressDialog_Delete(QProgressDialog* self, bool isSubclass); +void QProgressDialog_Delete(QProgressDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpropertyanimation.cpp b/qt/gen_qpropertyanimation.cpp index ecbb6173..bf977e73 100644 --- a/qt/gen_qpropertyanimation.cpp +++ b/qt/gen_qpropertyanimation.cpp @@ -26,7 +26,7 @@ QVariant* miqt_exec_callback_QPropertyAnimation_Interpolated(void*, intptr_t, QV } /* extern C */ #endif -class MiqtVirtualQPropertyAnimation : public virtual QPropertyAnimation { +class MiqtVirtualQPropertyAnimation final : public QPropertyAnimation { public: MiqtVirtualQPropertyAnimation(): QPropertyAnimation() {}; @@ -34,7 +34,7 @@ public: MiqtVirtualQPropertyAnimation(QObject* parent): QPropertyAnimation(parent) {}; MiqtVirtualQPropertyAnimation(QObject* target, const QByteArray& propertyName, QObject* parent): QPropertyAnimation(target, propertyName, parent) {}; - virtual ~MiqtVirtualQPropertyAnimation() = default; + virtual ~MiqtVirtualQPropertyAnimation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -356,11 +356,7 @@ QVariant* QPropertyAnimation_virtualbase_Interpolated(const void* self, QVariant return ( (const MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_Interpolated(from, to, progress); } -void QPropertyAnimation_Delete(QPropertyAnimation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPropertyAnimation_Delete(QPropertyAnimation* self) { + delete self; } diff --git a/qt/gen_qpropertyanimation.go b/qt/gen_qpropertyanimation.go index 88ea1dca..ed418697 100644 --- a/qt/gen_qpropertyanimation.go +++ b/qt/gen_qpropertyanimation.go @@ -352,7 +352,7 @@ func miqt_exec_callback_QPropertyAnimation_Interpolated(self *C.QPropertyAnimati // Delete this object from C++ memory. func (this *QPropertyAnimation) Delete() { - C.QPropertyAnimation_Delete(this.h, C.bool(this.isSubclass)) + C.QPropertyAnimation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpropertyanimation.h b/qt/gen_qpropertyanimation.h index 8783c94c..b221462f 100644 --- a/qt/gen_qpropertyanimation.h +++ b/qt/gen_qpropertyanimation.h @@ -64,7 +64,7 @@ void QPropertyAnimation_override_virtual_UpdateCurrentTime(void* self, intptr_t void QPropertyAnimation_virtualbase_UpdateCurrentTime(void* self, int param1); void QPropertyAnimation_override_virtual_Interpolated(void* self, intptr_t slot); QVariant* QPropertyAnimation_virtualbase_Interpolated(const void* self, QVariant* from, QVariant* to, double progress); -void QPropertyAnimation_Delete(QPropertyAnimation* self, bool isSubclass); +void QPropertyAnimation_Delete(QPropertyAnimation* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qproxystyle.cpp b/qt/gen_qproxystyle.cpp index 2dc083da..e59a1154 100644 --- a/qt/gen_qproxystyle.cpp +++ b/qt/gen_qproxystyle.cpp @@ -55,14 +55,14 @@ bool miqt_exec_callback_QProxyStyle_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQProxyStyle : public virtual QProxyStyle { +class MiqtVirtualQProxyStyle final : public QProxyStyle { public: MiqtVirtualQProxyStyle(): QProxyStyle() {}; MiqtVirtualQProxyStyle(const QString& key): QProxyStyle(key) {}; MiqtVirtualQProxyStyle(QStyle* style): QProxyStyle(style) {}; - virtual ~MiqtVirtualQProxyStyle() = default; + virtual ~MiqtVirtualQProxyStyle() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DrawPrimitive = 0; @@ -1121,11 +1121,7 @@ bool QProxyStyle_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQProxyStyle*)(self) )->virtualbase_Event(e); } -void QProxyStyle_Delete(QProxyStyle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QProxyStyle_Delete(QProxyStyle* self) { + delete self; } diff --git a/qt/gen_qproxystyle.go b/qt/gen_qproxystyle.go index 3e4bb5d1..c4adf234 100644 --- a/qt/gen_qproxystyle.go +++ b/qt/gen_qproxystyle.go @@ -1059,7 +1059,7 @@ func miqt_exec_callback_QProxyStyle_Event(self *C.QProxyStyle, cb C.intptr_t, e // Delete this object from C++ memory. func (this *QProxyStyle) Delete() { - C.QProxyStyle_Delete(this.h, C.bool(this.isSubclass)) + C.QProxyStyle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qproxystyle.h b/qt/gen_qproxystyle.h index ba6c3c76..aeab9941 100644 --- a/qt/gen_qproxystyle.h +++ b/qt/gen_qproxystyle.h @@ -142,7 +142,7 @@ void QProxyStyle_override_virtual_UnpolishWithApp(void* self, intptr_t slot); void QProxyStyle_virtualbase_UnpolishWithApp(void* self, QApplication* app); void QProxyStyle_override_virtual_Event(void* self, intptr_t slot); bool QProxyStyle_virtualbase_Event(void* self, QEvent* e); -void QProxyStyle_Delete(QProxyStyle* self, bool isSubclass); +void QProxyStyle_Delete(QProxyStyle* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qpushbutton.cpp b/qt/gen_qpushbutton.cpp index 9cf93e02..22f2a11d 100644 --- a/qt/gen_qpushbutton.cpp +++ b/qt/gen_qpushbutton.cpp @@ -44,7 +44,7 @@ void miqt_exec_callback_QPushButton_TimerEvent(void*, intptr_t, QTimerEvent*); } /* extern C */ #endif -class MiqtVirtualQPushButton : public virtual QPushButton { +class MiqtVirtualQPushButton final : public QPushButton { public: MiqtVirtualQPushButton(QWidget* parent): QPushButton(parent) {}; @@ -54,7 +54,7 @@ public: MiqtVirtualQPushButton(const QString& text, QWidget* parent): QPushButton(text, parent) {}; MiqtVirtualQPushButton(const QIcon& icon, const QString& text, QWidget* parent): QPushButton(icon, text, parent) {}; - virtual ~MiqtVirtualQPushButton() = default; + virtual ~MiqtVirtualQPushButton() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -714,11 +714,7 @@ void QPushButton_virtualbase_TimerEvent(void* self, QTimerEvent* e) { ( (MiqtVirtualQPushButton*)(self) )->virtualbase_TimerEvent(e); } -void QPushButton_Delete(QPushButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPushButton_Delete(QPushButton* self) { + delete self; } diff --git a/qt/gen_qpushbutton.go b/qt/gen_qpushbutton.go index 7a0ea0ce..01fe62b4 100644 --- a/qt/gen_qpushbutton.go +++ b/qt/gen_qpushbutton.go @@ -653,7 +653,7 @@ func miqt_exec_callback_QPushButton_TimerEvent(self *C.QPushButton, cb C.intptr_ // Delete this object from C++ memory. func (this *QPushButton) Delete() { - C.QPushButton_Delete(this.h, C.bool(this.isSubclass)) + C.QPushButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qpushbutton.h b/qt/gen_qpushbutton.h index 88e3502f..8e6f979e 100644 --- a/qt/gen_qpushbutton.h +++ b/qt/gen_qpushbutton.h @@ -114,7 +114,7 @@ void QPushButton_override_virtual_ChangeEvent(void* self, intptr_t slot); void QPushButton_virtualbase_ChangeEvent(void* self, QEvent* e); void QPushButton_override_virtual_TimerEvent(void* self, intptr_t slot); void QPushButton_virtualbase_TimerEvent(void* self, QTimerEvent* e); -void QPushButton_Delete(QPushButton* self, bool isSubclass); +void QPushButton_Delete(QPushButton* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qquaternion.cpp b/qt/gen_qquaternion.cpp index 21e73261..416be63d 100644 --- a/qt/gen_qquaternion.cpp +++ b/qt/gen_qquaternion.cpp @@ -219,11 +219,7 @@ QQuaternion* QQuaternion_Nlerp(QQuaternion* q1, QQuaternion* q2, float t) { return new QQuaternion(QQuaternion::nlerp(*q1, *q2, static_cast(t))); } -void QQuaternion_Delete(QQuaternion* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QQuaternion_Delete(QQuaternion* self) { + delete self; } diff --git a/qt/gen_qquaternion.go b/qt/gen_qquaternion.go index 584e6256..8f396ddf 100644 --- a/qt/gen_qquaternion.go +++ b/qt/gen_qquaternion.go @@ -304,7 +304,7 @@ func QQuaternion_Nlerp(q1 *QQuaternion, q2 *QQuaternion, t float32) *QQuaternion // Delete this object from C++ memory. func (this *QQuaternion) Delete() { - C.QQuaternion_Delete(this.h, C.bool(this.isSubclass)) + C.QQuaternion_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qquaternion.h b/qt/gen_qquaternion.h index 78828508..61db5bdc 100644 --- a/qt/gen_qquaternion.h +++ b/qt/gen_qquaternion.h @@ -75,7 +75,7 @@ QQuaternion* QQuaternion_FromDirection(QVector3D* direction, QVector3D* up); QQuaternion* QQuaternion_RotationTo(QVector3D* from, QVector3D* to); QQuaternion* QQuaternion_Slerp(QQuaternion* q1, QQuaternion* q2, float t); QQuaternion* QQuaternion_Nlerp(QQuaternion* q1, QQuaternion* q2, float t); -void QQuaternion_Delete(QQuaternion* self, bool isSubclass); +void QQuaternion_Delete(QQuaternion* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qradiobutton.cpp b/qt/gen_qradiobutton.cpp index 69f0fd2a..5c65c709 100644 --- a/qt/gen_qradiobutton.cpp +++ b/qt/gen_qradiobutton.cpp @@ -42,7 +42,7 @@ void miqt_exec_callback_QRadioButton_TimerEvent(void*, intptr_t, QTimerEvent*); } /* extern C */ #endif -class MiqtVirtualQRadioButton : public virtual QRadioButton { +class MiqtVirtualQRadioButton final : public QRadioButton { public: MiqtVirtualQRadioButton(QWidget* parent): QRadioButton(parent) {}; @@ -50,7 +50,7 @@ public: MiqtVirtualQRadioButton(const QString& text): QRadioButton(text) {}; MiqtVirtualQRadioButton(const QString& text, QWidget* parent): QRadioButton(text, parent) {}; - virtual ~MiqtVirtualQRadioButton() = default; + virtual ~MiqtVirtualQRadioButton() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -664,11 +664,7 @@ void QRadioButton_virtualbase_TimerEvent(void* self, QTimerEvent* e) { ( (MiqtVirtualQRadioButton*)(self) )->virtualbase_TimerEvent(e); } -void QRadioButton_Delete(QRadioButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRadioButton_Delete(QRadioButton* self) { + delete self; } diff --git a/qt/gen_qradiobutton.go b/qt/gen_qradiobutton.go index 514a545b..bfd40788 100644 --- a/qt/gen_qradiobutton.go +++ b/qt/gen_qradiobutton.go @@ -593,7 +593,7 @@ func miqt_exec_callback_QRadioButton_TimerEvent(self *C.QRadioButton, cb C.intpt // Delete this object from C++ memory. func (this *QRadioButton) Delete() { - C.QRadioButton_Delete(this.h, C.bool(this.isSubclass)) + C.QRadioButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qradiobutton.h b/qt/gen_qradiobutton.h index a53c6e78..08ae525e 100644 --- a/qt/gen_qradiobutton.h +++ b/qt/gen_qradiobutton.h @@ -97,7 +97,7 @@ void QRadioButton_override_virtual_ChangeEvent(void* self, intptr_t slot); void QRadioButton_virtualbase_ChangeEvent(void* self, QEvent* e); void QRadioButton_override_virtual_TimerEvent(void* self, intptr_t slot); void QRadioButton_virtualbase_TimerEvent(void* self, QTimerEvent* e); -void QRadioButton_Delete(QRadioButton* self, bool isSubclass); +void QRadioButton_Delete(QRadioButton* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qrandom.cpp b/qt/gen_qrandom.cpp index 499726d5..d77ea621 100644 --- a/qt/gen_qrandom.cpp +++ b/qt/gen_qrandom.cpp @@ -114,12 +114,8 @@ void QRandomGenerator_Seed1(QRandomGenerator* self, unsigned int s) { self->seed(static_cast(s)); } -void QRandomGenerator_Delete(QRandomGenerator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRandomGenerator_Delete(QRandomGenerator* self) { + delete self; } QRandomGenerator64* QRandomGenerator64_new() { @@ -190,11 +186,7 @@ void QRandomGenerator64_OperatorAssign(QRandomGenerator64* self, QRandomGenerato self->operator=(*param1); } -void QRandomGenerator64_Delete(QRandomGenerator64* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRandomGenerator64_Delete(QRandomGenerator64* self) { + delete self; } diff --git a/qt/gen_qrandom.go b/qt/gen_qrandom.go index f28cd875..cdfd7683 100644 --- a/qt/gen_qrandom.go +++ b/qt/gen_qrandom.go @@ -166,7 +166,7 @@ func (this *QRandomGenerator) Seed1(s uint) { // Delete this object from C++ memory. func (this *QRandomGenerator) Delete() { - C.QRandomGenerator_Delete(this.h, C.bool(this.isSubclass)) + C.QRandomGenerator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -303,7 +303,7 @@ func (this *QRandomGenerator64) OperatorAssign(param1 *QRandomGenerator64) { // Delete this object from C++ memory. func (this *QRandomGenerator64) Delete() { - C.QRandomGenerator64_Delete(this.h, C.bool(this.isSubclass)) + C.QRandomGenerator64_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qrandom.h b/qt/gen_qrandom.h index a5cb55dc..b2324507 100644 --- a/qt/gen_qrandom.h +++ b/qt/gen_qrandom.h @@ -46,7 +46,7 @@ QRandomGenerator* QRandomGenerator_System(); QRandomGenerator* QRandomGenerator_Global(); QRandomGenerator* QRandomGenerator_SecurelySeeded(); void QRandomGenerator_Seed1(QRandomGenerator* self, unsigned int s); -void QRandomGenerator_Delete(QRandomGenerator* self, bool isSubclass); +void QRandomGenerator_Delete(QRandomGenerator* self); QRandomGenerator64* QRandomGenerator64_new(); QRandomGenerator64* QRandomGenerator64_new2(const unsigned int* seedBuffer, ptrdiff_t lenVal); @@ -64,7 +64,7 @@ QRandomGenerator64* QRandomGenerator64_System(); QRandomGenerator64* QRandomGenerator64_Global(); QRandomGenerator64* QRandomGenerator64_SecurelySeeded(); void QRandomGenerator64_OperatorAssign(QRandomGenerator64* self, QRandomGenerator64* param1); -void QRandomGenerator64_Delete(QRandomGenerator64* self, bool isSubclass); +void QRandomGenerator64_Delete(QRandomGenerator64* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qrasterwindow.cpp b/qt/gen_qrasterwindow.cpp index b1fc388a..1c02fb9a 100644 --- a/qt/gen_qrasterwindow.cpp +++ b/qt/gen_qrasterwindow.cpp @@ -28,13 +28,13 @@ bool miqt_exec_callback_QRasterWindow_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQRasterWindow : public virtual QRasterWindow { +class MiqtVirtualQRasterWindow final : public QRasterWindow { public: MiqtVirtualQRasterWindow(): QRasterWindow() {}; MiqtVirtualQRasterWindow(QWindow* parent): QRasterWindow(parent) {}; - virtual ~MiqtVirtualQRasterWindow() = default; + virtual ~MiqtVirtualQRasterWindow() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Metric = 0; @@ -282,11 +282,7 @@ bool QRasterWindow_virtualbase_Event(void* self, QEvent* event) { return ( (MiqtVirtualQRasterWindow*)(self) )->virtualbase_Event(event); } -void QRasterWindow_Delete(QRasterWindow* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRasterWindow_Delete(QRasterWindow* self) { + delete self; } diff --git a/qt/gen_qrasterwindow.go b/qt/gen_qrasterwindow.go index f9db37d3..80cefd11 100644 --- a/qt/gen_qrasterwindow.go +++ b/qt/gen_qrasterwindow.go @@ -277,7 +277,7 @@ func miqt_exec_callback_QRasterWindow_Event(self *C.QRasterWindow, cb C.intptr_t // Delete this object from C++ memory. func (this *QRasterWindow) Delete() { - C.QRasterWindow_Delete(this.h, C.bool(this.isSubclass)) + C.QRasterWindow_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qrasterwindow.h b/qt/gen_qrasterwindow.h index d051e919..eb91acc5 100644 --- a/qt/gen_qrasterwindow.h +++ b/qt/gen_qrasterwindow.h @@ -63,7 +63,7 @@ void QRasterWindow_override_virtual_ExposeEvent(void* self, intptr_t slot); void QRasterWindow_virtualbase_ExposeEvent(void* self, QExposeEvent* param1); void QRasterWindow_override_virtual_Event(void* self, intptr_t slot); bool QRasterWindow_virtualbase_Event(void* self, QEvent* event); -void QRasterWindow_Delete(QRasterWindow* self, bool isSubclass); +void QRasterWindow_Delete(QRasterWindow* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qrawfont.cpp b/qt/gen_qrawfont.cpp index 806fad8e..ca7d0628 100644 --- a/qt/gen_qrawfont.cpp +++ b/qt/gen_qrawfont.cpp @@ -298,11 +298,7 @@ QRawFont* QRawFont_FromFont2(QFont* font, int writingSystem) { return new QRawFont(QRawFont::fromFont(*font, static_cast(writingSystem))); } -void QRawFont_Delete(QRawFont* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRawFont_Delete(QRawFont* self) { + delete self; } diff --git a/qt/gen_qrawfont.go b/qt/gen_qrawfont.go index 603ee08b..371a8be4 100644 --- a/qt/gen_qrawfont.go +++ b/qt/gen_qrawfont.go @@ -365,7 +365,7 @@ func QRawFont_FromFont2(font *QFont, writingSystem QFontDatabase__WritingSystem) // Delete this object from C++ memory. func (this *QRawFont) Delete() { - C.QRawFont_Delete(this.h, C.bool(this.isSubclass)) + C.QRawFont_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qrawfont.h b/qt/gen_qrawfont.h index b84dd2d6..3121ee1c 100644 --- a/qt/gen_qrawfont.h +++ b/qt/gen_qrawfont.h @@ -81,7 +81,7 @@ QRawFont* QRawFont_FromFont(QFont* font); QImage* QRawFont_AlphaMapForGlyph2(const QRawFont* self, unsigned int glyphIndex, int antialiasingType); QImage* QRawFont_AlphaMapForGlyph3(const QRawFont* self, unsigned int glyphIndex, int antialiasingType, QTransform* transform); QRawFont* QRawFont_FromFont2(QFont* font, int writingSystem); -void QRawFont_Delete(QRawFont* self, bool isSubclass); +void QRawFont_Delete(QRawFont* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qreadwritelock.cpp b/qt/gen_qreadwritelock.cpp index bb1796d9..c2038f4a 100644 --- a/qt/gen_qreadwritelock.cpp +++ b/qt/gen_qreadwritelock.cpp @@ -48,12 +48,8 @@ void QReadWriteLock_Unlock(QReadWriteLock* self) { self->unlock(); } -void QReadWriteLock_Delete(QReadWriteLock* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QReadWriteLock_Delete(QReadWriteLock* self) { + delete self; } QReadLocker* QReadLocker_new(QReadWriteLock* readWriteLock) { @@ -72,12 +68,8 @@ QReadWriteLock* QReadLocker_ReadWriteLock(const QReadLocker* self) { return self->readWriteLock(); } -void QReadLocker_Delete(QReadLocker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QReadLocker_Delete(QReadLocker* self) { + delete self; } QWriteLocker* QWriteLocker_new(QReadWriteLock* readWriteLock) { @@ -96,11 +88,7 @@ QReadWriteLock* QWriteLocker_ReadWriteLock(const QWriteLocker* self) { return self->readWriteLock(); } -void QWriteLocker_Delete(QWriteLocker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWriteLocker_Delete(QWriteLocker* self) { + delete self; } diff --git a/qt/gen_qreadwritelock.go b/qt/gen_qreadwritelock.go index 1689523c..1a8314d5 100644 --- a/qt/gen_qreadwritelock.go +++ b/qt/gen_qreadwritelock.go @@ -99,7 +99,7 @@ func (this *QReadWriteLock) Unlock() { // Delete this object from C++ memory. func (this *QReadWriteLock) Delete() { - C.QReadWriteLock_Delete(this.h, C.bool(this.isSubclass)) + C.QReadWriteLock_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -166,7 +166,7 @@ func (this *QReadLocker) ReadWriteLock() *QReadWriteLock { // Delete this object from C++ memory. func (this *QReadLocker) Delete() { - C.QReadLocker_Delete(this.h, C.bool(this.isSubclass)) + C.QReadLocker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -233,7 +233,7 @@ func (this *QWriteLocker) ReadWriteLock() *QReadWriteLock { // Delete this object from C++ memory. func (this *QWriteLocker) Delete() { - C.QWriteLocker_Delete(this.h, C.bool(this.isSubclass)) + C.QWriteLocker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qreadwritelock.h b/qt/gen_qreadwritelock.h index fe298f52..0398ca40 100644 --- a/qt/gen_qreadwritelock.h +++ b/qt/gen_qreadwritelock.h @@ -33,19 +33,19 @@ void QReadWriteLock_LockForWrite(QReadWriteLock* self); bool QReadWriteLock_TryLockForWrite(QReadWriteLock* self); bool QReadWriteLock_TryLockForWriteWithTimeout(QReadWriteLock* self, int timeout); void QReadWriteLock_Unlock(QReadWriteLock* self); -void QReadWriteLock_Delete(QReadWriteLock* self, bool isSubclass); +void QReadWriteLock_Delete(QReadWriteLock* self); QReadLocker* QReadLocker_new(QReadWriteLock* readWriteLock); void QReadLocker_Unlock(QReadLocker* self); void QReadLocker_Relock(QReadLocker* self); QReadWriteLock* QReadLocker_ReadWriteLock(const QReadLocker* self); -void QReadLocker_Delete(QReadLocker* self, bool isSubclass); +void QReadLocker_Delete(QReadLocker* self); QWriteLocker* QWriteLocker_new(QReadWriteLock* readWriteLock); void QWriteLocker_Unlock(QWriteLocker* self); void QWriteLocker_Relock(QWriteLocker* self); QReadWriteLock* QWriteLocker_ReadWriteLock(const QWriteLocker* self); -void QWriteLocker_Delete(QWriteLocker* self, bool isSubclass); +void QWriteLocker_Delete(QWriteLocker* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qrect.cpp b/qt/gen_qrect.cpp index aac69f6b..ad414a83 100644 --- a/qt/gen_qrect.cpp +++ b/qt/gen_qrect.cpp @@ -321,12 +321,8 @@ bool QRect_Contains23(const QRect* self, QPoint* p, bool proper) { return self->contains(*p, proper); } -void QRect_Delete(QRect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRect_Delete(QRect* self) { + delete self; } QRectF* QRectF_new() { @@ -641,11 +637,7 @@ QRect* QRectF_ToAlignedRect(const QRectF* self) { return new QRect(self->toAlignedRect()); } -void QRectF_Delete(QRectF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRectF_Delete(QRectF* self) { + delete self; } diff --git a/qt/gen_qrect.go b/qt/gen_qrect.go index 2540e9ee..5c157955 100644 --- a/qt/gen_qrect.go +++ b/qt/gen_qrect.go @@ -402,7 +402,7 @@ func (this *QRect) Contains23(p *QPoint, proper bool) bool { // Delete this object from C++ memory. func (this *QRect) Delete() { - C.QRect_Delete(this.h, C.bool(this.isSubclass)) + C.QRect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -811,7 +811,7 @@ func (this *QRectF) ToAlignedRect() *QRect { // Delete this object from C++ memory. func (this *QRectF) Delete() { - C.QRectF_Delete(this.h, C.bool(this.isSubclass)) + C.QRectF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qrect.h b/qt/gen_qrect.h index eef6cc6e..856185ef 100644 --- a/qt/gen_qrect.h +++ b/qt/gen_qrect.h @@ -109,7 +109,7 @@ QRect* QRect_OperatorPlusAssign(QRect* self, QMargins* margins); QRect* QRect_OperatorMinusAssign(QRect* self, QMargins* margins); bool QRect_Contains22(const QRect* self, QRect* r, bool proper); bool QRect_Contains23(const QRect* self, QPoint* p, bool proper); -void QRect_Delete(QRect* self, bool isSubclass); +void QRect_Delete(QRect* self); QRectF* QRectF_new(); QRectF* QRectF_new2(QPointF* topleft, QSizeF* size); @@ -186,7 +186,7 @@ QRectF* QRectF_OperatorPlusAssign(QRectF* self, QMarginsF* margins); QRectF* QRectF_OperatorMinusAssign(QRectF* self, QMarginsF* margins); QRect* QRectF_ToRect(const QRectF* self); QRect* QRectF_ToAlignedRect(const QRectF* self); -void QRectF_Delete(QRectF* self, bool isSubclass); +void QRectF_Delete(QRectF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qregexp.cpp b/qt/gen_qregexp.cpp index bb5433e1..77cc245d 100644 --- a/qt/gen_qregexp.cpp +++ b/qt/gen_qregexp.cpp @@ -280,11 +280,7 @@ int QRegExp_Pos1WithNth(QRegExp* self, int nth) { return self->pos(static_cast(nth)); } -void QRegExp_Delete(QRegExp* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegExp_Delete(QRegExp* self) { + delete self; } diff --git a/qt/gen_qregexp.go b/qt/gen_qregexp.go index f5c565e2..35f48293 100644 --- a/qt/gen_qregexp.go +++ b/qt/gen_qregexp.go @@ -341,7 +341,7 @@ func (this *QRegExp) Pos1WithNth(nth int) int { // Delete this object from C++ memory. func (this *QRegExp) Delete() { - C.QRegExp_Delete(this.h, C.bool(this.isSubclass)) + C.QRegExp_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qregexp.h b/qt/gen_qregexp.h index 2a9fcb49..0843e13a 100644 --- a/qt/gen_qregexp.h +++ b/qt/gen_qregexp.h @@ -61,7 +61,7 @@ struct miqt_string QRegExp_Cap1(const QRegExp* self, int nth); struct miqt_string QRegExp_Cap1WithNth(QRegExp* self, int nth); int QRegExp_Pos1(const QRegExp* self, int nth); int QRegExp_Pos1WithNth(QRegExp* self, int nth); -void QRegExp_Delete(QRegExp* self, bool isSubclass); +void QRegExp_Delete(QRegExp* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qregion.cpp b/qt/gen_qregion.cpp index a64a3fe8..555fea73 100644 --- a/qt/gen_qregion.cpp +++ b/qt/gen_qregion.cpp @@ -234,11 +234,7 @@ QVariant* QRegion_ToQVariant(const QRegion* self) { return new QVariant(self->operator QVariant()); } -void QRegion_Delete(QRegion* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegion_Delete(QRegion* self) { + delete self; } diff --git a/qt/gen_qregion.go b/qt/gen_qregion.go index edbd8d78..b731e557 100644 --- a/qt/gen_qregion.go +++ b/qt/gen_qregion.go @@ -325,7 +325,7 @@ func (this *QRegion) ToQVariant() *QVariant { // Delete this object from C++ memory. func (this *QRegion) Delete() { - C.QRegion_Delete(this.h, C.bool(this.isSubclass)) + C.QRegion_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qregion.h b/qt/gen_qregion.h index ebf2e872..b1c9843f 100644 --- a/qt/gen_qregion.h +++ b/qt/gen_qregion.h @@ -78,7 +78,7 @@ void QRegion_OperatorBitwiseNotAssign(QRegion* self, QRegion* r); bool QRegion_OperatorEqual(const QRegion* self, QRegion* r); bool QRegion_OperatorNotEqual(const QRegion* self, QRegion* r); QVariant* QRegion_ToQVariant(const QRegion* self); -void QRegion_Delete(QRegion* self, bool isSubclass); +void QRegion_Delete(QRegion* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qregularexpression.cpp b/qt/gen_qregularexpression.cpp index 4b59bb50..74aa585a 100644 --- a/qt/gen_qregularexpression.cpp +++ b/qt/gen_qregularexpression.cpp @@ -198,12 +198,8 @@ QRegularExpressionMatchIterator* QRegularExpression_GlobalMatch4(const QRegularE return new QRegularExpressionMatchIterator(self->globalMatch(subject_QString, static_cast(offset), static_cast(matchType), static_cast(matchOptions))); } -void QRegularExpression_Delete(QRegularExpression* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegularExpression_Delete(QRegularExpression* self) { + delete self; } QRegularExpressionMatch* QRegularExpressionMatch_new() { @@ -345,12 +341,8 @@ int QRegularExpressionMatch_CapturedEnd1(const QRegularExpressionMatch* self, in return self->capturedEnd(static_cast(nth)); } -void QRegularExpressionMatch_Delete(QRegularExpressionMatch* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegularExpressionMatch_Delete(QRegularExpressionMatch* self) { + delete self; } QRegularExpressionMatchIterator* QRegularExpressionMatchIterator_new() { @@ -399,11 +391,7 @@ int QRegularExpressionMatchIterator_MatchOptions(const QRegularExpressionMatchIt return static_cast(_ret); } -void QRegularExpressionMatchIterator_Delete(QRegularExpressionMatchIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegularExpressionMatchIterator_Delete(QRegularExpressionMatchIterator* self) { + delete self; } diff --git a/qt/gen_qregularexpression.go b/qt/gen_qregularexpression.go index d8e1b199..e45ef085 100644 --- a/qt/gen_qregularexpression.go +++ b/qt/gen_qregularexpression.go @@ -308,7 +308,7 @@ func (this *QRegularExpression) GlobalMatch4(subject string, offset int, matchTy // Delete this object from C++ memory. func (this *QRegularExpression) Delete() { - C.QRegularExpression_Delete(this.h, C.bool(this.isSubclass)) + C.QRegularExpression_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -495,7 +495,7 @@ func (this *QRegularExpressionMatch) CapturedEnd1(nth int) int { // Delete this object from C++ memory. func (this *QRegularExpressionMatch) Delete() { - C.QRegularExpressionMatch_Delete(this.h, C.bool(this.isSubclass)) + C.QRegularExpressionMatch_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -600,7 +600,7 @@ func (this *QRegularExpressionMatchIterator) MatchOptions() QRegularExpression__ // Delete this object from C++ memory. func (this *QRegularExpressionMatchIterator) Delete() { - C.QRegularExpressionMatchIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QRegularExpressionMatchIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qregularexpression.h b/qt/gen_qregularexpression.h index cab51ea6..5ce9116f 100644 --- a/qt/gen_qregularexpression.h +++ b/qt/gen_qregularexpression.h @@ -53,7 +53,7 @@ QRegularExpressionMatch* QRegularExpression_Match4(const QRegularExpression* sel QRegularExpressionMatchIterator* QRegularExpression_GlobalMatch2(const QRegularExpression* self, struct miqt_string subject, int offset); QRegularExpressionMatchIterator* QRegularExpression_GlobalMatch3(const QRegularExpression* self, struct miqt_string subject, int offset, int matchType); QRegularExpressionMatchIterator* QRegularExpression_GlobalMatch4(const QRegularExpression* self, struct miqt_string subject, int offset, int matchType, int matchOptions); -void QRegularExpression_Delete(QRegularExpression* self, bool isSubclass); +void QRegularExpression_Delete(QRegularExpression* self); QRegularExpressionMatch* QRegularExpressionMatch_new(); QRegularExpressionMatch* QRegularExpressionMatch_new2(QRegularExpressionMatch* match); @@ -79,7 +79,7 @@ struct miqt_string QRegularExpressionMatch_Captured1(const QRegularExpressionMat int QRegularExpressionMatch_CapturedStart1(const QRegularExpressionMatch* self, int nth); int QRegularExpressionMatch_CapturedLength1(const QRegularExpressionMatch* self, int nth); int QRegularExpressionMatch_CapturedEnd1(const QRegularExpressionMatch* self, int nth); -void QRegularExpressionMatch_Delete(QRegularExpressionMatch* self, bool isSubclass); +void QRegularExpressionMatch_Delete(QRegularExpressionMatch* self); QRegularExpressionMatchIterator* QRegularExpressionMatchIterator_new(); QRegularExpressionMatchIterator* QRegularExpressionMatchIterator_new2(QRegularExpressionMatchIterator* iterator); @@ -92,7 +92,7 @@ QRegularExpressionMatch* QRegularExpressionMatchIterator_PeekNext(const QRegular QRegularExpression* QRegularExpressionMatchIterator_RegularExpression(const QRegularExpressionMatchIterator* self); int QRegularExpressionMatchIterator_MatchType(const QRegularExpressionMatchIterator* self); int QRegularExpressionMatchIterator_MatchOptions(const QRegularExpressionMatchIterator* self); -void QRegularExpressionMatchIterator_Delete(QRegularExpressionMatchIterator* self, bool isSubclass); +void QRegularExpressionMatchIterator_Delete(QRegularExpressionMatchIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qresource.cpp b/qt/gen_qresource.cpp index 15b795a3..96e9d3d4 100644 --- a/qt/gen_qresource.cpp +++ b/qt/gen_qresource.cpp @@ -172,11 +172,7 @@ bool QResource_UnregisterResource22(const unsigned char* rccData, struct miqt_st return QResource::unregisterResource(static_cast(rccData), resourceRoot_QString); } -void QResource_Delete(QResource* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QResource_Delete(QResource* self) { + delete self; } diff --git a/qt/gen_qresource.go b/qt/gen_qresource.go index f485c97e..4fda420c 100644 --- a/qt/gen_qresource.go +++ b/qt/gen_qresource.go @@ -242,7 +242,7 @@ func QResource_UnregisterResource22(rccData *byte, resourceRoot string) bool { // Delete this object from C++ memory. func (this *QResource) Delete() { - C.QResource_Delete(this.h, C.bool(this.isSubclass)) + C.QResource_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qresource.h b/qt/gen_qresource.h index ca40685e..79bf76d8 100644 --- a/qt/gen_qresource.h +++ b/qt/gen_qresource.h @@ -50,7 +50,7 @@ bool QResource_RegisterResource2(struct miqt_string rccFilename, struct miqt_str bool QResource_UnregisterResource2(struct miqt_string rccFilename, struct miqt_string resourceRoot); bool QResource_RegisterResource22(const unsigned char* rccData, struct miqt_string resourceRoot); bool QResource_UnregisterResource22(const unsigned char* rccData, struct miqt_string resourceRoot); -void QResource_Delete(QResource* self, bool isSubclass); +void QResource_Delete(QResource* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qrgba64.cpp b/qt/gen_qrgba64.cpp index 70bed548..b4a81e65 100644 --- a/qt/gen_qrgba64.cpp +++ b/qt/gen_qrgba64.cpp @@ -125,11 +125,7 @@ void QRgba64_OperatorAssign(QRgba64* self, unsigned long long _rgba) { self->operator=(static_cast(_rgba)); } -void QRgba64_Delete(QRgba64* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRgba64_Delete(QRgba64* self) { + delete self; } diff --git a/qt/gen_qrgba64.go b/qt/gen_qrgba64.go index d1f1e4e6..f21741a6 100644 --- a/qt/gen_qrgba64.go +++ b/qt/gen_qrgba64.go @@ -172,7 +172,7 @@ func (this *QRgba64) OperatorAssign(_rgba uint64) { // Delete this object from C++ memory. func (this *QRgba64) Delete() { - C.QRgba64_Delete(this.h, C.bool(this.isSubclass)) + C.QRgba64_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qrgba64.h b/qt/gen_qrgba64.h index d892a205..d34798e9 100644 --- a/qt/gen_qrgba64.h +++ b/qt/gen_qrgba64.h @@ -46,7 +46,7 @@ QRgba64* QRgba64_Premultiplied(const QRgba64* self); QRgba64* QRgba64_Unpremultiplied(const QRgba64* self); unsigned long long QRgba64_ToUnsignedLongLong(const QRgba64* self); void QRgba64_OperatorAssign(QRgba64* self, unsigned long long _rgba); -void QRgba64_Delete(QRgba64* self, bool isSubclass); +void QRgba64_Delete(QRgba64* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qrubberband.cpp b/qt/gen_qrubberband.cpp index 303bf927..6cd0eda7 100644 --- a/qt/gen_qrubberband.cpp +++ b/qt/gen_qrubberband.cpp @@ -84,13 +84,13 @@ bool miqt_exec_callback_QRubberBand_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQRubberBand : public virtual QRubberBand { +class MiqtVirtualQRubberBand final : public QRubberBand { public: MiqtVirtualQRubberBand(QRubberBand::Shape param1): QRubberBand(param1) {}; MiqtVirtualQRubberBand(QRubberBand::Shape param1, QWidget* param2): QRubberBand(param1, param2) {}; - virtual ~MiqtVirtualQRubberBand() = default; + virtual ~MiqtVirtualQRubberBand() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1512,11 +1512,7 @@ bool QRubberBand_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQRubberBand*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QRubberBand_Delete(QRubberBand* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRubberBand_Delete(QRubberBand* self) { + delete self; } diff --git a/qt/gen_qrubberband.go b/qt/gen_qrubberband.go index d3094e1a..f9ad3411 100644 --- a/qt/gen_qrubberband.go +++ b/qt/gen_qrubberband.go @@ -1265,7 +1265,7 @@ func miqt_exec_callback_QRubberBand_FocusNextPrevChild(self *C.QRubberBand, cb C // Delete this object from C++ memory. func (this *QRubberBand) Delete() { - C.QRubberBand_Delete(this.h, C.bool(this.isSubclass)) + C.QRubberBand_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qrubberband.h b/qt/gen_qrubberband.h index 161d19c6..5c199e52 100644 --- a/qt/gen_qrubberband.h +++ b/qt/gen_qrubberband.h @@ -184,7 +184,7 @@ void QRubberBand_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QRubberBand_virtualbase_InputMethodQuery(const void* self, int param1); void QRubberBand_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QRubberBand_virtualbase_FocusNextPrevChild(void* self, bool next); -void QRubberBand_Delete(QRubberBand* self, bool isSubclass); +void QRubberBand_Delete(QRubberBand* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qrunnable.cpp b/qt/gen_qrunnable.cpp index a094512e..c3002be5 100644 --- a/qt/gen_qrunnable.cpp +++ b/qt/gen_qrunnable.cpp @@ -11,12 +11,12 @@ void miqt_exec_callback_QRunnable_Run(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQRunnable : public virtual QRunnable { +class MiqtVirtualQRunnable final : public QRunnable { public: MiqtVirtualQRunnable(): QRunnable() {}; - virtual ~MiqtVirtualQRunnable() = default; + virtual ~MiqtVirtualQRunnable() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Run = 0; @@ -59,11 +59,7 @@ void QRunnable_override_virtual_Run(void* self, intptr_t slot) { dynamic_cast( (QRunnable*)(self) )->handle__Run = slot; } -void QRunnable_Delete(QRunnable* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRunnable_Delete(QRunnable* self) { + delete self; } diff --git a/qt/gen_qrunnable.go b/qt/gen_qrunnable.go index 02ded50f..c85114a7 100644 --- a/qt/gen_qrunnable.go +++ b/qt/gen_qrunnable.go @@ -90,7 +90,7 @@ func miqt_exec_callback_QRunnable_Run(self *C.QRunnable, cb C.intptr_t) { // Delete this object from C++ memory. func (this *QRunnable) Delete() { - C.QRunnable_Delete(this.h, C.bool(this.isSubclass)) + C.QRunnable_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qrunnable.h b/qt/gen_qrunnable.h index d457acf2..7b919156 100644 --- a/qt/gen_qrunnable.h +++ b/qt/gen_qrunnable.h @@ -27,7 +27,7 @@ void QRunnable_SetAutoDelete(QRunnable* self, bool _autoDelete); void QRunnable_OperatorAssign(QRunnable* self, QRunnable* param1); void QRunnable_override_virtual_Run(void* self, intptr_t slot); void QRunnable_virtualbase_Run(void* self); -void QRunnable_Delete(QRunnable* self, bool isSubclass); +void QRunnable_Delete(QRunnable* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsavefile.cpp b/qt/gen_qsavefile.cpp index 42ffabc5..3199c814 100644 --- a/qt/gen_qsavefile.cpp +++ b/qt/gen_qsavefile.cpp @@ -30,7 +30,7 @@ long long miqt_exec_callback_QSaveFile_ReadLineData(void*, intptr_t, char*, long } /* extern C */ #endif -class MiqtVirtualQSaveFile : public virtual QSaveFile { +class MiqtVirtualQSaveFile final : public QSaveFile { public: MiqtVirtualQSaveFile(const QString& name): QSaveFile(name) {}; @@ -38,7 +38,7 @@ public: MiqtVirtualQSaveFile(const QString& name, QObject* parent): QSaveFile(name, parent) {}; MiqtVirtualQSaveFile(QObject* parent): QSaveFile(parent) {}; - virtual ~MiqtVirtualQSaveFile() = default; + virtual ~MiqtVirtualQSaveFile() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__FileName = 0; @@ -595,11 +595,7 @@ long long QSaveFile_virtualbase_ReadLineData(void* self, char* data, long long m return ( (MiqtVirtualQSaveFile*)(self) )->virtualbase_ReadLineData(data, maxlen); } -void QSaveFile_Delete(QSaveFile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSaveFile_Delete(QSaveFile* self) { + delete self; } diff --git a/qt/gen_qsavefile.go b/qt/gen_qsavefile.go index 9256739d..45449d3d 100644 --- a/qt/gen_qsavefile.go +++ b/qt/gen_qsavefile.go @@ -567,7 +567,7 @@ func miqt_exec_callback_QSaveFile_ReadLineData(self *C.QSaveFile, cb C.intptr_t, // Delete this object from C++ memory. func (this *QSaveFile) Delete() { - C.QSaveFile_Delete(this.h, C.bool(this.isSubclass)) + C.QSaveFile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsavefile.h b/qt/gen_qsavefile.h index a5c5e705..29e49bc9 100644 --- a/qt/gen_qsavefile.h +++ b/qt/gen_qsavefile.h @@ -75,7 +75,7 @@ void QSaveFile_override_virtual_ReadData(void* self, intptr_t slot); long long QSaveFile_virtualbase_ReadData(void* self, char* data, long long maxlen); void QSaveFile_override_virtual_ReadLineData(void* self, intptr_t slot); long long QSaveFile_virtualbase_ReadLineData(void* self, char* data, long long maxlen); -void QSaveFile_Delete(QSaveFile* self, bool isSubclass); +void QSaveFile_Delete(QSaveFile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qscopedpointer.cpp b/qt/gen_qscopedpointer.cpp index 7507910f..741658a3 100644 --- a/qt/gen_qscopedpointer.cpp +++ b/qt/gen_qscopedpointer.cpp @@ -14,11 +14,7 @@ void QScopedPointerPodDeleter_Cleanup(void* pointer) { QScopedPointerPodDeleter::cleanup(pointer); } -void QScopedPointerPodDeleter_Delete(QScopedPointerPodDeleter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScopedPointerPodDeleter_Delete(QScopedPointerPodDeleter* self) { + delete self; } diff --git a/qt/gen_qscopedpointer.go b/qt/gen_qscopedpointer.go index 58c6412d..16ac01ef 100644 --- a/qt/gen_qscopedpointer.go +++ b/qt/gen_qscopedpointer.go @@ -52,7 +52,7 @@ func QScopedPointerPodDeleter_Cleanup(pointer unsafe.Pointer) { // Delete this object from C++ memory. func (this *QScopedPointerPodDeleter) Delete() { - C.QScopedPointerPodDeleter_Delete(this.h, C.bool(this.isSubclass)) + C.QScopedPointerPodDeleter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qscopedpointer.h b/qt/gen_qscopedpointer.h index 4bf032ce..6b21b77a 100644 --- a/qt/gen_qscopedpointer.h +++ b/qt/gen_qscopedpointer.h @@ -21,7 +21,7 @@ typedef struct QScopedPointerPodDeleter QScopedPointerPodDeleter; #endif void QScopedPointerPodDeleter_Cleanup(void* pointer); -void QScopedPointerPodDeleter_Delete(QScopedPointerPodDeleter* self, bool isSubclass); +void QScopedPointerPodDeleter_Delete(QScopedPointerPodDeleter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qscreen.cpp b/qt/gen_qscreen.cpp index 92939a47..3ef95efa 100644 --- a/qt/gen_qscreen.cpp +++ b/qt/gen_qscreen.cpp @@ -426,11 +426,7 @@ QPixmap* QScreen_GrabWindow5(QScreen* self, uintptr_t window, int x, int y, int return new QPixmap(self->grabWindow(static_cast(window), static_cast(x), static_cast(y), static_cast(w), static_cast(h))); } -void QScreen_Delete(QScreen* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScreen_Delete(QScreen* self) { + delete self; } diff --git a/qt/gen_qscreen.go b/qt/gen_qscreen.go index a9a5528a..bc9c1627 100644 --- a/qt/gen_qscreen.go +++ b/qt/gen_qscreen.go @@ -511,7 +511,7 @@ func (this *QScreen) GrabWindow5(window uintptr, x int, y int, w int, h int) *QP // Delete this object from C++ memory. func (this *QScreen) Delete() { - C.QScreen_Delete(this.h, C.bool(this.isSubclass)) + C.QScreen_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qscreen.h b/qt/gen_qscreen.h index c0bec91f..8b4c44c2 100644 --- a/qt/gen_qscreen.h +++ b/qt/gen_qscreen.h @@ -102,7 +102,7 @@ QPixmap* QScreen_GrabWindow2(QScreen* self, uintptr_t window, int x); QPixmap* QScreen_GrabWindow3(QScreen* self, uintptr_t window, int x, int y); QPixmap* QScreen_GrabWindow4(QScreen* self, uintptr_t window, int x, int y, int w); QPixmap* QScreen_GrabWindow5(QScreen* self, uintptr_t window, int x, int y, int w, int h); -void QScreen_Delete(QScreen* self, bool isSubclass); +void QScreen_Delete(QScreen* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qscrollarea.cpp b/qt/gen_qscrollarea.cpp index 46baecbe..033a4557 100644 --- a/qt/gen_qscrollarea.cpp +++ b/qt/gen_qscrollarea.cpp @@ -53,13 +53,13 @@ void miqt_exec_callback_QScrollArea_KeyPressEvent(void*, intptr_t, QKeyEvent*); } /* extern C */ #endif -class MiqtVirtualQScrollArea : public virtual QScrollArea { +class MiqtVirtualQScrollArea final : public QScrollArea { public: MiqtVirtualQScrollArea(QWidget* parent): QScrollArea(parent) {}; MiqtVirtualQScrollArea(): QScrollArea() {}; - virtual ~MiqtVirtualQScrollArea() = default; + virtual ~MiqtVirtualQScrollArea() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -906,11 +906,7 @@ void QScrollArea_virtualbase_KeyPressEvent(void* self, QKeyEvent* param1) { ( (MiqtVirtualQScrollArea*)(self) )->virtualbase_KeyPressEvent(param1); } -void QScrollArea_Delete(QScrollArea* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScrollArea_Delete(QScrollArea* self) { + delete self; } diff --git a/qt/gen_qscrollarea.go b/qt/gen_qscrollarea.go index 4f9709ae..130282aa 100644 --- a/qt/gen_qscrollarea.go +++ b/qt/gen_qscrollarea.go @@ -790,7 +790,7 @@ func miqt_exec_callback_QScrollArea_KeyPressEvent(self *C.QScrollArea, cb C.intp // Delete this object from C++ memory. func (this *QScrollArea) Delete() { - C.QScrollArea_Delete(this.h, C.bool(this.isSubclass)) + C.QScrollArea_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qscrollarea.h b/qt/gen_qscrollarea.h index 035b42f4..229569c1 100644 --- a/qt/gen_qscrollarea.h +++ b/qt/gen_qscrollarea.h @@ -131,7 +131,7 @@ void QScrollArea_override_virtual_DropEvent(void* self, intptr_t slot); void QScrollArea_virtualbase_DropEvent(void* self, QDropEvent* param1); void QScrollArea_override_virtual_KeyPressEvent(void* self, intptr_t slot); void QScrollArea_virtualbase_KeyPressEvent(void* self, QKeyEvent* param1); -void QScrollArea_Delete(QScrollArea* self, bool isSubclass); +void QScrollArea_Delete(QScrollArea* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qscrollbar.cpp b/qt/gen_qscrollbar.cpp index be133b3c..9fee5b9b 100644 --- a/qt/gen_qscrollbar.cpp +++ b/qt/gen_qscrollbar.cpp @@ -40,7 +40,7 @@ void miqt_exec_callback_QScrollBar_ChangeEvent(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQScrollBar : public virtual QScrollBar { +class MiqtVirtualQScrollBar final : public QScrollBar { public: MiqtVirtualQScrollBar(QWidget* parent): QScrollBar(parent) {}; @@ -48,7 +48,7 @@ public: MiqtVirtualQScrollBar(Qt::Orientation param1): QScrollBar(param1) {}; MiqtVirtualQScrollBar(Qt::Orientation param1, QWidget* parent): QScrollBar(param1, parent) {}; - virtual ~MiqtVirtualQScrollBar() = default; + virtual ~MiqtVirtualQScrollBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -568,11 +568,7 @@ void QScrollBar_virtualbase_ChangeEvent(void* self, QEvent* e) { ( (MiqtVirtualQScrollBar*)(self) )->virtualbase_ChangeEvent(e); } -void QScrollBar_Delete(QScrollBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScrollBar_Delete(QScrollBar* self) { + delete self; } diff --git a/qt/gen_qscrollbar.go b/qt/gen_qscrollbar.go index 089a961d..fa15639e 100644 --- a/qt/gen_qscrollbar.go +++ b/qt/gen_qscrollbar.go @@ -508,7 +508,7 @@ func miqt_exec_callback_QScrollBar_ChangeEvent(self *C.QScrollBar, cb C.intptr_t // Delete this object from C++ memory. func (this *QScrollBar) Delete() { - C.QScrollBar_Delete(this.h, C.bool(this.isSubclass)) + C.QScrollBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qscrollbar.h b/qt/gen_qscrollbar.h index de08d169..f63c4274 100644 --- a/qt/gen_qscrollbar.h +++ b/qt/gen_qscrollbar.h @@ -97,7 +97,7 @@ void QScrollBar_override_virtual_TimerEvent(void* self, intptr_t slot); void QScrollBar_virtualbase_TimerEvent(void* self, QTimerEvent* param1); void QScrollBar_override_virtual_ChangeEvent(void* self, intptr_t slot); void QScrollBar_virtualbase_ChangeEvent(void* self, QEvent* e); -void QScrollBar_Delete(QScrollBar* self, bool isSubclass); +void QScrollBar_Delete(QScrollBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qscrollerproperties.cpp b/qt/gen_qscrollerproperties.cpp index 7d06bc1b..b91c0b0b 100644 --- a/qt/gen_qscrollerproperties.cpp +++ b/qt/gen_qscrollerproperties.cpp @@ -47,11 +47,7 @@ void QScrollerProperties_SetScrollMetric(QScrollerProperties* self, int metric, self->setScrollMetric(static_cast(metric), *value); } -void QScrollerProperties_Delete(QScrollerProperties* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScrollerProperties_Delete(QScrollerProperties* self) { + delete self; } diff --git a/qt/gen_qscrollerproperties.go b/qt/gen_qscrollerproperties.go index 17c2dcf9..77e87f5e 100644 --- a/qt/gen_qscrollerproperties.go +++ b/qt/gen_qscrollerproperties.go @@ -137,7 +137,7 @@ func (this *QScrollerProperties) SetScrollMetric(metric QScrollerProperties__Scr // Delete this object from C++ memory. func (this *QScrollerProperties) Delete() { - C.QScrollerProperties_Delete(this.h, C.bool(this.isSubclass)) + C.QScrollerProperties_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qscrollerproperties.h b/qt/gen_qscrollerproperties.h index 688e19cb..36bd6275 100644 --- a/qt/gen_qscrollerproperties.h +++ b/qt/gen_qscrollerproperties.h @@ -31,7 +31,7 @@ void QScrollerProperties_SetDefaultScrollerProperties(QScrollerProperties* sp); void QScrollerProperties_UnsetDefaultScrollerProperties(); QVariant* QScrollerProperties_ScrollMetric(const QScrollerProperties* self, int metric); void QScrollerProperties_SetScrollMetric(QScrollerProperties* self, int metric, QVariant* value); -void QScrollerProperties_Delete(QScrollerProperties* self, bool isSubclass); +void QScrollerProperties_Delete(QScrollerProperties* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsemaphore.cpp b/qt/gen_qsemaphore.cpp index bdfed033..345e0bc2 100644 --- a/qt/gen_qsemaphore.cpp +++ b/qt/gen_qsemaphore.cpp @@ -51,12 +51,8 @@ void QSemaphore_Release1(QSemaphore* self, int n) { self->release(static_cast(n)); } -void QSemaphore_Delete(QSemaphore* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSemaphore_Delete(QSemaphore* self) { + delete self; } QSemaphoreReleaser* QSemaphoreReleaser_new() { @@ -91,11 +87,7 @@ QSemaphore* QSemaphoreReleaser_Cancel(QSemaphoreReleaser* self) { return self->cancel(); } -void QSemaphoreReleaser_Delete(QSemaphoreReleaser* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSemaphoreReleaser_Delete(QSemaphoreReleaser* self) { + delete self; } diff --git a/qt/gen_qsemaphore.go b/qt/gen_qsemaphore.go index 867bbf9e..44aa4c1a 100644 --- a/qt/gen_qsemaphore.go +++ b/qt/gen_qsemaphore.go @@ -96,7 +96,7 @@ func (this *QSemaphore) Release1(n int) { // Delete this object from C++ memory. func (this *QSemaphore) Delete() { - C.QSemaphore_Delete(this.h, C.bool(this.isSubclass)) + C.QSemaphore_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -195,7 +195,7 @@ func (this *QSemaphoreReleaser) Cancel() *QSemaphore { // Delete this object from C++ memory. func (this *QSemaphoreReleaser) Delete() { - C.QSemaphoreReleaser_Delete(this.h, C.bool(this.isSubclass)) + C.QSemaphoreReleaser_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsemaphore.h b/qt/gen_qsemaphore.h index 71b7f5e4..d92862ad 100644 --- a/qt/gen_qsemaphore.h +++ b/qt/gen_qsemaphore.h @@ -32,7 +32,7 @@ int QSemaphore_Available(const QSemaphore* self); void QSemaphore_Acquire1(QSemaphore* self, int n); bool QSemaphore_TryAcquire1(QSemaphore* self, int n); void QSemaphore_Release1(QSemaphore* self, int n); -void QSemaphore_Delete(QSemaphore* self, bool isSubclass); +void QSemaphore_Delete(QSemaphore* self); QSemaphoreReleaser* QSemaphoreReleaser_new(); QSemaphoreReleaser* QSemaphoreReleaser_new2(QSemaphore* sem); @@ -42,7 +42,7 @@ QSemaphoreReleaser* QSemaphoreReleaser_new5(QSemaphore* sem, int n); void QSemaphoreReleaser_Swap(QSemaphoreReleaser* self, QSemaphoreReleaser* other); QSemaphore* QSemaphoreReleaser_Semaphore(const QSemaphoreReleaser* self); QSemaphore* QSemaphoreReleaser_Cancel(QSemaphoreReleaser* self); -void QSemaphoreReleaser_Delete(QSemaphoreReleaser* self, bool isSubclass); +void QSemaphoreReleaser_Delete(QSemaphoreReleaser* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsequentialanimationgroup.cpp b/qt/gen_qsequentialanimationgroup.cpp index c2b4a12c..bcaccbf4 100644 --- a/qt/gen_qsequentialanimationgroup.cpp +++ b/qt/gen_qsequentialanimationgroup.cpp @@ -25,13 +25,13 @@ void miqt_exec_callback_QSequentialAnimationGroup_UpdateDirection(void*, intptr_ } /* extern C */ #endif -class MiqtVirtualQSequentialAnimationGroup : public virtual QSequentialAnimationGroup { +class MiqtVirtualQSequentialAnimationGroup final : public QSequentialAnimationGroup { public: MiqtVirtualQSequentialAnimationGroup(): QSequentialAnimationGroup() {}; MiqtVirtualQSequentialAnimationGroup(QObject* parent): QSequentialAnimationGroup(parent) {}; - virtual ~MiqtVirtualQSequentialAnimationGroup() = default; + virtual ~MiqtVirtualQSequentialAnimationGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Duration = 0; @@ -309,11 +309,7 @@ void QSequentialAnimationGroup_virtualbase_UpdateDirection(void* self, int direc ( (MiqtVirtualQSequentialAnimationGroup*)(self) )->virtualbase_UpdateDirection(direction); } -void QSequentialAnimationGroup_Delete(QSequentialAnimationGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSequentialAnimationGroup_Delete(QSequentialAnimationGroup* self) { + delete self; } diff --git a/qt/gen_qsequentialanimationgroup.go b/qt/gen_qsequentialanimationgroup.go index c6456120..89178d55 100644 --- a/qt/gen_qsequentialanimationgroup.go +++ b/qt/gen_qsequentialanimationgroup.go @@ -310,7 +310,7 @@ func miqt_exec_callback_QSequentialAnimationGroup_UpdateDirection(self *C.QSeque // Delete this object from C++ memory. func (this *QSequentialAnimationGroup) Delete() { - C.QSequentialAnimationGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QSequentialAnimationGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsequentialanimationgroup.h b/qt/gen_qsequentialanimationgroup.h index b21d392a..c28430d5 100644 --- a/qt/gen_qsequentialanimationgroup.h +++ b/qt/gen_qsequentialanimationgroup.h @@ -63,7 +63,7 @@ void QSequentialAnimationGroup_override_virtual_UpdateState(void* self, intptr_t void QSequentialAnimationGroup_virtualbase_UpdateState(void* self, int newState, int oldState); void QSequentialAnimationGroup_override_virtual_UpdateDirection(void* self, intptr_t slot); void QSequentialAnimationGroup_virtualbase_UpdateDirection(void* self, int direction); -void QSequentialAnimationGroup_Delete(QSequentialAnimationGroup* self, bool isSubclass); +void QSequentialAnimationGroup_Delete(QSequentialAnimationGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsettings.cpp b/qt/gen_qsettings.cpp index 392f72b9..2667b3f3 100644 --- a/qt/gen_qsettings.cpp +++ b/qt/gen_qsettings.cpp @@ -29,7 +29,7 @@ void miqt_exec_callback_QSettings_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQSettings : public virtual QSettings { +class MiqtVirtualQSettings final : public QSettings { public: MiqtVirtualQSettings(const QString& organization): QSettings(organization) {}; @@ -48,7 +48,7 @@ public: MiqtVirtualQSettings(QObject* parent): QSettings(parent) {}; MiqtVirtualQSettings(QSettings::Scope scope, QObject* parent): QSettings(scope, parent) {}; - virtual ~MiqtVirtualQSettings() = default; + virtual ~MiqtVirtualQSettings() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -674,11 +674,7 @@ void QSettings_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQSettings*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSettings_Delete(QSettings* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSettings_Delete(QSettings* self) { + delete self; } diff --git a/qt/gen_qsettings.go b/qt/gen_qsettings.go index b5746b20..8ec62d64 100644 --- a/qt/gen_qsettings.go +++ b/qt/gen_qsettings.go @@ -781,7 +781,7 @@ func miqt_exec_callback_QSettings_DisconnectNotify(self *C.QSettings, cb C.intpt // Delete this object from C++ memory. func (this *QSettings) Delete() { - C.QSettings_Delete(this.h, C.bool(this.isSubclass)) + C.QSettings_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsettings.h b/qt/gen_qsettings.h index 99a6957f..687dc078 100644 --- a/qt/gen_qsettings.h +++ b/qt/gen_qsettings.h @@ -112,7 +112,7 @@ void QSettings_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSettings_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSettings_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSettings_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSettings_Delete(QSettings* self, bool isSubclass); +void QSettings_Delete(QSettings* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qshareddata.cpp b/qt/gen_qshareddata.cpp index 7d7237f7..d161b588 100644 --- a/qt/gen_qshareddata.cpp +++ b/qt/gen_qshareddata.cpp @@ -18,11 +18,7 @@ QSharedData* QSharedData_new2(QSharedData* param1) { return new QSharedData(*param1); } -void QSharedData_Delete(QSharedData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSharedData_Delete(QSharedData* self) { + delete self; } diff --git a/qt/gen_qshareddata.go b/qt/gen_qshareddata.go index eb6f7687..e12d39b3 100644 --- a/qt/gen_qshareddata.go +++ b/qt/gen_qshareddata.go @@ -64,7 +64,7 @@ func NewQSharedData2(param1 *QSharedData) *QSharedData { // Delete this object from C++ memory. func (this *QSharedData) Delete() { - C.QSharedData_Delete(this.h, C.bool(this.isSubclass)) + C.QSharedData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qshareddata.h b/qt/gen_qshareddata.h index 145e2ae4..d6cd260d 100644 --- a/qt/gen_qshareddata.h +++ b/qt/gen_qshareddata.h @@ -22,7 +22,7 @@ typedef struct QSharedData QSharedData; QSharedData* QSharedData_new(); QSharedData* QSharedData_new2(QSharedData* param1); -void QSharedData_Delete(QSharedData* self, bool isSubclass); +void QSharedData_Delete(QSharedData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsharedmemory.cpp b/qt/gen_qsharedmemory.cpp index c285be2a..2504ad8a 100644 --- a/qt/gen_qsharedmemory.cpp +++ b/qt/gen_qsharedmemory.cpp @@ -26,7 +26,7 @@ void miqt_exec_callback_QSharedMemory_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQSharedMemory : public virtual QSharedMemory { +class MiqtVirtualQSharedMemory final : public QSharedMemory { public: MiqtVirtualQSharedMemory(): QSharedMemory() {}; @@ -34,7 +34,7 @@ public: MiqtVirtualQSharedMemory(QObject* parent): QSharedMemory(parent) {}; MiqtVirtualQSharedMemory(const QString& key, QObject* parent): QSharedMemory(key, parent) {}; - virtual ~MiqtVirtualQSharedMemory() = default; + virtual ~MiqtVirtualQSharedMemory() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -457,11 +457,7 @@ void QSharedMemory_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQSharedMemory*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSharedMemory_Delete(QSharedMemory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSharedMemory_Delete(QSharedMemory* self) { + delete self; } diff --git a/qt/gen_qsharedmemory.go b/qt/gen_qsharedmemory.go index 00408722..902d5daa 100644 --- a/qt/gen_qsharedmemory.go +++ b/qt/gen_qsharedmemory.go @@ -463,7 +463,7 @@ func miqt_exec_callback_QSharedMemory_DisconnectNotify(self *C.QSharedMemory, cb // Delete this object from C++ memory. func (this *QSharedMemory) Delete() { - C.QSharedMemory_Delete(this.h, C.bool(this.isSubclass)) + C.QSharedMemory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsharedmemory.h b/qt/gen_qsharedmemory.h index 531f7047..d1c3bd78 100644 --- a/qt/gen_qsharedmemory.h +++ b/qt/gen_qsharedmemory.h @@ -77,7 +77,7 @@ void QSharedMemory_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSharedMemory_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSharedMemory_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSharedMemory_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSharedMemory_Delete(QSharedMemory* self, bool isSubclass); +void QSharedMemory_Delete(QSharedMemory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qshortcut.cpp b/qt/gen_qshortcut.cpp index 0d80fecf..bb18a60d 100644 --- a/qt/gen_qshortcut.cpp +++ b/qt/gen_qshortcut.cpp @@ -30,7 +30,7 @@ void miqt_exec_callback_QShortcut_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQShortcut : public virtual QShortcut { +class MiqtVirtualQShortcut final : public QShortcut { public: MiqtVirtualQShortcut(QWidget* parent): QShortcut(parent) {}; @@ -39,7 +39,7 @@ public: MiqtVirtualQShortcut(const QKeySequence& key, QWidget* parent, const char* member, const char* ambiguousMember): QShortcut(key, parent, member, ambiguousMember) {}; MiqtVirtualQShortcut(const QKeySequence& key, QWidget* parent, const char* member, const char* ambiguousMember, Qt::ShortcutContext shortcutContext): QShortcut(key, parent, member, ambiguousMember, shortcutContext) {}; - virtual ~MiqtVirtualQShortcut() = default; + virtual ~MiqtVirtualQShortcut() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -445,11 +445,7 @@ void QShortcut_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQShortcut*)(self) )->virtualbase_DisconnectNotify(signal); } -void QShortcut_Delete(QShortcut* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QShortcut_Delete(QShortcut* self) { + delete self; } diff --git a/qt/gen_qshortcut.go b/qt/gen_qshortcut.go index aca960f2..8bf36191 100644 --- a/qt/gen_qshortcut.go +++ b/qt/gen_qshortcut.go @@ -454,7 +454,7 @@ func miqt_exec_callback_QShortcut_DisconnectNotify(self *C.QShortcut, cb C.intpt // Delete this object from C++ memory. func (this *QShortcut) Delete() { - C.QShortcut_Delete(this.h, C.bool(this.isSubclass)) + C.QShortcut_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qshortcut.h b/qt/gen_qshortcut.h index ab100cbe..abe4a0f3 100644 --- a/qt/gen_qshortcut.h +++ b/qt/gen_qshortcut.h @@ -81,7 +81,7 @@ void QShortcut_override_virtual_ConnectNotify(void* self, intptr_t slot); void QShortcut_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QShortcut_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QShortcut_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QShortcut_Delete(QShortcut* self, bool isSubclass); +void QShortcut_Delete(QShortcut* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsignalmapper.cpp b/qt/gen_qsignalmapper.cpp index bce08ec5..12700780 100644 --- a/qt/gen_qsignalmapper.cpp +++ b/qt/gen_qsignalmapper.cpp @@ -35,13 +35,13 @@ void miqt_exec_callback_QSignalMapper_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQSignalMapper : public virtual QSignalMapper { +class MiqtVirtualQSignalMapper final : public QSignalMapper { public: MiqtVirtualQSignalMapper(): QSignalMapper() {}; MiqtVirtualQSignalMapper(QObject* parent): QSignalMapper(parent) {}; - virtual ~MiqtVirtualQSignalMapper() = default; + virtual ~MiqtVirtualQSignalMapper() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -508,11 +508,7 @@ void QSignalMapper_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQSignalMapper*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSignalMapper_Delete(QSignalMapper* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSignalMapper_Delete(QSignalMapper* self) { + delete self; } diff --git a/qt/gen_qsignalmapper.go b/qt/gen_qsignalmapper.go index 8a949706..1a06ad51 100644 --- a/qt/gen_qsignalmapper.go +++ b/qt/gen_qsignalmapper.go @@ -555,7 +555,7 @@ func miqt_exec_callback_QSignalMapper_DisconnectNotify(self *C.QSignalMapper, cb // Delete this object from C++ memory. func (this *QSignalMapper) Delete() { - C.QSignalMapper_Delete(this.h, C.bool(this.isSubclass)) + C.QSignalMapper_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsignalmapper.h b/qt/gen_qsignalmapper.h index b9fb4412..acfc8a38 100644 --- a/qt/gen_qsignalmapper.h +++ b/qt/gen_qsignalmapper.h @@ -86,7 +86,7 @@ void QSignalMapper_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSignalMapper_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSignalMapper_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSignalMapper_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSignalMapper_Delete(QSignalMapper* self, bool isSubclass); +void QSignalMapper_Delete(QSignalMapper* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsignaltransition.cpp b/qt/gen_qsignaltransition.cpp index 8c798fa5..cff060e2 100644 --- a/qt/gen_qsignaltransition.cpp +++ b/qt/gen_qsignaltransition.cpp @@ -22,7 +22,7 @@ bool miqt_exec_callback_QSignalTransition_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQSignalTransition : public virtual QSignalTransition { +class MiqtVirtualQSignalTransition final : public QSignalTransition { public: MiqtVirtualQSignalTransition(): QSignalTransition() {}; @@ -30,7 +30,7 @@ public: MiqtVirtualQSignalTransition(QState* sourceState): QSignalTransition(sourceState) {}; MiqtVirtualQSignalTransition(const QObject* sender, const char* signal, QState* sourceState): QSignalTransition(sender, signal, sourceState) {}; - virtual ~MiqtVirtualQSignalTransition() = default; + virtual ~MiqtVirtualQSignalTransition() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__EventTest = 0; @@ -244,11 +244,7 @@ bool QSignalTransition_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQSignalTransition*)(self) )->virtualbase_Event(e); } -void QSignalTransition_Delete(QSignalTransition* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSignalTransition_Delete(QSignalTransition* self) { + delete self; } diff --git a/qt/gen_qsignaltransition.go b/qt/gen_qsignaltransition.go index 5ca4e411..3ad43fac 100644 --- a/qt/gen_qsignaltransition.go +++ b/qt/gen_qsignaltransition.go @@ -265,7 +265,7 @@ func miqt_exec_callback_QSignalTransition_Event(self *C.QSignalTransition, cb C. // Delete this object from C++ memory. func (this *QSignalTransition) Delete() { - C.QSignalTransition_Delete(this.h, C.bool(this.isSubclass)) + C.QSignalTransition_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsignaltransition.h b/qt/gen_qsignaltransition.h index 28c68675..8ee09e98 100644 --- a/qt/gen_qsignaltransition.h +++ b/qt/gen_qsignaltransition.h @@ -56,7 +56,7 @@ void QSignalTransition_override_virtual_OnTransition(void* self, intptr_t slot); void QSignalTransition_virtualbase_OnTransition(void* self, QEvent* event); void QSignalTransition_override_virtual_Event(void* self, intptr_t slot); bool QSignalTransition_virtualbase_Event(void* self, QEvent* e); -void QSignalTransition_Delete(QSignalTransition* self, bool isSubclass); +void QSignalTransition_Delete(QSignalTransition* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsize.cpp b/qt/gen_qsize.cpp index d2d9e93a..7bf48d99 100644 --- a/qt/gen_qsize.cpp +++ b/qt/gen_qsize.cpp @@ -117,12 +117,8 @@ QSize* QSize_OperatorDivideAssign(QSize* self, double c) { return &_ret; } -void QSize_Delete(QSize* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSize_Delete(QSize* self) { + delete self; } QSizeF* QSizeF_new() { @@ -239,11 +235,7 @@ QSize* QSizeF_ToSize(const QSizeF* self) { return new QSize(self->toSize()); } -void QSizeF_Delete(QSizeF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSizeF_Delete(QSizeF* self) { + delete self; } diff --git a/qt/gen_qsize.go b/qt/gen_qsize.go index 4edb82a4..3702c128 100644 --- a/qt/gen_qsize.go +++ b/qt/gen_qsize.go @@ -170,7 +170,7 @@ func (this *QSize) OperatorDivideAssign(c float64) *QSize { // Delete this object from C++ memory. func (this *QSize) Delete() { - C.QSize_Delete(this.h, C.bool(this.isSubclass)) + C.QSize_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -353,7 +353,7 @@ func (this *QSizeF) ToSize() *QSize { // Delete this object from C++ memory. func (this *QSizeF) Delete() { - C.QSizeF_Delete(this.h, C.bool(this.isSubclass)) + C.QSizeF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsize.h b/qt/gen_qsize.h index 4dcc3363..eacdd411 100644 --- a/qt/gen_qsize.h +++ b/qt/gen_qsize.h @@ -50,7 +50,7 @@ QSize* QSize_OperatorPlusAssign(QSize* self, QSize* param1); QSize* QSize_OperatorMinusAssign(QSize* self, QSize* param1); QSize* QSize_OperatorMultiplyAssign(QSize* self, double c); QSize* QSize_OperatorDivideAssign(QSize* self, double c); -void QSize_Delete(QSize* self, bool isSubclass); +void QSize_Delete(QSize* self); QSizeF* QSizeF_new(); QSizeF* QSizeF_new2(QSize* sz); @@ -78,7 +78,7 @@ QSizeF* QSizeF_OperatorMinusAssign(QSizeF* self, QSizeF* param1); QSizeF* QSizeF_OperatorMultiplyAssign(QSizeF* self, double c); QSizeF* QSizeF_OperatorDivideAssign(QSizeF* self, double c); QSize* QSizeF_ToSize(const QSizeF* self); -void QSizeF_Delete(QSizeF* self, bool isSubclass); +void QSizeF_Delete(QSizeF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsizegrip.cpp b/qt/gen_qsizegrip.cpp index bdbc6a50..e0da006c 100644 --- a/qt/gen_qsizegrip.cpp +++ b/qt/gen_qsizegrip.cpp @@ -84,12 +84,12 @@ bool miqt_exec_callback_QSizeGrip_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQSizeGrip : public virtual QSizeGrip { +class MiqtVirtualQSizeGrip final : public QSizeGrip { public: MiqtVirtualQSizeGrip(QWidget* parent): QSizeGrip(parent) {}; - virtual ~MiqtVirtualQSizeGrip() = default; + virtual ~MiqtVirtualQSizeGrip() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1518,11 +1518,7 @@ bool QSizeGrip_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQSizeGrip*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QSizeGrip_Delete(QSizeGrip* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSizeGrip_Delete(QSizeGrip* self) { + delete self; } diff --git a/qt/gen_qsizegrip.go b/qt/gen_qsizegrip.go index 54b8fed4..8c734744 100644 --- a/qt/gen_qsizegrip.go +++ b/qt/gen_qsizegrip.go @@ -1262,7 +1262,7 @@ func miqt_exec_callback_QSizeGrip_FocusNextPrevChild(self *C.QSizeGrip, cb C.int // Delete this object from C++ memory. func (this *QSizeGrip) Delete() { - C.QSizeGrip_Delete(this.h, C.bool(this.isSubclass)) + C.QSizeGrip_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsizegrip.h b/qt/gen_qsizegrip.h index f7952f14..b599a90a 100644 --- a/qt/gen_qsizegrip.h +++ b/qt/gen_qsizegrip.h @@ -181,7 +181,7 @@ void QSizeGrip_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QSizeGrip_virtualbase_InputMethodQuery(const void* self, int param1); void QSizeGrip_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QSizeGrip_virtualbase_FocusNextPrevChild(void* self, bool next); -void QSizeGrip_Delete(QSizeGrip* self, bool isSubclass); +void QSizeGrip_Delete(QSizeGrip* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsizepolicy.cpp b/qt/gen_qsizepolicy.cpp index 341fbb18..71e22b05 100644 --- a/qt/gen_qsizepolicy.cpp +++ b/qt/gen_qsizepolicy.cpp @@ -119,11 +119,7 @@ QSizePolicy* QSizePolicy_Transposed(const QSizePolicy* self) { return new QSizePolicy(self->transposed()); } -void QSizePolicy_Delete(QSizePolicy* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSizePolicy_Delete(QSizePolicy* self) { + delete self; } diff --git a/qt/gen_qsizepolicy.go b/qt/gen_qsizepolicy.go index b7dadac2..36494258 100644 --- a/qt/gen_qsizepolicy.go +++ b/qt/gen_qsizepolicy.go @@ -213,7 +213,7 @@ func (this *QSizePolicy) Transposed() *QSizePolicy { // Delete this object from C++ memory. func (this *QSizePolicy) Delete() { - C.QSizePolicy_Delete(this.h, C.bool(this.isSubclass)) + C.QSizePolicy_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsizepolicy.h b/qt/gen_qsizepolicy.h index 5751067b..a1b1ba03 100644 --- a/qt/gen_qsizepolicy.h +++ b/qt/gen_qsizepolicy.h @@ -48,7 +48,7 @@ bool QSizePolicy_RetainSizeWhenHidden(const QSizePolicy* self); void QSizePolicy_SetRetainSizeWhenHidden(QSizePolicy* self, bool retainSize); void QSizePolicy_Transpose(QSizePolicy* self); QSizePolicy* QSizePolicy_Transposed(const QSizePolicy* self); -void QSizePolicy_Delete(QSizePolicy* self, bool isSubclass); +void QSizePolicy_Delete(QSizePolicy* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qslider.cpp b/qt/gen_qslider.cpp index 7f068afd..a204fe04 100644 --- a/qt/gen_qslider.cpp +++ b/qt/gen_qslider.cpp @@ -37,7 +37,7 @@ void miqt_exec_callback_QSlider_ChangeEvent(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQSlider : public virtual QSlider { +class MiqtVirtualQSlider final : public QSlider { public: MiqtVirtualQSlider(QWidget* parent): QSlider(parent) {}; @@ -45,7 +45,7 @@ public: MiqtVirtualQSlider(Qt::Orientation orientation): QSlider(orientation) {}; MiqtVirtualQSlider(Qt::Orientation orientation, QWidget* parent): QSlider(orientation, parent) {}; - virtual ~MiqtVirtualQSlider() = default; + virtual ~MiqtVirtualQSlider() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -552,11 +552,7 @@ void QSlider_virtualbase_ChangeEvent(void* self, QEvent* e) { ( (MiqtVirtualQSlider*)(self) )->virtualbase_ChangeEvent(e); } -void QSlider_Delete(QSlider* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSlider_Delete(QSlider* self) { + delete self; } diff --git a/qt/gen_qslider.go b/qt/gen_qslider.go index c1179d10..d62676f7 100644 --- a/qt/gen_qslider.go +++ b/qt/gen_qslider.go @@ -516,7 +516,7 @@ func miqt_exec_callback_QSlider_ChangeEvent(self *C.QSlider, cb C.intptr_t, e *C // Delete this object from C++ memory. func (this *QSlider) Delete() { - C.QSlider_Delete(this.h, C.bool(this.isSubclass)) + C.QSlider_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qslider.h b/qt/gen_qslider.h index b6808255..0104be80 100644 --- a/qt/gen_qslider.h +++ b/qt/gen_qslider.h @@ -92,7 +92,7 @@ void QSlider_override_virtual_WheelEvent(void* self, intptr_t slot); void QSlider_virtualbase_WheelEvent(void* self, QWheelEvent* e); void QSlider_override_virtual_ChangeEvent(void* self, intptr_t slot); void QSlider_virtualbase_ChangeEvent(void* self, QEvent* e); -void QSlider_Delete(QSlider* self, bool isSubclass); +void QSlider_Delete(QSlider* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsocketnotifier.cpp b/qt/gen_qsocketnotifier.cpp index 1b52ba71..cc35ccf3 100644 --- a/qt/gen_qsocketnotifier.cpp +++ b/qt/gen_qsocketnotifier.cpp @@ -27,13 +27,13 @@ void miqt_exec_callback_QSocketNotifier_DisconnectNotify(void*, intptr_t, QMetaM } /* extern C */ #endif -class MiqtVirtualQSocketNotifier : public virtual QSocketNotifier { +class MiqtVirtualQSocketNotifier final : public QSocketNotifier { public: MiqtVirtualQSocketNotifier(qintptr socket, QSocketNotifier::Type param2): QSocketNotifier(socket, param2) {}; MiqtVirtualQSocketNotifier(qintptr socket, QSocketNotifier::Type param2, QObject* parent): QSocketNotifier(socket, param2, parent) {}; - virtual ~MiqtVirtualQSocketNotifier() = default; + virtual ~MiqtVirtualQSocketNotifier() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -368,12 +368,8 @@ void QSocketNotifier_virtualbase_DisconnectNotify(void* self, QMetaMethod* signa ( (MiqtVirtualQSocketNotifier*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSocketNotifier_Delete(QSocketNotifier* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSocketNotifier_Delete(QSocketNotifier* self) { + delete self; } QSocketDescriptor* QSocketDescriptor_new() { @@ -406,11 +402,7 @@ bool QSocketDescriptor_IsValid(const QSocketDescriptor* self) { return self->isValid(); } -void QSocketDescriptor_Delete(QSocketDescriptor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSocketDescriptor_Delete(QSocketDescriptor* self) { + delete self; } diff --git a/qt/gen_qsocketnotifier.go b/qt/gen_qsocketnotifier.go index 3da039ea..5cb1f846 100644 --- a/qt/gen_qsocketnotifier.go +++ b/qt/gen_qsocketnotifier.go @@ -353,7 +353,7 @@ func miqt_exec_callback_QSocketNotifier_DisconnectNotify(self *C.QSocketNotifier // Delete this object from C++ memory. func (this *QSocketNotifier) Delete() { - C.QSocketNotifier_Delete(this.h, C.bool(this.isSubclass)) + C.QSocketNotifier_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -440,7 +440,7 @@ func (this *QSocketDescriptor) IsValid() bool { // Delete this object from C++ memory. func (this *QSocketDescriptor) Delete() { - C.QSocketDescriptor_Delete(this.h, C.bool(this.isSubclass)) + C.QSocketDescriptor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsocketnotifier.h b/qt/gen_qsocketnotifier.h index ac9a70f3..4dbb24a9 100644 --- a/qt/gen_qsocketnotifier.h +++ b/qt/gen_qsocketnotifier.h @@ -64,14 +64,14 @@ void QSocketNotifier_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSocketNotifier_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSocketNotifier_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSocketNotifier_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSocketNotifier_Delete(QSocketNotifier* self, bool isSubclass); +void QSocketNotifier_Delete(QSocketNotifier* self); QSocketDescriptor* QSocketDescriptor_new(); QSocketDescriptor* QSocketDescriptor_new2(QSocketDescriptor* param1); QSocketDescriptor* QSocketDescriptor_new3(int descriptor); int QSocketDescriptor_ToInt(const QSocketDescriptor* self); bool QSocketDescriptor_IsValid(const QSocketDescriptor* self); -void QSocketDescriptor_Delete(QSocketDescriptor* self, bool isSubclass); +void QSocketDescriptor_Delete(QSocketDescriptor* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsortfilterproxymodel.cpp b/qt/gen_qsortfilterproxymodel.cpp index ee10f4ad..82def4b7 100644 --- a/qt/gen_qsortfilterproxymodel.cpp +++ b/qt/gen_qsortfilterproxymodel.cpp @@ -72,13 +72,13 @@ int miqt_exec_callback_QSortFilterProxyModel_SupportedDragActions(void*, intptr_ } /* extern C */ #endif -class MiqtVirtualQSortFilterProxyModel : public virtual QSortFilterProxyModel { +class MiqtVirtualQSortFilterProxyModel final : public QSortFilterProxyModel { public: MiqtVirtualQSortFilterProxyModel(): QSortFilterProxyModel() {}; MiqtVirtualQSortFilterProxyModel(QObject* parent): QSortFilterProxyModel(parent) {}; - virtual ~MiqtVirtualQSortFilterProxyModel() = default; + virtual ~MiqtVirtualQSortFilterProxyModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetSourceModel = 0; @@ -1932,11 +1932,7 @@ int QSortFilterProxyModel_virtualbase_SupportedDragActions(const void* self) { return ( (const MiqtVirtualQSortFilterProxyModel*)(self) )->virtualbase_SupportedDragActions(); } -void QSortFilterProxyModel_Delete(QSortFilterProxyModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSortFilterProxyModel_Delete(QSortFilterProxyModel* self) { + delete self; } diff --git a/qt/gen_qsortfilterproxymodel.go b/qt/gen_qsortfilterproxymodel.go index 15086138..3d9dff29 100644 --- a/qt/gen_qsortfilterproxymodel.go +++ b/qt/gen_qsortfilterproxymodel.go @@ -1846,7 +1846,7 @@ func miqt_exec_callback_QSortFilterProxyModel_SupportedDragActions(self *C.QSort // Delete this object from C++ memory. func (this *QSortFilterProxyModel) Delete() { - C.QSortFilterProxyModel_Delete(this.h, C.bool(this.isSubclass)) + C.QSortFilterProxyModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsortfilterproxymodel.h b/qt/gen_qsortfilterproxymodel.h index 3e94c9c2..3c651b44 100644 --- a/qt/gen_qsortfilterproxymodel.h +++ b/qt/gen_qsortfilterproxymodel.h @@ -206,7 +206,7 @@ void QSortFilterProxyModel_override_virtual_CanDropMimeData(void* self, intptr_t bool QSortFilterProxyModel_virtualbase_CanDropMimeData(const void* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); void QSortFilterProxyModel_override_virtual_SupportedDragActions(void* self, intptr_t slot); int QSortFilterProxyModel_virtualbase_SupportedDragActions(const void* self); -void QSortFilterProxyModel_Delete(QSortFilterProxyModel* self, bool isSubclass); +void QSortFilterProxyModel_Delete(QSortFilterProxyModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qspinbox.cpp b/qt/gen_qspinbox.cpp index 4f256c58..1c4462f5 100644 --- a/qt/gen_qspinbox.cpp +++ b/qt/gen_qspinbox.cpp @@ -93,13 +93,13 @@ int miqt_exec_callback_QDoubleSpinBox_StepEnabled(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQSpinBox : public virtual QSpinBox { +class MiqtVirtualQSpinBox final : public QSpinBox { public: MiqtVirtualQSpinBox(QWidget* parent): QSpinBox(parent) {}; MiqtVirtualQSpinBox(): QSpinBox() {}; - virtual ~MiqtVirtualQSpinBox() = default; + virtual ~MiqtVirtualQSpinBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1222,21 +1222,17 @@ int QSpinBox_virtualbase_StepEnabled(const void* self) { return ( (const MiqtVirtualQSpinBox*)(self) )->virtualbase_StepEnabled(); } -void QSpinBox_Delete(QSpinBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSpinBox_Delete(QSpinBox* self) { + delete self; } -class MiqtVirtualQDoubleSpinBox : public virtual QDoubleSpinBox { +class MiqtVirtualQDoubleSpinBox final : public QDoubleSpinBox { public: MiqtVirtualQDoubleSpinBox(QWidget* parent): QDoubleSpinBox(parent) {}; MiqtVirtualQDoubleSpinBox(): QDoubleSpinBox() {}; - virtual ~MiqtVirtualQDoubleSpinBox() = default; + virtual ~MiqtVirtualQDoubleSpinBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Validate = 0; @@ -2386,11 +2382,7 @@ int QDoubleSpinBox_virtualbase_StepEnabled(const void* self) { return ( (const MiqtVirtualQDoubleSpinBox*)(self) )->virtualbase_StepEnabled(); } -void QDoubleSpinBox_Delete(QDoubleSpinBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDoubleSpinBox_Delete(QDoubleSpinBox* self) { + delete self; } diff --git a/qt/gen_qspinbox.go b/qt/gen_qspinbox.go index 9a33a128..1bcda3a0 100644 --- a/qt/gen_qspinbox.go +++ b/qt/gen_qspinbox.go @@ -1044,7 +1044,7 @@ func miqt_exec_callback_QSpinBox_StepEnabled(self *C.QSpinBox, cb C.intptr_t) C. // Delete this object from C++ memory. func (this *QSpinBox) Delete() { - C.QSpinBox_Delete(this.h, C.bool(this.isSubclass)) + C.QSpinBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2117,7 +2117,7 @@ func miqt_exec_callback_QDoubleSpinBox_StepEnabled(self *C.QDoubleSpinBox, cb C. // Delete this object from C++ memory. func (this *QDoubleSpinBox) Delete() { - C.QDoubleSpinBox_Delete(this.h, C.bool(this.isSubclass)) + C.QDoubleSpinBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qspinbox.h b/qt/gen_qspinbox.h index aec5e7e2..028df4d3 100644 --- a/qt/gen_qspinbox.h +++ b/qt/gen_qspinbox.h @@ -154,7 +154,7 @@ void QSpinBox_override_virtual_ShowEvent(void* self, intptr_t slot); void QSpinBox_virtualbase_ShowEvent(void* self, QShowEvent* event); void QSpinBox_override_virtual_StepEnabled(void* self, intptr_t slot); int QSpinBox_virtualbase_StepEnabled(const void* self); -void QSpinBox_Delete(QSpinBox* self, bool isSubclass); +void QSpinBox_Delete(QSpinBox* self); QDoubleSpinBox* QDoubleSpinBox_new(QWidget* parent); QDoubleSpinBox* QDoubleSpinBox_new2(); @@ -249,7 +249,7 @@ void QDoubleSpinBox_override_virtual_ShowEvent(void* self, intptr_t slot); void QDoubleSpinBox_virtualbase_ShowEvent(void* self, QShowEvent* event); void QDoubleSpinBox_override_virtual_StepEnabled(void* self, intptr_t slot); int QDoubleSpinBox_virtualbase_StepEnabled(const void* self); -void QDoubleSpinBox_Delete(QDoubleSpinBox* self, bool isSubclass); +void QDoubleSpinBox_Delete(QDoubleSpinBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsplashscreen.cpp b/qt/gen_qsplashscreen.cpp index 39290863..0b1298d1 100644 --- a/qt/gen_qsplashscreen.cpp +++ b/qt/gen_qsplashscreen.cpp @@ -88,7 +88,7 @@ bool miqt_exec_callback_QSplashScreen_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQSplashScreen : public virtual QSplashScreen { +class MiqtVirtualQSplashScreen final : public QSplashScreen { public: MiqtVirtualQSplashScreen(QWidget* parent): QSplashScreen(parent) {}; @@ -101,7 +101,7 @@ public: MiqtVirtualQSplashScreen(QWidget* parent, const QPixmap& pixmap): QSplashScreen(parent, pixmap) {}; MiqtVirtualQSplashScreen(QWidget* parent, const QPixmap& pixmap, Qt::WindowFlags f): QSplashScreen(parent, pixmap, f) {}; - virtual ~MiqtVirtualQSplashScreen() = default; + virtual ~MiqtVirtualQSplashScreen() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1619,11 +1619,7 @@ bool QSplashScreen_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQSplashScreen*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QSplashScreen_Delete(QSplashScreen* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSplashScreen_Delete(QSplashScreen* self) { + delete self; } diff --git a/qt/gen_qsplashscreen.go b/qt/gen_qsplashscreen.go index 59e3a60d..16f6ff61 100644 --- a/qt/gen_qsplashscreen.go +++ b/qt/gen_qsplashscreen.go @@ -1392,7 +1392,7 @@ func miqt_exec_callback_QSplashScreen_FocusNextPrevChild(self *C.QSplashScreen, // Delete this object from C++ memory. func (this *QSplashScreen) Delete() { - C.QSplashScreen_Delete(this.h, C.bool(this.isSubclass)) + C.QSplashScreen_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsplashscreen.h b/qt/gen_qsplashscreen.h index 40efce85..ebc8d72d 100644 --- a/qt/gen_qsplashscreen.h +++ b/qt/gen_qsplashscreen.h @@ -198,7 +198,7 @@ void QSplashScreen_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QSplashScreen_virtualbase_InputMethodQuery(const void* self, int param1); void QSplashScreen_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QSplashScreen_virtualbase_FocusNextPrevChild(void* self, bool next); -void QSplashScreen_Delete(QSplashScreen* self, bool isSubclass); +void QSplashScreen_Delete(QSplashScreen* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsplitter.cpp b/qt/gen_qsplitter.cpp index 7913d47c..5a9e5491 100644 --- a/qt/gen_qsplitter.cpp +++ b/qt/gen_qsplitter.cpp @@ -96,7 +96,7 @@ bool miqt_exec_callback_QSplitterHandle_FocusNextPrevChild(void*, intptr_t, bool } /* extern C */ #endif -class MiqtVirtualQSplitter : public virtual QSplitter { +class MiqtVirtualQSplitter final : public QSplitter { public: MiqtVirtualQSplitter(QWidget* parent): QSplitter(parent) {}; @@ -104,7 +104,7 @@ public: MiqtVirtualQSplitter(Qt::Orientation param1): QSplitter(param1) {}; MiqtVirtualQSplitter(Qt::Orientation param1, QWidget* parent): QSplitter(param1, parent) {}; - virtual ~MiqtVirtualQSplitter() = default; + virtual ~MiqtVirtualQSplitter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -593,20 +593,16 @@ void QSplitter_virtualbase_PaintEvent(void* self, QPaintEvent* param1) { ( (MiqtVirtualQSplitter*)(self) )->virtualbase_PaintEvent(param1); } -void QSplitter_Delete(QSplitter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSplitter_Delete(QSplitter* self) { + delete self; } -class MiqtVirtualQSplitterHandle : public virtual QSplitterHandle { +class MiqtVirtualQSplitterHandle final : public QSplitterHandle { public: MiqtVirtualQSplitterHandle(Qt::Orientation o, QSplitter* parent): QSplitterHandle(o, parent) {}; - virtual ~MiqtVirtualQSplitterHandle() = default; + virtual ~MiqtVirtualQSplitterHandle() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -2016,11 +2012,7 @@ bool QSplitterHandle_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQSplitterHandle*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QSplitterHandle_Delete(QSplitterHandle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSplitterHandle_Delete(QSplitterHandle* self) { + delete self; } diff --git a/qt/gen_qsplitter.go b/qt/gen_qsplitter.go index 323c63b7..2231b324 100644 --- a/qt/gen_qsplitter.go +++ b/qt/gen_qsplitter.go @@ -520,7 +520,7 @@ func miqt_exec_callback_QSplitter_PaintEvent(self *C.QSplitter, cb C.intptr_t, p // Delete this object from C++ memory. func (this *QSplitter) Delete() { - C.QSplitter_Delete(this.h, C.bool(this.isSubclass)) + C.QSplitter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1762,7 +1762,7 @@ func miqt_exec_callback_QSplitterHandle_FocusNextPrevChild(self *C.QSplitterHand // Delete this object from C++ memory. func (this *QSplitterHandle) Delete() { - C.QSplitterHandle_Delete(this.h, C.bool(this.isSubclass)) + C.QSplitterHandle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsplitter.h b/qt/gen_qsplitter.h index 955123e5..f762a6a3 100644 --- a/qt/gen_qsplitter.h +++ b/qt/gen_qsplitter.h @@ -145,7 +145,7 @@ void QSplitter_override_virtual_ChangeEvent(void* self, intptr_t slot); void QSplitter_virtualbase_ChangeEvent(void* self, QEvent* param1); void QSplitter_override_virtual_PaintEvent(void* self, intptr_t slot); void QSplitter_virtualbase_PaintEvent(void* self, QPaintEvent* param1); -void QSplitter_Delete(QSplitter* self, bool isSubclass); +void QSplitter_Delete(QSplitter* self); QSplitterHandle* QSplitterHandle_new(int o, QSplitter* parent); void QSplitterHandle_virtbase(QSplitterHandle* src, QWidget** outptr_QWidget); @@ -250,7 +250,7 @@ void QSplitterHandle_override_virtual_InputMethodQuery(void* self, intptr_t slot QVariant* QSplitterHandle_virtualbase_InputMethodQuery(const void* self, int param1); void QSplitterHandle_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QSplitterHandle_virtualbase_FocusNextPrevChild(void* self, bool next); -void QSplitterHandle_Delete(QSplitterHandle* self, bool isSubclass); +void QSplitterHandle_Delete(QSplitterHandle* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstackedlayout.cpp b/qt/gen_qstackedlayout.cpp index 351c985a..79ae94cb 100644 --- a/qt/gen_qstackedlayout.cpp +++ b/qt/gen_qstackedlayout.cpp @@ -41,14 +41,14 @@ void miqt_exec_callback_QStackedLayout_ChildEvent(void*, intptr_t, QChildEvent*) } /* extern C */ #endif -class MiqtVirtualQStackedLayout : public virtual QStackedLayout { +class MiqtVirtualQStackedLayout final : public QStackedLayout { public: MiqtVirtualQStackedLayout(QWidget* parent): QStackedLayout(parent) {}; MiqtVirtualQStackedLayout(): QStackedLayout() {}; MiqtVirtualQStackedLayout(QLayout* parentLayout): QStackedLayout(parentLayout) {}; - virtual ~MiqtVirtualQStackedLayout() = default; + virtual ~MiqtVirtualQStackedLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Count = 0; @@ -792,11 +792,7 @@ void QStackedLayout_virtualbase_ChildEvent(void* self, QChildEvent* e) { ( (MiqtVirtualQStackedLayout*)(self) )->virtualbase_ChildEvent(e); } -void QStackedLayout_Delete(QStackedLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStackedLayout_Delete(QStackedLayout* self) { + delete self; } diff --git a/qt/gen_qstackedlayout.go b/qt/gen_qstackedlayout.go index a4886ef0..ff5be181 100644 --- a/qt/gen_qstackedlayout.go +++ b/qt/gen_qstackedlayout.go @@ -743,7 +743,7 @@ func miqt_exec_callback_QStackedLayout_ChildEvent(self *C.QStackedLayout, cb C.i // Delete this object from C++ memory. func (this *QStackedLayout) Delete() { - C.QStackedLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QStackedLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstackedlayout.h b/qt/gen_qstackedlayout.h index 0bd0b4f1..42b54383 100644 --- a/qt/gen_qstackedlayout.h +++ b/qt/gen_qstackedlayout.h @@ -106,7 +106,7 @@ void QStackedLayout_override_virtual_Layout(void* self, intptr_t slot); QLayout* QStackedLayout_virtualbase_Layout(void* self); void QStackedLayout_override_virtual_ChildEvent(void* self, intptr_t slot); void QStackedLayout_virtualbase_ChildEvent(void* self, QChildEvent* e); -void QStackedLayout_Delete(QStackedLayout* self, bool isSubclass); +void QStackedLayout_Delete(QStackedLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstackedwidget.cpp b/qt/gen_qstackedwidget.cpp index f87c4a33..c43a1241 100644 --- a/qt/gen_qstackedwidget.cpp +++ b/qt/gen_qstackedwidget.cpp @@ -27,13 +27,13 @@ void miqt_exec_callback_QStackedWidget_ChangeEvent(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQStackedWidget : public virtual QStackedWidget { +class MiqtVirtualQStackedWidget final : public QStackedWidget { public: MiqtVirtualQStackedWidget(QWidget* parent): QStackedWidget(parent) {}; MiqtVirtualQStackedWidget(): QStackedWidget() {}; - virtual ~MiqtVirtualQStackedWidget() = default; + virtual ~MiqtVirtualQStackedWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -310,11 +310,7 @@ void QStackedWidget_virtualbase_ChangeEvent(void* self, QEvent* param1) { ( (MiqtVirtualQStackedWidget*)(self) )->virtualbase_ChangeEvent(param1); } -void QStackedWidget_Delete(QStackedWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStackedWidget_Delete(QStackedWidget* self) { + delete self; } diff --git a/qt/gen_qstackedwidget.go b/qt/gen_qstackedwidget.go index 9251b1dc..87bbce9e 100644 --- a/qt/gen_qstackedwidget.go +++ b/qt/gen_qstackedwidget.go @@ -328,7 +328,7 @@ func miqt_exec_callback_QStackedWidget_ChangeEvent(self *C.QStackedWidget, cb C. // Delete this object from C++ memory. func (this *QStackedWidget) Delete() { - C.QStackedWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QStackedWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstackedwidget.h b/qt/gen_qstackedwidget.h index 1b361f58..532e1a0f 100644 --- a/qt/gen_qstackedwidget.h +++ b/qt/gen_qstackedwidget.h @@ -70,7 +70,7 @@ void QStackedWidget_override_virtual_PaintEvent(void* self, intptr_t slot); void QStackedWidget_virtualbase_PaintEvent(void* self, QPaintEvent* param1); void QStackedWidget_override_virtual_ChangeEvent(void* self, intptr_t slot); void QStackedWidget_virtualbase_ChangeEvent(void* self, QEvent* param1); -void QStackedWidget_Delete(QStackedWidget* self, bool isSubclass); +void QStackedWidget_Delete(QStackedWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstandarditemmodel.cpp b/qt/gen_qstandarditemmodel.cpp index 72fd5180..e5232ed5 100644 --- a/qt/gen_qstandarditemmodel.cpp +++ b/qt/gen_qstandarditemmodel.cpp @@ -70,7 +70,7 @@ void miqt_exec_callback_QStandardItemModel_Revert(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQStandardItem : public virtual QStandardItem { +class MiqtVirtualQStandardItem final : public QStandardItem { public: MiqtVirtualQStandardItem(): QStandardItem() {}; @@ -79,7 +79,7 @@ public: MiqtVirtualQStandardItem(int rows): QStandardItem(rows) {}; MiqtVirtualQStandardItem(int rows, int columns): QStandardItem(rows, columns) {}; - virtual ~MiqtVirtualQStandardItem() = default; + virtual ~MiqtVirtualQStandardItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Data = 0; @@ -789,15 +789,11 @@ bool QStandardItem_virtualbase_OperatorLesser(const void* self, QStandardItem* o return ( (const MiqtVirtualQStandardItem*)(self) )->virtualbase_OperatorLesser(other); } -void QStandardItem_Delete(QStandardItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStandardItem_Delete(QStandardItem* self) { + delete self; } -class MiqtVirtualQStandardItemModel : public virtual QStandardItemModel { +class MiqtVirtualQStandardItemModel final : public QStandardItemModel { public: MiqtVirtualQStandardItemModel(): QStandardItemModel() {}; @@ -805,7 +801,7 @@ public: MiqtVirtualQStandardItemModel(QObject* parent): QStandardItemModel(parent) {}; MiqtVirtualQStandardItemModel(int rows, int columns, QObject* parent): QStandardItemModel(rows, columns, parent) {}; - virtual ~MiqtVirtualQStandardItemModel() = default; + virtual ~MiqtVirtualQStandardItemModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Index = 0; @@ -2584,11 +2580,7 @@ void QStandardItemModel_virtualbase_Revert(void* self) { ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_Revert(); } -void QStandardItemModel_Delete(QStandardItemModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStandardItemModel_Delete(QStandardItemModel* self) { + delete self; } diff --git a/qt/gen_qstandarditemmodel.go b/qt/gen_qstandarditemmodel.go index 8af05ec9..f2497caa 100644 --- a/qt/gen_qstandarditemmodel.go +++ b/qt/gen_qstandarditemmodel.go @@ -748,7 +748,7 @@ func miqt_exec_callback_QStandardItem_OperatorLesser(self *C.QStandardItem, cb C // Delete this object from C++ memory. func (this *QStandardItem) Delete() { - C.QStandardItem_Delete(this.h, C.bool(this.isSubclass)) + C.QStandardItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2494,7 +2494,7 @@ func miqt_exec_callback_QStandardItemModel_Revert(self *C.QStandardItemModel, cb // Delete this object from C++ memory. func (this *QStandardItemModel) Delete() { - C.QStandardItemModel_Delete(this.h, C.bool(this.isSubclass)) + C.QStandardItemModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstandarditemmodel.h b/qt/gen_qstandarditemmodel.h index f79ae623..b2aa5da1 100644 --- a/qt/gen_qstandarditemmodel.h +++ b/qt/gen_qstandarditemmodel.h @@ -151,7 +151,7 @@ void QStandardItem_override_virtual_Write(void* self, intptr_t slot); void QStandardItem_virtualbase_Write(const void* self, QDataStream* out); void QStandardItem_override_virtual_OperatorLesser(void* self, intptr_t slot); bool QStandardItem_virtualbase_OperatorLesser(const void* self, QStandardItem* other); -void QStandardItem_Delete(QStandardItem* self, bool isSubclass); +void QStandardItem_Delete(QStandardItem* self); QStandardItemModel* QStandardItemModel_new(); QStandardItemModel* QStandardItemModel_new2(int rows, int columns); @@ -299,7 +299,7 @@ void QStandardItemModel_override_virtual_Submit(void* self, intptr_t slot); bool QStandardItemModel_virtualbase_Submit(void* self); void QStandardItemModel_override_virtual_Revert(void* self, intptr_t slot); void QStandardItemModel_virtualbase_Revert(void* self); -void QStandardItemModel_Delete(QStandardItemModel* self, bool isSubclass); +void QStandardItemModel_Delete(QStandardItemModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstate.cpp b/qt/gen_qstate.cpp index 048fdc69..0fb4e295 100644 --- a/qt/gen_qstate.cpp +++ b/qt/gen_qstate.cpp @@ -24,7 +24,7 @@ bool miqt_exec_callback_QState_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQState : public virtual QState { +class MiqtVirtualQState final : public QState { public: MiqtVirtualQState(): QState() {}; @@ -32,7 +32,7 @@ public: MiqtVirtualQState(QState* parent): QState(parent) {}; MiqtVirtualQState(QState::ChildMode childMode, QState* parent): QState(childMode, parent) {}; - virtual ~MiqtVirtualQState() = default; + virtual ~MiqtVirtualQState() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__OnEntry = 0; @@ -283,11 +283,7 @@ bool QState_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQState*)(self) )->virtualbase_Event(e); } -void QState_Delete(QState* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QState_Delete(QState* self) { + delete self; } diff --git a/qt/gen_qstate.go b/qt/gen_qstate.go index 9e9e5607..c735aa6f 100644 --- a/qt/gen_qstate.go +++ b/qt/gen_qstate.go @@ -309,7 +309,7 @@ func miqt_exec_callback_QState_Event(self *C.QState, cb C.intptr_t, e *C.QEvent) // Delete this object from C++ memory. func (this *QState) Delete() { - C.QState_Delete(this.h, C.bool(this.isSubclass)) + C.QState_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstate.h b/qt/gen_qstate.h index 16afb01f..2c4abb49 100644 --- a/qt/gen_qstate.h +++ b/qt/gen_qstate.h @@ -68,7 +68,7 @@ void QState_override_virtual_OnExit(void* self, intptr_t slot); void QState_virtualbase_OnExit(void* self, QEvent* event); void QState_override_virtual_Event(void* self, intptr_t slot); bool QState_virtualbase_Event(void* self, QEvent* e); -void QState_Delete(QState* self, bool isSubclass); +void QState_Delete(QState* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstatemachine.cpp b/qt/gen_qstatemachine.cpp index 1f0ab978..4c68af01 100644 --- a/qt/gen_qstatemachine.cpp +++ b/qt/gen_qstatemachine.cpp @@ -32,7 +32,7 @@ bool miqt_exec_callback_QStateMachine_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQStateMachine : public virtual QStateMachine { +class MiqtVirtualQStateMachine final : public QStateMachine { public: MiqtVirtualQStateMachine(): QStateMachine() {}; @@ -40,7 +40,7 @@ public: MiqtVirtualQStateMachine(QObject* parent): QStateMachine(parent) {}; MiqtVirtualQStateMachine(QState::ChildMode childMode, QObject* parent): QStateMachine(childMode, parent) {}; - virtual ~MiqtVirtualQStateMachine() = default; + virtual ~MiqtVirtualQStateMachine() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__EventFilter = 0; @@ -521,12 +521,8 @@ bool QStateMachine_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQStateMachine*)(self) )->virtualbase_Event(e); } -void QStateMachine_Delete(QStateMachine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStateMachine_Delete(QStateMachine* self) { + delete self; } QStateMachine__SignalEvent* QStateMachine__SignalEvent_new(QStateMachine__SignalEvent* param1) { @@ -545,12 +541,8 @@ int QStateMachine__SignalEvent_SignalIndex(const QStateMachine__SignalEvent* sel return self->signalIndex(); } -void QStateMachine__SignalEvent_Delete(QStateMachine__SignalEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStateMachine__SignalEvent_Delete(QStateMachine__SignalEvent* self) { + delete self; } QStateMachine__WrappedEvent* QStateMachine__WrappedEvent_new(QObject* object, QEvent* event) { @@ -573,11 +565,7 @@ QEvent* QStateMachine__WrappedEvent_Event(const QStateMachine__WrappedEvent* sel return self->event(); } -void QStateMachine__WrappedEvent_Delete(QStateMachine__WrappedEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStateMachine__WrappedEvent_Delete(QStateMachine__WrappedEvent* self) { + delete self; } diff --git a/qt/gen_qstatemachine.go b/qt/gen_qstatemachine.go index 3df7c131..3f39be63 100644 --- a/qt/gen_qstatemachine.go +++ b/qt/gen_qstatemachine.go @@ -513,7 +513,7 @@ func miqt_exec_callback_QStateMachine_Event(self *C.QStateMachine, cb C.intptr_t // Delete this object from C++ memory. func (this *QStateMachine) Delete() { - C.QStateMachine_Delete(this.h, C.bool(this.isSubclass)) + C.QStateMachine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -580,7 +580,7 @@ func (this *QStateMachine__SignalEvent) SignalIndex() int { // Delete this object from C++ memory. func (this *QStateMachine__SignalEvent) Delete() { - C.QStateMachine__SignalEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QStateMachine__SignalEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -655,7 +655,7 @@ func (this *QStateMachine__WrappedEvent) Event() *QEvent { // Delete this object from C++ memory. func (this *QStateMachine__WrappedEvent) Delete() { - C.QStateMachine__WrappedEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QStateMachine__WrappedEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstatemachine.h b/qt/gen_qstatemachine.h index aad5946c..cfa332bb 100644 --- a/qt/gen_qstatemachine.h +++ b/qt/gen_qstatemachine.h @@ -104,20 +104,20 @@ void QStateMachine_override_virtual_EndMicrostep(void* self, intptr_t slot); void QStateMachine_virtualbase_EndMicrostep(void* self, QEvent* event); void QStateMachine_override_virtual_Event(void* self, intptr_t slot); bool QStateMachine_virtualbase_Event(void* self, QEvent* e); -void QStateMachine_Delete(QStateMachine* self, bool isSubclass); +void QStateMachine_Delete(QStateMachine* self); QStateMachine__SignalEvent* QStateMachine__SignalEvent_new(QStateMachine__SignalEvent* param1); void QStateMachine__SignalEvent_virtbase(QStateMachine__SignalEvent* src, QEvent** outptr_QEvent); QObject* QStateMachine__SignalEvent_Sender(const QStateMachine__SignalEvent* self); int QStateMachine__SignalEvent_SignalIndex(const QStateMachine__SignalEvent* self); -void QStateMachine__SignalEvent_Delete(QStateMachine__SignalEvent* self, bool isSubclass); +void QStateMachine__SignalEvent_Delete(QStateMachine__SignalEvent* self); QStateMachine__WrappedEvent* QStateMachine__WrappedEvent_new(QObject* object, QEvent* event); QStateMachine__WrappedEvent* QStateMachine__WrappedEvent_new2(QStateMachine__WrappedEvent* param1); void QStateMachine__WrappedEvent_virtbase(QStateMachine__WrappedEvent* src, QEvent** outptr_QEvent); QObject* QStateMachine__WrappedEvent_Object(const QStateMachine__WrappedEvent* self); QEvent* QStateMachine__WrappedEvent_Event(const QStateMachine__WrappedEvent* self); -void QStateMachine__WrappedEvent_Delete(QStateMachine__WrappedEvent* self, bool isSubclass); +void QStateMachine__WrappedEvent_Delete(QStateMachine__WrappedEvent* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstatictext.cpp b/qt/gen_qstatictext.cpp index a4d678b9..1e12fef6 100644 --- a/qt/gen_qstatictext.cpp +++ b/qt/gen_qstatictext.cpp @@ -113,11 +113,7 @@ void QStaticText_Prepare2(QStaticText* self, QTransform* matrix, QFont* font) { self->prepare(*matrix, *font); } -void QStaticText_Delete(QStaticText* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStaticText_Delete(QStaticText* self) { + delete self; } diff --git a/qt/gen_qstatictext.go b/qt/gen_qstatictext.go index 9f2fc67d..03c43a67 100644 --- a/qt/gen_qstatictext.go +++ b/qt/gen_qstatictext.go @@ -166,7 +166,7 @@ func (this *QStaticText) Prepare2(matrix *QTransform, font *QFont) { // Delete this object from C++ memory. func (this *QStaticText) Delete() { - C.QStaticText_Delete(this.h, C.bool(this.isSubclass)) + C.QStaticText_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstatictext.h b/qt/gen_qstatictext.h index eca9f66b..17fb7af7 100644 --- a/qt/gen_qstatictext.h +++ b/qt/gen_qstatictext.h @@ -49,7 +49,7 @@ bool QStaticText_OperatorEqual(const QStaticText* self, QStaticText* param1); bool QStaticText_OperatorNotEqual(const QStaticText* self, QStaticText* param1); void QStaticText_Prepare1(QStaticText* self, QTransform* matrix); void QStaticText_Prepare2(QStaticText* self, QTransform* matrix, QFont* font); -void QStaticText_Delete(QStaticText* self, bool isSubclass); +void QStaticText_Delete(QStaticText* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstatusbar.cpp b/qt/gen_qstatusbar.cpp index d09b2f61..65cb9d07 100644 --- a/qt/gen_qstatusbar.cpp +++ b/qt/gen_qstatusbar.cpp @@ -84,13 +84,13 @@ bool miqt_exec_callback_QStatusBar_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQStatusBar : public virtual QStatusBar { +class MiqtVirtualQStatusBar final : public QStatusBar { public: MiqtVirtualQStatusBar(QWidget* parent): QStatusBar(parent) {}; MiqtVirtualQStatusBar(): QStatusBar() {}; - virtual ~MiqtVirtualQStatusBar() = default; + virtual ~MiqtVirtualQStatusBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ShowEvent = 0; @@ -1571,11 +1571,7 @@ bool QStatusBar_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQStatusBar*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QStatusBar_Delete(QStatusBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStatusBar_Delete(QStatusBar* self) { + delete self; } diff --git a/qt/gen_qstatusbar.go b/qt/gen_qstatusbar.go index 6d80d34a..d9e6d7ee 100644 --- a/qt/gen_qstatusbar.go +++ b/qt/gen_qstatusbar.go @@ -1328,7 +1328,7 @@ func miqt_exec_callback_QStatusBar_FocusNextPrevChild(self *C.QStatusBar, cb C.i // Delete this object from C++ memory. func (this *QStatusBar) Delete() { - C.QStatusBar_Delete(this.h, C.bool(this.isSubclass)) + C.QStatusBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstatusbar.h b/qt/gen_qstatusbar.h index 1a4de11f..c4752911 100644 --- a/qt/gen_qstatusbar.h +++ b/qt/gen_qstatusbar.h @@ -190,7 +190,7 @@ void QStatusBar_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QStatusBar_virtualbase_InputMethodQuery(const void* self, int param1); void QStatusBar_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QStatusBar_virtualbase_FocusNextPrevChild(void* self, bool next); -void QStatusBar_Delete(QStatusBar* self, bool isSubclass); +void QStatusBar_Delete(QStatusBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstorageinfo.cpp b/qt/gen_qstorageinfo.cpp index b124a3ea..6a34bb8d 100644 --- a/qt/gen_qstorageinfo.cpp +++ b/qt/gen_qstorageinfo.cpp @@ -162,11 +162,7 @@ QStorageInfo* QStorageInfo_Root() { return new QStorageInfo(QStorageInfo::root()); } -void QStorageInfo_Delete(QStorageInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStorageInfo_Delete(QStorageInfo* self) { + delete self; } diff --git a/qt/gen_qstorageinfo.go b/qt/gen_qstorageinfo.go index fee2f3f3..e691382c 100644 --- a/qt/gen_qstorageinfo.go +++ b/qt/gen_qstorageinfo.go @@ -196,7 +196,7 @@ func QStorageInfo_Root() *QStorageInfo { // Delete this object from C++ memory. func (this *QStorageInfo) Delete() { - C.QStorageInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QStorageInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstorageinfo.h b/qt/gen_qstorageinfo.h index e6297d69..9b3c780a 100644 --- a/qt/gen_qstorageinfo.h +++ b/qt/gen_qstorageinfo.h @@ -46,7 +46,7 @@ bool QStorageInfo_IsValid(const QStorageInfo* self); void QStorageInfo_Refresh(QStorageInfo* self); struct miqt_array /* of QStorageInfo* */ QStorageInfo_MountedVolumes(); QStorageInfo* QStorageInfo_Root(); -void QStorageInfo_Delete(QStorageInfo* self, bool isSubclass); +void QStorageInfo_Delete(QStorageInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstringbuilder.cpp b/qt/gen_qstringbuilder.cpp index 12612395..7f0e85e7 100644 --- a/qt/gen_qstringbuilder.cpp +++ b/qt/gen_qstringbuilder.cpp @@ -9,11 +9,7 @@ extern "C" { } /* extern C */ #endif -void QAbstractConcatenable_Delete(QAbstractConcatenable* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractConcatenable_Delete(QAbstractConcatenable* self) { + delete self; } diff --git a/qt/gen_qstringbuilder.go b/qt/gen_qstringbuilder.go index 188aca16..d8f8005a 100644 --- a/qt/gen_qstringbuilder.go +++ b/qt/gen_qstringbuilder.go @@ -48,7 +48,7 @@ func UnsafeNewQAbstractConcatenable(h unsafe.Pointer) *QAbstractConcatenable { // Delete this object from C++ memory. func (this *QAbstractConcatenable) Delete() { - C.QAbstractConcatenable_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractConcatenable_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstringbuilder.h b/qt/gen_qstringbuilder.h index 78e095d2..b4e4643d 100644 --- a/qt/gen_qstringbuilder.h +++ b/qt/gen_qstringbuilder.h @@ -20,7 +20,7 @@ class QAbstractConcatenable; typedef struct QAbstractConcatenable QAbstractConcatenable; #endif -void QAbstractConcatenable_Delete(QAbstractConcatenable* self, bool isSubclass); +void QAbstractConcatenable_Delete(QAbstractConcatenable* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstringlistmodel.cpp b/qt/gen_qstringlistmodel.cpp index ac4ea33d..46c82615 100644 --- a/qt/gen_qstringlistmodel.cpp +++ b/qt/gen_qstringlistmodel.cpp @@ -36,7 +36,7 @@ bool miqt_exec_callback_QStringListModel_DropMimeData(void*, intptr_t, QMimeData } /* extern C */ #endif -class MiqtVirtualQStringListModel : public virtual QStringListModel { +class MiqtVirtualQStringListModel final : public QStringListModel { public: MiqtVirtualQStringListModel(): QStringListModel() {}; @@ -44,7 +44,7 @@ public: MiqtVirtualQStringListModel(QObject* parent): QStringListModel(parent) {}; MiqtVirtualQStringListModel(const QStringList& strings, QObject* parent): QStringListModel(strings, parent) {}; - virtual ~MiqtVirtualQStringListModel() = default; + virtual ~MiqtVirtualQStringListModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__RowCount = 0; @@ -784,11 +784,7 @@ bool QStringListModel_virtualbase_DropMimeData(void* self, QMimeData* data, int return ( (MiqtVirtualQStringListModel*)(self) )->virtualbase_DropMimeData(data, action, row, column, parent); } -void QStringListModel_Delete(QStringListModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStringListModel_Delete(QStringListModel* self) { + delete self; } diff --git a/qt/gen_qstringlistmodel.go b/qt/gen_qstringlistmodel.go index e17e41d7..fd0bbccc 100644 --- a/qt/gen_qstringlistmodel.go +++ b/qt/gen_qstringlistmodel.go @@ -775,7 +775,7 @@ func miqt_exec_callback_QStringListModel_DropMimeData(self *C.QStringListModel, // Delete this object from C++ memory. func (this *QStringListModel) Delete() { - C.QStringListModel_Delete(this.h, C.bool(this.isSubclass)) + C.QStringListModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstringlistmodel.h b/qt/gen_qstringlistmodel.h index 5d38d4dd..f96f811a 100644 --- a/qt/gen_qstringlistmodel.h +++ b/qt/gen_qstringlistmodel.h @@ -89,7 +89,7 @@ void QStringListModel_override_virtual_Index(void* self, intptr_t slot); QModelIndex* QStringListModel_virtualbase_Index(const void* self, int row, int column, QModelIndex* parent); void QStringListModel_override_virtual_DropMimeData(void* self, intptr_t slot); bool QStringListModel_virtualbase_DropMimeData(void* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); -void QStringListModel_Delete(QStringListModel* self, bool isSubclass); +void QStringListModel_Delete(QStringListModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstringliteral.cpp b/qt/gen_qstringliteral.cpp index 2ffef722..024e3903 100644 --- a/qt/gen_qstringliteral.cpp +++ b/qt/gen_qstringliteral.cpp @@ -10,11 +10,7 @@ extern "C" { } /* extern C */ #endif -void QStringDataPtr_Delete(QStringDataPtr* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStringDataPtr_Delete(QStringDataPtr* self) { + delete self; } diff --git a/qt/gen_qstringliteral.go b/qt/gen_qstringliteral.go index 882d9ef2..0e613aa0 100644 --- a/qt/gen_qstringliteral.go +++ b/qt/gen_qstringliteral.go @@ -48,7 +48,7 @@ func UnsafeNewQStringDataPtr(h unsafe.Pointer) *QStringDataPtr { // Delete this object from C++ memory. func (this *QStringDataPtr) Delete() { - C.QStringDataPtr_Delete(this.h, C.bool(this.isSubclass)) + C.QStringDataPtr_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstringliteral.h b/qt/gen_qstringliteral.h index c952ce7f..929b889a 100644 --- a/qt/gen_qstringliteral.h +++ b/qt/gen_qstringliteral.h @@ -20,7 +20,7 @@ class QStringDataPtr; typedef struct QStringDataPtr QStringDataPtr; #endif -void QStringDataPtr_Delete(QStringDataPtr* self, bool isSubclass); +void QStringDataPtr_Delete(QStringDataPtr* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstringmatcher.cpp b/qt/gen_qstringmatcher.cpp index a0aaafab..b890d677 100644 --- a/qt/gen_qstringmatcher.cpp +++ b/qt/gen_qstringmatcher.cpp @@ -87,11 +87,7 @@ int QStringMatcher_IndexIn3(const QStringMatcher* self, QChar* str, int length, return self->indexIn(str, static_cast(length), static_cast(from)); } -void QStringMatcher_Delete(QStringMatcher* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStringMatcher_Delete(QStringMatcher* self) { + delete self; } diff --git a/qt/gen_qstringmatcher.go b/qt/gen_qstringmatcher.go index 604fb786..fba1d04e 100644 --- a/qt/gen_qstringmatcher.go +++ b/qt/gen_qstringmatcher.go @@ -155,7 +155,7 @@ func (this *QStringMatcher) IndexIn3(str *QChar, length int, from int) int { // Delete this object from C++ memory. func (this *QStringMatcher) Delete() { - C.QStringMatcher_Delete(this.h, C.bool(this.isSubclass)) + C.QStringMatcher_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstringmatcher.h b/qt/gen_qstringmatcher.h index 85a74d67..8536c01d 100644 --- a/qt/gen_qstringmatcher.h +++ b/qt/gen_qstringmatcher.h @@ -37,7 +37,7 @@ struct miqt_string QStringMatcher_Pattern(const QStringMatcher* self); int QStringMatcher_CaseSensitivity(const QStringMatcher* self); int QStringMatcher_IndexIn22(const QStringMatcher* self, struct miqt_string str, int from); int QStringMatcher_IndexIn3(const QStringMatcher* self, QChar* str, int length, int from); -void QStringMatcher_Delete(QStringMatcher* self, bool isSubclass); +void QStringMatcher_Delete(QStringMatcher* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstringview.cpp b/qt/gen_qstringview.cpp index f99f2247..f74acd83 100644 --- a/qt/gen_qstringview.cpp +++ b/qt/gen_qstringview.cpp @@ -356,11 +356,7 @@ double QStringView_ToDouble1(const QStringView* self, bool* ok) { return self->toDouble(ok); } -void QStringView_Delete(QStringView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStringView_Delete(QStringView* self) { + delete self; } diff --git a/qt/gen_qstringview.go b/qt/gen_qstringview.go index c3ff8323..714e896b 100644 --- a/qt/gen_qstringview.go +++ b/qt/gen_qstringview.go @@ -362,7 +362,7 @@ func (this *QStringView) ToDouble1(ok *bool) float64 { // Delete this object from C++ memory. func (this *QStringView) Delete() { - C.QStringView_Delete(this.h, C.bool(this.isSubclass)) + C.QStringView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstringview.h b/qt/gen_qstringview.h index 892df68e..2b0e520e 100644 --- a/qt/gen_qstringview.h +++ b/qt/gen_qstringview.h @@ -92,7 +92,7 @@ unsigned long long QStringView_ToULongLong1(const QStringView* self, bool* ok); unsigned long long QStringView_ToULongLong2(const QStringView* self, bool* ok, int base); float QStringView_ToFloat1(const QStringView* self, bool* ok); double QStringView_ToDouble1(const QStringView* self, bool* ok); -void QStringView_Delete(QStringView* self, bool isSubclass); +void QStringView_Delete(QStringView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstyle.cpp b/qt/gen_qstyle.cpp index cf064ec7..51b50ed9 100644 --- a/qt/gen_qstyle.cpp +++ b/qt/gen_qstyle.cpp @@ -62,12 +62,12 @@ void miqt_exec_callback_QStyle_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQStyle : public virtual QStyle { +class MiqtVirtualQStyle final : public QStyle { public: MiqtVirtualQStyle(): QStyle() {}; - virtual ~MiqtVirtualQStyle() = default; + virtual ~MiqtVirtualQStyle() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Polish = 0; @@ -1207,11 +1207,7 @@ void QStyle_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQStyle*)(self) )->virtualbase_DisconnectNotify(signal); } -void QStyle_Delete(QStyle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyle_Delete(QStyle* self) { + delete self; } diff --git a/qt/gen_qstyle.go b/qt/gen_qstyle.go index 65f3d507..70820b0a 100644 --- a/qt/gen_qstyle.go +++ b/qt/gen_qstyle.go @@ -1769,7 +1769,7 @@ func miqt_exec_callback_QStyle_DisconnectNotify(self *C.QStyle, cb C.intptr_t, s // Delete this object from C++ memory. func (this *QStyle) Delete() { - C.QStyle_Delete(this.h, C.bool(this.isSubclass)) + C.QStyle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstyle.h b/qt/gen_qstyle.h index 7d31cfd7..721b4bba 100644 --- a/qt/gen_qstyle.h +++ b/qt/gen_qstyle.h @@ -163,7 +163,7 @@ void QStyle_override_virtual_ConnectNotify(void* self, intptr_t slot); void QStyle_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QStyle_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QStyle_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QStyle_Delete(QStyle* self, bool isSubclass); +void QStyle_Delete(QStyle* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstyleditemdelegate.cpp b/qt/gen_qstyleditemdelegate.cpp index a5c12826..48dc0bc4 100644 --- a/qt/gen_qstyleditemdelegate.cpp +++ b/qt/gen_qstyleditemdelegate.cpp @@ -42,13 +42,13 @@ struct miqt_array /* of int */ miqt_exec_callback_QStyledItemDelegate_PaintingR } /* extern C */ #endif -class MiqtVirtualQStyledItemDelegate : public virtual QStyledItemDelegate { +class MiqtVirtualQStyledItemDelegate final : public QStyledItemDelegate { public: MiqtVirtualQStyledItemDelegate(): QStyledItemDelegate() {}; MiqtVirtualQStyledItemDelegate(QObject* parent): QStyledItemDelegate(parent) {}; - virtual ~MiqtVirtualQStyledItemDelegate() = default; + virtual ~MiqtVirtualQStyledItemDelegate() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; @@ -668,11 +668,7 @@ struct miqt_array /* of int */ QStyledItemDelegate_virtualbase_PaintingRoles(co return ( (const MiqtVirtualQStyledItemDelegate*)(self) )->virtualbase_PaintingRoles(); } -void QStyledItemDelegate_Delete(QStyledItemDelegate* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyledItemDelegate_Delete(QStyledItemDelegate* self) { + delete self; } diff --git a/qt/gen_qstyleditemdelegate.go b/qt/gen_qstyleditemdelegate.go index f0e19b62..58bf9efd 100644 --- a/qt/gen_qstyleditemdelegate.go +++ b/qt/gen_qstyleditemdelegate.go @@ -591,7 +591,7 @@ func miqt_exec_callback_QStyledItemDelegate_PaintingRoles(self *C.QStyledItemDel // Delete this object from C++ memory. func (this *QStyledItemDelegate) Delete() { - C.QStyledItemDelegate_Delete(this.h, C.bool(this.isSubclass)) + C.QStyledItemDelegate_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstyleditemdelegate.h b/qt/gen_qstyleditemdelegate.h index bedb822e..879ac219 100644 --- a/qt/gen_qstyleditemdelegate.h +++ b/qt/gen_qstyleditemdelegate.h @@ -99,7 +99,7 @@ void QStyledItemDelegate_override_virtual_HelpEvent(void* self, intptr_t slot); bool QStyledItemDelegate_virtualbase_HelpEvent(void* self, QHelpEvent* event, QAbstractItemView* view, QStyleOptionViewItem* option, QModelIndex* index); void QStyledItemDelegate_override_virtual_PaintingRoles(void* self, intptr_t slot); struct miqt_array /* of int */ QStyledItemDelegate_virtualbase_PaintingRoles(const void* self); -void QStyledItemDelegate_Delete(QStyledItemDelegate* self, bool isSubclass); +void QStyledItemDelegate_Delete(QStyledItemDelegate* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstylefactory.cpp b/qt/gen_qstylefactory.cpp index 38d7168f..3d5c3e38 100644 --- a/qt/gen_qstylefactory.cpp +++ b/qt/gen_qstylefactory.cpp @@ -40,11 +40,7 @@ QStyle* QStyleFactory_Create(struct miqt_string param1) { return QStyleFactory::create(param1_QString); } -void QStyleFactory_Delete(QStyleFactory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleFactory_Delete(QStyleFactory* self) { + delete self; } diff --git a/qt/gen_qstylefactory.go b/qt/gen_qstylefactory.go index 028fbb26..f8b8e14f 100644 --- a/qt/gen_qstylefactory.go +++ b/qt/gen_qstylefactory.go @@ -69,7 +69,7 @@ func QStyleFactory_Create(param1 string) *QStyle { // Delete this object from C++ memory. func (this *QStyleFactory) Delete() { - C.QStyleFactory_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleFactory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstylefactory.h b/qt/gen_qstylefactory.h index 208731a7..7feebabd 100644 --- a/qt/gen_qstylefactory.h +++ b/qt/gen_qstylefactory.h @@ -24,7 +24,7 @@ typedef struct QStyleFactory QStyleFactory; struct miqt_array /* of struct miqt_string */ QStyleFactory_Keys(); QStyle* QStyleFactory_Create(struct miqt_string param1); -void QStyleFactory_Delete(QStyleFactory* self, bool isSubclass); +void QStyleFactory_Delete(QStyleFactory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstylehints.cpp b/qt/gen_qstylehints.cpp index 519862af..6e85823a 100644 --- a/qt/gen_qstylehints.cpp +++ b/qt/gen_qstylehints.cpp @@ -365,11 +365,7 @@ struct miqt_string QStyleHints_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QStyleHints_Delete(QStyleHints* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleHints_Delete(QStyleHints* self) { + delete self; } diff --git a/qt/gen_qstylehints.go b/qt/gen_qstylehints.go index b7b4d924..5e540c8d 100644 --- a/qt/gen_qstylehints.go +++ b/qt/gen_qstylehints.go @@ -483,7 +483,7 @@ func QStyleHints_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QStyleHints) Delete() { - C.QStyleHints_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleHints_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstylehints.h b/qt/gen_qstylehints.h index 6076498d..c71a1e5c 100644 --- a/qt/gen_qstylehints.h +++ b/qt/gen_qstylehints.h @@ -91,7 +91,7 @@ struct miqt_string QStyleHints_Tr2(const char* s, const char* c); struct miqt_string QStyleHints_Tr3(const char* s, const char* c, int n); struct miqt_string QStyleHints_TrUtf82(const char* s, const char* c); struct miqt_string QStyleHints_TrUtf83(const char* s, const char* c, int n); -void QStyleHints_Delete(QStyleHints* self, bool isSubclass); +void QStyleHints_Delete(QStyleHints* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstyleoption.cpp b/qt/gen_qstyleoption.cpp index 9bf49cb2..ab1830df 100644 --- a/qt/gen_qstyleoption.cpp +++ b/qt/gen_qstyleoption.cpp @@ -67,12 +67,8 @@ void QStyleOption_OperatorAssign(QStyleOption* self, QStyleOption* other) { self->operator=(*other); } -void QStyleOption_Delete(QStyleOption* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOption_Delete(QStyleOption* self) { + delete self; } QStyleOptionFocusRect* QStyleOptionFocusRect_new() { @@ -87,12 +83,8 @@ void QStyleOptionFocusRect_virtbase(QStyleOptionFocusRect* src, QStyleOption** o *outptr_QStyleOption = static_cast(src); } -void QStyleOptionFocusRect_Delete(QStyleOptionFocusRect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionFocusRect_Delete(QStyleOptionFocusRect* self) { + delete self; } QStyleOptionFrame* QStyleOptionFrame_new() { @@ -107,12 +99,8 @@ void QStyleOptionFrame_virtbase(QStyleOptionFrame* src, QStyleOption** outptr_QS *outptr_QStyleOption = static_cast(src); } -void QStyleOptionFrame_Delete(QStyleOptionFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionFrame_Delete(QStyleOptionFrame* self) { + delete self; } QStyleOptionTabWidgetFrame* QStyleOptionTabWidgetFrame_new() { @@ -127,12 +115,8 @@ void QStyleOptionTabWidgetFrame_virtbase(QStyleOptionTabWidgetFrame* src, QStyle *outptr_QStyleOption = static_cast(src); } -void QStyleOptionTabWidgetFrame_Delete(QStyleOptionTabWidgetFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionTabWidgetFrame_Delete(QStyleOptionTabWidgetFrame* self) { + delete self; } QStyleOptionTabBarBase* QStyleOptionTabBarBase_new() { @@ -147,12 +131,8 @@ void QStyleOptionTabBarBase_virtbase(QStyleOptionTabBarBase* src, QStyleOption** *outptr_QStyleOption = static_cast(src); } -void QStyleOptionTabBarBase_Delete(QStyleOptionTabBarBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionTabBarBase_Delete(QStyleOptionTabBarBase* self) { + delete self; } QStyleOptionHeader* QStyleOptionHeader_new() { @@ -167,12 +147,8 @@ void QStyleOptionHeader_virtbase(QStyleOptionHeader* src, QStyleOption** outptr_ *outptr_QStyleOption = static_cast(src); } -void QStyleOptionHeader_Delete(QStyleOptionHeader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionHeader_Delete(QStyleOptionHeader* self) { + delete self; } QStyleOptionButton* QStyleOptionButton_new() { @@ -187,12 +163,8 @@ void QStyleOptionButton_virtbase(QStyleOptionButton* src, QStyleOption** outptr_ *outptr_QStyleOption = static_cast(src); } -void QStyleOptionButton_Delete(QStyleOptionButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionButton_Delete(QStyleOptionButton* self) { + delete self; } QStyleOptionTab* QStyleOptionTab_new() { @@ -207,12 +179,8 @@ void QStyleOptionTab_virtbase(QStyleOptionTab* src, QStyleOption** outptr_QStyle *outptr_QStyleOption = static_cast(src); } -void QStyleOptionTab_Delete(QStyleOptionTab* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionTab_Delete(QStyleOptionTab* self) { + delete self; } QStyleOptionTabV4* QStyleOptionTabV4_new() { @@ -231,12 +199,8 @@ void QStyleOptionTabV4_OperatorAssign(QStyleOptionTabV4* self, QStyleOptionTabV4 self->operator=(*param1); } -void QStyleOptionTabV4_Delete(QStyleOptionTabV4* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionTabV4_Delete(QStyleOptionTabV4* self) { + delete self; } QStyleOptionToolBar* QStyleOptionToolBar_new() { @@ -251,12 +215,8 @@ void QStyleOptionToolBar_virtbase(QStyleOptionToolBar* src, QStyleOption** outpt *outptr_QStyleOption = static_cast(src); } -void QStyleOptionToolBar_Delete(QStyleOptionToolBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionToolBar_Delete(QStyleOptionToolBar* self) { + delete self; } QStyleOptionProgressBar* QStyleOptionProgressBar_new() { @@ -271,12 +231,8 @@ void QStyleOptionProgressBar_virtbase(QStyleOptionProgressBar* src, QStyleOption *outptr_QStyleOption = static_cast(src); } -void QStyleOptionProgressBar_Delete(QStyleOptionProgressBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionProgressBar_Delete(QStyleOptionProgressBar* self) { + delete self; } QStyleOptionMenuItem* QStyleOptionMenuItem_new() { @@ -291,12 +247,8 @@ void QStyleOptionMenuItem_virtbase(QStyleOptionMenuItem* src, QStyleOption** out *outptr_QStyleOption = static_cast(src); } -void QStyleOptionMenuItem_Delete(QStyleOptionMenuItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionMenuItem_Delete(QStyleOptionMenuItem* self) { + delete self; } QStyleOptionDockWidget* QStyleOptionDockWidget_new() { @@ -311,12 +263,8 @@ void QStyleOptionDockWidget_virtbase(QStyleOptionDockWidget* src, QStyleOption** *outptr_QStyleOption = static_cast(src); } -void QStyleOptionDockWidget_Delete(QStyleOptionDockWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionDockWidget_Delete(QStyleOptionDockWidget* self) { + delete self; } QStyleOptionViewItem* QStyleOptionViewItem_new() { @@ -331,12 +279,8 @@ void QStyleOptionViewItem_virtbase(QStyleOptionViewItem* src, QStyleOption** out *outptr_QStyleOption = static_cast(src); } -void QStyleOptionViewItem_Delete(QStyleOptionViewItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionViewItem_Delete(QStyleOptionViewItem* self) { + delete self; } QStyleOptionToolBox* QStyleOptionToolBox_new() { @@ -351,12 +295,8 @@ void QStyleOptionToolBox_virtbase(QStyleOptionToolBox* src, QStyleOption** outpt *outptr_QStyleOption = static_cast(src); } -void QStyleOptionToolBox_Delete(QStyleOptionToolBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionToolBox_Delete(QStyleOptionToolBox* self) { + delete self; } QStyleOptionRubberBand* QStyleOptionRubberBand_new() { @@ -371,12 +311,8 @@ void QStyleOptionRubberBand_virtbase(QStyleOptionRubberBand* src, QStyleOption** *outptr_QStyleOption = static_cast(src); } -void QStyleOptionRubberBand_Delete(QStyleOptionRubberBand* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionRubberBand_Delete(QStyleOptionRubberBand* self) { + delete self; } QStyleOptionComplex* QStyleOptionComplex_new() { @@ -399,12 +335,8 @@ void QStyleOptionComplex_virtbase(QStyleOptionComplex* src, QStyleOption** outpt *outptr_QStyleOption = static_cast(src); } -void QStyleOptionComplex_Delete(QStyleOptionComplex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionComplex_Delete(QStyleOptionComplex* self) { + delete self; } QStyleOptionSlider* QStyleOptionSlider_new() { @@ -419,12 +351,8 @@ void QStyleOptionSlider_virtbase(QStyleOptionSlider* src, QStyleOptionComplex** *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionSlider_Delete(QStyleOptionSlider* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionSlider_Delete(QStyleOptionSlider* self) { + delete self; } QStyleOptionSpinBox* QStyleOptionSpinBox_new() { @@ -439,12 +367,8 @@ void QStyleOptionSpinBox_virtbase(QStyleOptionSpinBox* src, QStyleOptionComplex* *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionSpinBox_Delete(QStyleOptionSpinBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionSpinBox_Delete(QStyleOptionSpinBox* self) { + delete self; } QStyleOptionToolButton* QStyleOptionToolButton_new() { @@ -459,12 +383,8 @@ void QStyleOptionToolButton_virtbase(QStyleOptionToolButton* src, QStyleOptionCo *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionToolButton_Delete(QStyleOptionToolButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionToolButton_Delete(QStyleOptionToolButton* self) { + delete self; } QStyleOptionComboBox* QStyleOptionComboBox_new() { @@ -479,12 +399,8 @@ void QStyleOptionComboBox_virtbase(QStyleOptionComboBox* src, QStyleOptionComple *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionComboBox_Delete(QStyleOptionComboBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionComboBox_Delete(QStyleOptionComboBox* self) { + delete self; } QStyleOptionTitleBar* QStyleOptionTitleBar_new() { @@ -499,12 +415,8 @@ void QStyleOptionTitleBar_virtbase(QStyleOptionTitleBar* src, QStyleOptionComple *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionTitleBar_Delete(QStyleOptionTitleBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionTitleBar_Delete(QStyleOptionTitleBar* self) { + delete self; } QStyleOptionGroupBox* QStyleOptionGroupBox_new() { @@ -519,12 +431,8 @@ void QStyleOptionGroupBox_virtbase(QStyleOptionGroupBox* src, QStyleOptionComple *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionGroupBox_Delete(QStyleOptionGroupBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionGroupBox_Delete(QStyleOptionGroupBox* self) { + delete self; } QStyleOptionSizeGrip* QStyleOptionSizeGrip_new() { @@ -539,12 +447,8 @@ void QStyleOptionSizeGrip_virtbase(QStyleOptionSizeGrip* src, QStyleOptionComple *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionSizeGrip_Delete(QStyleOptionSizeGrip* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionSizeGrip_Delete(QStyleOptionSizeGrip* self) { + delete self; } QStyleOptionGraphicsItem* QStyleOptionGraphicsItem_new() { @@ -564,12 +468,8 @@ double QStyleOptionGraphicsItem_LevelOfDetailFromTransform(QTransform* worldTran return static_cast(_ret); } -void QStyleOptionGraphicsItem_Delete(QStyleOptionGraphicsItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionGraphicsItem_Delete(QStyleOptionGraphicsItem* self) { + delete self; } QStyleHintReturn* QStyleHintReturn_new() { @@ -592,12 +492,8 @@ void QStyleHintReturn_OperatorAssign(QStyleHintReturn* self, QStyleHintReturn* p self->operator=(*param1); } -void QStyleHintReturn_Delete(QStyleHintReturn* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleHintReturn_Delete(QStyleHintReturn* self) { + delete self; } QStyleHintReturnMask* QStyleHintReturnMask_new() { @@ -616,12 +512,8 @@ void QStyleHintReturnMask_OperatorAssign(QStyleHintReturnMask* self, QStyleHintR self->operator=(*param1); } -void QStyleHintReturnMask_Delete(QStyleHintReturnMask* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleHintReturnMask_Delete(QStyleHintReturnMask* self) { + delete self; } QStyleHintReturnVariant* QStyleHintReturnVariant_new() { @@ -640,11 +532,7 @@ void QStyleHintReturnVariant_OperatorAssign(QStyleHintReturnVariant* self, QStyl self->operator=(*param1); } -void QStyleHintReturnVariant_Delete(QStyleHintReturnVariant* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleHintReturnVariant_Delete(QStyleHintReturnVariant* self) { + delete self; } diff --git a/qt/gen_qstyleoption.go b/qt/gen_qstyleoption.go index 6605eb48..3cb72d8b 100644 --- a/qt/gen_qstyleoption.go +++ b/qt/gen_qstyleoption.go @@ -633,7 +633,7 @@ func (this *QStyleOption) OperatorAssign(other *QStyleOption) { // Delete this object from C++ memory. func (this *QStyleOption) Delete() { - C.QStyleOption_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOption_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -700,7 +700,7 @@ func NewQStyleOptionFocusRect2(other *QStyleOptionFocusRect) *QStyleOptionFocusR // Delete this object from C++ memory. func (this *QStyleOptionFocusRect) Delete() { - C.QStyleOptionFocusRect_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionFocusRect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -767,7 +767,7 @@ func NewQStyleOptionFrame2(other *QStyleOptionFrame) *QStyleOptionFrame { // Delete this object from C++ memory. func (this *QStyleOptionFrame) Delete() { - C.QStyleOptionFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -834,7 +834,7 @@ func NewQStyleOptionTabWidgetFrame2(other *QStyleOptionTabWidgetFrame) *QStyleOp // Delete this object from C++ memory. func (this *QStyleOptionTabWidgetFrame) Delete() { - C.QStyleOptionTabWidgetFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionTabWidgetFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -901,7 +901,7 @@ func NewQStyleOptionTabBarBase2(other *QStyleOptionTabBarBase) *QStyleOptionTabB // Delete this object from C++ memory. func (this *QStyleOptionTabBarBase) Delete() { - C.QStyleOptionTabBarBase_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionTabBarBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -968,7 +968,7 @@ func NewQStyleOptionHeader2(other *QStyleOptionHeader) *QStyleOptionHeader { // Delete this object from C++ memory. func (this *QStyleOptionHeader) Delete() { - C.QStyleOptionHeader_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionHeader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1035,7 +1035,7 @@ func NewQStyleOptionButton2(other *QStyleOptionButton) *QStyleOptionButton { // Delete this object from C++ memory. func (this *QStyleOptionButton) Delete() { - C.QStyleOptionButton_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1102,7 +1102,7 @@ func NewQStyleOptionTab2(other *QStyleOptionTab) *QStyleOptionTab { // Delete this object from C++ memory. func (this *QStyleOptionTab) Delete() { - C.QStyleOptionTab_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionTab_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1173,7 +1173,7 @@ func (this *QStyleOptionTabV4) OperatorAssign(param1 *QStyleOptionTabV4) { // Delete this object from C++ memory. func (this *QStyleOptionTabV4) Delete() { - C.QStyleOptionTabV4_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionTabV4_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1240,7 +1240,7 @@ func NewQStyleOptionToolBar2(other *QStyleOptionToolBar) *QStyleOptionToolBar { // Delete this object from C++ memory. func (this *QStyleOptionToolBar) Delete() { - C.QStyleOptionToolBar_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionToolBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1307,7 +1307,7 @@ func NewQStyleOptionProgressBar2(other *QStyleOptionProgressBar) *QStyleOptionPr // Delete this object from C++ memory. func (this *QStyleOptionProgressBar) Delete() { - C.QStyleOptionProgressBar_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionProgressBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1374,7 +1374,7 @@ func NewQStyleOptionMenuItem2(other *QStyleOptionMenuItem) *QStyleOptionMenuItem // Delete this object from C++ memory. func (this *QStyleOptionMenuItem) Delete() { - C.QStyleOptionMenuItem_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionMenuItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1441,7 +1441,7 @@ func NewQStyleOptionDockWidget2(other *QStyleOptionDockWidget) *QStyleOptionDock // Delete this object from C++ memory. func (this *QStyleOptionDockWidget) Delete() { - C.QStyleOptionDockWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionDockWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1508,7 +1508,7 @@ func NewQStyleOptionViewItem2(other *QStyleOptionViewItem) *QStyleOptionViewItem // Delete this object from C++ memory. func (this *QStyleOptionViewItem) Delete() { - C.QStyleOptionViewItem_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionViewItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1575,7 +1575,7 @@ func NewQStyleOptionToolBox2(other *QStyleOptionToolBox) *QStyleOptionToolBox { // Delete this object from C++ memory. func (this *QStyleOptionToolBox) Delete() { - C.QStyleOptionToolBox_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionToolBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1642,7 +1642,7 @@ func NewQStyleOptionRubberBand2(other *QStyleOptionRubberBand) *QStyleOptionRubb // Delete this object from C++ memory. func (this *QStyleOptionRubberBand) Delete() { - C.QStyleOptionRubberBand_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionRubberBand_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1725,7 +1725,7 @@ func NewQStyleOptionComplex4(version int, typeVal int) *QStyleOptionComplex { // Delete this object from C++ memory. func (this *QStyleOptionComplex) Delete() { - C.QStyleOptionComplex_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionComplex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1792,7 +1792,7 @@ func NewQStyleOptionSlider2(other *QStyleOptionSlider) *QStyleOptionSlider { // Delete this object from C++ memory. func (this *QStyleOptionSlider) Delete() { - C.QStyleOptionSlider_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionSlider_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1859,7 +1859,7 @@ func NewQStyleOptionSpinBox2(other *QStyleOptionSpinBox) *QStyleOptionSpinBox { // Delete this object from C++ memory. func (this *QStyleOptionSpinBox) Delete() { - C.QStyleOptionSpinBox_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionSpinBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1926,7 +1926,7 @@ func NewQStyleOptionToolButton2(other *QStyleOptionToolButton) *QStyleOptionTool // Delete this object from C++ memory. func (this *QStyleOptionToolButton) Delete() { - C.QStyleOptionToolButton_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionToolButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1993,7 +1993,7 @@ func NewQStyleOptionComboBox2(other *QStyleOptionComboBox) *QStyleOptionComboBox // Delete this object from C++ memory. func (this *QStyleOptionComboBox) Delete() { - C.QStyleOptionComboBox_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionComboBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2060,7 +2060,7 @@ func NewQStyleOptionTitleBar2(other *QStyleOptionTitleBar) *QStyleOptionTitleBar // Delete this object from C++ memory. func (this *QStyleOptionTitleBar) Delete() { - C.QStyleOptionTitleBar_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionTitleBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2127,7 +2127,7 @@ func NewQStyleOptionGroupBox2(other *QStyleOptionGroupBox) *QStyleOptionGroupBox // Delete this object from C++ memory. func (this *QStyleOptionGroupBox) Delete() { - C.QStyleOptionGroupBox_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionGroupBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2194,7 +2194,7 @@ func NewQStyleOptionSizeGrip2(other *QStyleOptionSizeGrip) *QStyleOptionSizeGrip // Delete this object from C++ memory. func (this *QStyleOptionSizeGrip) Delete() { - C.QStyleOptionSizeGrip_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionSizeGrip_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2265,7 +2265,7 @@ func QStyleOptionGraphicsItem_LevelOfDetailFromTransform(worldTransform *QTransf // Delete this object from C++ memory. func (this *QStyleOptionGraphicsItem) Delete() { - C.QStyleOptionGraphicsItem_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionGraphicsItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2348,7 +2348,7 @@ func (this *QStyleHintReturn) OperatorAssign(param1 *QStyleHintReturn) { // Delete this object from C++ memory. func (this *QStyleHintReturn) Delete() { - C.QStyleHintReturn_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleHintReturn_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2419,7 +2419,7 @@ func (this *QStyleHintReturnMask) OperatorAssign(param1 *QStyleHintReturnMask) { // Delete this object from C++ memory. func (this *QStyleHintReturnMask) Delete() { - C.QStyleHintReturnMask_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleHintReturnMask_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2490,7 +2490,7 @@ func (this *QStyleHintReturnVariant) OperatorAssign(param1 *QStyleHintReturnVari // Delete this object from C++ memory. func (this *QStyleHintReturnVariant) Delete() { - C.QStyleHintReturnVariant_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleHintReturnVariant_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstyleoption.h b/qt/gen_qstyleoption.h index ea4c66d7..94ccbae8 100644 --- a/qt/gen_qstyleoption.h +++ b/qt/gen_qstyleoption.h @@ -85,150 +85,150 @@ QStyleOption* QStyleOption_new4(int version, int typeVal); void QStyleOption_Init(QStyleOption* self, QWidget* w); void QStyleOption_InitFrom(QStyleOption* self, QWidget* w); void QStyleOption_OperatorAssign(QStyleOption* self, QStyleOption* other); -void QStyleOption_Delete(QStyleOption* self, bool isSubclass); +void QStyleOption_Delete(QStyleOption* self); QStyleOptionFocusRect* QStyleOptionFocusRect_new(); QStyleOptionFocusRect* QStyleOptionFocusRect_new2(QStyleOptionFocusRect* other); void QStyleOptionFocusRect_virtbase(QStyleOptionFocusRect* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionFocusRect_Delete(QStyleOptionFocusRect* self, bool isSubclass); +void QStyleOptionFocusRect_Delete(QStyleOptionFocusRect* self); QStyleOptionFrame* QStyleOptionFrame_new(); QStyleOptionFrame* QStyleOptionFrame_new2(QStyleOptionFrame* other); void QStyleOptionFrame_virtbase(QStyleOptionFrame* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionFrame_Delete(QStyleOptionFrame* self, bool isSubclass); +void QStyleOptionFrame_Delete(QStyleOptionFrame* self); QStyleOptionTabWidgetFrame* QStyleOptionTabWidgetFrame_new(); QStyleOptionTabWidgetFrame* QStyleOptionTabWidgetFrame_new2(QStyleOptionTabWidgetFrame* other); void QStyleOptionTabWidgetFrame_virtbase(QStyleOptionTabWidgetFrame* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionTabWidgetFrame_Delete(QStyleOptionTabWidgetFrame* self, bool isSubclass); +void QStyleOptionTabWidgetFrame_Delete(QStyleOptionTabWidgetFrame* self); QStyleOptionTabBarBase* QStyleOptionTabBarBase_new(); QStyleOptionTabBarBase* QStyleOptionTabBarBase_new2(QStyleOptionTabBarBase* other); void QStyleOptionTabBarBase_virtbase(QStyleOptionTabBarBase* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionTabBarBase_Delete(QStyleOptionTabBarBase* self, bool isSubclass); +void QStyleOptionTabBarBase_Delete(QStyleOptionTabBarBase* self); QStyleOptionHeader* QStyleOptionHeader_new(); QStyleOptionHeader* QStyleOptionHeader_new2(QStyleOptionHeader* other); void QStyleOptionHeader_virtbase(QStyleOptionHeader* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionHeader_Delete(QStyleOptionHeader* self, bool isSubclass); +void QStyleOptionHeader_Delete(QStyleOptionHeader* self); QStyleOptionButton* QStyleOptionButton_new(); QStyleOptionButton* QStyleOptionButton_new2(QStyleOptionButton* other); void QStyleOptionButton_virtbase(QStyleOptionButton* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionButton_Delete(QStyleOptionButton* self, bool isSubclass); +void QStyleOptionButton_Delete(QStyleOptionButton* self); QStyleOptionTab* QStyleOptionTab_new(); QStyleOptionTab* QStyleOptionTab_new2(QStyleOptionTab* other); void QStyleOptionTab_virtbase(QStyleOptionTab* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionTab_Delete(QStyleOptionTab* self, bool isSubclass); +void QStyleOptionTab_Delete(QStyleOptionTab* self); QStyleOptionTabV4* QStyleOptionTabV4_new(); QStyleOptionTabV4* QStyleOptionTabV4_new2(QStyleOptionTabV4* param1); void QStyleOptionTabV4_virtbase(QStyleOptionTabV4* src, QStyleOptionTab** outptr_QStyleOptionTab); void QStyleOptionTabV4_OperatorAssign(QStyleOptionTabV4* self, QStyleOptionTabV4* param1); -void QStyleOptionTabV4_Delete(QStyleOptionTabV4* self, bool isSubclass); +void QStyleOptionTabV4_Delete(QStyleOptionTabV4* self); QStyleOptionToolBar* QStyleOptionToolBar_new(); QStyleOptionToolBar* QStyleOptionToolBar_new2(QStyleOptionToolBar* other); void QStyleOptionToolBar_virtbase(QStyleOptionToolBar* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionToolBar_Delete(QStyleOptionToolBar* self, bool isSubclass); +void QStyleOptionToolBar_Delete(QStyleOptionToolBar* self); QStyleOptionProgressBar* QStyleOptionProgressBar_new(); QStyleOptionProgressBar* QStyleOptionProgressBar_new2(QStyleOptionProgressBar* other); void QStyleOptionProgressBar_virtbase(QStyleOptionProgressBar* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionProgressBar_Delete(QStyleOptionProgressBar* self, bool isSubclass); +void QStyleOptionProgressBar_Delete(QStyleOptionProgressBar* self); QStyleOptionMenuItem* QStyleOptionMenuItem_new(); QStyleOptionMenuItem* QStyleOptionMenuItem_new2(QStyleOptionMenuItem* other); void QStyleOptionMenuItem_virtbase(QStyleOptionMenuItem* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionMenuItem_Delete(QStyleOptionMenuItem* self, bool isSubclass); +void QStyleOptionMenuItem_Delete(QStyleOptionMenuItem* self); QStyleOptionDockWidget* QStyleOptionDockWidget_new(); QStyleOptionDockWidget* QStyleOptionDockWidget_new2(QStyleOptionDockWidget* other); void QStyleOptionDockWidget_virtbase(QStyleOptionDockWidget* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionDockWidget_Delete(QStyleOptionDockWidget* self, bool isSubclass); +void QStyleOptionDockWidget_Delete(QStyleOptionDockWidget* self); QStyleOptionViewItem* QStyleOptionViewItem_new(); QStyleOptionViewItem* QStyleOptionViewItem_new2(QStyleOptionViewItem* other); void QStyleOptionViewItem_virtbase(QStyleOptionViewItem* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionViewItem_Delete(QStyleOptionViewItem* self, bool isSubclass); +void QStyleOptionViewItem_Delete(QStyleOptionViewItem* self); QStyleOptionToolBox* QStyleOptionToolBox_new(); QStyleOptionToolBox* QStyleOptionToolBox_new2(QStyleOptionToolBox* other); void QStyleOptionToolBox_virtbase(QStyleOptionToolBox* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionToolBox_Delete(QStyleOptionToolBox* self, bool isSubclass); +void QStyleOptionToolBox_Delete(QStyleOptionToolBox* self); QStyleOptionRubberBand* QStyleOptionRubberBand_new(); QStyleOptionRubberBand* QStyleOptionRubberBand_new2(QStyleOptionRubberBand* other); void QStyleOptionRubberBand_virtbase(QStyleOptionRubberBand* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionRubberBand_Delete(QStyleOptionRubberBand* self, bool isSubclass); +void QStyleOptionRubberBand_Delete(QStyleOptionRubberBand* self); QStyleOptionComplex* QStyleOptionComplex_new(); QStyleOptionComplex* QStyleOptionComplex_new2(QStyleOptionComplex* other); QStyleOptionComplex* QStyleOptionComplex_new3(int version); QStyleOptionComplex* QStyleOptionComplex_new4(int version, int typeVal); void QStyleOptionComplex_virtbase(QStyleOptionComplex* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionComplex_Delete(QStyleOptionComplex* self, bool isSubclass); +void QStyleOptionComplex_Delete(QStyleOptionComplex* self); QStyleOptionSlider* QStyleOptionSlider_new(); QStyleOptionSlider* QStyleOptionSlider_new2(QStyleOptionSlider* other); void QStyleOptionSlider_virtbase(QStyleOptionSlider* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionSlider_Delete(QStyleOptionSlider* self, bool isSubclass); +void QStyleOptionSlider_Delete(QStyleOptionSlider* self); QStyleOptionSpinBox* QStyleOptionSpinBox_new(); QStyleOptionSpinBox* QStyleOptionSpinBox_new2(QStyleOptionSpinBox* other); void QStyleOptionSpinBox_virtbase(QStyleOptionSpinBox* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionSpinBox_Delete(QStyleOptionSpinBox* self, bool isSubclass); +void QStyleOptionSpinBox_Delete(QStyleOptionSpinBox* self); QStyleOptionToolButton* QStyleOptionToolButton_new(); QStyleOptionToolButton* QStyleOptionToolButton_new2(QStyleOptionToolButton* other); void QStyleOptionToolButton_virtbase(QStyleOptionToolButton* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionToolButton_Delete(QStyleOptionToolButton* self, bool isSubclass); +void QStyleOptionToolButton_Delete(QStyleOptionToolButton* self); QStyleOptionComboBox* QStyleOptionComboBox_new(); QStyleOptionComboBox* QStyleOptionComboBox_new2(QStyleOptionComboBox* other); void QStyleOptionComboBox_virtbase(QStyleOptionComboBox* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionComboBox_Delete(QStyleOptionComboBox* self, bool isSubclass); +void QStyleOptionComboBox_Delete(QStyleOptionComboBox* self); QStyleOptionTitleBar* QStyleOptionTitleBar_new(); QStyleOptionTitleBar* QStyleOptionTitleBar_new2(QStyleOptionTitleBar* other); void QStyleOptionTitleBar_virtbase(QStyleOptionTitleBar* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionTitleBar_Delete(QStyleOptionTitleBar* self, bool isSubclass); +void QStyleOptionTitleBar_Delete(QStyleOptionTitleBar* self); QStyleOptionGroupBox* QStyleOptionGroupBox_new(); QStyleOptionGroupBox* QStyleOptionGroupBox_new2(QStyleOptionGroupBox* other); void QStyleOptionGroupBox_virtbase(QStyleOptionGroupBox* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionGroupBox_Delete(QStyleOptionGroupBox* self, bool isSubclass); +void QStyleOptionGroupBox_Delete(QStyleOptionGroupBox* self); QStyleOptionSizeGrip* QStyleOptionSizeGrip_new(); QStyleOptionSizeGrip* QStyleOptionSizeGrip_new2(QStyleOptionSizeGrip* other); void QStyleOptionSizeGrip_virtbase(QStyleOptionSizeGrip* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionSizeGrip_Delete(QStyleOptionSizeGrip* self, bool isSubclass); +void QStyleOptionSizeGrip_Delete(QStyleOptionSizeGrip* self); QStyleOptionGraphicsItem* QStyleOptionGraphicsItem_new(); QStyleOptionGraphicsItem* QStyleOptionGraphicsItem_new2(QStyleOptionGraphicsItem* other); void QStyleOptionGraphicsItem_virtbase(QStyleOptionGraphicsItem* src, QStyleOption** outptr_QStyleOption); double QStyleOptionGraphicsItem_LevelOfDetailFromTransform(QTransform* worldTransform); -void QStyleOptionGraphicsItem_Delete(QStyleOptionGraphicsItem* self, bool isSubclass); +void QStyleOptionGraphicsItem_Delete(QStyleOptionGraphicsItem* self); QStyleHintReturn* QStyleHintReturn_new(); QStyleHintReturn* QStyleHintReturn_new2(QStyleHintReturn* param1); QStyleHintReturn* QStyleHintReturn_new3(int version); QStyleHintReturn* QStyleHintReturn_new4(int version, int typeVal); void QStyleHintReturn_OperatorAssign(QStyleHintReturn* self, QStyleHintReturn* param1); -void QStyleHintReturn_Delete(QStyleHintReturn* self, bool isSubclass); +void QStyleHintReturn_Delete(QStyleHintReturn* self); QStyleHintReturnMask* QStyleHintReturnMask_new(); QStyleHintReturnMask* QStyleHintReturnMask_new2(QStyleHintReturnMask* param1); void QStyleHintReturnMask_virtbase(QStyleHintReturnMask* src, QStyleHintReturn** outptr_QStyleHintReturn); void QStyleHintReturnMask_OperatorAssign(QStyleHintReturnMask* self, QStyleHintReturnMask* param1); -void QStyleHintReturnMask_Delete(QStyleHintReturnMask* self, bool isSubclass); +void QStyleHintReturnMask_Delete(QStyleHintReturnMask* self); QStyleHintReturnVariant* QStyleHintReturnVariant_new(); QStyleHintReturnVariant* QStyleHintReturnVariant_new2(QStyleHintReturnVariant* param1); void QStyleHintReturnVariant_virtbase(QStyleHintReturnVariant* src, QStyleHintReturn** outptr_QStyleHintReturn); void QStyleHintReturnVariant_OperatorAssign(QStyleHintReturnVariant* self, QStyleHintReturnVariant* param1); -void QStyleHintReturnVariant_Delete(QStyleHintReturnVariant* self, bool isSubclass); +void QStyleHintReturnVariant_Delete(QStyleHintReturnVariant* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstylepainter.cpp b/qt/gen_qstylepainter.cpp index 7c9c725e..e9188d07 100644 --- a/qt/gen_qstylepainter.cpp +++ b/qt/gen_qstylepainter.cpp @@ -76,11 +76,7 @@ void QStylePainter_DrawItemText6(QStylePainter* self, QRect* r, int flags, QPale self->drawItemText(*r, static_cast(flags), *pal, enabled, text_QString, static_cast(textRole)); } -void QStylePainter_Delete(QStylePainter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStylePainter_Delete(QStylePainter* self) { + delete self; } diff --git a/qt/gen_qstylepainter.go b/qt/gen_qstylepainter.go index 73eed10e..e6e52cbb 100644 --- a/qt/gen_qstylepainter.go +++ b/qt/gen_qstylepainter.go @@ -120,7 +120,7 @@ func (this *QStylePainter) DrawItemText6(r *QRect, flags int, pal *QPalette, ena // Delete this object from C++ memory. func (this *QStylePainter) Delete() { - C.QStylePainter_Delete(this.h, C.bool(this.isSubclass)) + C.QStylePainter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstylepainter.h b/qt/gen_qstylepainter.h index 78a90cdd..3e6f2023 100644 --- a/qt/gen_qstylepainter.h +++ b/qt/gen_qstylepainter.h @@ -51,7 +51,7 @@ void QStylePainter_DrawItemText(QStylePainter* self, QRect* r, int flags, QPalet void QStylePainter_DrawItemPixmap(QStylePainter* self, QRect* r, int flags, QPixmap* pixmap); QStyle* QStylePainter_Style(const QStylePainter* self); void QStylePainter_DrawItemText6(QStylePainter* self, QRect* r, int flags, QPalette* pal, bool enabled, struct miqt_string text, int textRole); -void QStylePainter_Delete(QStylePainter* self, bool isSubclass); +void QStylePainter_Delete(QStylePainter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qstyleplugin.cpp b/qt/gen_qstyleplugin.cpp index 29df482a..e4d328cf 100644 --- a/qt/gen_qstyleplugin.cpp +++ b/qt/gen_qstyleplugin.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QStylePlugin_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQStylePlugin : public virtual QStylePlugin { +class MiqtVirtualQStylePlugin final : public QStylePlugin { public: MiqtVirtualQStylePlugin(): QStylePlugin() {}; MiqtVirtualQStylePlugin(QObject* parent): QStylePlugin(parent) {}; - virtual ~MiqtVirtualQStylePlugin() = default; + virtual ~MiqtVirtualQStylePlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -383,11 +383,7 @@ void QStylePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQStylePlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QStylePlugin_Delete(QStylePlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStylePlugin_Delete(QStylePlugin* self) { + delete self; } diff --git a/qt/gen_qstyleplugin.go b/qt/gen_qstyleplugin.go index 68d37341..8b238fb8 100644 --- a/qt/gen_qstyleplugin.go +++ b/qt/gen_qstyleplugin.go @@ -362,7 +362,7 @@ func miqt_exec_callback_QStylePlugin_DisconnectNotify(self *C.QStylePlugin, cb C // Delete this object from C++ memory. func (this *QStylePlugin) Delete() { - C.QStylePlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QStylePlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qstyleplugin.h b/qt/gen_qstyleplugin.h index 4068de86..f844e98e 100644 --- a/qt/gen_qstyleplugin.h +++ b/qt/gen_qstyleplugin.h @@ -62,7 +62,7 @@ void QStylePlugin_override_virtual_ConnectNotify(void* self, intptr_t slot); void QStylePlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QStylePlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QStylePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QStylePlugin_Delete(QStylePlugin* self, bool isSubclass); +void QStylePlugin_Delete(QStylePlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsurface.cpp b/qt/gen_qsurface.cpp index d252664c..baae4ce1 100644 --- a/qt/gen_qsurface.cpp +++ b/qt/gen_qsurface.cpp @@ -34,11 +34,7 @@ QSize* QSurface_Size(const QSurface* self) { return new QSize(self->size()); } -void QSurface_Delete(QSurface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSurface_Delete(QSurface* self) { + delete self; } diff --git a/qt/gen_qsurface.go b/qt/gen_qsurface.go index a351852e..75f99bd3 100644 --- a/qt/gen_qsurface.go +++ b/qt/gen_qsurface.go @@ -90,7 +90,7 @@ func (this *QSurface) Size() *QSize { // Delete this object from C++ memory. func (this *QSurface) Delete() { - C.QSurface_Delete(this.h, C.bool(this.isSubclass)) + C.QSurface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsurface.h b/qt/gen_qsurface.h index 2c962c14..af826665 100644 --- a/qt/gen_qsurface.h +++ b/qt/gen_qsurface.h @@ -29,7 +29,7 @@ QSurfaceFormat* QSurface_Format(const QSurface* self); int QSurface_SurfaceType(const QSurface* self); bool QSurface_SupportsOpenGL(const QSurface* self); QSize* QSurface_Size(const QSurface* self); -void QSurface_Delete(QSurface* self, bool isSubclass); +void QSurface_Delete(QSurface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsurfaceformat.cpp b/qt/gen_qsurfaceformat.cpp index 3268f615..186330bf 100644 --- a/qt/gen_qsurfaceformat.cpp +++ b/qt/gen_qsurfaceformat.cpp @@ -210,11 +210,7 @@ void QSurfaceFormat_SetOption2(QSurfaceFormat* self, int option, bool on) { self->setOption(static_cast(option), on); } -void QSurfaceFormat_Delete(QSurfaceFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSurfaceFormat_Delete(QSurfaceFormat* self) { + delete self; } diff --git a/qt/gen_qsurfaceformat.go b/qt/gen_qsurfaceformat.go index 606e21cd..05e9df9e 100644 --- a/qt/gen_qsurfaceformat.go +++ b/qt/gen_qsurfaceformat.go @@ -301,7 +301,7 @@ func (this *QSurfaceFormat) SetOption2(option QSurfaceFormat__FormatOption, on b // Delete this object from C++ memory. func (this *QSurfaceFormat) Delete() { - C.QSurfaceFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QSurfaceFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsurfaceformat.h b/qt/gen_qsurfaceformat.h index fbec6c4a..841ae32f 100644 --- a/qt/gen_qsurfaceformat.h +++ b/qt/gen_qsurfaceformat.h @@ -66,7 +66,7 @@ void QSurfaceFormat_SetColorSpace(QSurfaceFormat* self, int colorSpace); void QSurfaceFormat_SetDefaultFormat(QSurfaceFormat* format); QSurfaceFormat* QSurfaceFormat_DefaultFormat(); void QSurfaceFormat_SetOption2(QSurfaceFormat* self, int option, bool on); -void QSurfaceFormat_Delete(QSurfaceFormat* self, bool isSubclass); +void QSurfaceFormat_Delete(QSurfaceFormat* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsyntaxhighlighter.cpp b/qt/gen_qsyntaxhighlighter.cpp index 4bc84f23..2bf05010 100644 --- a/qt/gen_qsyntaxhighlighter.cpp +++ b/qt/gen_qsyntaxhighlighter.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QSyntaxHighlighter_DisconnectNotify(void*, intptr_t, QMe } /* extern C */ #endif -class MiqtVirtualQSyntaxHighlighter : public virtual QSyntaxHighlighter { +class MiqtVirtualQSyntaxHighlighter final : public QSyntaxHighlighter { public: MiqtVirtualQSyntaxHighlighter(QObject* parent): QSyntaxHighlighter(parent) {}; MiqtVirtualQSyntaxHighlighter(QTextDocument* parent): QSyntaxHighlighter(parent) {}; - virtual ~MiqtVirtualQSyntaxHighlighter() = default; + virtual ~MiqtVirtualQSyntaxHighlighter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__HighlightBlock = 0; @@ -395,11 +395,7 @@ void QSyntaxHighlighter_virtualbase_DisconnectNotify(void* self, QMetaMethod* si ( (MiqtVirtualQSyntaxHighlighter*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSyntaxHighlighter_Delete(QSyntaxHighlighter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSyntaxHighlighter_Delete(QSyntaxHighlighter* self) { + delete self; } diff --git a/qt/gen_qsyntaxhighlighter.go b/qt/gen_qsyntaxhighlighter.go index 21c60859..bfbe9881 100644 --- a/qt/gen_qsyntaxhighlighter.go +++ b/qt/gen_qsyntaxhighlighter.go @@ -368,7 +368,7 @@ func miqt_exec_callback_QSyntaxHighlighter_DisconnectNotify(self *C.QSyntaxHighl // Delete this object from C++ memory. func (this *QSyntaxHighlighter) Delete() { - C.QSyntaxHighlighter_Delete(this.h, C.bool(this.isSubclass)) + C.QSyntaxHighlighter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsyntaxhighlighter.h b/qt/gen_qsyntaxhighlighter.h index 72dbab43..26fe3f24 100644 --- a/qt/gen_qsyntaxhighlighter.h +++ b/qt/gen_qsyntaxhighlighter.h @@ -68,7 +68,7 @@ void QSyntaxHighlighter_override_virtual_ConnectNotify(void* self, intptr_t slot void QSyntaxHighlighter_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSyntaxHighlighter_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSyntaxHighlighter_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSyntaxHighlighter_Delete(QSyntaxHighlighter* self, bool isSubclass); +void QSyntaxHighlighter_Delete(QSyntaxHighlighter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsystemsemaphore.cpp b/qt/gen_qsystemsemaphore.cpp index 88d507e3..6faeea25 100644 --- a/qt/gen_qsystemsemaphore.cpp +++ b/qt/gen_qsystemsemaphore.cpp @@ -82,11 +82,7 @@ bool QSystemSemaphore_Release1(QSystemSemaphore* self, int n) { return self->release(static_cast(n)); } -void QSystemSemaphore_Delete(QSystemSemaphore* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSystemSemaphore_Delete(QSystemSemaphore* self) { + delete self; } diff --git a/qt/gen_qsystemsemaphore.go b/qt/gen_qsystemsemaphore.go index d3d6a91e..12572222 100644 --- a/qt/gen_qsystemsemaphore.go +++ b/qt/gen_qsystemsemaphore.go @@ -157,7 +157,7 @@ func (this *QSystemSemaphore) Release1(n int) bool { // Delete this object from C++ memory. func (this *QSystemSemaphore) Delete() { - C.QSystemSemaphore_Delete(this.h, C.bool(this.isSubclass)) + C.QSystemSemaphore_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsystemsemaphore.h b/qt/gen_qsystemsemaphore.h index 222f0e6a..f3258d21 100644 --- a/qt/gen_qsystemsemaphore.h +++ b/qt/gen_qsystemsemaphore.h @@ -32,7 +32,7 @@ struct miqt_string QSystemSemaphore_ErrorString(const QSystemSemaphore* self); void QSystemSemaphore_SetKey2(QSystemSemaphore* self, struct miqt_string key, int initialValue); void QSystemSemaphore_SetKey3(QSystemSemaphore* self, struct miqt_string key, int initialValue, int mode); bool QSystemSemaphore_Release1(QSystemSemaphore* self, int n); -void QSystemSemaphore_Delete(QSystemSemaphore* self, bool isSubclass); +void QSystemSemaphore_Delete(QSystemSemaphore* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qsystemtrayicon.cpp b/qt/gen_qsystemtrayicon.cpp index bfaa761b..1c26ca13 100644 --- a/qt/gen_qsystemtrayicon.cpp +++ b/qt/gen_qsystemtrayicon.cpp @@ -31,7 +31,7 @@ void miqt_exec_callback_QSystemTrayIcon_DisconnectNotify(void*, intptr_t, QMetaM } /* extern C */ #endif -class MiqtVirtualQSystemTrayIcon : public virtual QSystemTrayIcon { +class MiqtVirtualQSystemTrayIcon final : public QSystemTrayIcon { public: MiqtVirtualQSystemTrayIcon(): QSystemTrayIcon() {}; @@ -39,7 +39,7 @@ public: MiqtVirtualQSystemTrayIcon(QObject* parent): QSystemTrayIcon(parent) {}; MiqtVirtualQSystemTrayIcon(const QIcon& icon, QObject* parent): QSystemTrayIcon(icon, parent) {}; - virtual ~MiqtVirtualQSystemTrayIcon() = default; + virtual ~MiqtVirtualQSystemTrayIcon() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -476,11 +476,7 @@ void QSystemTrayIcon_virtualbase_DisconnectNotify(void* self, QMetaMethod* signa ( (MiqtVirtualQSystemTrayIcon*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSystemTrayIcon_Delete(QSystemTrayIcon* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSystemTrayIcon_Delete(QSystemTrayIcon* self) { + delete self; } diff --git a/qt/gen_qsystemtrayicon.go b/qt/gen_qsystemtrayicon.go index 901cb90b..2d8300ab 100644 --- a/qt/gen_qsystemtrayicon.go +++ b/qt/gen_qsystemtrayicon.go @@ -524,7 +524,7 @@ func miqt_exec_callback_QSystemTrayIcon_DisconnectNotify(self *C.QSystemTrayIcon // Delete this object from C++ memory. func (this *QSystemTrayIcon) Delete() { - C.QSystemTrayIcon_Delete(this.h, C.bool(this.isSubclass)) + C.QSystemTrayIcon_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qsystemtrayicon.h b/qt/gen_qsystemtrayicon.h index e0aa7199..3aba3a81 100644 --- a/qt/gen_qsystemtrayicon.h +++ b/qt/gen_qsystemtrayicon.h @@ -88,7 +88,7 @@ void QSystemTrayIcon_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSystemTrayIcon_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSystemTrayIcon_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSystemTrayIcon_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSystemTrayIcon_Delete(QSystemTrayIcon* self, bool isSubclass); +void QSystemTrayIcon_Delete(QSystemTrayIcon* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtabbar.cpp b/qt/gen_qtabbar.cpp index 1696468e..7c043810 100644 --- a/qt/gen_qtabbar.cpp +++ b/qt/gen_qtabbar.cpp @@ -98,13 +98,13 @@ bool miqt_exec_callback_QTabBar_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQTabBar : public virtual QTabBar { +class MiqtVirtualQTabBar final : public QTabBar { public: MiqtVirtualQTabBar(QWidget* parent): QTabBar(parent) {}; MiqtVirtualQTabBar(): QTabBar() {}; - virtual ~MiqtVirtualQTabBar() = default; + virtual ~MiqtVirtualQTabBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -2009,11 +2009,7 @@ bool QTabBar_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQTabBar*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QTabBar_Delete(QTabBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTabBar_Delete(QTabBar* self) { + delete self; } diff --git a/qt/gen_qtabbar.go b/qt/gen_qtabbar.go index fd4384eb..01712111 100644 --- a/qt/gen_qtabbar.go +++ b/qt/gen_qtabbar.go @@ -1807,7 +1807,7 @@ func miqt_exec_callback_QTabBar_FocusNextPrevChild(self *C.QTabBar, cb C.intptr_ // Delete this object from C++ memory. func (this *QTabBar) Delete() { - C.QTabBar_Delete(this.h, C.bool(this.isSubclass)) + C.QTabBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtabbar.h b/qt/gen_qtabbar.h index 49d73a9c..fe529eff 100644 --- a/qt/gen_qtabbar.h +++ b/qt/gen_qtabbar.h @@ -273,7 +273,7 @@ void QTabBar_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QTabBar_virtualbase_InputMethodQuery(const void* self, int param1); void QTabBar_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QTabBar_virtualbase_FocusNextPrevChild(void* self, bool next); -void QTabBar_Delete(QTabBar* self, bool isSubclass); +void QTabBar_Delete(QTabBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtableview.cpp b/qt/gen_qtableview.cpp index a2a99ad9..5002df9e 100644 --- a/qt/gen_qtableview.cpp +++ b/qt/gen_qtableview.cpp @@ -104,13 +104,13 @@ bool miqt_exec_callback_QTableView_EventFilter(void*, intptr_t, QObject*, QEvent } /* extern C */ #endif -class MiqtVirtualQTableView : public virtual QTableView { +class MiqtVirtualQTableView final : public QTableView { public: MiqtVirtualQTableView(QWidget* parent): QTableView(parent) {}; MiqtVirtualQTableView(): QTableView() {}; - virtual ~MiqtVirtualQTableView() = default; + virtual ~MiqtVirtualQTableView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetModel = 0; @@ -2385,11 +2385,7 @@ bool QTableView_virtualbase_EventFilter(void* self, QObject* object, QEvent* eve return ( (MiqtVirtualQTableView*)(self) )->virtualbase_EventFilter(object, event); } -void QTableView_Delete(QTableView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTableView_Delete(QTableView* self) { + delete self; } diff --git a/qt/gen_qtableview.go b/qt/gen_qtableview.go index 22bfb605..a97ca309 100644 --- a/qt/gen_qtableview.go +++ b/qt/gen_qtableview.go @@ -1987,7 +1987,7 @@ func miqt_exec_callback_QTableView_EventFilter(self *C.QTableView, cb C.intptr_t // Delete this object from C++ memory. func (this *QTableView) Delete() { - C.QTableView_Delete(this.h, C.bool(this.isSubclass)) + C.QTableView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtableview.h b/qt/gen_qtableview.h index 344d3247..d30c4289 100644 --- a/qt/gen_qtableview.h +++ b/qt/gen_qtableview.h @@ -279,7 +279,7 @@ void QTableView_override_virtual_InputMethodEvent(void* self, intptr_t slot); void QTableView_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event); void QTableView_override_virtual_EventFilter(void* self, intptr_t slot); bool QTableView_virtualbase_EventFilter(void* self, QObject* object, QEvent* event); -void QTableView_Delete(QTableView* self, bool isSubclass); +void QTableView_Delete(QTableView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtablewidget.cpp b/qt/gen_qtablewidget.cpp index b62c7f2f..7d657397 100644 --- a/qt/gen_qtablewidget.cpp +++ b/qt/gen_qtablewidget.cpp @@ -135,15 +135,11 @@ int QTableWidgetSelectionRange_ColumnCount(const QTableWidgetSelectionRange* sel return self->columnCount(); } -void QTableWidgetSelectionRange_Delete(QTableWidgetSelectionRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTableWidgetSelectionRange_Delete(QTableWidgetSelectionRange* self) { + delete self; } -class MiqtVirtualQTableWidgetItem : public virtual QTableWidgetItem { +class MiqtVirtualQTableWidgetItem final : public QTableWidgetItem { public: MiqtVirtualQTableWidgetItem(): QTableWidgetItem() {}; @@ -154,7 +150,7 @@ public: MiqtVirtualQTableWidgetItem(const QString& text, int typeVal): QTableWidgetItem(text, typeVal) {}; MiqtVirtualQTableWidgetItem(const QIcon& icon, const QString& text, int typeVal): QTableWidgetItem(icon, text, typeVal) {}; - virtual ~MiqtVirtualQTableWidgetItem() = default; + virtual ~MiqtVirtualQTableWidgetItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -585,15 +581,11 @@ void QTableWidgetItem_virtualbase_Write(const void* self, QDataStream* out) { ( (const MiqtVirtualQTableWidgetItem*)(self) )->virtualbase_Write(out); } -void QTableWidgetItem_Delete(QTableWidgetItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTableWidgetItem_Delete(QTableWidgetItem* self) { + delete self; } -class MiqtVirtualQTableWidget : public virtual QTableWidget { +class MiqtVirtualQTableWidget final : public QTableWidget { public: MiqtVirtualQTableWidget(QWidget* parent): QTableWidget(parent) {}; @@ -601,7 +593,7 @@ public: MiqtVirtualQTableWidget(int rows, int columns): QTableWidget(rows, columns) {}; MiqtVirtualQTableWidget(int rows, int columns, QWidget* parent): QTableWidget(rows, columns, parent) {}; - virtual ~MiqtVirtualQTableWidget() = default; + virtual ~MiqtVirtualQTableWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -2195,11 +2187,7 @@ void QTableWidget_virtualbase_CurrentChanged(void* self, QModelIndex* current, Q ( (MiqtVirtualQTableWidget*)(self) )->virtualbase_CurrentChanged(current, previous); } -void QTableWidget_Delete(QTableWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTableWidget_Delete(QTableWidget* self) { + delete self; } diff --git a/qt/gen_qtablewidget.go b/qt/gen_qtablewidget.go index 83a21c41..5e74d26f 100644 --- a/qt/gen_qtablewidget.go +++ b/qt/gen_qtablewidget.go @@ -108,7 +108,7 @@ func (this *QTableWidgetSelectionRange) ColumnCount() int { // Delete this object from C++ memory. func (this *QTableWidgetSelectionRange) Delete() { - C.QTableWidgetSelectionRange_Delete(this.h, C.bool(this.isSubclass)) + C.QTableWidgetSelectionRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -598,7 +598,7 @@ func miqt_exec_callback_QTableWidgetItem_Write(self *C.QTableWidgetItem, cb C.in // Delete this object from C++ memory. func (this *QTableWidgetItem) Delete() { - C.QTableWidgetItem_Delete(this.h, C.bool(this.isSubclass)) + C.QTableWidgetItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2228,7 +2228,7 @@ func miqt_exec_callback_QTableWidget_CurrentChanged(self *C.QTableWidget, cb C.i // Delete this object from C++ memory. func (this *QTableWidget) Delete() { - C.QTableWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QTableWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtablewidget.h b/qt/gen_qtablewidget.h index 6d94d12b..e1b26ac1 100644 --- a/qt/gen_qtablewidget.h +++ b/qt/gen_qtablewidget.h @@ -88,7 +88,7 @@ int QTableWidgetSelectionRange_LeftColumn(const QTableWidgetSelectionRange* self int QTableWidgetSelectionRange_RightColumn(const QTableWidgetSelectionRange* self); int QTableWidgetSelectionRange_RowCount(const QTableWidgetSelectionRange* self); int QTableWidgetSelectionRange_ColumnCount(const QTableWidgetSelectionRange* self); -void QTableWidgetSelectionRange_Delete(QTableWidgetSelectionRange* self, bool isSubclass); +void QTableWidgetSelectionRange_Delete(QTableWidgetSelectionRange* self); QTableWidgetItem* QTableWidgetItem_new(); QTableWidgetItem* QTableWidgetItem_new2(struct miqt_string text); @@ -150,7 +150,7 @@ void QTableWidgetItem_override_virtual_Read(void* self, intptr_t slot); void QTableWidgetItem_virtualbase_Read(void* self, QDataStream* in); void QTableWidgetItem_override_virtual_Write(void* self, intptr_t slot); void QTableWidgetItem_virtualbase_Write(const void* self, QDataStream* out); -void QTableWidgetItem_Delete(QTableWidgetItem* self, bool isSubclass); +void QTableWidgetItem_Delete(QTableWidgetItem* self); QTableWidget* QTableWidget_new(QWidget* parent); QTableWidget* QTableWidget_new2(); @@ -319,7 +319,7 @@ void QTableWidget_override_virtual_SelectionChanged(void* self, intptr_t slot); void QTableWidget_virtualbase_SelectionChanged(void* self, QItemSelection* selected, QItemSelection* deselected); void QTableWidget_override_virtual_CurrentChanged(void* self, intptr_t slot); void QTableWidget_virtualbase_CurrentChanged(void* self, QModelIndex* current, QModelIndex* previous); -void QTableWidget_Delete(QTableWidget* self, bool isSubclass); +void QTableWidget_Delete(QTableWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtabwidget.cpp b/qt/gen_qtabwidget.cpp index 6487a3f1..65aea5ed 100644 --- a/qt/gen_qtabwidget.cpp +++ b/qt/gen_qtabwidget.cpp @@ -91,13 +91,13 @@ bool miqt_exec_callback_QTabWidget_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQTabWidget : public virtual QTabWidget { +class MiqtVirtualQTabWidget final : public QTabWidget { public: MiqtVirtualQTabWidget(QWidget* parent): QTabWidget(parent) {}; MiqtVirtualQTabWidget(): QTabWidget() {}; - virtual ~MiqtVirtualQTabWidget() = default; + virtual ~MiqtVirtualQTabWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1837,11 +1837,7 @@ bool QTabWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQTabWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QTabWidget_Delete(QTabWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTabWidget_Delete(QTabWidget* self) { + delete self; } diff --git a/qt/gen_qtabwidget.go b/qt/gen_qtabwidget.go index b4c3669b..66a3bab9 100644 --- a/qt/gen_qtabwidget.go +++ b/qt/gen_qtabwidget.go @@ -1631,7 +1631,7 @@ func miqt_exec_callback_QTabWidget_FocusNextPrevChild(self *C.QTabWidget, cb C.i // Delete this object from C++ memory. func (this *QTabWidget) Delete() { - C.QTabWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QTabWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtabwidget.h b/qt/gen_qtabwidget.h index d1f058c5..dc47333a 100644 --- a/qt/gen_qtabwidget.h +++ b/qt/gen_qtabwidget.h @@ -245,7 +245,7 @@ void QTabWidget_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QTabWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QTabWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QTabWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QTabWidget_Delete(QTabWidget* self, bool isSubclass); +void QTabWidget_Delete(QTabWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtemporarydir.cpp b/qt/gen_qtemporarydir.cpp index 81deea00..1c6acb30 100644 --- a/qt/gen_qtemporarydir.cpp +++ b/qt/gen_qtemporarydir.cpp @@ -72,11 +72,7 @@ struct miqt_string QTemporaryDir_FilePath(const QTemporaryDir* self, struct miqt return _ms; } -void QTemporaryDir_Delete(QTemporaryDir* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTemporaryDir_Delete(QTemporaryDir* self) { + delete self; } diff --git a/qt/gen_qtemporarydir.go b/qt/gen_qtemporarydir.go index 2b2be237..5820047e 100644 --- a/qt/gen_qtemporarydir.go +++ b/qt/gen_qtemporarydir.go @@ -109,7 +109,7 @@ func (this *QTemporaryDir) FilePath(fileName string) string { // Delete this object from C++ memory. func (this *QTemporaryDir) Delete() { - C.QTemporaryDir_Delete(this.h, C.bool(this.isSubclass)) + C.QTemporaryDir_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtemporarydir.h b/qt/gen_qtemporarydir.h index d0075464..30d5f889 100644 --- a/qt/gen_qtemporarydir.h +++ b/qt/gen_qtemporarydir.h @@ -29,7 +29,7 @@ void QTemporaryDir_SetAutoRemove(QTemporaryDir* self, bool b); bool QTemporaryDir_Remove(QTemporaryDir* self); struct miqt_string QTemporaryDir_Path(const QTemporaryDir* self); struct miqt_string QTemporaryDir_FilePath(const QTemporaryDir* self, struct miqt_string fileName); -void QTemporaryDir_Delete(QTemporaryDir* self, bool isSubclass); +void QTemporaryDir_Delete(QTemporaryDir* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtemporaryfile.cpp b/qt/gen_qtemporaryfile.cpp index a52adc56..e6de7ef3 100644 --- a/qt/gen_qtemporaryfile.cpp +++ b/qt/gen_qtemporaryfile.cpp @@ -24,7 +24,7 @@ bool miqt_exec_callback_QTemporaryFile_SetPermissions(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQTemporaryFile : public virtual QTemporaryFile { +class MiqtVirtualQTemporaryFile final : public QTemporaryFile { public: MiqtVirtualQTemporaryFile(): QTemporaryFile() {}; @@ -32,7 +32,7 @@ public: MiqtVirtualQTemporaryFile(QObject* parent): QTemporaryFile(parent) {}; MiqtVirtualQTemporaryFile(const QString& templateName, QObject* parent): QTemporaryFile(templateName, parent) {}; - virtual ~MiqtVirtualQTemporaryFile() = default; + virtual ~MiqtVirtualQTemporaryFile() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__FileName = 0; @@ -390,11 +390,7 @@ bool QTemporaryFile_virtualbase_SetPermissions(void* self, int permissionSpec) { return ( (MiqtVirtualQTemporaryFile*)(self) )->virtualbase_SetPermissions(permissionSpec); } -void QTemporaryFile_Delete(QTemporaryFile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTemporaryFile_Delete(QTemporaryFile* self) { + delete self; } diff --git a/qt/gen_qtemporaryfile.go b/qt/gen_qtemporaryfile.go index 9c6a9958..eebfa204 100644 --- a/qt/gen_qtemporaryfile.go +++ b/qt/gen_qtemporaryfile.go @@ -396,7 +396,7 @@ func miqt_exec_callback_QTemporaryFile_SetPermissions(self *C.QTemporaryFile, cb // Delete this object from C++ memory. func (this *QTemporaryFile) Delete() { - C.QTemporaryFile_Delete(this.h, C.bool(this.isSubclass)) + C.QTemporaryFile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtemporaryfile.h b/qt/gen_qtemporaryfile.h index a54dd961..7ecbecb0 100644 --- a/qt/gen_qtemporaryfile.h +++ b/qt/gen_qtemporaryfile.h @@ -67,7 +67,7 @@ void QTemporaryFile_override_virtual_Permissions(void* self, intptr_t slot); int QTemporaryFile_virtualbase_Permissions(const void* self); void QTemporaryFile_override_virtual_SetPermissions(void* self, intptr_t slot); bool QTemporaryFile_virtualbase_SetPermissions(void* self, int permissionSpec); -void QTemporaryFile_Delete(QTemporaryFile* self, bool isSubclass); +void QTemporaryFile_Delete(QTemporaryFile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextboundaryfinder.cpp b/qt/gen_qtextboundaryfinder.cpp index d4bf6a0c..cdf48f80 100644 --- a/qt/gen_qtextboundaryfinder.cpp +++ b/qt/gen_qtextboundaryfinder.cpp @@ -96,11 +96,7 @@ int QTextBoundaryFinder_BoundaryReasons(const QTextBoundaryFinder* self) { return static_cast(_ret); } -void QTextBoundaryFinder_Delete(QTextBoundaryFinder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBoundaryFinder_Delete(QTextBoundaryFinder* self) { + delete self; } diff --git a/qt/gen_qtextboundaryfinder.go b/qt/gen_qtextboundaryfinder.go index 6a4fbbd7..43d57cd8 100644 --- a/qt/gen_qtextboundaryfinder.go +++ b/qt/gen_qtextboundaryfinder.go @@ -171,7 +171,7 @@ func (this *QTextBoundaryFinder) BoundaryReasons() QTextBoundaryFinder__Boundary // Delete this object from C++ memory. func (this *QTextBoundaryFinder) Delete() { - C.QTextBoundaryFinder_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBoundaryFinder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextboundaryfinder.h b/qt/gen_qtextboundaryfinder.h index ef92070a..c0b5b38f 100644 --- a/qt/gen_qtextboundaryfinder.h +++ b/qt/gen_qtextboundaryfinder.h @@ -40,7 +40,7 @@ int QTextBoundaryFinder_ToNextBoundary(QTextBoundaryFinder* self); int QTextBoundaryFinder_ToPreviousBoundary(QTextBoundaryFinder* self); bool QTextBoundaryFinder_IsAtBoundary(const QTextBoundaryFinder* self); int QTextBoundaryFinder_BoundaryReasons(const QTextBoundaryFinder* self); -void QTextBoundaryFinder_Delete(QTextBoundaryFinder* self, bool isSubclass); +void QTextBoundaryFinder_Delete(QTextBoundaryFinder* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextbrowser.cpp b/qt/gen_qtextbrowser.cpp index 3aed4be4..6a054a35 100644 --- a/qt/gen_qtextbrowser.cpp +++ b/qt/gen_qtextbrowser.cpp @@ -81,13 +81,13 @@ void miqt_exec_callback_QTextBrowser_DoSetTextCursor(void*, intptr_t, QTextCurso } /* extern C */ #endif -class MiqtVirtualQTextBrowser : public virtual QTextBrowser { +class MiqtVirtualQTextBrowser final : public QTextBrowser { public: MiqtVirtualQTextBrowser(QWidget* parent): QTextBrowser(parent) {}; MiqtVirtualQTextBrowser(): QTextBrowser() {}; - virtual ~MiqtVirtualQTextBrowser() = default; + virtual ~MiqtVirtualQTextBrowser() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__LoadResource = 0; @@ -1472,11 +1472,7 @@ void QTextBrowser_virtualbase_DoSetTextCursor(void* self, QTextCursor* cursor) { ( (MiqtVirtualQTextBrowser*)(self) )->virtualbase_DoSetTextCursor(cursor); } -void QTextBrowser_Delete(QTextBrowser* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBrowser_Delete(QTextBrowser* self) { + delete self; } diff --git a/qt/gen_qtextbrowser.go b/qt/gen_qtextbrowser.go index b7ba889f..554d4623 100644 --- a/qt/gen_qtextbrowser.go +++ b/qt/gen_qtextbrowser.go @@ -1290,7 +1290,7 @@ func miqt_exec_callback_QTextBrowser_DoSetTextCursor(self *C.QTextBrowser, cb C. // Delete this object from C++ memory. func (this *QTextBrowser) Delete() { - C.QTextBrowser_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBrowser_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextbrowser.h b/qt/gen_qtextbrowser.h index 3e07e51b..864c652a 100644 --- a/qt/gen_qtextbrowser.h +++ b/qt/gen_qtextbrowser.h @@ -195,7 +195,7 @@ void QTextBrowser_override_virtual_ScrollContentsBy(void* self, intptr_t slot); void QTextBrowser_virtualbase_ScrollContentsBy(void* self, int dx, int dy); void QTextBrowser_override_virtual_DoSetTextCursor(void* self, intptr_t slot); void QTextBrowser_virtualbase_DoSetTextCursor(void* self, QTextCursor* cursor); -void QTextBrowser_Delete(QTextBrowser* self, bool isSubclass); +void QTextBrowser_Delete(QTextBrowser* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextcodec.cpp b/qt/gen_qtextcodec.cpp index 38ce32dd..80014cfc 100644 --- a/qt/gen_qtextcodec.cpp +++ b/qt/gen_qtextcodec.cpp @@ -251,12 +251,8 @@ bool QTextEncoder_HasFailure(const QTextEncoder* self) { return self->hasFailure(); } -void QTextEncoder_Delete(QTextEncoder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextEncoder_Delete(QTextEncoder* self) { + delete self; } QTextDecoder* QTextDecoder_new(QTextCodec* codec) { @@ -298,12 +294,8 @@ bool QTextDecoder_NeedsMoreData(const QTextDecoder* self) { return self->needsMoreData(); } -void QTextDecoder_Delete(QTextDecoder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextDecoder_Delete(QTextDecoder* self) { + delete self; } QTextCodec__ConverterState* QTextCodec__ConverterState_new() { @@ -314,11 +306,7 @@ QTextCodec__ConverterState* QTextCodec__ConverterState_new2(int f) { return new QTextCodec::ConverterState(static_cast(f)); } -void QTextCodec__ConverterState_Delete(QTextCodec__ConverterState* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextCodec__ConverterState_Delete(QTextCodec__ConverterState* self) { + delete self; } diff --git a/qt/gen_qtextcodec.go b/qt/gen_qtextcodec.go index 9755f383..284c8436 100644 --- a/qt/gen_qtextcodec.go +++ b/qt/gen_qtextcodec.go @@ -317,7 +317,7 @@ func (this *QTextEncoder) HasFailure() bool { // Delete this object from C++ memory. func (this *QTextEncoder) Delete() { - C.QTextEncoder_Delete(this.h, C.bool(this.isSubclass)) + C.QTextEncoder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -407,7 +407,7 @@ func (this *QTextDecoder) NeedsMoreData() bool { // Delete this object from C++ memory. func (this *QTextDecoder) Delete() { - C.QTextDecoder_Delete(this.h, C.bool(this.isSubclass)) + C.QTextDecoder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -470,7 +470,7 @@ func NewQTextCodec__ConverterState2(f QTextCodec__ConversionFlag) *QTextCodec__C // Delete this object from C++ memory. func (this *QTextCodec__ConverterState) Delete() { - C.QTextCodec__ConverterState_Delete(this.h, C.bool(this.isSubclass)) + C.QTextCodec__ConverterState_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextcodec.h b/qt/gen_qtextcodec.h index 543a8d20..81db2d3c 100644 --- a/qt/gen_qtextcodec.h +++ b/qt/gen_qtextcodec.h @@ -67,7 +67,7 @@ QTextEncoder* QTextEncoder_new2(QTextCodec* codec, int flags); struct miqt_string QTextEncoder_FromUnicode(QTextEncoder* self, struct miqt_string str); struct miqt_string QTextEncoder_FromUnicode2(QTextEncoder* self, QChar* uc, int lenVal); bool QTextEncoder_HasFailure(const QTextEncoder* self); -void QTextEncoder_Delete(QTextEncoder* self, bool isSubclass); +void QTextEncoder_Delete(QTextEncoder* self); QTextDecoder* QTextDecoder_new(QTextCodec* codec); QTextDecoder* QTextDecoder_new2(QTextCodec* codec, int flags); @@ -75,11 +75,11 @@ struct miqt_string QTextDecoder_ToUnicode(QTextDecoder* self, const char* chars, struct miqt_string QTextDecoder_ToUnicodeWithBa(QTextDecoder* self, struct miqt_string ba); bool QTextDecoder_HasFailure(const QTextDecoder* self); bool QTextDecoder_NeedsMoreData(const QTextDecoder* self); -void QTextDecoder_Delete(QTextDecoder* self, bool isSubclass); +void QTextDecoder_Delete(QTextDecoder* self); QTextCodec__ConverterState* QTextCodec__ConverterState_new(); QTextCodec__ConverterState* QTextCodec__ConverterState_new2(int f); -void QTextCodec__ConverterState_Delete(QTextCodec__ConverterState* self, bool isSubclass); +void QTextCodec__ConverterState_Delete(QTextCodec__ConverterState* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextcursor.cpp b/qt/gen_qtextcursor.cpp index b6ba5454..85fe88db 100644 --- a/qt/gen_qtextcursor.cpp +++ b/qt/gen_qtextcursor.cpp @@ -370,11 +370,7 @@ void QTextCursor_InsertImage2(QTextCursor* self, QImage* image, struct miqt_stri self->insertImage(*image, name_QString); } -void QTextCursor_Delete(QTextCursor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextCursor_Delete(QTextCursor* self) { + delete self; } diff --git a/qt/gen_qtextcursor.go b/qt/gen_qtextcursor.go index ecc39ddf..6e78d2ef 100644 --- a/qt/gen_qtextcursor.go +++ b/qt/gen_qtextcursor.go @@ -479,7 +479,7 @@ func (this *QTextCursor) InsertImage2(image *QImage, name string) { // Delete this object from C++ memory. func (this *QTextCursor) Delete() { - C.QTextCursor_Delete(this.h, C.bool(this.isSubclass)) + C.QTextCursor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextcursor.h b/qt/gen_qtextcursor.h index e32199e3..8550cc3a 100644 --- a/qt/gen_qtextcursor.h +++ b/qt/gen_qtextcursor.h @@ -129,7 +129,7 @@ void QTextCursor_SetPosition2(QTextCursor* self, int pos, int mode); bool QTextCursor_MovePosition2(QTextCursor* self, int op, int param2); bool QTextCursor_MovePosition3(QTextCursor* self, int op, int param2, int n); void QTextCursor_InsertImage2(QTextCursor* self, QImage* image, struct miqt_string name); -void QTextCursor_Delete(QTextCursor* self, bool isSubclass); +void QTextCursor_Delete(QTextCursor* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextdocument.cpp b/qt/gen_qtextdocument.cpp index 1e7e586b..044c5aad 100644 --- a/qt/gen_qtextdocument.cpp +++ b/qt/gen_qtextdocument.cpp @@ -71,15 +71,11 @@ void QAbstractUndoItem_OperatorAssign(QAbstractUndoItem* self, QAbstractUndoItem self->operator=(*param1); } -void QAbstractUndoItem_Delete(QAbstractUndoItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractUndoItem_Delete(QAbstractUndoItem* self) { + delete self; } -class MiqtVirtualQTextDocument : public virtual QTextDocument { +class MiqtVirtualQTextDocument final : public QTextDocument { public: MiqtVirtualQTextDocument(): QTextDocument() {}; @@ -87,7 +83,7 @@ public: MiqtVirtualQTextDocument(QObject* parent): QTextDocument(parent) {}; MiqtVirtualQTextDocument(const QString& text, QObject* parent): QTextDocument(text, parent) {}; - virtual ~MiqtVirtualQTextDocument() = default; + virtual ~MiqtVirtualQTextDocument() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clear = 0; @@ -1099,11 +1095,7 @@ void QTextDocument_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQTextDocument*)(self) )->virtualbase_DisconnectNotify(signal); } -void QTextDocument_Delete(QTextDocument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextDocument_Delete(QTextDocument* self) { + delete self; } diff --git a/qt/gen_qtextdocument.go b/qt/gen_qtextdocument.go index 1ad5b619..21c70b62 100644 --- a/qt/gen_qtextdocument.go +++ b/qt/gen_qtextdocument.go @@ -103,7 +103,7 @@ func (this *QAbstractUndoItem) OperatorAssign(param1 *QAbstractUndoItem) { // Delete this object from C++ memory. func (this *QAbstractUndoItem) Delete() { - C.QAbstractUndoItem_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractUndoItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1261,7 +1261,7 @@ func miqt_exec_callback_QTextDocument_DisconnectNotify(self *C.QTextDocument, cb // Delete this object from C++ memory. func (this *QTextDocument) Delete() { - C.QTextDocument_Delete(this.h, C.bool(this.isSubclass)) + C.QTextDocument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextdocument.h b/qt/gen_qtextdocument.h index b2c9bd7d..d31ede12 100644 --- a/qt/gen_qtextdocument.h +++ b/qt/gen_qtextdocument.h @@ -71,7 +71,7 @@ typedef struct QVariant QVariant; void QAbstractUndoItem_Undo(QAbstractUndoItem* self); void QAbstractUndoItem_Redo(QAbstractUndoItem* self); void QAbstractUndoItem_OperatorAssign(QAbstractUndoItem* self, QAbstractUndoItem* param1); -void QAbstractUndoItem_Delete(QAbstractUndoItem* self, bool isSubclass); +void QAbstractUndoItem_Delete(QAbstractUndoItem* self); QTextDocument* QTextDocument_new(); QTextDocument* QTextDocument_new2(struct miqt_string text); @@ -226,7 +226,7 @@ void QTextDocument_override_virtual_ConnectNotify(void* self, intptr_t slot); void QTextDocument_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QTextDocument_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QTextDocument_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QTextDocument_Delete(QTextDocument* self, bool isSubclass); +void QTextDocument_Delete(QTextDocument* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextdocumentfragment.cpp b/qt/gen_qtextdocumentfragment.cpp index 7d30dc1d..19bbcea6 100644 --- a/qt/gen_qtextdocumentfragment.cpp +++ b/qt/gen_qtextdocumentfragment.cpp @@ -89,11 +89,7 @@ struct miqt_string QTextDocumentFragment_ToHtml1(const QTextDocumentFragment* se return _ms; } -void QTextDocumentFragment_Delete(QTextDocumentFragment* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextDocumentFragment_Delete(QTextDocumentFragment* self) { + delete self; } diff --git a/qt/gen_qtextdocumentfragment.go b/qt/gen_qtextdocumentfragment.go index db37b2ee..4779d79e 100644 --- a/qt/gen_qtextdocumentfragment.go +++ b/qt/gen_qtextdocumentfragment.go @@ -142,7 +142,7 @@ func (this *QTextDocumentFragment) ToHtml1(encoding []byte) string { // Delete this object from C++ memory. func (this *QTextDocumentFragment) Delete() { - C.QTextDocumentFragment_Delete(this.h, C.bool(this.isSubclass)) + C.QTextDocumentFragment_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextdocumentfragment.h b/qt/gen_qtextdocumentfragment.h index df87cc7a..f5d9ecec 100644 --- a/qt/gen_qtextdocumentfragment.h +++ b/qt/gen_qtextdocumentfragment.h @@ -36,7 +36,7 @@ QTextDocumentFragment* QTextDocumentFragment_FromPlainText(struct miqt_string pl QTextDocumentFragment* QTextDocumentFragment_FromHtml(struct miqt_string html); QTextDocumentFragment* QTextDocumentFragment_FromHtml2(struct miqt_string html, QTextDocument* resourceProvider); struct miqt_string QTextDocumentFragment_ToHtml1(const QTextDocumentFragment* self, struct miqt_string encoding); -void QTextDocumentFragment_Delete(QTextDocumentFragment* self, bool isSubclass); +void QTextDocumentFragment_Delete(QTextDocumentFragment* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextdocumentwriter.cpp b/qt/gen_qtextdocumentwriter.cpp index c87d0509..3c4c67cf 100644 --- a/qt/gen_qtextdocumentwriter.cpp +++ b/qt/gen_qtextdocumentwriter.cpp @@ -111,11 +111,7 @@ struct miqt_array /* of struct miqt_string */ QTextDocumentWriter_SupportedDocu return _out; } -void QTextDocumentWriter_Delete(QTextDocumentWriter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextDocumentWriter_Delete(QTextDocumentWriter* self) { + delete self; } diff --git a/qt/gen_qtextdocumentwriter.go b/qt/gen_qtextdocumentwriter.go index 67612d06..3e730110 100644 --- a/qt/gen_qtextdocumentwriter.go +++ b/qt/gen_qtextdocumentwriter.go @@ -160,7 +160,7 @@ func QTextDocumentWriter_SupportedDocumentFormats() [][]byte { // Delete this object from C++ memory. func (this *QTextDocumentWriter) Delete() { - C.QTextDocumentWriter_Delete(this.h, C.bool(this.isSubclass)) + C.QTextDocumentWriter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextdocumentwriter.h b/qt/gen_qtextdocumentwriter.h index 7e5ac8b6..178d4f9f 100644 --- a/qt/gen_qtextdocumentwriter.h +++ b/qt/gen_qtextdocumentwriter.h @@ -43,7 +43,7 @@ bool QTextDocumentWriter_WriteWithFragment(QTextDocumentWriter* self, QTextDocum void QTextDocumentWriter_SetCodec(QTextDocumentWriter* self, QTextCodec* codec); QTextCodec* QTextDocumentWriter_Codec(const QTextDocumentWriter* self); struct miqt_array /* of struct miqt_string */ QTextDocumentWriter_SupportedDocumentFormats(); -void QTextDocumentWriter_Delete(QTextDocumentWriter* self, bool isSubclass); +void QTextDocumentWriter_Delete(QTextDocumentWriter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextedit.cpp b/qt/gen_qtextedit.cpp index 4485c648..89d2ec17 100644 --- a/qt/gen_qtextedit.cpp +++ b/qt/gen_qtextedit.cpp @@ -93,7 +93,7 @@ QSize* miqt_exec_callback_QTextEdit_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQTextEdit : public virtual QTextEdit { +class MiqtVirtualQTextEdit final : public QTextEdit { public: MiqtVirtualQTextEdit(QWidget* parent): QTextEdit(parent) {}; @@ -101,7 +101,7 @@ public: MiqtVirtualQTextEdit(const QString& text): QTextEdit(text) {}; MiqtVirtualQTextEdit(const QString& text, QWidget* parent): QTextEdit(text, parent) {}; - virtual ~MiqtVirtualQTextEdit() = default; + virtual ~MiqtVirtualQTextEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__LoadResource = 0; @@ -1881,12 +1881,8 @@ QSize* QTextEdit_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQTextEdit*)(self) )->virtualbase_ViewportSizeHint(); } -void QTextEdit_Delete(QTextEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextEdit_Delete(QTextEdit* self) { + delete self; } QTextEdit__ExtraSelection* QTextEdit__ExtraSelection_new(QTextEdit__ExtraSelection* param1) { @@ -1897,11 +1893,7 @@ void QTextEdit__ExtraSelection_OperatorAssign(QTextEdit__ExtraSelection* self, Q self->operator=(*param1); } -void QTextEdit__ExtraSelection_Delete(QTextEdit__ExtraSelection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextEdit__ExtraSelection_Delete(QTextEdit__ExtraSelection* self) { + delete self; } diff --git a/qt/gen_qtextedit.go b/qt/gen_qtextedit.go index f7288687..d1ea1ca2 100644 --- a/qt/gen_qtextedit.go +++ b/qt/gen_qtextedit.go @@ -1760,7 +1760,7 @@ func miqt_exec_callback_QTextEdit_ViewportSizeHint(self *C.QTextEdit, cb C.intpt // Delete this object from C++ memory. func (this *QTextEdit) Delete() { - C.QTextEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QTextEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1819,7 +1819,7 @@ func (this *QTextEdit__ExtraSelection) OperatorAssign(param1 *QTextEdit__ExtraSe // Delete this object from C++ memory. func (this *QTextEdit__ExtraSelection) Delete() { - C.QTextEdit__ExtraSelection_Delete(this.h, C.bool(this.isSubclass)) + C.QTextEdit__ExtraSelection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextedit.h b/qt/gen_qtextedit.h index bf1ff1c6..d881c487 100644 --- a/qt/gen_qtextedit.h +++ b/qt/gen_qtextedit.h @@ -322,11 +322,11 @@ void QTextEdit_override_virtual_ViewportEvent(void* self, intptr_t slot); bool QTextEdit_virtualbase_ViewportEvent(void* self, QEvent* param1); void QTextEdit_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QTextEdit_virtualbase_ViewportSizeHint(const void* self); -void QTextEdit_Delete(QTextEdit* self, bool isSubclass); +void QTextEdit_Delete(QTextEdit* self); QTextEdit__ExtraSelection* QTextEdit__ExtraSelection_new(QTextEdit__ExtraSelection* param1); void QTextEdit__ExtraSelection_OperatorAssign(QTextEdit__ExtraSelection* self, QTextEdit__ExtraSelection* param1); -void QTextEdit__ExtraSelection_Delete(QTextEdit__ExtraSelection* self, bool isSubclass); +void QTextEdit__ExtraSelection_Delete(QTextEdit__ExtraSelection* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextformat.cpp b/qt/gen_qtextformat.cpp index be3249de..df61aa6c 100644 --- a/qt/gen_qtextformat.cpp +++ b/qt/gen_qtextformat.cpp @@ -68,12 +68,8 @@ QVariant* QTextLength_ToQVariant(const QTextLength* self) { return new QVariant(self->operator QVariant()); } -void QTextLength_Delete(QTextLength* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextLength_Delete(QTextLength* self) { + delete self; } QTextFormat* QTextFormat_new() { @@ -330,12 +326,8 @@ void QTextFormat_ClearForeground(QTextFormat* self) { self->clearForeground(); } -void QTextFormat_Delete(QTextFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFormat_Delete(QTextFormat* self) { + delete self; } QTextCharFormat* QTextCharFormat_new() { @@ -683,12 +675,8 @@ void QTextCharFormat_SetFontStyleHint2(QTextCharFormat* self, int hint, int stra self->setFontStyleHint(static_cast(hint), static_cast(strategy)); } -void QTextCharFormat_Delete(QTextCharFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextCharFormat_Delete(QTextCharFormat* self) { + delete self; } QTextBlockFormat* QTextBlockFormat_new() { @@ -844,12 +832,8 @@ int QTextBlockFormat_Marker(const QTextBlockFormat* self) { return static_cast(_ret); } -void QTextBlockFormat_Delete(QTextBlockFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBlockFormat_Delete(QTextBlockFormat* self) { + delete self; } QTextListFormat* QTextListFormat_new() { @@ -917,12 +901,8 @@ struct miqt_string QTextListFormat_NumberSuffix(const QTextListFormat* self) { return _ms; } -void QTextListFormat_Delete(QTextListFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextListFormat_Delete(QTextListFormat* self) { + delete self; } QTextImageFormat* QTextImageFormat_new() { @@ -983,12 +963,8 @@ void QTextImageFormat_SetQuality1(QTextImageFormat* self, int quality) { self->setQuality(static_cast(quality)); } -void QTextImageFormat_Delete(QTextImageFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextImageFormat_Delete(QTextImageFormat* self) { + delete self; } QTextFrameFormat* QTextFrameFormat_new() { @@ -1129,12 +1105,8 @@ int QTextFrameFormat_PageBreakPolicy(const QTextFrameFormat* self) { return static_cast(_ret); } -void QTextFrameFormat_Delete(QTextFrameFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFrameFormat_Delete(QTextFrameFormat* self) { + delete self; } QTextTableFormat* QTextTableFormat_new() { @@ -1227,12 +1199,8 @@ bool QTextTableFormat_BorderCollapse(const QTextTableFormat* self) { return self->borderCollapse(); } -void QTextTableFormat_Delete(QTextTableFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextTableFormat_Delete(QTextTableFormat* self) { + delete self; } QTextTableCellFormat* QTextTableCellFormat_new() { @@ -1403,11 +1371,7 @@ void QTextTableCellFormat_SetBorderBrush(QTextTableCellFormat* self, QBrush* bru self->setBorderBrush(*brush); } -void QTextTableCellFormat_Delete(QTextTableCellFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextTableCellFormat_Delete(QTextTableCellFormat* self) { + delete self; } diff --git a/qt/gen_qtextformat.go b/qt/gen_qtextformat.go index 1fffbb7b..e92655b7 100644 --- a/qt/gen_qtextformat.go +++ b/qt/gen_qtextformat.go @@ -334,7 +334,7 @@ func (this *QTextLength) ToQVariant() *QVariant { // Delete this object from C++ memory. func (this *QTextLength) Delete() { - C.QTextLength_Delete(this.h, C.bool(this.isSubclass)) + C.QTextLength_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -669,7 +669,7 @@ func (this *QTextFormat) ClearForeground() { // Delete this object from C++ memory. func (this *QTextFormat) Delete() { - C.QTextFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1067,7 +1067,7 @@ func (this *QTextCharFormat) SetFontStyleHint2(hint QFont__StyleHint, strategy Q // Delete this object from C++ memory. func (this *QTextCharFormat) Delete() { - C.QTextCharFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextCharFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1264,7 +1264,7 @@ func (this *QTextBlockFormat) Marker() QTextBlockFormat__MarkerType { // Delete this object from C++ memory. func (this *QTextBlockFormat) Delete() { - C.QTextBlockFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBlockFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1381,7 +1381,7 @@ func (this *QTextListFormat) NumberSuffix() string { // Delete this object from C++ memory. func (this *QTextListFormat) Delete() { - C.QTextListFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextListFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1487,7 +1487,7 @@ func (this *QTextImageFormat) SetQuality1(quality int) { // Delete this object from C++ memory. func (this *QTextImageFormat) Delete() { - C.QTextImageFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextImageFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1676,7 +1676,7 @@ func (this *QTextFrameFormat) PageBreakPolicy() QTextFormat__PageBreakFlag { // Delete this object from C++ memory. func (this *QTextFrameFormat) Delete() { - C.QTextFrameFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFrameFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1813,7 +1813,7 @@ func (this *QTextTableFormat) BorderCollapse() bool { // Delete this object from C++ memory. func (this *QTextTableFormat) Delete() { - C.QTextTableFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextTableFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2028,7 +2028,7 @@ func (this *QTextTableCellFormat) SetBorderBrush(brush *QBrush) { // Delete this object from C++ memory. func (this *QTextTableCellFormat) Delete() { - C.QTextTableCellFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextTableCellFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextformat.h b/qt/gen_qtextformat.h index 56c01a36..d5697d2c 100644 --- a/qt/gen_qtextformat.h +++ b/qt/gen_qtextformat.h @@ -61,7 +61,7 @@ double QTextLength_RawValue(const QTextLength* self); bool QTextLength_OperatorEqual(const QTextLength* self, QTextLength* other); bool QTextLength_OperatorNotEqual(const QTextLength* self, QTextLength* other); QVariant* QTextLength_ToQVariant(const QTextLength* self); -void QTextLength_Delete(QTextLength* self, bool isSubclass); +void QTextLength_Delete(QTextLength* self); QTextFormat* QTextFormat_new(); QTextFormat* QTextFormat_new2(int typeVal); @@ -117,7 +117,7 @@ void QTextFormat_ClearBackground(QTextFormat* self); void QTextFormat_SetForeground(QTextFormat* self, QBrush* brush); QBrush* QTextFormat_Foreground(const QTextFormat* self); void QTextFormat_ClearForeground(QTextFormat* self); -void QTextFormat_Delete(QTextFormat* self, bool isSubclass); +void QTextFormat_Delete(QTextFormat* self); QTextCharFormat* QTextCharFormat_new(); QTextCharFormat* QTextCharFormat_new2(QTextCharFormat* param1); @@ -187,7 +187,7 @@ int QTextCharFormat_TableCellRowSpan(const QTextCharFormat* self); void QTextCharFormat_SetTableCellColumnSpan(QTextCharFormat* self, int tableCellColumnSpan); int QTextCharFormat_TableCellColumnSpan(const QTextCharFormat* self); void QTextCharFormat_SetFontStyleHint2(QTextCharFormat* self, int hint, int strategy); -void QTextCharFormat_Delete(QTextCharFormat* self, bool isSubclass); +void QTextCharFormat_Delete(QTextCharFormat* self); QTextBlockFormat* QTextBlockFormat_new(); QTextBlockFormat* QTextBlockFormat_new2(QTextBlockFormat* param1); @@ -221,7 +221,7 @@ void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array struct miqt_array /* of QTextOption__Tab* */ QTextBlockFormat_TabPositions(const QTextBlockFormat* self); void QTextBlockFormat_SetMarker(QTextBlockFormat* self, int marker); int QTextBlockFormat_Marker(const QTextBlockFormat* self); -void QTextBlockFormat_Delete(QTextBlockFormat* self, bool isSubclass); +void QTextBlockFormat_Delete(QTextBlockFormat* self); QTextListFormat* QTextListFormat_new(); QTextListFormat* QTextListFormat_new2(QTextListFormat* param1); @@ -235,7 +235,7 @@ void QTextListFormat_SetNumberPrefix(QTextListFormat* self, struct miqt_string n struct miqt_string QTextListFormat_NumberPrefix(const QTextListFormat* self); void QTextListFormat_SetNumberSuffix(QTextListFormat* self, struct miqt_string numberSuffix); struct miqt_string QTextListFormat_NumberSuffix(const QTextListFormat* self); -void QTextListFormat_Delete(QTextListFormat* self, bool isSubclass); +void QTextListFormat_Delete(QTextListFormat* self); QTextImageFormat* QTextImageFormat_new(); void QTextImageFormat_virtbase(QTextImageFormat* src, QTextCharFormat** outptr_QTextCharFormat); @@ -249,7 +249,7 @@ double QTextImageFormat_Height(const QTextImageFormat* self); void QTextImageFormat_SetQuality(QTextImageFormat* self); int QTextImageFormat_Quality(const QTextImageFormat* self); void QTextImageFormat_SetQuality1(QTextImageFormat* self, int quality); -void QTextImageFormat_Delete(QTextImageFormat* self, bool isSubclass); +void QTextImageFormat_Delete(QTextImageFormat* self); QTextFrameFormat* QTextFrameFormat_new(); QTextFrameFormat* QTextFrameFormat_new2(QTextFrameFormat* param1); @@ -283,7 +283,7 @@ void QTextFrameFormat_SetHeightWithHeight(QTextFrameFormat* self, QTextLength* h QTextLength* QTextFrameFormat_Height(const QTextFrameFormat* self); void QTextFrameFormat_SetPageBreakPolicy(QTextFrameFormat* self, int flags); int QTextFrameFormat_PageBreakPolicy(const QTextFrameFormat* self); -void QTextFrameFormat_Delete(QTextFrameFormat* self, bool isSubclass); +void QTextFrameFormat_Delete(QTextFrameFormat* self); QTextTableFormat* QTextTableFormat_new(); void QTextTableFormat_virtbase(QTextTableFormat* src, QTextFrameFormat** outptr_QTextFrameFormat); @@ -303,7 +303,7 @@ void QTextTableFormat_SetHeaderRowCount(QTextTableFormat* self, int count); int QTextTableFormat_HeaderRowCount(const QTextTableFormat* self); void QTextTableFormat_SetBorderCollapse(QTextTableFormat* self, bool borderCollapse); bool QTextTableFormat_BorderCollapse(const QTextTableFormat* self); -void QTextTableFormat_Delete(QTextTableFormat* self, bool isSubclass); +void QTextTableFormat_Delete(QTextTableFormat* self); QTextTableCellFormat* QTextTableCellFormat_new(); void QTextTableCellFormat_virtbase(QTextTableCellFormat* src, QTextCharFormat** outptr_QTextCharFormat); @@ -344,7 +344,7 @@ QBrush* QTextTableCellFormat_LeftBorderBrush(const QTextTableCellFormat* self); void QTextTableCellFormat_SetRightBorderBrush(QTextTableCellFormat* self, QBrush* brush); QBrush* QTextTableCellFormat_RightBorderBrush(const QTextTableCellFormat* self); void QTextTableCellFormat_SetBorderBrush(QTextTableCellFormat* self, QBrush* brush); -void QTextTableCellFormat_Delete(QTextTableCellFormat* self, bool isSubclass); +void QTextTableCellFormat_Delete(QTextTableCellFormat* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextlayout.cpp b/qt/gen_qtextlayout.cpp index 1b49a4ad..d20f10b7 100644 --- a/qt/gen_qtextlayout.cpp +++ b/qt/gen_qtextlayout.cpp @@ -88,12 +88,8 @@ QTextFormat* QTextInlineObject_Format(const QTextInlineObject* self) { return new QTextFormat(self->format()); } -void QTextInlineObject_Delete(QTextInlineObject* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextInlineObject_Delete(QTextInlineObject* self) { + delete self; } QTextLayout* QTextLayout_new() { @@ -401,12 +397,8 @@ struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns2(const QTextLayout* return _out; } -void QTextLayout_Delete(QTextLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextLayout_Delete(QTextLayout* self) { + delete self; } QTextLine* QTextLine_new() { @@ -585,19 +577,11 @@ struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns2(const QTextLine* sel return _out; } -void QTextLine_Delete(QTextLine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextLine_Delete(QTextLine* self) { + delete self; } -void QTextLayout__FormatRange_Delete(QTextLayout__FormatRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextLayout__FormatRange_Delete(QTextLayout__FormatRange* self) { + delete self; } diff --git a/qt/gen_qtextlayout.go b/qt/gen_qtextlayout.go index a91f702b..352b66df 100644 --- a/qt/gen_qtextlayout.go +++ b/qt/gen_qtextlayout.go @@ -133,7 +133,7 @@ func (this *QTextInlineObject) Format() *QTextFormat { // Delete this object from C++ memory. func (this *QTextInlineObject) Delete() { - C.QTextInlineObject_Delete(this.h, C.bool(this.isSubclass)) + C.QTextInlineObject_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -514,7 +514,7 @@ func (this *QTextLayout) GlyphRuns2(from int, length int) []QGlyphRun { // Delete this object from C++ memory. func (this *QTextLayout) Delete() { - C.QTextLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QTextLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -731,7 +731,7 @@ func (this *QTextLine) GlyphRuns2(from int, length int) []QGlyphRun { // Delete this object from C++ memory. func (this *QTextLine) Delete() { - C.QTextLine_Delete(this.h, C.bool(this.isSubclass)) + C.QTextLine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -778,7 +778,7 @@ func UnsafeNewQTextLayout__FormatRange(h unsafe.Pointer) *QTextLayout__FormatRan // Delete this object from C++ memory. func (this *QTextLayout__FormatRange) Delete() { - C.QTextLayout__FormatRange_Delete(this.h, C.bool(this.isSubclass)) + C.QTextLayout__FormatRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextlayout.h b/qt/gen_qtextlayout.h index 3d643d27..34e42c75 100644 --- a/qt/gen_qtextlayout.h +++ b/qt/gen_qtextlayout.h @@ -64,7 +64,7 @@ void QTextInlineObject_SetDescent(QTextInlineObject* self, double d); int QTextInlineObject_TextPosition(const QTextInlineObject* self); int QTextInlineObject_FormatIndex(const QTextInlineObject* self); QTextFormat* QTextInlineObject_Format(const QTextInlineObject* self); -void QTextInlineObject_Delete(QTextInlineObject* self, bool isSubclass); +void QTextInlineObject_Delete(QTextInlineObject* self); QTextLayout* QTextLayout_new(); QTextLayout* QTextLayout_new2(struct miqt_string text); @@ -119,7 +119,7 @@ void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struc void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections, QRectF* clip); struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns1(const QTextLayout* self, int from); struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns2(const QTextLayout* self, int from, int length); -void QTextLayout_Delete(QTextLayout* self, bool isSubclass); +void QTextLayout_Delete(QTextLayout* self); QTextLine* QTextLine_new(); bool QTextLine_IsValid(const QTextLine* self); @@ -155,9 +155,9 @@ int QTextLine_XToCursor2(const QTextLine* self, double x, int param2); void QTextLine_Draw3(const QTextLine* self, QPainter* p, QPointF* point, QTextLayout__FormatRange* selection); struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns1(const QTextLine* self, int from); struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns2(const QTextLine* self, int from, int length); -void QTextLine_Delete(QTextLine* self, bool isSubclass); +void QTextLine_Delete(QTextLine* self); -void QTextLayout__FormatRange_Delete(QTextLayout__FormatRange* self, bool isSubclass); +void QTextLayout__FormatRange_Delete(QTextLayout__FormatRange* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextlist.cpp b/qt/gen_qtextlist.cpp index d24ec1ee..a1506aef 100644 --- a/qt/gen_qtextlist.cpp +++ b/qt/gen_qtextlist.cpp @@ -23,12 +23,12 @@ void miqt_exec_callback_QTextList_BlockFormatChanged(void*, intptr_t, QTextBlock } /* extern C */ #endif -class MiqtVirtualQTextList : public virtual QTextList { +class MiqtVirtualQTextList final : public QTextList { public: MiqtVirtualQTextList(QTextDocument* doc): QTextList(doc) {}; - virtual ~MiqtVirtualQTextList() = default; + virtual ~MiqtVirtualQTextList() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BlockInserted = 0; @@ -263,11 +263,7 @@ void QTextList_virtualbase_BlockFormatChanged(void* self, QTextBlock* block) { ( (MiqtVirtualQTextList*)(self) )->virtualbase_BlockFormatChanged(block); } -void QTextList_Delete(QTextList* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextList_Delete(QTextList* self) { + delete self; } diff --git a/qt/gen_qtextlist.go b/qt/gen_qtextlist.go index 78cfdf86..12440624 100644 --- a/qt/gen_qtextlist.go +++ b/qt/gen_qtextlist.go @@ -258,7 +258,7 @@ func miqt_exec_callback_QTextList_BlockFormatChanged(self *C.QTextList, cb C.int // Delete this object from C++ memory. func (this *QTextList) Delete() { - C.QTextList_Delete(this.h, C.bool(this.isSubclass)) + C.QTextList_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextlist.h b/qt/gen_qtextlist.h index 1a7da334..44706ae5 100644 --- a/qt/gen_qtextlist.h +++ b/qt/gen_qtextlist.h @@ -60,7 +60,7 @@ void QTextList_override_virtual_BlockRemoved(void* self, intptr_t slot); void QTextList_virtualbase_BlockRemoved(void* self, QTextBlock* block); void QTextList_override_virtual_BlockFormatChanged(void* self, intptr_t slot); void QTextList_virtualbase_BlockFormatChanged(void* self, QTextBlock* block); -void QTextList_Delete(QTextList* self, bool isSubclass); +void QTextList_Delete(QTextList* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextobject.cpp b/qt/gen_qtextobject.cpp index 232847e9..094e97ea 100644 --- a/qt/gen_qtextobject.cpp +++ b/qt/gen_qtextobject.cpp @@ -210,12 +210,8 @@ void QTextFrameLayoutData_OperatorAssign(QTextFrameLayoutData* self, QTextFrameL self->operator=(*param1); } -void QTextFrameLayoutData_Delete(QTextFrameLayoutData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFrameLayoutData_Delete(QTextFrameLayoutData* self) { + delete self; } QTextFrame* QTextFrame_new(QTextDocument* doc) { @@ -357,24 +353,16 @@ struct miqt_string QTextFrame_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QTextFrame_Delete(QTextFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFrame_Delete(QTextFrame* self) { + delete self; } void QTextBlockUserData_OperatorAssign(QTextBlockUserData* self, QTextBlockUserData* param1) { self->operator=(*param1); } -void QTextBlockUserData_Delete(QTextBlockUserData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBlockUserData_Delete(QTextBlockUserData* self) { + delete self; } QTextBlock* QTextBlock_new() { @@ -546,12 +534,8 @@ int QTextBlock_FragmentIndex(const QTextBlock* self) { return self->fragmentIndex(); } -void QTextBlock_Delete(QTextBlock* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBlock_Delete(QTextBlock* self) { + delete self; } QTextFragment* QTextFragment_new() { @@ -652,12 +636,8 @@ struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns2(const QTextFragm return _out; } -void QTextFragment_Delete(QTextFragment* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFragment_Delete(QTextFragment* self) { + delete self; } QTextFrame__iterator* QTextFrame__iterator_new() { @@ -716,12 +696,8 @@ QTextFrame__iterator* QTextFrame__iterator_OperatorMinusMinusWithInt(QTextFrame_ return new QTextFrame::iterator(self->operator--(static_cast(param1))); } -void QTextFrame__iterator_Delete(QTextFrame__iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFrame__iterator_Delete(QTextFrame__iterator* self) { + delete self; } QTextBlock__iterator* QTextBlock__iterator_new() { @@ -772,11 +748,7 @@ QTextBlock__iterator* QTextBlock__iterator_OperatorMinusMinusWithInt(QTextBlock_ return new QTextBlock::iterator(self->operator--(static_cast(param1))); } -void QTextBlock__iterator_Delete(QTextBlock__iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBlock__iterator_Delete(QTextBlock__iterator* self) { + delete self; } diff --git a/qt/gen_qtextobject.go b/qt/gen_qtextobject.go index 0a7b6028..c3161e94 100644 --- a/qt/gen_qtextobject.go +++ b/qt/gen_qtextobject.go @@ -288,7 +288,7 @@ func (this *QTextFrameLayoutData) OperatorAssign(param1 *QTextFrameLayoutData) { // Delete this object from C++ memory. func (this *QTextFrameLayoutData) Delete() { - C.QTextFrameLayoutData_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFrameLayoutData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -483,7 +483,7 @@ func QTextFrame_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QTextFrame) Delete() { - C.QTextFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -534,7 +534,7 @@ func (this *QTextBlockUserData) OperatorAssign(param1 *QTextBlockUserData) { // Delete this object from C++ memory. func (this *QTextBlockUserData) Delete() { - C.QTextBlockUserData_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBlockUserData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -764,7 +764,7 @@ func (this *QTextBlock) FragmentIndex() int { // Delete this object from C++ memory. func (this *QTextBlock) Delete() { - C.QTextBlock_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBlock_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -912,7 +912,7 @@ func (this *QTextFragment) GlyphRuns2(from int, length int) []QGlyphRun { // Delete this object from C++ memory. func (this *QTextFragment) Delete() { - C.QTextFragment_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFragment_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1025,7 +1025,7 @@ func (this *QTextFrame__iterator) OperatorMinusMinusWithInt(param1 int) *QTextFr // Delete this object from C++ memory. func (this *QTextFrame__iterator) Delete() { - C.QTextFrame__iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFrame__iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1130,7 +1130,7 @@ func (this *QTextBlock__iterator) OperatorMinusMinusWithInt(param1 int) *QTextBl // Delete this object from C++ memory. func (this *QTextBlock__iterator) Delete() { - C.QTextBlock__iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBlock__iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextobject.h b/qt/gen_qtextobject.h index 11f2308a..b238a122 100644 --- a/qt/gen_qtextobject.h +++ b/qt/gen_qtextobject.h @@ -100,7 +100,7 @@ struct miqt_string QTextBlockGroup_TrUtf82(const char* s, const char* c); struct miqt_string QTextBlockGroup_TrUtf83(const char* s, const char* c, int n); void QTextFrameLayoutData_OperatorAssign(QTextFrameLayoutData* self, QTextFrameLayoutData* param1); -void QTextFrameLayoutData_Delete(QTextFrameLayoutData* self, bool isSubclass); +void QTextFrameLayoutData_Delete(QTextFrameLayoutData* self); QTextFrame* QTextFrame_new(QTextDocument* doc); void QTextFrame_virtbase(QTextFrame* src, QTextObject** outptr_QTextObject); @@ -124,10 +124,10 @@ struct miqt_string QTextFrame_Tr2(const char* s, const char* c); struct miqt_string QTextFrame_Tr3(const char* s, const char* c, int n); struct miqt_string QTextFrame_TrUtf82(const char* s, const char* c); struct miqt_string QTextFrame_TrUtf83(const char* s, const char* c, int n); -void QTextFrame_Delete(QTextFrame* self, bool isSubclass); +void QTextFrame_Delete(QTextFrame* self); void QTextBlockUserData_OperatorAssign(QTextBlockUserData* self, QTextBlockUserData* param1); -void QTextBlockUserData_Delete(QTextBlockUserData* self, bool isSubclass); +void QTextBlockUserData_Delete(QTextBlockUserData* self); QTextBlock* QTextBlock_new(); QTextBlock* QTextBlock_new2(QTextBlock* o); @@ -167,7 +167,7 @@ QTextBlock__iterator* QTextBlock_End(const QTextBlock* self); QTextBlock* QTextBlock_Next(const QTextBlock* self); QTextBlock* QTextBlock_Previous(const QTextBlock* self); int QTextBlock_FragmentIndex(const QTextBlock* self); -void QTextBlock_Delete(QTextBlock* self, bool isSubclass); +void QTextBlock_Delete(QTextBlock* self); QTextFragment* QTextFragment_new(); QTextFragment* QTextFragment_new2(QTextFragment* o); @@ -185,7 +185,7 @@ struct miqt_string QTextFragment_Text(const QTextFragment* self); struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns(const QTextFragment* self); struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns1(const QTextFragment* self, int from); struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns2(const QTextFragment* self, int from, int length); -void QTextFragment_Delete(QTextFragment* self, bool isSubclass); +void QTextFragment_Delete(QTextFragment* self); QTextFrame__iterator* QTextFrame__iterator_new(); QTextFrame__iterator* QTextFrame__iterator_new2(QTextFrame__iterator* o); @@ -200,7 +200,7 @@ QTextFrame__iterator* QTextFrame__iterator_OperatorPlusPlus(QTextFrame__iterator QTextFrame__iterator* QTextFrame__iterator_OperatorPlusPlusWithInt(QTextFrame__iterator* self, int param1); QTextFrame__iterator* QTextFrame__iterator_OperatorMinusMinus(QTextFrame__iterator* self); QTextFrame__iterator* QTextFrame__iterator_OperatorMinusMinusWithInt(QTextFrame__iterator* self, int param1); -void QTextFrame__iterator_Delete(QTextFrame__iterator* self, bool isSubclass); +void QTextFrame__iterator_Delete(QTextFrame__iterator* self); QTextBlock__iterator* QTextBlock__iterator_new(); QTextBlock__iterator* QTextBlock__iterator_new2(QTextBlock__iterator* o); @@ -213,7 +213,7 @@ QTextBlock__iterator* QTextBlock__iterator_OperatorPlusPlus(QTextBlock__iterator QTextBlock__iterator* QTextBlock__iterator_OperatorPlusPlusWithInt(QTextBlock__iterator* self, int param1); QTextBlock__iterator* QTextBlock__iterator_OperatorMinusMinus(QTextBlock__iterator* self); QTextBlock__iterator* QTextBlock__iterator_OperatorMinusMinusWithInt(QTextBlock__iterator* self, int param1); -void QTextBlock__iterator_Delete(QTextBlock__iterator* self, bool isSubclass); +void QTextBlock__iterator_Delete(QTextBlock__iterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextoption.cpp b/qt/gen_qtextoption.cpp index a86cec3c..3c3ef24f 100644 --- a/qt/gen_qtextoption.cpp +++ b/qt/gen_qtextoption.cpp @@ -137,12 +137,8 @@ bool QTextOption_UseDesignMetrics(const QTextOption* self) { return self->useDesignMetrics(); } -void QTextOption_Delete(QTextOption* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextOption_Delete(QTextOption* self) { + delete self; } QTextOption__Tab* QTextOption__Tab_new() { @@ -169,11 +165,7 @@ bool QTextOption__Tab_OperatorNotEqual(const QTextOption__Tab* self, QTextOption return (*self != *other); } -void QTextOption__Tab_Delete(QTextOption__Tab* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextOption__Tab_Delete(QTextOption__Tab* self) { + delete self; } diff --git a/qt/gen_qtextoption.go b/qt/gen_qtextoption.go index d676f48e..80ce39de 100644 --- a/qt/gen_qtextoption.go +++ b/qt/gen_qtextoption.go @@ -203,7 +203,7 @@ func (this *QTextOption) UseDesignMetrics() bool { // Delete this object from C++ memory. func (this *QTextOption) Delete() { - C.QTextOption_Delete(this.h, C.bool(this.isSubclass)) + C.QTextOption_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -290,7 +290,7 @@ func (this *QTextOption__Tab) OperatorNotEqual(other *QTextOption__Tab) bool { // Delete this object from C++ memory. func (this *QTextOption__Tab) Delete() { - C.QTextOption__Tab_Delete(this.h, C.bool(this.isSubclass)) + C.QTextOption__Tab_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextoption.h b/qt/gen_qtextoption.h index 3fd0dfdb..d5a7c28a 100644 --- a/qt/gen_qtextoption.h +++ b/qt/gen_qtextoption.h @@ -50,7 +50,7 @@ void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption_ struct miqt_array /* of QTextOption__Tab* */ QTextOption_Tabs(const QTextOption* self); void QTextOption_SetUseDesignMetrics(QTextOption* self, bool b); bool QTextOption_UseDesignMetrics(const QTextOption* self); -void QTextOption_Delete(QTextOption* self, bool isSubclass); +void QTextOption_Delete(QTextOption* self); QTextOption__Tab* QTextOption__Tab_new(); QTextOption__Tab* QTextOption__Tab_new2(double pos, int tabType); @@ -58,7 +58,7 @@ QTextOption__Tab* QTextOption__Tab_new3(QTextOption__Tab* param1); QTextOption__Tab* QTextOption__Tab_new4(double pos, int tabType, QChar* delim); bool QTextOption__Tab_OperatorEqual(const QTextOption__Tab* self, QTextOption__Tab* other); bool QTextOption__Tab_OperatorNotEqual(const QTextOption__Tab* self, QTextOption__Tab* other); -void QTextOption__Tab_Delete(QTextOption__Tab* self, bool isSubclass); +void QTextOption__Tab_Delete(QTextOption__Tab* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtextstream.cpp b/qt/gen_qtextstream.cpp index b77ea3e8..8588c6a3 100644 --- a/qt/gen_qtextstream.cpp +++ b/qt/gen_qtextstream.cpp @@ -422,11 +422,7 @@ struct miqt_string QTextStream_ReadLine1(QTextStream* self, long long maxlen) { return _ms; } -void QTextStream_Delete(QTextStream* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextStream_Delete(QTextStream* self) { + delete self; } diff --git a/qt/gen_qtextstream.go b/qt/gen_qtextstream.go index d2d999c2..c7a1177a 100644 --- a/qt/gen_qtextstream.go +++ b/qt/gen_qtextstream.go @@ -441,7 +441,7 @@ func (this *QTextStream) ReadLine1(maxlen int64) string { // Delete this object from C++ memory. func (this *QTextStream) Delete() { - C.QTextStream_Delete(this.h, C.bool(this.isSubclass)) + C.QTextStream_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtextstream.h b/qt/gen_qtextstream.h index 926171f4..d2182584 100644 --- a/qt/gen_qtextstream.h +++ b/qt/gen_qtextstream.h @@ -102,7 +102,7 @@ QTextStream* QTextStream_OperatorShiftLeftWithArray(QTextStream* self, struct mi QTextStream* QTextStream_OperatorShiftLeftWithChar(QTextStream* self, const char* c); QTextStream* QTextStream_OperatorShiftLeftWithPtr(QTextStream* self, const void* ptr); struct miqt_string QTextStream_ReadLine1(QTextStream* self, long long maxlen); -void QTextStream_Delete(QTextStream* self, bool isSubclass); +void QTextStream_Delete(QTextStream* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtexttable.cpp b/qt/gen_qtexttable.cpp index a66329be..e09bf3c0 100644 --- a/qt/gen_qtexttable.cpp +++ b/qt/gen_qtexttable.cpp @@ -99,12 +99,8 @@ int QTextTableCell_TableCellFormatIndex(const QTextTableCell* self) { return self->tableCellFormatIndex(); } -void QTextTableCell_Delete(QTextTableCell* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextTableCell_Delete(QTextTableCell* self) { + delete self; } QTextTable* QTextTable_new(QTextDocument* doc) { @@ -265,11 +261,7 @@ struct miqt_string QTextTable_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QTextTable_Delete(QTextTable* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextTable_Delete(QTextTable* self) { + delete self; } diff --git a/qt/gen_qtexttable.go b/qt/gen_qtexttable.go index 72540f46..98b18f58 100644 --- a/qt/gen_qtexttable.go +++ b/qt/gen_qtexttable.go @@ -142,7 +142,7 @@ func (this *QTextTableCell) TableCellFormatIndex() int { // Delete this object from C++ memory. func (this *QTextTableCell) Delete() { - C.QTextTableCell_Delete(this.h, C.bool(this.isSubclass)) + C.QTextTableCell_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -361,7 +361,7 @@ func QTextTable_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QTextTable) Delete() { - C.QTextTable_Delete(this.h, C.bool(this.isSubclass)) + C.QTextTable_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtexttable.h b/qt/gen_qtexttable.h index 212d9070..ee13b8ee 100644 --- a/qt/gen_qtexttable.h +++ b/qt/gen_qtexttable.h @@ -63,7 +63,7 @@ bool QTextTableCell_OperatorNotEqual(const QTextTableCell* self, QTextTableCell* QTextFrame__iterator* QTextTableCell_Begin(const QTextTableCell* self); QTextFrame__iterator* QTextTableCell_End(const QTextTableCell* self); int QTextTableCell_TableCellFormatIndex(const QTextTableCell* self); -void QTextTableCell_Delete(QTextTableCell* self, bool isSubclass); +void QTextTableCell_Delete(QTextTableCell* self); QTextTable* QTextTable_new(QTextDocument* doc); void QTextTable_virtbase(QTextTable* src, QTextFrame** outptr_QTextFrame); @@ -94,7 +94,7 @@ struct miqt_string QTextTable_Tr2(const char* s, const char* c); struct miqt_string QTextTable_Tr3(const char* s, const char* c, int n); struct miqt_string QTextTable_TrUtf82(const char* s, const char* c); struct miqt_string QTextTable_TrUtf83(const char* s, const char* c, int n); -void QTextTable_Delete(QTextTable* self, bool isSubclass); +void QTextTable_Delete(QTextTable* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qthread.cpp b/qt/gen_qthread.cpp index 835d58b4..fb1ecc29 100644 --- a/qt/gen_qthread.cpp +++ b/qt/gen_qthread.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QThread_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQThread : public virtual QThread { +class MiqtVirtualQThread final : public QThread { public: MiqtVirtualQThread(): QThread() {}; MiqtVirtualQThread(QObject* parent): QThread(parent) {}; - virtual ~MiqtVirtualQThread() = default; + virtual ~MiqtVirtualQThread() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -498,11 +498,7 @@ void QThread_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQThread*)(self) )->virtualbase_DisconnectNotify(signal); } -void QThread_Delete(QThread* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QThread_Delete(QThread* self) { + delete self; } diff --git a/qt/gen_qthread.go b/qt/gen_qthread.go index d33e9e51..694af8e2 100644 --- a/qt/gen_qthread.go +++ b/qt/gen_qthread.go @@ -477,7 +477,7 @@ func miqt_exec_callback_QThread_DisconnectNotify(self *C.QThread, cb C.intptr_t, // Delete this object from C++ memory. func (this *QThread) Delete() { - C.QThread_Delete(this.h, C.bool(this.isSubclass)) + C.QThread_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qthread.h b/qt/gen_qthread.h index d794c654..5a6880c4 100644 --- a/qt/gen_qthread.h +++ b/qt/gen_qthread.h @@ -92,7 +92,7 @@ void QThread_override_virtual_ConnectNotify(void* self, intptr_t slot); void QThread_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QThread_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QThread_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QThread_Delete(QThread* self, bool isSubclass); +void QThread_Delete(QThread* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qthreadpool.cpp b/qt/gen_qthreadpool.cpp index 87c711e6..b1f75173 100644 --- a/qt/gen_qthreadpool.cpp +++ b/qt/gen_qthreadpool.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QThreadPool_DisconnectNotify(void*, intptr_t, QMetaMetho } /* extern C */ #endif -class MiqtVirtualQThreadPool : public virtual QThreadPool { +class MiqtVirtualQThreadPool final : public QThreadPool { public: MiqtVirtualQThreadPool(): QThreadPool() {}; MiqtVirtualQThreadPool(QObject* parent): QThreadPool(parent) {}; - virtual ~MiqtVirtualQThreadPool() = default; + virtual ~MiqtVirtualQThreadPool() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -428,11 +428,7 @@ void QThreadPool_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQThreadPool*)(self) )->virtualbase_DisconnectNotify(signal); } -void QThreadPool_Delete(QThreadPool* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QThreadPool_Delete(QThreadPool* self) { + delete self; } diff --git a/qt/gen_qthreadpool.go b/qt/gen_qthreadpool.go index 3b20f246..f14b270f 100644 --- a/qt/gen_qthreadpool.go +++ b/qt/gen_qthreadpool.go @@ -405,7 +405,7 @@ func miqt_exec_callback_QThreadPool_DisconnectNotify(self *C.QThreadPool, cb C.i // Delete this object from C++ memory. func (this *QThreadPool) Delete() { - C.QThreadPool_Delete(this.h, C.bool(this.isSubclass)) + C.QThreadPool_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qthreadpool.h b/qt/gen_qthreadpool.h index aaacdcf7..4bea0a1b 100644 --- a/qt/gen_qthreadpool.h +++ b/qt/gen_qthreadpool.h @@ -80,7 +80,7 @@ void QThreadPool_override_virtual_ConnectNotify(void* self, intptr_t slot); void QThreadPool_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QThreadPool_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QThreadPool_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QThreadPool_Delete(QThreadPool* self, bool isSubclass); +void QThreadPool_Delete(QThreadPool* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qthreadstorage.cpp b/qt/gen_qthreadstorage.cpp index 33d079b9..6595a9eb 100644 --- a/qt/gen_qthreadstorage.cpp +++ b/qt/gen_qthreadstorage.cpp @@ -14,11 +14,7 @@ QThreadStorageData* QThreadStorageData_new(QThreadStorageData* param1) { return new QThreadStorageData(*param1); } -void QThreadStorageData_Delete(QThreadStorageData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QThreadStorageData_Delete(QThreadStorageData* self) { + delete self; } diff --git a/qt/gen_qthreadstorage.go b/qt/gen_qthreadstorage.go index 09872659..8e9a67a7 100644 --- a/qt/gen_qthreadstorage.go +++ b/qt/gen_qthreadstorage.go @@ -56,7 +56,7 @@ func NewQThreadStorageData(param1 *QThreadStorageData) *QThreadStorageData { // Delete this object from C++ memory. func (this *QThreadStorageData) Delete() { - C.QThreadStorageData_Delete(this.h, C.bool(this.isSubclass)) + C.QThreadStorageData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qthreadstorage.h b/qt/gen_qthreadstorage.h index 84c71108..571f3356 100644 --- a/qt/gen_qthreadstorage.h +++ b/qt/gen_qthreadstorage.h @@ -21,7 +21,7 @@ typedef struct QThreadStorageData QThreadStorageData; #endif QThreadStorageData* QThreadStorageData_new(QThreadStorageData* param1); -void QThreadStorageData_Delete(QThreadStorageData* self, bool isSubclass); +void QThreadStorageData_Delete(QThreadStorageData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtimeline.cpp b/qt/gen_qtimeline.cpp index 1abc5ef2..5d66be12 100644 --- a/qt/gen_qtimeline.cpp +++ b/qt/gen_qtimeline.cpp @@ -28,14 +28,14 @@ void miqt_exec_callback_QTimeLine_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQTimeLine : public virtual QTimeLine { +class MiqtVirtualQTimeLine final : public QTimeLine { public: MiqtVirtualQTimeLine(): QTimeLine() {}; MiqtVirtualQTimeLine(int duration): QTimeLine(duration) {}; MiqtVirtualQTimeLine(int duration, QObject* parent): QTimeLine(duration, parent) {}; - virtual ~MiqtVirtualQTimeLine() = default; + virtual ~MiqtVirtualQTimeLine() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ValueForTime = 0; @@ -509,11 +509,7 @@ void QTimeLine_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTimeLine*)(self) )->virtualbase_DisconnectNotify(signal); } -void QTimeLine_Delete(QTimeLine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimeLine_Delete(QTimeLine* self) { + delete self; } diff --git a/qt/gen_qtimeline.go b/qt/gen_qtimeline.go index 0e7b958f..3aae7f54 100644 --- a/qt/gen_qtimeline.go +++ b/qt/gen_qtimeline.go @@ -509,7 +509,7 @@ func miqt_exec_callback_QTimeLine_DisconnectNotify(self *C.QTimeLine, cb C.intpt // Delete this object from C++ memory. func (this *QTimeLine) Delete() { - C.QTimeLine_Delete(this.h, C.bool(this.isSubclass)) + C.QTimeLine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtimeline.h b/qt/gen_qtimeline.h index 36c15571..dc5e295a 100644 --- a/qt/gen_qtimeline.h +++ b/qt/gen_qtimeline.h @@ -92,7 +92,7 @@ void QTimeLine_override_virtual_ConnectNotify(void* self, intptr_t slot); void QTimeLine_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QTimeLine_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QTimeLine_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QTimeLine_Delete(QTimeLine* self, bool isSubclass); +void QTimeLine_Delete(QTimeLine* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtimer.cpp b/qt/gen_qtimer.cpp index 20079d83..f72f4eaf 100644 --- a/qt/gen_qtimer.cpp +++ b/qt/gen_qtimer.cpp @@ -26,13 +26,13 @@ void miqt_exec_callback_QTimer_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQTimer : public virtual QTimer { +class MiqtVirtualQTimer final : public QTimer { public: MiqtVirtualQTimer(): QTimer() {}; MiqtVirtualQTimer(QObject* parent): QTimer(parent) {}; - virtual ~MiqtVirtualQTimer() = default; + virtual ~MiqtVirtualQTimer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__TimerEvent = 0; @@ -398,11 +398,7 @@ void QTimer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTimer*)(self) )->virtualbase_DisconnectNotify(signal); } -void QTimer_Delete(QTimer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimer_Delete(QTimer* self) { + delete self; } diff --git a/qt/gen_qtimer.go b/qt/gen_qtimer.go index dff39c1c..291a3d4b 100644 --- a/qt/gen_qtimer.go +++ b/qt/gen_qtimer.go @@ -377,7 +377,7 @@ func miqt_exec_callback_QTimer_DisconnectNotify(self *C.QTimer, cb C.intptr_t, s // Delete this object from C++ memory. func (this *QTimer) Delete() { - C.QTimer_Delete(this.h, C.bool(this.isSubclass)) + C.QTimer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtimer.h b/qt/gen_qtimer.h index fd5875f0..f2a7a08c 100644 --- a/qt/gen_qtimer.h +++ b/qt/gen_qtimer.h @@ -70,7 +70,7 @@ void QTimer_override_virtual_ConnectNotify(void* self, intptr_t slot); void QTimer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QTimer_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QTimer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QTimer_Delete(QTimer* self, bool isSubclass); +void QTimer_Delete(QTimer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtimezone.cpp b/qt/gen_qtimezone.cpp index 45c12b2d..5738ae89 100644 --- a/qt/gen_qtimezone.cpp +++ b/qt/gen_qtimezone.cpp @@ -364,12 +364,8 @@ struct miqt_string QTimeZone_DisplayName32(const QTimeZone* self, int timeType, return _ms; } -void QTimeZone_Delete(QTimeZone* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimeZone_Delete(QTimeZone* self) { + delete self; } QTimeZone__OffsetData* QTimeZone__OffsetData_new(QTimeZone__OffsetData* param1) { @@ -380,11 +376,7 @@ void QTimeZone__OffsetData_OperatorAssign(QTimeZone__OffsetData* self, QTimeZone self->operator=(*param1); } -void QTimeZone__OffsetData_Delete(QTimeZone__OffsetData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimeZone__OffsetData_Delete(QTimeZone__OffsetData* self) { + delete self; } diff --git a/qt/gen_qtimezone.go b/qt/gen_qtimezone.go index b73a6151..0c3bd540 100644 --- a/qt/gen_qtimezone.go +++ b/qt/gen_qtimezone.go @@ -428,7 +428,7 @@ func (this *QTimeZone) DisplayName32(timeType QTimeZone__TimeType, nameType QTim // Delete this object from C++ memory. func (this *QTimeZone) Delete() { - C.QTimeZone_Delete(this.h, C.bool(this.isSubclass)) + C.QTimeZone_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -487,7 +487,7 @@ func (this *QTimeZone__OffsetData) OperatorAssign(param1 *QTimeZone__OffsetData) // Delete this object from C++ memory. func (this *QTimeZone__OffsetData) Delete() { - C.QTimeZone__OffsetData_Delete(this.h, C.bool(this.isSubclass)) + C.QTimeZone__OffsetData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtimezone.h b/qt/gen_qtimezone.h index 21325f58..f7d727ed 100644 --- a/qt/gen_qtimezone.h +++ b/qt/gen_qtimezone.h @@ -72,11 +72,11 @@ struct miqt_string QTimeZone_DisplayName2(const QTimeZone* self, QDateTime* atDa struct miqt_string QTimeZone_DisplayName3(const QTimeZone* self, QDateTime* atDateTime, int nameType, QLocale* locale); struct miqt_string QTimeZone_DisplayName22(const QTimeZone* self, int timeType, int nameType); struct miqt_string QTimeZone_DisplayName32(const QTimeZone* self, int timeType, int nameType, QLocale* locale); -void QTimeZone_Delete(QTimeZone* self, bool isSubclass); +void QTimeZone_Delete(QTimeZone* self); QTimeZone__OffsetData* QTimeZone__OffsetData_new(QTimeZone__OffsetData* param1); void QTimeZone__OffsetData_OperatorAssign(QTimeZone__OffsetData* self, QTimeZone__OffsetData* param1); -void QTimeZone__OffsetData_Delete(QTimeZone__OffsetData* self, bool isSubclass); +void QTimeZone__OffsetData_Delete(QTimeZone__OffsetData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtoolbar.cpp b/qt/gen_qtoolbar.cpp index 34bc2a0f..03e2cab1 100644 --- a/qt/gen_qtoolbar.cpp +++ b/qt/gen_qtoolbar.cpp @@ -94,7 +94,7 @@ bool miqt_exec_callback_QToolBar_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQToolBar : public virtual QToolBar { +class MiqtVirtualQToolBar final : public QToolBar { public: MiqtVirtualQToolBar(QWidget* parent): QToolBar(parent) {}; @@ -102,7 +102,7 @@ public: MiqtVirtualQToolBar(): QToolBar() {}; MiqtVirtualQToolBar(const QString& title, QWidget* parent): QToolBar(title, parent) {}; - virtual ~MiqtVirtualQToolBar() = default; + virtual ~MiqtVirtualQToolBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ActionEvent = 0; @@ -1707,11 +1707,7 @@ bool QToolBar_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQToolBar*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QToolBar_Delete(QToolBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QToolBar_Delete(QToolBar* self) { + delete self; } diff --git a/qt/gen_qtoolbar.go b/qt/gen_qtoolbar.go index 83f46d2e..a56d16f3 100644 --- a/qt/gen_qtoolbar.go +++ b/qt/gen_qtoolbar.go @@ -1530,7 +1530,7 @@ func miqt_exec_callback_QToolBar_FocusNextPrevChild(self *C.QToolBar, cb C.intpt // Delete this object from C++ memory. func (this *QToolBar) Delete() { - C.QToolBar_Delete(this.h, C.bool(this.isSubclass)) + C.QToolBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtoolbar.h b/qt/gen_qtoolbar.h index e4a4cb5a..4cef1678 100644 --- a/qt/gen_qtoolbar.h +++ b/qt/gen_qtoolbar.h @@ -223,7 +223,7 @@ void QToolBar_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QToolBar_virtualbase_InputMethodQuery(const void* self, int param1); void QToolBar_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QToolBar_virtualbase_FocusNextPrevChild(void* self, bool next); -void QToolBar_Delete(QToolBar* self, bool isSubclass); +void QToolBar_Delete(QToolBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtoolbox.cpp b/qt/gen_qtoolbox.cpp index 3435bd66..cc7bf485 100644 --- a/qt/gen_qtoolbox.cpp +++ b/qt/gen_qtoolbox.cpp @@ -31,14 +31,14 @@ void miqt_exec_callback_QToolBox_PaintEvent(void*, intptr_t, QPaintEvent*); } /* extern C */ #endif -class MiqtVirtualQToolBox : public virtual QToolBox { +class MiqtVirtualQToolBox final : public QToolBox { public: MiqtVirtualQToolBox(QWidget* parent): QToolBox(parent) {}; MiqtVirtualQToolBox(): QToolBox() {}; MiqtVirtualQToolBox(QWidget* parent, Qt::WindowFlags f): QToolBox(parent, f) {}; - virtual ~MiqtVirtualQToolBox() = default; + virtual ~MiqtVirtualQToolBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -464,11 +464,7 @@ void QToolBox_virtualbase_PaintEvent(void* self, QPaintEvent* param1) { ( (MiqtVirtualQToolBox*)(self) )->virtualbase_PaintEvent(param1); } -void QToolBox_Delete(QToolBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QToolBox_Delete(QToolBox* self) { + delete self; } diff --git a/qt/gen_qtoolbox.go b/qt/gen_qtoolbox.go index b972bd2c..a29fd455 100644 --- a/qt/gen_qtoolbox.go +++ b/qt/gen_qtoolbox.go @@ -466,7 +466,7 @@ func miqt_exec_callback_QToolBox_PaintEvent(self *C.QToolBox, cb C.intptr_t, par // Delete this object from C++ memory. func (this *QToolBox) Delete() { - C.QToolBox_Delete(this.h, C.bool(this.isSubclass)) + C.QToolBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtoolbox.h b/qt/gen_qtoolbox.h index be7255b3..b37cf73f 100644 --- a/qt/gen_qtoolbox.h +++ b/qt/gen_qtoolbox.h @@ -93,7 +93,7 @@ void QToolBox_override_virtual_SizeHint(void* self, intptr_t slot); QSize* QToolBox_virtualbase_SizeHint(const void* self); void QToolBox_override_virtual_PaintEvent(void* self, intptr_t slot); void QToolBox_virtualbase_PaintEvent(void* self, QPaintEvent* param1); -void QToolBox_Delete(QToolBox* self, bool isSubclass); +void QToolBox_Delete(QToolBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtoolbutton.cpp b/qt/gen_qtoolbutton.cpp index a5adde83..9fe304b3 100644 --- a/qt/gen_qtoolbutton.cpp +++ b/qt/gen_qtoolbutton.cpp @@ -49,13 +49,13 @@ void miqt_exec_callback_QToolButton_FocusOutEvent(void*, intptr_t, QFocusEvent*) } /* extern C */ #endif -class MiqtVirtualQToolButton : public virtual QToolButton { +class MiqtVirtualQToolButton final : public QToolButton { public: MiqtVirtualQToolButton(QWidget* parent): QToolButton(parent) {}; MiqtVirtualQToolButton(): QToolButton() {}; - virtual ~MiqtVirtualQToolButton() = default; + virtual ~MiqtVirtualQToolButton() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -821,11 +821,7 @@ void QToolButton_virtualbase_FocusOutEvent(void* self, QFocusEvent* e) { ( (MiqtVirtualQToolButton*)(self) )->virtualbase_FocusOutEvent(e); } -void QToolButton_Delete(QToolButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QToolButton_Delete(QToolButton* self) { + delete self; } diff --git a/qt/gen_qtoolbutton.go b/qt/gen_qtoolbutton.go index 70131aab..945c58b9 100644 --- a/qt/gen_qtoolbutton.go +++ b/qt/gen_qtoolbutton.go @@ -727,7 +727,7 @@ func miqt_exec_callback_QToolButton_FocusOutEvent(self *C.QToolButton, cb C.intp // Delete this object from C++ memory. func (this *QToolButton) Delete() { - C.QToolButton_Delete(this.h, C.bool(this.isSubclass)) + C.QToolButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtoolbutton.h b/qt/gen_qtoolbutton.h index efeecc85..0d82f368 100644 --- a/qt/gen_qtoolbutton.h +++ b/qt/gen_qtoolbutton.h @@ -129,7 +129,7 @@ void QToolButton_override_virtual_FocusInEvent(void* self, intptr_t slot); void QToolButton_virtualbase_FocusInEvent(void* self, QFocusEvent* e); void QToolButton_override_virtual_FocusOutEvent(void* self, intptr_t slot); void QToolButton_virtualbase_FocusOutEvent(void* self, QFocusEvent* e); -void QToolButton_Delete(QToolButton* self, bool isSubclass); +void QToolButton_Delete(QToolButton* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtooltip.cpp b/qt/gen_qtooltip.cpp index c0ba49f2..785c38c4 100644 --- a/qt/gen_qtooltip.cpp +++ b/qt/gen_qtooltip.cpp @@ -73,11 +73,7 @@ void QToolTip_ShowText32(QPoint* pos, struct miqt_string text, QWidget* w) { QToolTip::showText(*pos, text_QString, w); } -void QToolTip_Delete(QToolTip* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QToolTip_Delete(QToolTip* self) { + delete self; } diff --git a/qt/gen_qtooltip.go b/qt/gen_qtooltip.go index 199d2610..fd507c9e 100644 --- a/qt/gen_qtooltip.go +++ b/qt/gen_qtooltip.go @@ -115,7 +115,7 @@ func QToolTip_ShowText32(pos *QPoint, text string, w *QWidget) { // Delete this object from C++ memory. func (this *QToolTip) Delete() { - C.QToolTip_Delete(this.h, C.bool(this.isSubclass)) + C.QToolTip_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtooltip.h b/qt/gen_qtooltip.h index 3752248a..b4d1eb7c 100644 --- a/qt/gen_qtooltip.h +++ b/qt/gen_qtooltip.h @@ -41,7 +41,7 @@ void QToolTip_SetPalette(QPalette* palette); QFont* QToolTip_Font(); void QToolTip_SetFont(QFont* font); void QToolTip_ShowText32(QPoint* pos, struct miqt_string text, QWidget* w); -void QToolTip_Delete(QToolTip* self, bool isSubclass); +void QToolTip_Delete(QToolTip* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtouchdevice.cpp b/qt/gen_qtouchdevice.cpp index d80e86ea..46e51ec9 100644 --- a/qt/gen_qtouchdevice.cpp +++ b/qt/gen_qtouchdevice.cpp @@ -73,11 +73,7 @@ void QTouchDevice_SetMaximumTouchPoints(QTouchDevice* self, int max) { self->setMaximumTouchPoints(static_cast(max)); } -void QTouchDevice_Delete(QTouchDevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTouchDevice_Delete(QTouchDevice* self) { + delete self; } diff --git a/qt/gen_qtouchdevice.go b/qt/gen_qtouchdevice.go index a043b822..ce873c50 100644 --- a/qt/gen_qtouchdevice.go +++ b/qt/gen_qtouchdevice.go @@ -124,7 +124,7 @@ func (this *QTouchDevice) SetMaximumTouchPoints(max int) { // Delete this object from C++ memory. func (this *QTouchDevice) Delete() { - C.QTouchDevice_Delete(this.h, C.bool(this.isSubclass)) + C.QTouchDevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtouchdevice.h b/qt/gen_qtouchdevice.h index c780708e..e84f5c83 100644 --- a/qt/gen_qtouchdevice.h +++ b/qt/gen_qtouchdevice.h @@ -30,7 +30,7 @@ void QTouchDevice_SetName(QTouchDevice* self, struct miqt_string name); void QTouchDevice_SetType(QTouchDevice* self, int devType); void QTouchDevice_SetCapabilities(QTouchDevice* self, int caps); void QTouchDevice_SetMaximumTouchPoints(QTouchDevice* self, int max); -void QTouchDevice_Delete(QTouchDevice* self, bool isSubclass); +void QTouchDevice_Delete(QTouchDevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtransform.cpp b/qt/gen_qtransform.cpp index cc47656a..dfab78d0 100644 --- a/qt/gen_qtransform.cpp +++ b/qt/gen_qtransform.cpp @@ -312,11 +312,7 @@ QTransform* QTransform_RotateRadians2(QTransform* self, double a, int axis) { return &_ret; } -void QTransform_Delete(QTransform* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTransform_Delete(QTransform* self) { + delete self; } diff --git a/qt/gen_qtransform.go b/qt/gen_qtransform.go index 657aef72..36698140 100644 --- a/qt/gen_qtransform.go +++ b/qt/gen_qtransform.go @@ -371,7 +371,7 @@ func (this *QTransform) RotateRadians2(a float64, axis Axis) *QTransform { // Delete this object from C++ memory. func (this *QTransform) Delete() { - C.QTransform_Delete(this.h, C.bool(this.isSubclass)) + C.QTransform_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtransform.h b/qt/gen_qtransform.h index 038889f6..65face9e 100644 --- a/qt/gen_qtransform.h +++ b/qt/gen_qtransform.h @@ -103,7 +103,7 @@ QTransform* QTransform_FromScale(double dx, double dy); QTransform* QTransform_Inverted1(const QTransform* self, bool* invertible); QTransform* QTransform_Rotate2(QTransform* self, double a, int axis); QTransform* QTransform_RotateRadians2(QTransform* self, double a, int axis); -void QTransform_Delete(QTransform* self, bool isSubclass); +void QTransform_Delete(QTransform* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtranslator.cpp b/qt/gen_qtranslator.cpp index 8e07f178..03b1cefa 100644 --- a/qt/gen_qtranslator.cpp +++ b/qt/gen_qtranslator.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QTranslator_DisconnectNotify(void*, intptr_t, QMetaMetho } /* extern C */ #endif -class MiqtVirtualQTranslator : public virtual QTranslator { +class MiqtVirtualQTranslator final : public QTranslator { public: MiqtVirtualQTranslator(): QTranslator() {}; MiqtVirtualQTranslator(QObject* parent): QTranslator(parent) {}; - virtual ~MiqtVirtualQTranslator() = default; + virtual ~MiqtVirtualQTranslator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Translate = 0; @@ -522,11 +522,7 @@ void QTranslator_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTranslator*)(self) )->virtualbase_DisconnectNotify(signal); } -void QTranslator_Delete(QTranslator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTranslator_Delete(QTranslator* self) { + delete self; } diff --git a/qt/gen_qtranslator.go b/qt/gen_qtranslator.go index 4d4ce42a..4c97091f 100644 --- a/qt/gen_qtranslator.go +++ b/qt/gen_qtranslator.go @@ -558,7 +558,7 @@ func miqt_exec_callback_QTranslator_DisconnectNotify(self *C.QTranslator, cb C.i // Delete this object from C++ memory. func (this *QTranslator) Delete() { - C.QTranslator_Delete(this.h, C.bool(this.isSubclass)) + C.QTranslator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtranslator.h b/qt/gen_qtranslator.h index 3175c1e0..4fa592b8 100644 --- a/qt/gen_qtranslator.h +++ b/qt/gen_qtranslator.h @@ -77,7 +77,7 @@ void QTranslator_override_virtual_ConnectNotify(void* self, intptr_t slot); void QTranslator_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QTranslator_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QTranslator_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QTranslator_Delete(QTranslator* self, bool isSubclass); +void QTranslator_Delete(QTranslator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtransposeproxymodel.cpp b/qt/gen_qtransposeproxymodel.cpp index 0aad706f..a94e46a4 100644 --- a/qt/gen_qtransposeproxymodel.cpp +++ b/qt/gen_qtransposeproxymodel.cpp @@ -61,13 +61,13 @@ int miqt_exec_callback_QTransposeProxyModel_SupportedDropActions(void*, intptr_t } /* extern C */ #endif -class MiqtVirtualQTransposeProxyModel : public virtual QTransposeProxyModel { +class MiqtVirtualQTransposeProxyModel final : public QTransposeProxyModel { public: MiqtVirtualQTransposeProxyModel(): QTransposeProxyModel() {}; MiqtVirtualQTransposeProxyModel(QObject* parent): QTransposeProxyModel(parent) {}; - virtual ~MiqtVirtualQTransposeProxyModel() = default; + virtual ~MiqtVirtualQTransposeProxyModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetSourceModel = 0; @@ -1585,11 +1585,7 @@ int QTransposeProxyModel_virtualbase_SupportedDropActions(const void* self) { return ( (const MiqtVirtualQTransposeProxyModel*)(self) )->virtualbase_SupportedDropActions(); } -void QTransposeProxyModel_Delete(QTransposeProxyModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTransposeProxyModel_Delete(QTransposeProxyModel* self) { + delete self; } diff --git a/qt/gen_qtransposeproxymodel.go b/qt/gen_qtransposeproxymodel.go index 03771884..867c1682 100644 --- a/qt/gen_qtransposeproxymodel.go +++ b/qt/gen_qtransposeproxymodel.go @@ -1457,7 +1457,7 @@ func miqt_exec_callback_QTransposeProxyModel_SupportedDropActions(self *C.QTrans // Delete this object from C++ memory. func (this *QTransposeProxyModel) Delete() { - C.QTransposeProxyModel_Delete(this.h, C.bool(this.isSubclass)) + C.QTransposeProxyModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtransposeproxymodel.h b/qt/gen_qtransposeproxymodel.h index af6ec0a4..48d88674 100644 --- a/qt/gen_qtransposeproxymodel.h +++ b/qt/gen_qtransposeproxymodel.h @@ -142,7 +142,7 @@ void QTransposeProxyModel_override_virtual_SupportedDragActions(void* self, intp int QTransposeProxyModel_virtualbase_SupportedDragActions(const void* self); void QTransposeProxyModel_override_virtual_SupportedDropActions(void* self, intptr_t slot); int QTransposeProxyModel_virtualbase_SupportedDropActions(const void* self); -void QTransposeProxyModel_Delete(QTransposeProxyModel* self, bool isSubclass); +void QTransposeProxyModel_Delete(QTransposeProxyModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtreeview.cpp b/qt/gen_qtreeview.cpp index 5c31075f..cabbc903 100644 --- a/qt/gen_qtreeview.cpp +++ b/qt/gen_qtreeview.cpp @@ -109,13 +109,13 @@ bool miqt_exec_callback_QTreeView_EventFilter(void*, intptr_t, QObject*, QEvent* } /* extern C */ #endif -class MiqtVirtualQTreeView : public virtual QTreeView { +class MiqtVirtualQTreeView final : public QTreeView { public: MiqtVirtualQTreeView(QWidget* parent): QTreeView(parent) {}; MiqtVirtualQTreeView(): QTreeView() {}; - virtual ~MiqtVirtualQTreeView() = default; + virtual ~MiqtVirtualQTreeView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetModel = 0; @@ -2558,11 +2558,7 @@ bool QTreeView_virtualbase_EventFilter(void* self, QObject* object, QEvent* even return ( (MiqtVirtualQTreeView*)(self) )->virtualbase_EventFilter(object, event); } -void QTreeView_Delete(QTreeView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTreeView_Delete(QTreeView* self) { + delete self; } diff --git a/qt/gen_qtreeview.go b/qt/gen_qtreeview.go index 9fb6af08..b26a548c 100644 --- a/qt/gen_qtreeview.go +++ b/qt/gen_qtreeview.go @@ -2161,7 +2161,7 @@ func miqt_exec_callback_QTreeView_EventFilter(self *C.QTreeView, cb C.intptr_t, // Delete this object from C++ memory. func (this *QTreeView) Delete() { - C.QTreeView_Delete(this.h, C.bool(this.isSubclass)) + C.QTreeView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtreeview.h b/qt/gen_qtreeview.h index 6c1db3be..df6f5729 100644 --- a/qt/gen_qtreeview.h +++ b/qt/gen_qtreeview.h @@ -313,7 +313,7 @@ void QTreeView_override_virtual_InputMethodEvent(void* self, intptr_t slot); void QTreeView_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event); void QTreeView_override_virtual_EventFilter(void* self, intptr_t slot); bool QTreeView_virtualbase_EventFilter(void* self, QObject* object, QEvent* event); -void QTreeView_Delete(QTreeView* self, bool isSubclass); +void QTreeView_Delete(QTreeView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtreewidget.cpp b/qt/gen_qtreewidget.cpp index 0497df72..62bb4d4c 100644 --- a/qt/gen_qtreewidget.cpp +++ b/qt/gen_qtreewidget.cpp @@ -106,7 +106,7 @@ void miqt_exec_callback_QTreeWidget_CurrentChanged(void*, intptr_t, QModelIndex* } /* extern C */ #endif -class MiqtVirtualQTreeWidgetItem : public virtual QTreeWidgetItem { +class MiqtVirtualQTreeWidgetItem final : public QTreeWidgetItem { public: MiqtVirtualQTreeWidgetItem(): QTreeWidgetItem() {}; @@ -127,7 +127,7 @@ public: MiqtVirtualQTreeWidgetItem(QTreeWidgetItem* parent, const QStringList& strings, int typeVal): QTreeWidgetItem(parent, strings, typeVal) {}; MiqtVirtualQTreeWidgetItem(QTreeWidgetItem* parent, QTreeWidgetItem* after, int typeVal): QTreeWidgetItem(parent, after, typeVal) {}; - virtual ~MiqtVirtualQTreeWidgetItem() = default; + virtual ~MiqtVirtualQTreeWidgetItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -744,21 +744,17 @@ void QTreeWidgetItem_virtualbase_Write(const void* self, QDataStream* out) { ( (const MiqtVirtualQTreeWidgetItem*)(self) )->virtualbase_Write(out); } -void QTreeWidgetItem_Delete(QTreeWidgetItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTreeWidgetItem_Delete(QTreeWidgetItem* self) { + delete self; } -class MiqtVirtualQTreeWidget : public virtual QTreeWidget { +class MiqtVirtualQTreeWidget final : public QTreeWidget { public: MiqtVirtualQTreeWidget(QWidget* parent): QTreeWidget(parent) {}; MiqtVirtualQTreeWidget(): QTreeWidget() {}; - virtual ~MiqtVirtualQTreeWidget() = default; + virtual ~MiqtVirtualQTreeWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetSelectionModel = 0; @@ -2754,11 +2750,7 @@ void QTreeWidget_virtualbase_CurrentChanged(void* self, QModelIndex* current, QM ( (MiqtVirtualQTreeWidget*)(self) )->virtualbase_CurrentChanged(current, previous); } -void QTreeWidget_Delete(QTreeWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTreeWidget_Delete(QTreeWidget* self) { + delete self; } diff --git a/qt/gen_qtreewidget.go b/qt/gen_qtreewidget.go index f838dadf..262dfc7e 100644 --- a/qt/gen_qtreewidget.go +++ b/qt/gen_qtreewidget.go @@ -737,7 +737,7 @@ func miqt_exec_callback_QTreeWidgetItem_Write(self *C.QTreeWidgetItem, cb C.intp // Delete this object from C++ memory. func (this *QTreeWidgetItem) Delete() { - C.QTreeWidgetItem_Delete(this.h, C.bool(this.isSubclass)) + C.QTreeWidgetItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2619,7 +2619,7 @@ func miqt_exec_callback_QTreeWidget_CurrentChanged(self *C.QTreeWidget, cb C.int // Delete this object from C++ memory. func (this *QTreeWidget) Delete() { - C.QTreeWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QTreeWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtreewidget.h b/qt/gen_qtreewidget.h index ad2586c7..61a48af5 100644 --- a/qt/gen_qtreewidget.h +++ b/qt/gen_qtreewidget.h @@ -175,7 +175,7 @@ void QTreeWidgetItem_override_virtual_Read(void* self, intptr_t slot); void QTreeWidgetItem_virtualbase_Read(void* self, QDataStream* in); void QTreeWidgetItem_override_virtual_Write(void* self, intptr_t slot); void QTreeWidgetItem_virtualbase_Write(const void* self, QDataStream* out); -void QTreeWidgetItem_Delete(QTreeWidgetItem* self, bool isSubclass); +void QTreeWidgetItem_Delete(QTreeWidgetItem* self); QTreeWidget* QTreeWidget_new(QWidget* parent); QTreeWidget* QTreeWidget_new2(); @@ -357,7 +357,7 @@ void QTreeWidget_override_virtual_SelectionChanged(void* self, intptr_t slot); void QTreeWidget_virtualbase_SelectionChanged(void* self, QItemSelection* selected, QItemSelection* deselected); void QTreeWidget_override_virtual_CurrentChanged(void* self, intptr_t slot); void QTreeWidget_virtualbase_CurrentChanged(void* self, QModelIndex* current, QModelIndex* previous); -void QTreeWidget_Delete(QTreeWidget* self, bool isSubclass); +void QTreeWidget_Delete(QTreeWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qtreewidgetitemiterator.cpp b/qt/gen_qtreewidgetitemiterator.cpp index 15f94275..91a64259 100644 --- a/qt/gen_qtreewidgetitemiterator.cpp +++ b/qt/gen_qtreewidgetitemiterator.cpp @@ -72,11 +72,7 @@ QTreeWidgetItem* QTreeWidgetItemIterator_OperatorMultiply(const QTreeWidgetItemI return self->operator*(); } -void QTreeWidgetItemIterator_Delete(QTreeWidgetItemIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTreeWidgetItemIterator_Delete(QTreeWidgetItemIterator* self) { + delete self; } diff --git a/qt/gen_qtreewidgetitemiterator.go b/qt/gen_qtreewidgetitemiterator.go index 32f0b004..fbf9ecf3 100644 --- a/qt/gen_qtreewidgetitemiterator.go +++ b/qt/gen_qtreewidgetitemiterator.go @@ -149,7 +149,7 @@ func (this *QTreeWidgetItemIterator) OperatorMultiply() *QTreeWidgetItem { // Delete this object from C++ memory. func (this *QTreeWidgetItemIterator) Delete() { - C.QTreeWidgetItemIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QTreeWidgetItemIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qtreewidgetitemiterator.h b/qt/gen_qtreewidgetitemiterator.h index b42ddaa4..572e9e22 100644 --- a/qt/gen_qtreewidgetitemiterator.h +++ b/qt/gen_qtreewidgetitemiterator.h @@ -37,7 +37,7 @@ QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorMinusMinus(QTreeWidgetI QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorMinusMinusWithInt(QTreeWidgetItemIterator* self, int param1); QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorMinusAssign(QTreeWidgetItemIterator* self, int n); QTreeWidgetItem* QTreeWidgetItemIterator_OperatorMultiply(const QTreeWidgetItemIterator* self); -void QTreeWidgetItemIterator_Delete(QTreeWidgetItemIterator* self, bool isSubclass); +void QTreeWidgetItemIterator_Delete(QTreeWidgetItemIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qundogroup.cpp b/qt/gen_qundogroup.cpp index 2dab6a55..1aeca629 100644 --- a/qt/gen_qundogroup.cpp +++ b/qt/gen_qundogroup.cpp @@ -36,13 +36,13 @@ void miqt_exec_callback_QUndoGroup_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQUndoGroup : public virtual QUndoGroup { +class MiqtVirtualQUndoGroup final : public QUndoGroup { public: MiqtVirtualQUndoGroup(): QUndoGroup() {}; MiqtVirtualQUndoGroup(QObject* parent): QUndoGroup(parent) {}; - virtual ~MiqtVirtualQUndoGroup() = default; + virtual ~MiqtVirtualQUndoGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -541,11 +541,7 @@ void QUndoGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQUndoGroup*)(self) )->virtualbase_DisconnectNotify(signal); } -void QUndoGroup_Delete(QUndoGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUndoGroup_Delete(QUndoGroup* self) { + delete self; } diff --git a/qt/gen_qundogroup.go b/qt/gen_qundogroup.go index 4847f994..5aab9b4a 100644 --- a/qt/gen_qundogroup.go +++ b/qt/gen_qundogroup.go @@ -567,7 +567,7 @@ func miqt_exec_callback_QUndoGroup_DisconnectNotify(self *C.QUndoGroup, cb C.int // Delete this object from C++ memory. func (this *QUndoGroup) Delete() { - C.QUndoGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QUndoGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qundogroup.h b/qt/gen_qundogroup.h index 20f0eda6..e32dce8f 100644 --- a/qt/gen_qundogroup.h +++ b/qt/gen_qundogroup.h @@ -91,7 +91,7 @@ void QUndoGroup_override_virtual_ConnectNotify(void* self, intptr_t slot); void QUndoGroup_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QUndoGroup_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QUndoGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QUndoGroup_Delete(QUndoGroup* self, bool isSubclass); +void QUndoGroup_Delete(QUndoGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qundostack.cpp b/qt/gen_qundostack.cpp index 0cb5ca71..76f589a3 100644 --- a/qt/gen_qundostack.cpp +++ b/qt/gen_qundostack.cpp @@ -38,7 +38,7 @@ void miqt_exec_callback_QUndoStack_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQUndoCommand : public virtual QUndoCommand { +class MiqtVirtualQUndoCommand final : public QUndoCommand { public: MiqtVirtualQUndoCommand(): QUndoCommand() {}; @@ -46,7 +46,7 @@ public: MiqtVirtualQUndoCommand(QUndoCommand* parent): QUndoCommand(parent) {}; MiqtVirtualQUndoCommand(const QString& text, QUndoCommand* parent): QUndoCommand(text, parent) {}; - virtual ~MiqtVirtualQUndoCommand() = default; + virtual ~MiqtVirtualQUndoCommand() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Undo = 0; @@ -250,21 +250,17 @@ bool QUndoCommand_virtualbase_MergeWith(void* self, QUndoCommand* other) { return ( (MiqtVirtualQUndoCommand*)(self) )->virtualbase_MergeWith(other); } -void QUndoCommand_Delete(QUndoCommand* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUndoCommand_Delete(QUndoCommand* self) { + delete self; } -class MiqtVirtualQUndoStack : public virtual QUndoStack { +class MiqtVirtualQUndoStack final : public QUndoStack { public: MiqtVirtualQUndoStack(): QUndoStack() {}; MiqtVirtualQUndoStack(QObject* parent): QUndoStack(parent) {}; - virtual ~MiqtVirtualQUndoStack() = default; + virtual ~MiqtVirtualQUndoStack() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -799,11 +795,7 @@ void QUndoStack_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQUndoStack*)(self) )->virtualbase_DisconnectNotify(signal); } -void QUndoStack_Delete(QUndoStack* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUndoStack_Delete(QUndoStack* self) { + delete self; } diff --git a/qt/gen_qundostack.go b/qt/gen_qundostack.go index b71287ef..381fe339 100644 --- a/qt/gen_qundostack.go +++ b/qt/gen_qundostack.go @@ -242,7 +242,7 @@ func miqt_exec_callback_QUndoCommand_MergeWith(self *C.QUndoCommand, cb C.intptr // Delete this object from C++ memory. func (this *QUndoCommand) Delete() { - C.QUndoCommand_Delete(this.h, C.bool(this.isSubclass)) + C.QUndoCommand_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -836,7 +836,7 @@ func miqt_exec_callback_QUndoStack_DisconnectNotify(self *C.QUndoStack, cb C.int // Delete this object from C++ memory. func (this *QUndoStack) Delete() { - C.QUndoStack_Delete(this.h, C.bool(this.isSubclass)) + C.QUndoStack_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qundostack.h b/qt/gen_qundostack.h index 593d3b21..84a9c38d 100644 --- a/qt/gen_qundostack.h +++ b/qt/gen_qundostack.h @@ -59,7 +59,7 @@ void QUndoCommand_override_virtual_Id(void* self, intptr_t slot); int QUndoCommand_virtualbase_Id(const void* self); void QUndoCommand_override_virtual_MergeWith(void* self, intptr_t slot); bool QUndoCommand_virtualbase_MergeWith(void* self, QUndoCommand* other); -void QUndoCommand_Delete(QUndoCommand* self, bool isSubclass); +void QUndoCommand_Delete(QUndoCommand* self); QUndoStack* QUndoStack_new(); QUndoStack* QUndoStack_new2(QObject* parent); @@ -126,7 +126,7 @@ void QUndoStack_override_virtual_ConnectNotify(void* self, intptr_t slot); void QUndoStack_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QUndoStack_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QUndoStack_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QUndoStack_Delete(QUndoStack* self, bool isSubclass); +void QUndoStack_Delete(QUndoStack* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qundoview.cpp b/qt/gen_qundoview.cpp index 5c31329f..0f1c4b7f 100644 --- a/qt/gen_qundoview.cpp +++ b/qt/gen_qundoview.cpp @@ -74,7 +74,7 @@ QSize* miqt_exec_callback_QUndoView_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQUndoView : public virtual QUndoView { +class MiqtVirtualQUndoView final : public QUndoView { public: MiqtVirtualQUndoView(QWidget* parent): QUndoView(parent) {}; @@ -84,7 +84,7 @@ public: MiqtVirtualQUndoView(QUndoStack* stack, QWidget* parent): QUndoView(stack, parent) {}; MiqtVirtualQUndoView(QUndoGroup* group, QWidget* parent): QUndoView(group, parent) {}; - virtual ~MiqtVirtualQUndoView() = default; + virtual ~MiqtVirtualQUndoView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__VisualRect = 0; @@ -1344,11 +1344,7 @@ QSize* QUndoView_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQUndoView*)(self) )->virtualbase_ViewportSizeHint(); } -void QUndoView_Delete(QUndoView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUndoView_Delete(QUndoView* self) { + delete self; } diff --git a/qt/gen_qundoview.go b/qt/gen_qundoview.go index 2feb9c63..fb9c914b 100644 --- a/qt/gen_qundoview.go +++ b/qt/gen_qundoview.go @@ -1132,7 +1132,7 @@ func miqt_exec_callback_QUndoView_ViewportSizeHint(self *C.QUndoView, cb C.intpt // Delete this object from C++ memory. func (this *QUndoView) Delete() { - C.QUndoView_Delete(this.h, C.bool(this.isSubclass)) + C.QUndoView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qundoview.h b/qt/gen_qundoview.h index 867cb66e..154c8695 100644 --- a/qt/gen_qundoview.h +++ b/qt/gen_qundoview.h @@ -163,7 +163,7 @@ void QUndoView_override_virtual_CurrentChanged(void* self, intptr_t slot); void QUndoView_virtualbase_CurrentChanged(void* self, QModelIndex* current, QModelIndex* previous); void QUndoView_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QUndoView_virtualbase_ViewportSizeHint(const void* self); -void QUndoView_Delete(QUndoView* self, bool isSubclass); +void QUndoView_Delete(QUndoView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qurl.cpp b/qt/gen_qurl.cpp index 516b4127..5862800a 100644 --- a/qt/gen_qurl.cpp +++ b/qt/gen_qurl.cpp @@ -705,11 +705,7 @@ struct miqt_array /* of QUrl* */ QUrl_FromStringList2(struct miqt_array /* of s return _out; } -void QUrl_Delete(QUrl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUrl_Delete(QUrl* self) { + delete self; } diff --git a/qt/gen_qurl.go b/qt/gen_qurl.go index 7a990fb8..fd367398 100644 --- a/qt/gen_qurl.go +++ b/qt/gen_qurl.go @@ -794,7 +794,7 @@ func QUrl_FromStringList2(uris []string, mode QUrl__ParsingMode) []QUrl { // Delete this object from C++ memory. func (this *QUrl) Delete() { - C.QUrl_Delete(this.h, C.bool(this.isSubclass)) + C.QUrl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qurl.h b/qt/gen_qurl.h index 89b34f00..9bf6eab3 100644 --- a/qt/gen_qurl.h +++ b/qt/gen_qurl.h @@ -110,7 +110,7 @@ void QUrl_SetFragment2(QUrl* self, struct miqt_string fragment, int mode); struct miqt_string QUrl_ToPercentEncoding2(struct miqt_string param1, struct miqt_string exclude); struct miqt_string QUrl_ToPercentEncoding3(struct miqt_string param1, struct miqt_string exclude, struct miqt_string include); struct miqt_array /* of QUrl* */ QUrl_FromStringList2(struct miqt_array /* of struct miqt_string */ uris, int mode); -void QUrl_Delete(QUrl* self, bool isSubclass); +void QUrl_Delete(QUrl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qurlquery.cpp b/qt/gen_qurlquery.cpp index 7c30e856..4982fe39 100644 --- a/qt/gen_qurlquery.cpp +++ b/qt/gen_qurlquery.cpp @@ -309,11 +309,7 @@ struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues2(con return _out; } -void QUrlQuery_Delete(QUrlQuery* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUrlQuery_Delete(QUrlQuery* self) { + delete self; } diff --git a/qt/gen_qurlquery.go b/qt/gen_qurlquery.go index 7534eb87..d6ee8e39 100644 --- a/qt/gen_qurlquery.go +++ b/qt/gen_qurlquery.go @@ -360,7 +360,7 @@ func (this *QUrlQuery) AllQueryItemValues2(key string, encoding QUrl__ComponentF // Delete this object from C++ memory. func (this *QUrlQuery) Delete() { - C.QUrlQuery_Delete(this.h, C.bool(this.isSubclass)) + C.QUrlQuery_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qurlquery.h b/qt/gen_qurlquery.h index f7e4c0e8..75e1df65 100644 --- a/qt/gen_qurlquery.h +++ b/qt/gen_qurlquery.h @@ -56,7 +56,7 @@ struct miqt_string QUrlQuery_ToString1(const QUrlQuery* self, int encoding); struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems1(const QUrlQuery* self, int encoding); struct miqt_string QUrlQuery_QueryItemValue2(const QUrlQuery* self, struct miqt_string key, int encoding); struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues2(const QUrlQuery* self, struct miqt_string key, int encoding); -void QUrlQuery_Delete(QUrlQuery* self, bool isSubclass); +void QUrlQuery_Delete(QUrlQuery* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_quuid.cpp b/qt/gen_quuid.cpp index f8d9c30c..af819395 100644 --- a/qt/gen_quuid.cpp +++ b/qt/gen_quuid.cpp @@ -148,11 +148,7 @@ int QUuid_Version(const QUuid* self) { return static_cast(_ret); } -void QUuid_Delete(QUuid* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUuid_Delete(QUuid* self) { + delete self; } diff --git a/qt/gen_quuid.go b/qt/gen_quuid.go index 9aa33bf3..154ee79b 100644 --- a/qt/gen_quuid.go +++ b/qt/gen_quuid.go @@ -251,7 +251,7 @@ func (this *QUuid) Version() QUuid__Version { // Delete this object from C++ memory. func (this *QUuid) Delete() { - C.QUuid_Delete(this.h, C.bool(this.isSubclass)) + C.QUuid_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_quuid.h b/qt/gen_quuid.h index 7223b2d6..7deebb49 100644 --- a/qt/gen_quuid.h +++ b/qt/gen_quuid.h @@ -44,7 +44,7 @@ QUuid* QUuid_CreateUuidV32(QUuid* ns, struct miqt_string baseData); QUuid* QUuid_CreateUuidV52(QUuid* ns, struct miqt_string baseData); int QUuid_Variant(const QUuid* self); int QUuid_Version(const QUuid* self); -void QUuid_Delete(QUuid* self, bool isSubclass); +void QUuid_Delete(QUuid* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qvalidator.cpp b/qt/gen_qvalidator.cpp index e609ec73..ebf6eb99 100644 --- a/qt/gen_qvalidator.cpp +++ b/qt/gen_qvalidator.cpp @@ -54,13 +54,13 @@ void miqt_exec_callback_QRegularExpressionValidator_Fixup(void*, intptr_t, struc } /* extern C */ #endif -class MiqtVirtualQValidator : public virtual QValidator { +class MiqtVirtualQValidator final : public QValidator { public: MiqtVirtualQValidator(): QValidator() {}; MiqtVirtualQValidator(QObject* parent): QValidator(parent) {}; - virtual ~MiqtVirtualQValidator() = default; + virtual ~MiqtVirtualQValidator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Validate = 0; @@ -474,15 +474,11 @@ void QValidator_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQValidator*)(self) )->virtualbase_DisconnectNotify(signal); } -void QValidator_Delete(QValidator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QValidator_Delete(QValidator* self) { + delete self; } -class MiqtVirtualQIntValidator : public virtual QIntValidator { +class MiqtVirtualQIntValidator final : public QIntValidator { public: MiqtVirtualQIntValidator(): QIntValidator() {}; @@ -490,7 +486,7 @@ public: MiqtVirtualQIntValidator(QObject* parent): QIntValidator(parent) {}; MiqtVirtualQIntValidator(int bottom, int top, QObject* parent): QIntValidator(bottom, top, parent) {}; - virtual ~MiqtVirtualQIntValidator() = default; + virtual ~MiqtVirtualQIntValidator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Validate = 0; @@ -755,15 +751,11 @@ void QIntValidator_virtualbase_SetRange(void* self, int bottom, int top) { ( (MiqtVirtualQIntValidator*)(self) )->virtualbase_SetRange(bottom, top); } -void QIntValidator_Delete(QIntValidator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIntValidator_Delete(QIntValidator* self) { + delete self; } -class MiqtVirtualQDoubleValidator : public virtual QDoubleValidator { +class MiqtVirtualQDoubleValidator final : public QDoubleValidator { public: MiqtVirtualQDoubleValidator(): QDoubleValidator() {}; @@ -771,7 +763,7 @@ public: MiqtVirtualQDoubleValidator(QObject* parent): QDoubleValidator(parent) {}; MiqtVirtualQDoubleValidator(double bottom, double top, int decimals, QObject* parent): QDoubleValidator(bottom, top, decimals, parent) {}; - virtual ~MiqtVirtualQDoubleValidator() = default; + virtual ~MiqtVirtualQDoubleValidator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Validate = 0; @@ -1072,15 +1064,11 @@ void QDoubleValidator_virtualbase_Fixup(const void* self, struct miqt_string par ( (const MiqtVirtualQDoubleValidator*)(self) )->virtualbase_Fixup(param1); } -void QDoubleValidator_Delete(QDoubleValidator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDoubleValidator_Delete(QDoubleValidator* self) { + delete self; } -class MiqtVirtualQRegExpValidator : public virtual QRegExpValidator { +class MiqtVirtualQRegExpValidator final : public QRegExpValidator { public: MiqtVirtualQRegExpValidator(): QRegExpValidator() {}; @@ -1088,7 +1076,7 @@ public: MiqtVirtualQRegExpValidator(QObject* parent): QRegExpValidator(parent) {}; MiqtVirtualQRegExpValidator(const QRegExp& rx, QObject* parent): QRegExpValidator(rx, parent) {}; - virtual ~MiqtVirtualQRegExpValidator() = default; + virtual ~MiqtVirtualQRegExpValidator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Validate = 0; @@ -1296,15 +1284,11 @@ void QRegExpValidator_virtualbase_Fixup(const void* self, struct miqt_string par ( (const MiqtVirtualQRegExpValidator*)(self) )->virtualbase_Fixup(param1); } -void QRegExpValidator_Delete(QRegExpValidator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegExpValidator_Delete(QRegExpValidator* self) { + delete self; } -class MiqtVirtualQRegularExpressionValidator : public virtual QRegularExpressionValidator { +class MiqtVirtualQRegularExpressionValidator final : public QRegularExpressionValidator { public: MiqtVirtualQRegularExpressionValidator(): QRegularExpressionValidator() {}; @@ -1312,7 +1296,7 @@ public: MiqtVirtualQRegularExpressionValidator(QObject* parent): QRegularExpressionValidator(parent) {}; MiqtVirtualQRegularExpressionValidator(const QRegularExpression& re, QObject* parent): QRegularExpressionValidator(re, parent) {}; - virtual ~MiqtVirtualQRegularExpressionValidator() = default; + virtual ~MiqtVirtualQRegularExpressionValidator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Validate = 0; @@ -1518,11 +1502,7 @@ void QRegularExpressionValidator_virtualbase_Fixup(const void* self, struct miqt ( (const MiqtVirtualQRegularExpressionValidator*)(self) )->virtualbase_Fixup(param1); } -void QRegularExpressionValidator_Delete(QRegularExpressionValidator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegularExpressionValidator_Delete(QRegularExpressionValidator* self) { + delete self; } diff --git a/qt/gen_qvalidator.go b/qt/gen_qvalidator.go index c2501be5..debef7b9 100644 --- a/qt/gen_qvalidator.go +++ b/qt/gen_qvalidator.go @@ -446,7 +446,7 @@ func miqt_exec_callback_QValidator_DisconnectNotify(self *C.QValidator, cb C.int // Delete this object from C++ memory. func (this *QValidator) Delete() { - C.QValidator_Delete(this.h, C.bool(this.isSubclass)) + C.QValidator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -774,7 +774,7 @@ func miqt_exec_callback_QIntValidator_SetRange(self *C.QIntValidator, cb C.intpt // Delete this object from C++ memory. func (this *QIntValidator) Delete() { - C.QIntValidator_Delete(this.h, C.bool(this.isSubclass)) + C.QIntValidator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1152,7 +1152,7 @@ func miqt_exec_callback_QDoubleValidator_Fixup(self *C.QDoubleValidator, cb C.in // Delete this object from C++ memory. func (this *QDoubleValidator) Delete() { - C.QDoubleValidator_Delete(this.h, C.bool(this.isSubclass)) + C.QDoubleValidator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1412,7 +1412,7 @@ func miqt_exec_callback_QRegExpValidator_Fixup(self *C.QRegExpValidator, cb C.in // Delete this object from C++ memory. func (this *QRegExpValidator) Delete() { - C.QRegExpValidator_Delete(this.h, C.bool(this.isSubclass)) + C.QRegExpValidator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1674,7 +1674,7 @@ func miqt_exec_callback_QRegularExpressionValidator_Fixup(self *C.QRegularExpres // Delete this object from C++ memory. func (this *QRegularExpressionValidator) Delete() { - C.QRegularExpressionValidator_Delete(this.h, C.bool(this.isSubclass)) + C.QRegularExpressionValidator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qvalidator.h b/qt/gen_qvalidator.h index e9c7e51a..bae01519 100644 --- a/qt/gen_qvalidator.h +++ b/qt/gen_qvalidator.h @@ -81,7 +81,7 @@ void QValidator_override_virtual_ConnectNotify(void* self, intptr_t slot); void QValidator_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QValidator_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QValidator_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QValidator_Delete(QValidator* self, bool isSubclass); +void QValidator_Delete(QValidator* self); QIntValidator* QIntValidator_new(); QIntValidator* QIntValidator_new2(int bottom, int top); @@ -113,7 +113,7 @@ void QIntValidator_override_virtual_Fixup(void* self, intptr_t slot); void QIntValidator_virtualbase_Fixup(const void* self, struct miqt_string input); void QIntValidator_override_virtual_SetRange(void* self, intptr_t slot); void QIntValidator_virtualbase_SetRange(void* self, int bottom, int top); -void QIntValidator_Delete(QIntValidator* self, bool isSubclass); +void QIntValidator_Delete(QIntValidator* self); QDoubleValidator* QDoubleValidator_new(); QDoubleValidator* QDoubleValidator_new2(double bottom, double top, int decimals); @@ -152,7 +152,7 @@ void QDoubleValidator_override_virtual_SetRange(void* self, intptr_t slot); void QDoubleValidator_virtualbase_SetRange(void* self, double bottom, double top, int decimals); void QDoubleValidator_override_virtual_Fixup(void* self, intptr_t slot); void QDoubleValidator_virtualbase_Fixup(const void* self, struct miqt_string param1); -void QDoubleValidator_Delete(QDoubleValidator* self, bool isSubclass); +void QDoubleValidator_Delete(QDoubleValidator* self); QRegExpValidator* QRegExpValidator_new(); QRegExpValidator* QRegExpValidator_new2(QRegExp* rx); @@ -176,7 +176,7 @@ void QRegExpValidator_override_virtual_Validate(void* self, intptr_t slot); int QRegExpValidator_virtualbase_Validate(const void* self, struct miqt_string input, int* pos); void QRegExpValidator_override_virtual_Fixup(void* self, intptr_t slot); void QRegExpValidator_virtualbase_Fixup(const void* self, struct miqt_string param1); -void QRegExpValidator_Delete(QRegExpValidator* self, bool isSubclass); +void QRegExpValidator_Delete(QRegExpValidator* self); QRegularExpressionValidator* QRegularExpressionValidator_new(); QRegularExpressionValidator* QRegularExpressionValidator_new2(QRegularExpression* re); @@ -200,7 +200,7 @@ void QRegularExpressionValidator_override_virtual_Validate(void* self, intptr_t int QRegularExpressionValidator_virtualbase_Validate(const void* self, struct miqt_string input, int* pos); void QRegularExpressionValidator_override_virtual_Fixup(void* self, intptr_t slot); void QRegularExpressionValidator_virtualbase_Fixup(const void* self, struct miqt_string param1); -void QRegularExpressionValidator_Delete(QRegularExpressionValidator* self, bool isSubclass); +void QRegularExpressionValidator_Delete(QRegularExpressionValidator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qvariant.cpp b/qt/gen_qvariant.cpp index 8b9dfc87..a76983db 100644 --- a/qt/gen_qvariant.cpp +++ b/qt/gen_qvariant.cpp @@ -606,12 +606,8 @@ double QVariant_ToReal1(const QVariant* self, bool* ok) { return static_cast(_ret); } -void QVariant_Delete(QVariant* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVariant_Delete(QVariant* self) { + delete self; } QVariantComparisonHelper* QVariantComparisonHelper_new(QVariant* varVal) { @@ -622,20 +618,12 @@ QVariantComparisonHelper* QVariantComparisonHelper_new2(QVariantComparisonHelper return new QVariantComparisonHelper(*param1); } -void QVariantComparisonHelper_Delete(QVariantComparisonHelper* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVariantComparisonHelper_Delete(QVariantComparisonHelper* self) { + delete self; } -void QVariant__Handler_Delete(QVariant__Handler* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVariant__Handler_Delete(QVariant__Handler* self) { + delete self; } QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_new(QSequentialIterable__const_iterator* other) { @@ -698,12 +686,8 @@ QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_Operato return new QSequentialIterable::const_iterator(self->operator-(static_cast(j))); } -void QSequentialIterable__const_iterator_Delete(QSequentialIterable__const_iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSequentialIterable__const_iterator_Delete(QSequentialIterable__const_iterator* self) { + delete self; } QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_new(QAssociativeIterable__const_iterator* other) { @@ -774,11 +758,7 @@ QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_Opera return new QAssociativeIterable::const_iterator(self->operator-(static_cast(j))); } -void QAssociativeIterable__const_iterator_Delete(QAssociativeIterable__const_iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAssociativeIterable__const_iterator_Delete(QAssociativeIterable__const_iterator* self) { + delete self; } diff --git a/qt/gen_qvariant.go b/qt/gen_qvariant.go index ad5306a6..b3c42861 100644 --- a/qt/gen_qvariant.go +++ b/qt/gen_qvariant.go @@ -902,7 +902,7 @@ func (this *QVariant) ToReal1(ok *bool) float64 { // Delete this object from C++ memory. func (this *QVariant) Delete() { - C.QVariant_Delete(this.h, C.bool(this.isSubclass)) + C.QVariant_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -965,7 +965,7 @@ func NewQVariantComparisonHelper2(param1 *QVariantComparisonHelper) *QVariantCom // Delete this object from C++ memory. func (this *QVariantComparisonHelper) Delete() { - C.QVariantComparisonHelper_Delete(this.h, C.bool(this.isSubclass)) + C.QVariantComparisonHelper_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1012,7 +1012,7 @@ func UnsafeNewQVariant__Handler(h unsafe.Pointer) *QVariant__Handler { // Delete this object from C++ memory. func (this *QVariant__Handler) Delete() { - C.QVariant__Handler_Delete(this.h, C.bool(this.isSubclass)) + C.QVariant__Handler_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1125,7 +1125,7 @@ func (this *QSequentialIterable__const_iterator) OperatorMinus(j int) *QSequenti // Delete this object from C++ memory. func (this *QSequentialIterable__const_iterator) Delete() { - C.QSequentialIterable__const_iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QSequentialIterable__const_iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1250,7 +1250,7 @@ func (this *QAssociativeIterable__const_iterator) OperatorMinus(j int) *QAssocia // Delete this object from C++ memory. func (this *QAssociativeIterable__const_iterator) Delete() { - C.QAssociativeIterable__const_iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QAssociativeIterable__const_iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qvariant.h b/qt/gen_qvariant.h index 5c869105..379bef3e 100644 --- a/qt/gen_qvariant.h +++ b/qt/gen_qvariant.h @@ -206,13 +206,13 @@ unsigned long long QVariant_ToULongLong1(const QVariant* self, bool* ok); double QVariant_ToDouble1(const QVariant* self, bool* ok); float QVariant_ToFloat1(const QVariant* self, bool* ok); double QVariant_ToReal1(const QVariant* self, bool* ok); -void QVariant_Delete(QVariant* self, bool isSubclass); +void QVariant_Delete(QVariant* self); QVariantComparisonHelper* QVariantComparisonHelper_new(QVariant* varVal); QVariantComparisonHelper* QVariantComparisonHelper_new2(QVariantComparisonHelper* param1); -void QVariantComparisonHelper_Delete(QVariantComparisonHelper* self, bool isSubclass); +void QVariantComparisonHelper_Delete(QVariantComparisonHelper* self); -void QVariant__Handler_Delete(QVariant__Handler* self, bool isSubclass); +void QVariant__Handler_Delete(QVariant__Handler* self); QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_new(QSequentialIterable__const_iterator* other); void QSequentialIterable__const_iterator_OperatorAssign(QSequentialIterable__const_iterator* self, QSequentialIterable__const_iterator* other); @@ -227,7 +227,7 @@ QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_Operato QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_OperatorMinusAssign(QSequentialIterable__const_iterator* self, int j); QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_OperatorPlus(const QSequentialIterable__const_iterator* self, int j); QSequentialIterable__const_iterator* QSequentialIterable__const_iterator_OperatorMinus(const QSequentialIterable__const_iterator* self, int j); -void QSequentialIterable__const_iterator_Delete(QSequentialIterable__const_iterator* self, bool isSubclass); +void QSequentialIterable__const_iterator_Delete(QSequentialIterable__const_iterator* self); QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_new(QAssociativeIterable__const_iterator* other); void QAssociativeIterable__const_iterator_OperatorAssign(QAssociativeIterable__const_iterator* self, QAssociativeIterable__const_iterator* other); @@ -244,7 +244,7 @@ QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_Opera QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_OperatorMinusAssign(QAssociativeIterable__const_iterator* self, int j); QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_OperatorPlus(const QAssociativeIterable__const_iterator* self, int j); QAssociativeIterable__const_iterator* QAssociativeIterable__const_iterator_OperatorMinus(const QAssociativeIterable__const_iterator* self, int j); -void QAssociativeIterable__const_iterator_Delete(QAssociativeIterable__const_iterator* self, bool isSubclass); +void QAssociativeIterable__const_iterator_Delete(QAssociativeIterable__const_iterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qvariantanimation.cpp b/qt/gen_qvariantanimation.cpp index 112d5789..53948b25 100644 --- a/qt/gen_qvariantanimation.cpp +++ b/qt/gen_qvariantanimation.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QVariantAnimation_UpdateDirection(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQVariantAnimation : public virtual QVariantAnimation { +class MiqtVirtualQVariantAnimation final : public QVariantAnimation { public: MiqtVirtualQVariantAnimation(): QVariantAnimation() {}; MiqtVirtualQVariantAnimation(QObject* parent): QVariantAnimation(parent) {}; - virtual ~MiqtVirtualQVariantAnimation() = default; + virtual ~MiqtVirtualQVariantAnimation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Duration = 0; @@ -453,11 +453,7 @@ void QVariantAnimation_virtualbase_UpdateDirection(void* self, int direction) { ( (MiqtVirtualQVariantAnimation*)(self) )->virtualbase_UpdateDirection(direction); } -void QVariantAnimation_Delete(QVariantAnimation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVariantAnimation_Delete(QVariantAnimation* self) { + delete self; } diff --git a/qt/gen_qvariantanimation.go b/qt/gen_qvariantanimation.go index 7a488cea..8d852644 100644 --- a/qt/gen_qvariantanimation.go +++ b/qt/gen_qvariantanimation.go @@ -460,7 +460,7 @@ func miqt_exec_callback_QVariantAnimation_UpdateDirection(self *C.QVariantAnimat // Delete this object from C++ memory. func (this *QVariantAnimation) Delete() { - C.QVariantAnimation_Delete(this.h, C.bool(this.isSubclass)) + C.QVariantAnimation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qvariantanimation.h b/qt/gen_qvariantanimation.h index 06c11785..b1328dfd 100644 --- a/qt/gen_qvariantanimation.h +++ b/qt/gen_qvariantanimation.h @@ -77,7 +77,7 @@ void QVariantAnimation_override_virtual_Interpolated(void* self, intptr_t slot); QVariant* QVariantAnimation_virtualbase_Interpolated(const void* self, QVariant* from, QVariant* to, double progress); void QVariantAnimation_override_virtual_UpdateDirection(void* self, intptr_t slot); void QVariantAnimation_virtualbase_UpdateDirection(void* self, int direction); -void QVariantAnimation_Delete(QVariantAnimation* self, bool isSubclass); +void QVariantAnimation_Delete(QVariantAnimation* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qvector2d.cpp b/qt/gen_qvector2d.cpp index e92bf651..fc4d198a 100644 --- a/qt/gen_qvector2d.cpp +++ b/qt/gen_qvector2d.cpp @@ -155,11 +155,7 @@ QVariant* QVector2D_ToQVariant(const QVector2D* self) { return new QVariant(self->operator QVariant()); } -void QVector2D_Delete(QVector2D* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVector2D_Delete(QVector2D* self) { + delete self; } diff --git a/qt/gen_qvector2d.go b/qt/gen_qvector2d.go index f7a7cc87..25889126 100644 --- a/qt/gen_qvector2d.go +++ b/qt/gen_qvector2d.go @@ -220,7 +220,7 @@ func (this *QVector2D) ToQVariant() *QVariant { // Delete this object from C++ memory. func (this *QVector2D) Delete() { - C.QVector2D_Delete(this.h, C.bool(this.isSubclass)) + C.QVector2D_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qvector2d.h b/qt/gen_qvector2d.h index a1bbea7a..8f885e4c 100644 --- a/qt/gen_qvector2d.h +++ b/qt/gen_qvector2d.h @@ -62,7 +62,7 @@ QVector4D* QVector2D_ToVector4D(const QVector2D* self); QPoint* QVector2D_ToPoint(const QVector2D* self); QPointF* QVector2D_ToPointF(const QVector2D* self); QVariant* QVector2D_ToQVariant(const QVector2D* self); -void QVector2D_Delete(QVector2D* self, bool isSubclass); +void QVector2D_Delete(QVector2D* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qvector3d.cpp b/qt/gen_qvector3d.cpp index 5612ab9e..98d355f6 100644 --- a/qt/gen_qvector3d.cpp +++ b/qt/gen_qvector3d.cpp @@ -197,11 +197,7 @@ QVariant* QVector3D_ToQVariant(const QVector3D* self) { return new QVariant(self->operator QVariant()); } -void QVector3D_Delete(QVector3D* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVector3D_Delete(QVector3D* self) { + delete self; } diff --git a/qt/gen_qvector3d.go b/qt/gen_qvector3d.go index a8f83340..f8acb1c9 100644 --- a/qt/gen_qvector3d.go +++ b/qt/gen_qvector3d.go @@ -274,7 +274,7 @@ func (this *QVector3D) ToQVariant() *QVariant { // Delete this object from C++ memory. func (this *QVector3D) Delete() { - C.QVector3D_Delete(this.h, C.bool(this.isSubclass)) + C.QVector3D_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qvector3d.h b/qt/gen_qvector3d.h index 24285fa8..b4c931d6 100644 --- a/qt/gen_qvector3d.h +++ b/qt/gen_qvector3d.h @@ -76,7 +76,7 @@ QVector4D* QVector3D_ToVector4D(const QVector3D* self); QPoint* QVector3D_ToPoint(const QVector3D* self); QPointF* QVector3D_ToPointF(const QVector3D* self); QVariant* QVector3D_ToQVariant(const QVector3D* self); -void QVector3D_Delete(QVector3D* self, bool isSubclass); +void QVector3D_Delete(QVector3D* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qvector4d.cpp b/qt/gen_qvector4d.cpp index dc6736e6..d659e6d9 100644 --- a/qt/gen_qvector4d.cpp +++ b/qt/gen_qvector4d.cpp @@ -179,11 +179,7 @@ QVariant* QVector4D_ToQVariant(const QVector4D* self) { return new QVariant(self->operator QVariant()); } -void QVector4D_Delete(QVector4D* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVector4D_Delete(QVector4D* self) { + delete self; } diff --git a/qt/gen_qvector4d.go b/qt/gen_qvector4d.go index 9fceaae7..267b7667 100644 --- a/qt/gen_qvector4d.go +++ b/qt/gen_qvector4d.go @@ -256,7 +256,7 @@ func (this *QVector4D) ToQVariant() *QVariant { // Delete this object from C++ memory. func (this *QVector4D) Delete() { - C.QVector4D_Delete(this.h, C.bool(this.isSubclass)) + C.QVector4D_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qvector4d.h b/qt/gen_qvector4d.h index 28b46e7c..2e0797e7 100644 --- a/qt/gen_qvector4d.h +++ b/qt/gen_qvector4d.h @@ -68,7 +68,7 @@ QVector3D* QVector4D_ToVector3DAffine(const QVector4D* self); QPoint* QVector4D_ToPoint(const QVector4D* self); QPointF* QVector4D_ToPointF(const QVector4D* self); QVariant* QVector4D_ToQVariant(const QVector4D* self); -void QVector4D_Delete(QVector4D* self, bool isSubclass); +void QVector4D_Delete(QVector4D* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qversionnumber.cpp b/qt/gen_qversionnumber.cpp index 09c62c68..81ccfc65 100644 --- a/qt/gen_qversionnumber.cpp +++ b/qt/gen_qversionnumber.cpp @@ -118,11 +118,7 @@ QVersionNumber* QVersionNumber_FromString22(struct miqt_string stringVal, int* s return new QVersionNumber(QVersionNumber::fromString(stringVal_QString, static_cast(suffixIndex))); } -void QVersionNumber_Delete(QVersionNumber* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVersionNumber_Delete(QVersionNumber* self) { + delete self; } diff --git a/qt/gen_qversionnumber.go b/qt/gen_qversionnumber.go index 1715b35c..6c84c8b1 100644 --- a/qt/gen_qversionnumber.go +++ b/qt/gen_qversionnumber.go @@ -179,7 +179,7 @@ func QVersionNumber_FromString22(stringVal string, suffixIndex *int) *QVersionNu // Delete this object from C++ memory. func (this *QVersionNumber) Delete() { - C.QVersionNumber_Delete(this.h, C.bool(this.isSubclass)) + C.QVersionNumber_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qversionnumber.h b/qt/gen_qversionnumber.h index bdc4d316..cedddfe5 100644 --- a/qt/gen_qversionnumber.h +++ b/qt/gen_qversionnumber.h @@ -40,7 +40,7 @@ QVersionNumber* QVersionNumber_CommonPrefix(QVersionNumber* v1, QVersionNumber* struct miqt_string QVersionNumber_ToString(const QVersionNumber* self); QVersionNumber* QVersionNumber_FromString(struct miqt_string stringVal); QVersionNumber* QVersionNumber_FromString22(struct miqt_string stringVal, int* suffixIndex); -void QVersionNumber_Delete(QVersionNumber* self, bool isSubclass); +void QVersionNumber_Delete(QVersionNumber* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qwaitcondition.cpp b/qt/gen_qwaitcondition.cpp index 06803ab6..0c152389 100644 --- a/qt/gen_qwaitcondition.cpp +++ b/qt/gen_qwaitcondition.cpp @@ -57,11 +57,7 @@ bool QWaitCondition_Wait23(QWaitCondition* self, QReadWriteLock* lockedReadWrite return self->wait(lockedReadWriteLock, *deadline); } -void QWaitCondition_Delete(QWaitCondition* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWaitCondition_Delete(QWaitCondition* self) { + delete self; } diff --git a/qt/gen_qwaitcondition.go b/qt/gen_qwaitcondition.go index 654502cf..9f4d450c 100644 --- a/qt/gen_qwaitcondition.go +++ b/qt/gen_qwaitcondition.go @@ -96,7 +96,7 @@ func (this *QWaitCondition) Wait23(lockedReadWriteLock *QReadWriteLock, deadline // Delete this object from C++ memory. func (this *QWaitCondition) Delete() { - C.QWaitCondition_Delete(this.h, C.bool(this.isSubclass)) + C.QWaitCondition_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qwaitcondition.h b/qt/gen_qwaitcondition.h index 07558724..5abaaf5b 100644 --- a/qt/gen_qwaitcondition.h +++ b/qt/gen_qwaitcondition.h @@ -37,7 +37,7 @@ void QWaitCondition_NotifyOne(QWaitCondition* self); void QWaitCondition_NotifyAll(QWaitCondition* self); bool QWaitCondition_Wait22(QWaitCondition* self, QMutex* lockedMutex, QDeadlineTimer* deadline); bool QWaitCondition_Wait23(QWaitCondition* self, QReadWriteLock* lockedReadWriteLock, QDeadlineTimer* deadline); -void QWaitCondition_Delete(QWaitCondition* self, bool isSubclass); +void QWaitCondition_Delete(QWaitCondition* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qwhatsthis.cpp b/qt/gen_qwhatsthis.cpp index 16c9b30d..af9e4a4c 100644 --- a/qt/gen_qwhatsthis.cpp +++ b/qt/gen_qwhatsthis.cpp @@ -51,11 +51,7 @@ QAction* QWhatsThis_CreateAction1(QObject* parent) { return QWhatsThis::createAction(parent); } -void QWhatsThis_Delete(QWhatsThis* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWhatsThis_Delete(QWhatsThis* self) { + delete self; } diff --git a/qt/gen_qwhatsthis.go b/qt/gen_qwhatsthis.go index 8eb50697..8c7668b9 100644 --- a/qt/gen_qwhatsthis.go +++ b/qt/gen_qwhatsthis.go @@ -88,7 +88,7 @@ func QWhatsThis_CreateAction1(parent *QObject) *QAction { // Delete this object from C++ memory. func (this *QWhatsThis) Delete() { - C.QWhatsThis_Delete(this.h, C.bool(this.isSubclass)) + C.QWhatsThis_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qwhatsthis.h b/qt/gen_qwhatsthis.h index 698e1e18..0ed60fdd 100644 --- a/qt/gen_qwhatsthis.h +++ b/qt/gen_qwhatsthis.h @@ -36,7 +36,7 @@ void QWhatsThis_HideText(); QAction* QWhatsThis_CreateAction(); void QWhatsThis_ShowText3(QPoint* pos, struct miqt_string text, QWidget* w); QAction* QWhatsThis_CreateAction1(QObject* parent); -void QWhatsThis_Delete(QWhatsThis* self, bool isSubclass); +void QWhatsThis_Delete(QWhatsThis* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qwidget.cpp b/qt/gen_qwidget.cpp index f6a52f77..add982f9 100644 --- a/qt/gen_qwidget.cpp +++ b/qt/gen_qwidget.cpp @@ -127,22 +127,18 @@ void QWidgetData_OperatorAssign(QWidgetData* self, QWidgetData* param1) { self->operator=(*param1); } -void QWidgetData_Delete(QWidgetData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWidgetData_Delete(QWidgetData* self) { + delete self; } -class MiqtVirtualQWidget : public virtual QWidget { +class MiqtVirtualQWidget final : public QWidget { public: MiqtVirtualQWidget(QWidget* parent): QWidget(parent) {}; MiqtVirtualQWidget(): QWidget() {}; MiqtVirtualQWidget(QWidget* parent, Qt::WindowFlags f): QWidget(parent, f) {}; - virtual ~MiqtVirtualQWidget() = default; + virtual ~MiqtVirtualQWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -2975,11 +2971,7 @@ void QWidget_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQWidget*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWidget_Delete(QWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWidget_Delete(QWidget* self) { + delete self; } diff --git a/qt/gen_qwidget.go b/qt/gen_qwidget.go index 2ea5fcd2..2a519fda 100644 --- a/qt/gen_qwidget.go +++ b/qt/gen_qwidget.go @@ -69,7 +69,7 @@ func (this *QWidgetData) OperatorAssign(param1 *QWidgetData) { // Delete this object from C++ memory. func (this *QWidgetData) Delete() { - C.QWidgetData_Delete(this.h, C.bool(this.isSubclass)) + C.QWidgetData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2770,7 +2770,7 @@ func miqt_exec_callback_QWidget_DisconnectNotify(self *C.QWidget, cb C.intptr_t, // Delete this object from C++ memory. func (this *QWidget) Delete() { - C.QWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qwidget.h b/qt/gen_qwidget.h index 62811d2f..21821311 100644 --- a/qt/gen_qwidget.h +++ b/qt/gen_qwidget.h @@ -128,7 +128,7 @@ typedef struct QWindow QWindow; QWidgetData* QWidgetData_new(QWidgetData* param1); void QWidgetData_OperatorAssign(QWidgetData* self, QWidgetData* param1); -void QWidgetData_Delete(QWidgetData* self, bool isSubclass); +void QWidgetData_Delete(QWidgetData* self); QWidget* QWidget_new(QWidget* parent); QWidget* QWidget_new2(); @@ -539,7 +539,7 @@ void QWidget_override_virtual_ConnectNotify(void* self, intptr_t slot); void QWidget_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWidget_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWidget_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWidget_Delete(QWidget* self, bool isSubclass); +void QWidget_Delete(QWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qwidgetaction.cpp b/qt/gen_qwidgetaction.cpp index fa847df6..234dedad 100644 --- a/qt/gen_qwidgetaction.cpp +++ b/qt/gen_qwidgetaction.cpp @@ -22,12 +22,12 @@ void miqt_exec_callback_QWidgetAction_DeleteWidget(void*, intptr_t, QWidget*); } /* extern C */ #endif -class MiqtVirtualQWidgetAction : public virtual QWidgetAction { +class MiqtVirtualQWidgetAction final : public QWidgetAction { public: MiqtVirtualQWidgetAction(QObject* parent): QWidgetAction(parent) {}; - virtual ~MiqtVirtualQWidgetAction() = default; + virtual ~MiqtVirtualQWidgetAction() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -255,11 +255,7 @@ void QWidgetAction_virtualbase_DeleteWidget(void* self, QWidget* widget) { ( (MiqtVirtualQWidgetAction*)(self) )->virtualbase_DeleteWidget(widget); } -void QWidgetAction_Delete(QWidgetAction* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWidgetAction_Delete(QWidgetAction* self) { + delete self; } diff --git a/qt/gen_qwidgetaction.go b/qt/gen_qwidgetaction.go index a181da15..153aa940 100644 --- a/qt/gen_qwidgetaction.go +++ b/qt/gen_qwidgetaction.go @@ -261,7 +261,7 @@ func miqt_exec_callback_QWidgetAction_DeleteWidget(self *C.QWidgetAction, cb C.i // Delete this object from C++ memory. func (this *QWidgetAction) Delete() { - C.QWidgetAction_Delete(this.h, C.bool(this.isSubclass)) + C.QWidgetAction_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qwidgetaction.h b/qt/gen_qwidgetaction.h index 66c96d67..fa095609 100644 --- a/qt/gen_qwidgetaction.h +++ b/qt/gen_qwidgetaction.h @@ -56,7 +56,7 @@ void QWidgetAction_override_virtual_CreateWidget(void* self, intptr_t slot); QWidget* QWidgetAction_virtualbase_CreateWidget(void* self, QWidget* parent); void QWidgetAction_override_virtual_DeleteWidget(void* self, intptr_t slot); void QWidgetAction_virtualbase_DeleteWidget(void* self, QWidget* widget); -void QWidgetAction_Delete(QWidgetAction* self, bool isSubclass); +void QWidgetAction_Delete(QWidgetAction* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qwindow.cpp b/qt/gen_qwindow.cpp index aced6581..4af6f3c3 100644 --- a/qt/gen_qwindow.cpp +++ b/qt/gen_qwindow.cpp @@ -90,14 +90,14 @@ void miqt_exec_callback_QWindow_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQWindow : public virtual QWindow { +class MiqtVirtualQWindow final : public QWindow { public: MiqtVirtualQWindow(): QWindow() {}; MiqtVirtualQWindow(QWindow* parent): QWindow(parent) {}; MiqtVirtualQWindow(QScreen* screen): QWindow(screen) {}; - virtual ~MiqtVirtualQWindow() = default; + virtual ~MiqtVirtualQWindow() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SurfaceType = 0; @@ -1809,11 +1809,7 @@ void QWindow_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQWindow*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWindow_Delete(QWindow* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWindow_Delete(QWindow* self) { + delete self; } diff --git a/qt/gen_qwindow.go b/qt/gen_qwindow.go index 157d371f..21f2b2dd 100644 --- a/qt/gen_qwindow.go +++ b/qt/gen_qwindow.go @@ -1812,7 +1812,7 @@ func miqt_exec_callback_QWindow_DisconnectNotify(self *C.QWindow, cb C.intptr_t, // Delete this object from C++ memory. func (this *QWindow) Delete() { - C.QWindow_Delete(this.h, C.bool(this.isSubclass)) + C.QWindow_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qwindow.h b/qt/gen_qwindow.h index fdc153b2..1022ecc8 100644 --- a/qt/gen_qwindow.h +++ b/qt/gen_qwindow.h @@ -312,7 +312,7 @@ void QWindow_override_virtual_ConnectNotify(void* self, intptr_t slot); void QWindow_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWindow_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWindow_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWindow_Delete(QWindow* self, bool isSubclass); +void QWindow_Delete(QWindow* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qwizard.cpp b/qt/gen_qwizard.cpp index 3e40d1b3..a5f1fa44 100644 --- a/qt/gen_qwizard.cpp +++ b/qt/gen_qwizard.cpp @@ -119,14 +119,14 @@ bool miqt_exec_callback_QWizardPage_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQWizard : public virtual QWizard { +class MiqtVirtualQWizard final : public QWizard { public: MiqtVirtualQWizard(QWidget* parent): QWizard(parent) {}; MiqtVirtualQWizard(): QWizard() {}; MiqtVirtualQWizard(QWidget* parent, Qt::WindowFlags flags): QWizard(parent, flags) {}; - virtual ~MiqtVirtualQWizard() = default; + virtual ~MiqtVirtualQWizard() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ValidateCurrentPage = 0; @@ -1115,21 +1115,17 @@ bool QWizard_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2 return ( (MiqtVirtualQWizard*)(self) )->virtualbase_EventFilter(param1, param2); } -void QWizard_Delete(QWizard* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWizard_Delete(QWizard* self) { + delete self; } -class MiqtVirtualQWizardPage : public virtual QWizardPage { +class MiqtVirtualQWizardPage final : public QWizardPage { public: MiqtVirtualQWizardPage(QWidget* parent): QWizardPage(parent) {}; MiqtVirtualQWizardPage(): QWizardPage() {}; - virtual ~MiqtVirtualQWizardPage() = default; + virtual ~MiqtVirtualQWizardPage() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__InitializePage = 0; @@ -2776,11 +2772,7 @@ bool QWizardPage_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQWizardPage*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QWizardPage_Delete(QWizardPage* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWizardPage_Delete(QWizardPage* self) { + delete self; } diff --git a/qt/gen_qwizard.go b/qt/gen_qwizard.go index ee790966..c1283340 100644 --- a/qt/gen_qwizard.go +++ b/qt/gen_qwizard.go @@ -1041,7 +1041,7 @@ func miqt_exec_callback_QWizard_EventFilter(self *C.QWizard, cb C.intptr_t, para // Delete this object from C++ memory. func (this *QWizard) Delete() { - C.QWizard_Delete(this.h, C.bool(this.isSubclass)) + C.QWizard_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2498,7 +2498,7 @@ func miqt_exec_callback_QWizardPage_FocusNextPrevChild(self *C.QWizardPage, cb C // Delete this object from C++ memory. func (this *QWizardPage) Delete() { - C.QWizardPage_Delete(this.h, C.bool(this.isSubclass)) + C.QWizardPage_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qwizard.h b/qt/gen_qwizard.h index 77401b3d..2e921416 100644 --- a/qt/gen_qwizard.h +++ b/qt/gen_qwizard.h @@ -194,7 +194,7 @@ void QWizard_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QWizard_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QWizard_override_virtual_EventFilter(void* self, intptr_t slot); bool QWizard_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QWizard_Delete(QWizard* self, bool isSubclass); +void QWizard_Delete(QWizard* self); QWizardPage* QWizardPage_new(QWidget* parent); QWizardPage* QWizardPage_new2(); @@ -318,7 +318,7 @@ void QWizardPage_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QWizardPage_virtualbase_InputMethodQuery(const void* self, int param1); void QWizardPage_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QWizardPage_virtualbase_FocusNextPrevChild(void* self, bool next); -void QWizardPage_Delete(QWizardPage* self, bool isSubclass); +void QWizardPage_Delete(QWizardPage* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/gen_qxmlstream.cpp b/qt/gen_qxmlstream.cpp index d300a13e..16d9cc3f 100644 --- a/qt/gen_qxmlstream.cpp +++ b/qt/gen_qxmlstream.cpp @@ -68,12 +68,8 @@ int QXmlStreamStringRef_Size(const QXmlStreamStringRef* self) { return self->size(); } -void QXmlStreamStringRef_Delete(QXmlStreamStringRef* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamStringRef_Delete(QXmlStreamStringRef* self) { + delete self; } QXmlStreamAttribute* QXmlStreamAttribute_new() { @@ -113,12 +109,8 @@ bool QXmlStreamAttribute_OperatorNotEqual(const QXmlStreamAttribute* self, QXmlS return (*self != *other); } -void QXmlStreamAttribute_Delete(QXmlStreamAttribute* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamAttribute_Delete(QXmlStreamAttribute* self) { + delete self; } QXmlStreamNamespaceDeclaration* QXmlStreamNamespaceDeclaration_new() { @@ -147,12 +139,8 @@ bool QXmlStreamNamespaceDeclaration_OperatorNotEqual(const QXmlStreamNamespaceDe return (*self != *other); } -void QXmlStreamNamespaceDeclaration_Delete(QXmlStreamNamespaceDeclaration* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamNamespaceDeclaration_Delete(QXmlStreamNamespaceDeclaration* self) { + delete self; } QXmlStreamNotationDeclaration* QXmlStreamNotationDeclaration_new() { @@ -175,12 +163,8 @@ bool QXmlStreamNotationDeclaration_OperatorNotEqual(const QXmlStreamNotationDecl return (*self != *other); } -void QXmlStreamNotationDeclaration_Delete(QXmlStreamNotationDeclaration* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamNotationDeclaration_Delete(QXmlStreamNotationDeclaration* self) { + delete self; } QXmlStreamEntityDeclaration* QXmlStreamEntityDeclaration_new() { @@ -203,12 +187,8 @@ bool QXmlStreamEntityDeclaration_OperatorNotEqual(const QXmlStreamEntityDeclarat return (*self != *other); } -void QXmlStreamEntityDeclaration_Delete(QXmlStreamEntityDeclaration* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamEntityDeclaration_Delete(QXmlStreamEntityDeclaration* self) { + delete self; } struct miqt_string QXmlStreamEntityResolver_ResolveEntity(QXmlStreamEntityResolver* self, struct miqt_string publicId, struct miqt_string systemId) { @@ -236,12 +216,8 @@ struct miqt_string QXmlStreamEntityResolver_ResolveUndeclaredEntity(QXmlStreamEn return _ms; } -void QXmlStreamEntityResolver_Delete(QXmlStreamEntityResolver* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamEntityResolver_Delete(QXmlStreamEntityResolver* self) { + delete self; } QXmlStreamReader* QXmlStreamReader_new() { @@ -516,12 +492,8 @@ void QXmlStreamReader_RaiseError1(QXmlStreamReader* self, struct miqt_string mes self->raiseError(message_QString); } -void QXmlStreamReader_Delete(QXmlStreamReader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamReader_Delete(QXmlStreamReader* self) { + delete self; } QXmlStreamWriter* QXmlStreamWriter_new() { @@ -702,11 +674,7 @@ void QXmlStreamWriter_WriteProcessingInstruction2(QXmlStreamWriter* self, struct self->writeProcessingInstruction(target_QString, data_QString); } -void QXmlStreamWriter_Delete(QXmlStreamWriter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamWriter_Delete(QXmlStreamWriter* self) { + delete self; } diff --git a/qt/gen_qxmlstream.go b/qt/gen_qxmlstream.go index 7e256a1c..e48fe308 100644 --- a/qt/gen_qxmlstream.go +++ b/qt/gen_qxmlstream.go @@ -137,7 +137,7 @@ func (this *QXmlStreamStringRef) Size() int { // Delete this object from C++ memory. func (this *QXmlStreamStringRef) Delete() { - C.QXmlStreamStringRef_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamStringRef_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -252,7 +252,7 @@ func (this *QXmlStreamAttribute) OperatorNotEqual(other *QXmlStreamAttribute) bo // Delete this object from C++ memory. func (this *QXmlStreamAttribute) Delete() { - C.QXmlStreamAttribute_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamAttribute_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -343,7 +343,7 @@ func (this *QXmlStreamNamespaceDeclaration) OperatorNotEqual(other *QXmlStreamNa // Delete this object from C++ memory. func (this *QXmlStreamNamespaceDeclaration) Delete() { - C.QXmlStreamNamespaceDeclaration_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamNamespaceDeclaration_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -418,7 +418,7 @@ func (this *QXmlStreamNotationDeclaration) OperatorNotEqual(other *QXmlStreamNot // Delete this object from C++ memory. func (this *QXmlStreamNotationDeclaration) Delete() { - C.QXmlStreamNotationDeclaration_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamNotationDeclaration_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -493,7 +493,7 @@ func (this *QXmlStreamEntityDeclaration) OperatorNotEqual(other *QXmlStreamEntit // Delete this object from C++ memory. func (this *QXmlStreamEntityDeclaration) Delete() { - C.QXmlStreamEntityDeclaration_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamEntityDeclaration_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -566,7 +566,7 @@ func (this *QXmlStreamEntityResolver) ResolveUndeclaredEntity(name string) strin // Delete this object from C++ memory. func (this *QXmlStreamEntityResolver) Delete() { - C.QXmlStreamEntityResolver_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamEntityResolver_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -897,7 +897,7 @@ func (this *QXmlStreamReader) RaiseError1(message string) { // Delete this object from C++ memory. func (this *QXmlStreamReader) Delete() { - C.QXmlStreamReader_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamReader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1222,7 +1222,7 @@ func (this *QXmlStreamWriter) WriteProcessingInstruction2(target string, data st // Delete this object from C++ memory. func (this *QXmlStreamWriter) Delete() { - C.QXmlStreamWriter_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamWriter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/gen_qxmlstream.h b/qt/gen_qxmlstream.h index 0dd9d37e..18aea1b3 100644 --- a/qt/gen_qxmlstream.h +++ b/qt/gen_qxmlstream.h @@ -47,7 +47,7 @@ void QXmlStreamStringRef_Clear(QXmlStreamStringRef* self); struct miqt_string QXmlStreamStringRef_String(const QXmlStreamStringRef* self); int QXmlStreamStringRef_Position(const QXmlStreamStringRef* self); int QXmlStreamStringRef_Size(const QXmlStreamStringRef* self); -void QXmlStreamStringRef_Delete(QXmlStreamStringRef* self, bool isSubclass); +void QXmlStreamStringRef_Delete(QXmlStreamStringRef* self); QXmlStreamAttribute* QXmlStreamAttribute_new(); QXmlStreamAttribute* QXmlStreamAttribute_new2(struct miqt_string qualifiedName, struct miqt_string value); @@ -57,7 +57,7 @@ void QXmlStreamAttribute_OperatorAssign(QXmlStreamAttribute* self, QXmlStreamAtt bool QXmlStreamAttribute_IsDefault(const QXmlStreamAttribute* self); bool QXmlStreamAttribute_OperatorEqual(const QXmlStreamAttribute* self, QXmlStreamAttribute* other); bool QXmlStreamAttribute_OperatorNotEqual(const QXmlStreamAttribute* self, QXmlStreamAttribute* other); -void QXmlStreamAttribute_Delete(QXmlStreamAttribute* self, bool isSubclass); +void QXmlStreamAttribute_Delete(QXmlStreamAttribute* self); QXmlStreamNamespaceDeclaration* QXmlStreamNamespaceDeclaration_new(); QXmlStreamNamespaceDeclaration* QXmlStreamNamespaceDeclaration_new2(struct miqt_string prefix, struct miqt_string namespaceUri); @@ -65,25 +65,25 @@ QXmlStreamNamespaceDeclaration* QXmlStreamNamespaceDeclaration_new3(QXmlStreamNa void QXmlStreamNamespaceDeclaration_OperatorAssign(QXmlStreamNamespaceDeclaration* self, QXmlStreamNamespaceDeclaration* param1); bool QXmlStreamNamespaceDeclaration_OperatorEqual(const QXmlStreamNamespaceDeclaration* self, QXmlStreamNamespaceDeclaration* other); bool QXmlStreamNamespaceDeclaration_OperatorNotEqual(const QXmlStreamNamespaceDeclaration* self, QXmlStreamNamespaceDeclaration* other); -void QXmlStreamNamespaceDeclaration_Delete(QXmlStreamNamespaceDeclaration* self, bool isSubclass); +void QXmlStreamNamespaceDeclaration_Delete(QXmlStreamNamespaceDeclaration* self); QXmlStreamNotationDeclaration* QXmlStreamNotationDeclaration_new(); QXmlStreamNotationDeclaration* QXmlStreamNotationDeclaration_new2(QXmlStreamNotationDeclaration* param1); void QXmlStreamNotationDeclaration_OperatorAssign(QXmlStreamNotationDeclaration* self, QXmlStreamNotationDeclaration* param1); bool QXmlStreamNotationDeclaration_OperatorEqual(const QXmlStreamNotationDeclaration* self, QXmlStreamNotationDeclaration* other); bool QXmlStreamNotationDeclaration_OperatorNotEqual(const QXmlStreamNotationDeclaration* self, QXmlStreamNotationDeclaration* other); -void QXmlStreamNotationDeclaration_Delete(QXmlStreamNotationDeclaration* self, bool isSubclass); +void QXmlStreamNotationDeclaration_Delete(QXmlStreamNotationDeclaration* self); QXmlStreamEntityDeclaration* QXmlStreamEntityDeclaration_new(); QXmlStreamEntityDeclaration* QXmlStreamEntityDeclaration_new2(QXmlStreamEntityDeclaration* param1); void QXmlStreamEntityDeclaration_OperatorAssign(QXmlStreamEntityDeclaration* self, QXmlStreamEntityDeclaration* param1); bool QXmlStreamEntityDeclaration_OperatorEqual(const QXmlStreamEntityDeclaration* self, QXmlStreamEntityDeclaration* other); bool QXmlStreamEntityDeclaration_OperatorNotEqual(const QXmlStreamEntityDeclaration* self, QXmlStreamEntityDeclaration* other); -void QXmlStreamEntityDeclaration_Delete(QXmlStreamEntityDeclaration* self, bool isSubclass); +void QXmlStreamEntityDeclaration_Delete(QXmlStreamEntityDeclaration* self); struct miqt_string QXmlStreamEntityResolver_ResolveEntity(QXmlStreamEntityResolver* self, struct miqt_string publicId, struct miqt_string systemId); struct miqt_string QXmlStreamEntityResolver_ResolveUndeclaredEntity(QXmlStreamEntityResolver* self, struct miqt_string name); -void QXmlStreamEntityResolver_Delete(QXmlStreamEntityResolver* self, bool isSubclass); +void QXmlStreamEntityResolver_Delete(QXmlStreamEntityResolver* self); QXmlStreamReader* QXmlStreamReader_new(); QXmlStreamReader* QXmlStreamReader_new2(QIODevice* device); @@ -135,7 +135,7 @@ void QXmlStreamReader_SetEntityResolver(QXmlStreamReader* self, QXmlStreamEntity QXmlStreamEntityResolver* QXmlStreamReader_EntityResolver(const QXmlStreamReader* self); struct miqt_string QXmlStreamReader_ReadElementText1(QXmlStreamReader* self, int behaviour); void QXmlStreamReader_RaiseError1(QXmlStreamReader* self, struct miqt_string message); -void QXmlStreamReader_Delete(QXmlStreamReader* self, bool isSubclass); +void QXmlStreamReader_Delete(QXmlStreamReader* self); QXmlStreamWriter* QXmlStreamWriter_new(); QXmlStreamWriter* QXmlStreamWriter_new2(QIODevice* device); @@ -174,7 +174,7 @@ void QXmlStreamWriter_WriteCurrentToken(QXmlStreamWriter* self, QXmlStreamReader bool QXmlStreamWriter_HasError(const QXmlStreamWriter* self); void QXmlStreamWriter_WriteNamespace2(QXmlStreamWriter* self, struct miqt_string namespaceUri, struct miqt_string prefix); void QXmlStreamWriter_WriteProcessingInstruction2(QXmlStreamWriter* self, struct miqt_string target, struct miqt_string data); -void QXmlStreamWriter_Delete(QXmlStreamWriter* self, bool isSubclass); +void QXmlStreamWriter_Delete(QXmlStreamWriter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qabstractvideobuffer.cpp b/qt/multimedia/gen_qabstractvideobuffer.cpp index 64e1997d..1d209c11 100644 --- a/qt/multimedia/gen_qabstractvideobuffer.cpp +++ b/qt/multimedia/gen_qabstractvideobuffer.cpp @@ -22,12 +22,12 @@ QVariant* miqt_exec_callback_QAbstractPlanarVideoBuffer_Handle(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQAbstractVideoBuffer : public virtual QAbstractVideoBuffer { +class MiqtVirtualQAbstractVideoBuffer final : public QAbstractVideoBuffer { public: MiqtVirtualQAbstractVideoBuffer(QAbstractVideoBuffer::HandleType typeVal): QAbstractVideoBuffer(typeVal) {}; - virtual ~MiqtVirtualQAbstractVideoBuffer() = default; + virtual ~MiqtVirtualQAbstractVideoBuffer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Release = 0; @@ -184,20 +184,16 @@ QVariant* QAbstractVideoBuffer_virtualbase_Handle(const void* self) { return ( (const MiqtVirtualQAbstractVideoBuffer*)(self) )->virtualbase_Handle(); } -void QAbstractVideoBuffer_Delete(QAbstractVideoBuffer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractVideoBuffer_Delete(QAbstractVideoBuffer* self) { + delete self; } -class MiqtVirtualQAbstractPlanarVideoBuffer : public virtual QAbstractPlanarVideoBuffer { +class MiqtVirtualQAbstractPlanarVideoBuffer final : public QAbstractPlanarVideoBuffer { public: MiqtVirtualQAbstractPlanarVideoBuffer(QAbstractVideoBuffer::HandleType typeVal): QAbstractPlanarVideoBuffer(typeVal) {}; - virtual ~MiqtVirtualQAbstractPlanarVideoBuffer() = default; + virtual ~MiqtVirtualQAbstractPlanarVideoBuffer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Map = 0; @@ -348,11 +344,7 @@ QVariant* QAbstractPlanarVideoBuffer_virtualbase_Handle(const void* self) { return ( (const MiqtVirtualQAbstractPlanarVideoBuffer*)(self) )->virtualbase_Handle(); } -void QAbstractPlanarVideoBuffer_Delete(QAbstractPlanarVideoBuffer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractPlanarVideoBuffer_Delete(QAbstractPlanarVideoBuffer* self) { + delete self; } diff --git a/qt/multimedia/gen_qabstractvideobuffer.go b/qt/multimedia/gen_qabstractvideobuffer.go index ccfaaa74..40d7971c 100644 --- a/qt/multimedia/gen_qabstractvideobuffer.go +++ b/qt/multimedia/gen_qabstractvideobuffer.go @@ -218,7 +218,7 @@ func miqt_exec_callback_QAbstractVideoBuffer_Handle(self *C.QAbstractVideoBuffer // Delete this object from C++ memory. func (this *QAbstractVideoBuffer) Delete() { - C.QAbstractVideoBuffer_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractVideoBuffer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -399,7 +399,7 @@ func miqt_exec_callback_QAbstractPlanarVideoBuffer_Handle(self *C.QAbstractPlana // Delete this object from C++ memory. func (this *QAbstractPlanarVideoBuffer) Delete() { - C.QAbstractPlanarVideoBuffer_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractPlanarVideoBuffer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qabstractvideobuffer.h b/qt/multimedia/gen_qabstractvideobuffer.h index 20015d5e..abaa1a2a 100644 --- a/qt/multimedia/gen_qabstractvideobuffer.h +++ b/qt/multimedia/gen_qabstractvideobuffer.h @@ -41,7 +41,7 @@ void QAbstractVideoBuffer_override_virtual_Unmap(void* self, intptr_t slot); void QAbstractVideoBuffer_virtualbase_Unmap(void* self); void QAbstractVideoBuffer_override_virtual_Handle(void* self, intptr_t slot); QVariant* QAbstractVideoBuffer_virtualbase_Handle(const void* self); -void QAbstractVideoBuffer_Delete(QAbstractVideoBuffer* self, bool isSubclass); +void QAbstractVideoBuffer_Delete(QAbstractVideoBuffer* self); QAbstractPlanarVideoBuffer* QAbstractPlanarVideoBuffer_new(int typeVal); void QAbstractPlanarVideoBuffer_virtbase(QAbstractPlanarVideoBuffer* src, QAbstractVideoBuffer** outptr_QAbstractVideoBuffer); @@ -56,7 +56,7 @@ void QAbstractPlanarVideoBuffer_override_virtual_Unmap(void* self, intptr_t slot void QAbstractPlanarVideoBuffer_virtualbase_Unmap(void* self); void QAbstractPlanarVideoBuffer_override_virtual_Handle(void* self, intptr_t slot); QVariant* QAbstractPlanarVideoBuffer_virtualbase_Handle(const void* self); -void QAbstractPlanarVideoBuffer_Delete(QAbstractPlanarVideoBuffer* self, bool isSubclass); +void QAbstractPlanarVideoBuffer_Delete(QAbstractPlanarVideoBuffer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qabstractvideofilter.cpp b/qt/multimedia/gen_qabstractvideofilter.cpp index a3f60270..c42d95ea 100644 --- a/qt/multimedia/gen_qabstractvideofilter.cpp +++ b/qt/multimedia/gen_qabstractvideofilter.cpp @@ -39,21 +39,17 @@ void QVideoFilterRunnable_OperatorAssign(QVideoFilterRunnable* self, QVideoFilte self->operator=(*param1); } -void QVideoFilterRunnable_Delete(QVideoFilterRunnable* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoFilterRunnable_Delete(QVideoFilterRunnable* self) { + delete self; } -class MiqtVirtualQAbstractVideoFilter : public virtual QAbstractVideoFilter { +class MiqtVirtualQAbstractVideoFilter final : public QAbstractVideoFilter { public: MiqtVirtualQAbstractVideoFilter(): QAbstractVideoFilter() {}; MiqtVirtualQAbstractVideoFilter(QObject* parent): QAbstractVideoFilter(parent) {}; - virtual ~MiqtVirtualQAbstractVideoFilter() = default; + virtual ~MiqtVirtualQAbstractVideoFilter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CreateFilterRunnable = 0; @@ -411,11 +407,7 @@ void QAbstractVideoFilter_virtualbase_DisconnectNotify(void* self, QMetaMethod* ( (MiqtVirtualQAbstractVideoFilter*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAbstractVideoFilter_Delete(QAbstractVideoFilter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractVideoFilter_Delete(QAbstractVideoFilter* self) { + delete self; } diff --git a/qt/multimedia/gen_qabstractvideofilter.go b/qt/multimedia/gen_qabstractvideofilter.go index 9c14f47c..001564cb 100644 --- a/qt/multimedia/gen_qabstractvideofilter.go +++ b/qt/multimedia/gen_qabstractvideofilter.go @@ -66,7 +66,7 @@ func (this *QVideoFilterRunnable) OperatorAssign(param1 *QVideoFilterRunnable) { // Delete this object from C++ memory. func (this *QVideoFilterRunnable) Delete() { - C.QVideoFilterRunnable_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoFilterRunnable_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -441,7 +441,7 @@ func miqt_exec_callback_QAbstractVideoFilter_DisconnectNotify(self *C.QAbstractV // Delete this object from C++ memory. func (this *QAbstractVideoFilter) Delete() { - C.QAbstractVideoFilter_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractVideoFilter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qabstractvideofilter.h b/qt/multimedia/gen_qabstractvideofilter.h index 299e42ed..e38b9da8 100644 --- a/qt/multimedia/gen_qabstractvideofilter.h +++ b/qt/multimedia/gen_qabstractvideofilter.h @@ -40,7 +40,7 @@ typedef struct QVideoSurfaceFormat QVideoSurfaceFormat; QVideoFrame* QVideoFilterRunnable_Run(QVideoFilterRunnable* self, QVideoFrame* input, QVideoSurfaceFormat* surfaceFormat, int flags); void QVideoFilterRunnable_OperatorAssign(QVideoFilterRunnable* self, QVideoFilterRunnable* param1); -void QVideoFilterRunnable_Delete(QVideoFilterRunnable* self, bool isSubclass); +void QVideoFilterRunnable_Delete(QVideoFilterRunnable* self); QAbstractVideoFilter* QAbstractVideoFilter_new(); QAbstractVideoFilter* QAbstractVideoFilter_new2(QObject* parent); @@ -74,7 +74,7 @@ void QAbstractVideoFilter_override_virtual_ConnectNotify(void* self, intptr_t sl void QAbstractVideoFilter_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAbstractVideoFilter_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAbstractVideoFilter_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAbstractVideoFilter_Delete(QAbstractVideoFilter* self, bool isSubclass); +void QAbstractVideoFilter_Delete(QAbstractVideoFilter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qabstractvideosurface.cpp b/qt/multimedia/gen_qabstractvideosurface.cpp index 8d1023f2..a39e3bdd 100644 --- a/qt/multimedia/gen_qabstractvideosurface.cpp +++ b/qt/multimedia/gen_qabstractvideosurface.cpp @@ -40,13 +40,13 @@ void miqt_exec_callback_QAbstractVideoSurface_DisconnectNotify(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQAbstractVideoSurface : public virtual QAbstractVideoSurface { +class MiqtVirtualQAbstractVideoSurface final : public QAbstractVideoSurface { public: MiqtVirtualQAbstractVideoSurface(): QAbstractVideoSurface() {}; MiqtVirtualQAbstractVideoSurface(QObject* parent): QAbstractVideoSurface(parent) {}; - virtual ~MiqtVirtualQAbstractVideoSurface() = default; + virtual ~MiqtVirtualQAbstractVideoSurface() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SupportedPixelFormats = 0; @@ -640,11 +640,7 @@ void QAbstractVideoSurface_virtualbase_DisconnectNotify(void* self, QMetaMethod* ( (MiqtVirtualQAbstractVideoSurface*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAbstractVideoSurface_Delete(QAbstractVideoSurface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractVideoSurface_Delete(QAbstractVideoSurface* self) { + delete self; } diff --git a/qt/multimedia/gen_qabstractvideosurface.go b/qt/multimedia/gen_qabstractvideosurface.go index 5330947b..31fa0dfc 100644 --- a/qt/multimedia/gen_qabstractvideosurface.go +++ b/qt/multimedia/gen_qabstractvideosurface.go @@ -628,7 +628,7 @@ func miqt_exec_callback_QAbstractVideoSurface_DisconnectNotify(self *C.QAbstract // Delete this object from C++ memory. func (this *QAbstractVideoSurface) Delete() { - C.QAbstractVideoSurface_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractVideoSurface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qabstractvideosurface.h b/qt/multimedia/gen_qabstractvideosurface.h index b8f8ee98..477ac7c1 100644 --- a/qt/multimedia/gen_qabstractvideosurface.h +++ b/qt/multimedia/gen_qabstractvideosurface.h @@ -93,7 +93,7 @@ void QAbstractVideoSurface_override_virtual_ConnectNotify(void* self, intptr_t s void QAbstractVideoSurface_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAbstractVideoSurface_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAbstractVideoSurface_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAbstractVideoSurface_Delete(QAbstractVideoSurface* self, bool isSubclass); +void QAbstractVideoSurface_Delete(QAbstractVideoSurface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudiobuffer.cpp b/qt/multimedia/gen_qaudiobuffer.cpp index 516fb2fd..47b2b814 100644 --- a/qt/multimedia/gen_qaudiobuffer.cpp +++ b/qt/multimedia/gen_qaudiobuffer.cpp @@ -84,11 +84,7 @@ void* QAudioBuffer_Data2(QAudioBuffer* self) { return self->data(); } -void QAudioBuffer_Delete(QAudioBuffer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioBuffer_Delete(QAudioBuffer* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudiobuffer.go b/qt/multimedia/gen_qaudiobuffer.go index 3a56d6a0..b2b26c93 100644 --- a/qt/multimedia/gen_qaudiobuffer.go +++ b/qt/multimedia/gen_qaudiobuffer.go @@ -148,7 +148,7 @@ func (this *QAudioBuffer) Data2() unsafe.Pointer { // Delete this object from C++ memory. func (this *QAudioBuffer) Delete() { - C.QAudioBuffer_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioBuffer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudiobuffer.h b/qt/multimedia/gen_qaudiobuffer.h index 38ac3ffe..f6f1b149 100644 --- a/qt/multimedia/gen_qaudiobuffer.h +++ b/qt/multimedia/gen_qaudiobuffer.h @@ -39,7 +39,7 @@ long long QAudioBuffer_StartTime(const QAudioBuffer* self); const void* QAudioBuffer_ConstData(const QAudioBuffer* self); const void* QAudioBuffer_Data(const QAudioBuffer* self); void* QAudioBuffer_Data2(QAudioBuffer* self); -void QAudioBuffer_Delete(QAudioBuffer* self, bool isSubclass); +void QAudioBuffer_Delete(QAudioBuffer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudiodecoder.cpp b/qt/multimedia/gen_qaudiodecoder.cpp index 05ece4c2..5512ece8 100644 --- a/qt/multimedia/gen_qaudiodecoder.cpp +++ b/qt/multimedia/gen_qaudiodecoder.cpp @@ -35,13 +35,13 @@ QMediaService* miqt_exec_callback_QAudioDecoder_Service(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQAudioDecoder : public virtual QAudioDecoder { +class MiqtVirtualQAudioDecoder final : public QAudioDecoder { public: MiqtVirtualQAudioDecoder(): QAudioDecoder() {}; MiqtVirtualQAudioDecoder(QObject* parent): QAudioDecoder(parent) {}; - virtual ~MiqtVirtualQAudioDecoder() = default; + virtual ~MiqtVirtualQAudioDecoder() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Bind = 0; @@ -493,11 +493,7 @@ QMediaService* QAudioDecoder_virtualbase_Service(const void* self) { return ( (const MiqtVirtualQAudioDecoder*)(self) )->virtualbase_Service(); } -void QAudioDecoder_Delete(QAudioDecoder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioDecoder_Delete(QAudioDecoder* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudiodecoder.go b/qt/multimedia/gen_qaudiodecoder.go index f72aa8a6..eb379e9c 100644 --- a/qt/multimedia/gen_qaudiodecoder.go +++ b/qt/multimedia/gen_qaudiodecoder.go @@ -567,7 +567,7 @@ func miqt_exec_callback_QAudioDecoder_Service(self *C.QAudioDecoder, cb C.intptr // Delete this object from C++ memory. func (this *QAudioDecoder) Delete() { - C.QAudioDecoder_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioDecoder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudiodecoder.h b/qt/multimedia/gen_qaudiodecoder.h index 121f2e23..197dd885 100644 --- a/qt/multimedia/gen_qaudiodecoder.h +++ b/qt/multimedia/gen_qaudiodecoder.h @@ -92,7 +92,7 @@ void QAudioDecoder_override_virtual_Availability(void* self, intptr_t slot); int QAudioDecoder_virtualbase_Availability(const void* self); void QAudioDecoder_override_virtual_Service(void* self, intptr_t slot); QMediaService* QAudioDecoder_virtualbase_Service(const void* self); -void QAudioDecoder_Delete(QAudioDecoder* self, bool isSubclass); +void QAudioDecoder_Delete(QAudioDecoder* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudiodecodercontrol.cpp b/qt/multimedia/gen_qaudiodecodercontrol.cpp index 104a9767..0c44ba4e 100644 --- a/qt/multimedia/gen_qaudiodecodercontrol.cpp +++ b/qt/multimedia/gen_qaudiodecodercontrol.cpp @@ -279,11 +279,7 @@ struct miqt_string QAudioDecoderControl_TrUtf83(const char* s, const char* c, in return _ms; } -void QAudioDecoderControl_Delete(QAudioDecoderControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioDecoderControl_Delete(QAudioDecoderControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudiodecodercontrol.go b/qt/multimedia/gen_qaudiodecodercontrol.go index 819bbfeb..113b3271 100644 --- a/qt/multimedia/gen_qaudiodecodercontrol.go +++ b/qt/multimedia/gen_qaudiodecodercontrol.go @@ -369,7 +369,7 @@ func QAudioDecoderControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QAudioDecoderControl) Delete() { - C.QAudioDecoderControl_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioDecoderControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudiodecodercontrol.h b/qt/multimedia/gen_qaudiodecodercontrol.h index 1d05a958..49ba97a1 100644 --- a/qt/multimedia/gen_qaudiodecodercontrol.h +++ b/qt/multimedia/gen_qaudiodecodercontrol.h @@ -72,7 +72,7 @@ struct miqt_string QAudioDecoderControl_Tr2(const char* s, const char* c); struct miqt_string QAudioDecoderControl_Tr3(const char* s, const char* c, int n); struct miqt_string QAudioDecoderControl_TrUtf82(const char* s, const char* c); struct miqt_string QAudioDecoderControl_TrUtf83(const char* s, const char* c, int n); -void QAudioDecoderControl_Delete(QAudioDecoderControl* self, bool isSubclass); +void QAudioDecoderControl_Delete(QAudioDecoderControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudiodeviceinfo.cpp b/qt/multimedia/gen_qaudiodeviceinfo.cpp index 334f2d34..7ddbbc90 100644 --- a/qt/multimedia/gen_qaudiodeviceinfo.cpp +++ b/qt/multimedia/gen_qaudiodeviceinfo.cpp @@ -181,11 +181,7 @@ struct miqt_array /* of QAudioDeviceInfo* */ QAudioDeviceInfo_AvailableDevices( return _out; } -void QAudioDeviceInfo_Delete(QAudioDeviceInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioDeviceInfo_Delete(QAudioDeviceInfo* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudiodeviceinfo.go b/qt/multimedia/gen_qaudiodeviceinfo.go index 91a4baa8..befa27fc 100644 --- a/qt/multimedia/gen_qaudiodeviceinfo.go +++ b/qt/multimedia/gen_qaudiodeviceinfo.go @@ -197,7 +197,7 @@ func QAudioDeviceInfo_AvailableDevices(mode QAudio__Mode) []QAudioDeviceInfo { // Delete this object from C++ memory. func (this *QAudioDeviceInfo) Delete() { - C.QAudioDeviceInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioDeviceInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudiodeviceinfo.h b/qt/multimedia/gen_qaudiodeviceinfo.h index e30d7681..d83ab0c0 100644 --- a/qt/multimedia/gen_qaudiodeviceinfo.h +++ b/qt/multimedia/gen_qaudiodeviceinfo.h @@ -42,7 +42,7 @@ struct miqt_string QAudioDeviceInfo_Realm(const QAudioDeviceInfo* self); QAudioDeviceInfo* QAudioDeviceInfo_DefaultInputDevice(); QAudioDeviceInfo* QAudioDeviceInfo_DefaultOutputDevice(); struct miqt_array /* of QAudioDeviceInfo* */ QAudioDeviceInfo_AvailableDevices(int mode); -void QAudioDeviceInfo_Delete(QAudioDeviceInfo* self, bool isSubclass); +void QAudioDeviceInfo_Delete(QAudioDeviceInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudioencodersettingscontrol.cpp b/qt/multimedia/gen_qaudioencodersettingscontrol.cpp index 12640f3c..7cfd89a3 100644 --- a/qt/multimedia/gen_qaudioencodersettingscontrol.cpp +++ b/qt/multimedia/gen_qaudioencodersettingscontrol.cpp @@ -149,11 +149,7 @@ struct miqt_string QAudioEncoderSettingsControl_TrUtf83(const char* s, const cha return _ms; } -void QAudioEncoderSettingsControl_Delete(QAudioEncoderSettingsControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioEncoderSettingsControl_Delete(QAudioEncoderSettingsControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudioencodersettingscontrol.go b/qt/multimedia/gen_qaudioencodersettingscontrol.go index 598d9350..dc87937f 100644 --- a/qt/multimedia/gen_qaudioencodersettingscontrol.go +++ b/qt/multimedia/gen_qaudioencodersettingscontrol.go @@ -169,7 +169,7 @@ func QAudioEncoderSettingsControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QAudioEncoderSettingsControl) Delete() { - C.QAudioEncoderSettingsControl_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioEncoderSettingsControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudioencodersettingscontrol.h b/qt/multimedia/gen_qaudioencodersettingscontrol.h index 516e953e..19b00e57 100644 --- a/qt/multimedia/gen_qaudioencodersettingscontrol.h +++ b/qt/multimedia/gen_qaudioencodersettingscontrol.h @@ -42,7 +42,7 @@ struct miqt_string QAudioEncoderSettingsControl_Tr2(const char* s, const char* c struct miqt_string QAudioEncoderSettingsControl_Tr3(const char* s, const char* c, int n); struct miqt_string QAudioEncoderSettingsControl_TrUtf82(const char* s, const char* c); struct miqt_string QAudioEncoderSettingsControl_TrUtf83(const char* s, const char* c, int n); -void QAudioEncoderSettingsControl_Delete(QAudioEncoderSettingsControl* self, bool isSubclass); +void QAudioEncoderSettingsControl_Delete(QAudioEncoderSettingsControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudioformat.cpp b/qt/multimedia/gen_qaudioformat.cpp index c179bf1b..12c314db 100644 --- a/qt/multimedia/gen_qaudioformat.cpp +++ b/qt/multimedia/gen_qaudioformat.cpp @@ -129,11 +129,7 @@ int QAudioFormat_BytesPerFrame(const QAudioFormat* self) { return self->bytesPerFrame(); } -void QAudioFormat_Delete(QAudioFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioFormat_Delete(QAudioFormat* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudioformat.go b/qt/multimedia/gen_qaudioformat.go index e070d19c..040bb0d5 100644 --- a/qt/multimedia/gen_qaudioformat.go +++ b/qt/multimedia/gen_qaudioformat.go @@ -179,7 +179,7 @@ func (this *QAudioFormat) BytesPerFrame() int { // Delete this object from C++ memory. func (this *QAudioFormat) Delete() { - C.QAudioFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudioformat.h b/qt/multimedia/gen_qaudioformat.h index 0939dced..f0203455 100644 --- a/qt/multimedia/gen_qaudioformat.h +++ b/qt/multimedia/gen_qaudioformat.h @@ -45,7 +45,7 @@ int QAudioFormat_FramesForBytes(const QAudioFormat* self, int byteCount); int QAudioFormat_FramesForDuration(const QAudioFormat* self, long long duration); long long QAudioFormat_DurationForFrames(const QAudioFormat* self, int frameCount); int QAudioFormat_BytesPerFrame(const QAudioFormat* self); -void QAudioFormat_Delete(QAudioFormat* self, bool isSubclass); +void QAudioFormat_Delete(QAudioFormat* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudioinput.cpp b/qt/multimedia/gen_qaudioinput.cpp index a1e41680..d63dcaab 100644 --- a/qt/multimedia/gen_qaudioinput.cpp +++ b/qt/multimedia/gen_qaudioinput.cpp @@ -31,7 +31,7 @@ void miqt_exec_callback_QAudioInput_DisconnectNotify(void*, intptr_t, QMetaMetho } /* extern C */ #endif -class MiqtVirtualQAudioInput : public virtual QAudioInput { +class MiqtVirtualQAudioInput final : public QAudioInput { public: MiqtVirtualQAudioInput(): QAudioInput() {}; @@ -41,7 +41,7 @@ public: MiqtVirtualQAudioInput(const QAudioDeviceInfo& audioDeviceInfo, const QAudioFormat& format): QAudioInput(audioDeviceInfo, format) {}; MiqtVirtualQAudioInput(const QAudioDeviceInfo& audioDeviceInfo, const QAudioFormat& format, QObject* parent): QAudioInput(audioDeviceInfo, format, parent) {}; - virtual ~MiqtVirtualQAudioInput() = default; + virtual ~MiqtVirtualQAudioInput() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -477,11 +477,7 @@ void QAudioInput_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQAudioInput*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioInput_Delete(QAudioInput* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioInput_Delete(QAudioInput* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudioinput.go b/qt/multimedia/gen_qaudioinput.go index 29bc6844..d289df7b 100644 --- a/qt/multimedia/gen_qaudioinput.go +++ b/qt/multimedia/gen_qaudioinput.go @@ -477,7 +477,7 @@ func miqt_exec_callback_QAudioInput_DisconnectNotify(self *C.QAudioInput, cb C.i // Delete this object from C++ memory. func (this *QAudioInput) Delete() { - C.QAudioInput_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioInput_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudioinput.h b/qt/multimedia/gen_qaudioinput.h index 696d702c..f7978e37 100644 --- a/qt/multimedia/gen_qaudioinput.h +++ b/qt/multimedia/gen_qaudioinput.h @@ -90,7 +90,7 @@ void QAudioInput_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAudioInput_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioInput_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioInput_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioInput_Delete(QAudioInput* self, bool isSubclass); +void QAudioInput_Delete(QAudioInput* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudioinputselectorcontrol.cpp b/qt/multimedia/gen_qaudioinputselectorcontrol.cpp index 18bc41c5..497811c3 100644 --- a/qt/multimedia/gen_qaudioinputselectorcontrol.cpp +++ b/qt/multimedia/gen_qaudioinputselectorcontrol.cpp @@ -185,11 +185,7 @@ struct miqt_string QAudioInputSelectorControl_TrUtf83(const char* s, const char* return _ms; } -void QAudioInputSelectorControl_Delete(QAudioInputSelectorControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioInputSelectorControl_Delete(QAudioInputSelectorControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudioinputselectorcontrol.go b/qt/multimedia/gen_qaudioinputselectorcontrol.go index 97ea6db3..1c4df246 100644 --- a/qt/multimedia/gen_qaudioinputselectorcontrol.go +++ b/qt/multimedia/gen_qaudioinputselectorcontrol.go @@ -216,7 +216,7 @@ func QAudioInputSelectorControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QAudioInputSelectorControl) Delete() { - C.QAudioInputSelectorControl_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioInputSelectorControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudioinputselectorcontrol.h b/qt/multimedia/gen_qaudioinputselectorcontrol.h index 5db31c59..9795c723 100644 --- a/qt/multimedia/gen_qaudioinputselectorcontrol.h +++ b/qt/multimedia/gen_qaudioinputselectorcontrol.h @@ -44,7 +44,7 @@ struct miqt_string QAudioInputSelectorControl_Tr2(const char* s, const char* c); struct miqt_string QAudioInputSelectorControl_Tr3(const char* s, const char* c, int n); struct miqt_string QAudioInputSelectorControl_TrUtf82(const char* s, const char* c); struct miqt_string QAudioInputSelectorControl_TrUtf83(const char* s, const char* c, int n); -void QAudioInputSelectorControl_Delete(QAudioInputSelectorControl* self, bool isSubclass); +void QAudioInputSelectorControl_Delete(QAudioInputSelectorControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudiooutput.cpp b/qt/multimedia/gen_qaudiooutput.cpp index 0da25f12..2a730e75 100644 --- a/qt/multimedia/gen_qaudiooutput.cpp +++ b/qt/multimedia/gen_qaudiooutput.cpp @@ -31,7 +31,7 @@ void miqt_exec_callback_QAudioOutput_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQAudioOutput : public virtual QAudioOutput { +class MiqtVirtualQAudioOutput final : public QAudioOutput { public: MiqtVirtualQAudioOutput(): QAudioOutput() {}; @@ -41,7 +41,7 @@ public: MiqtVirtualQAudioOutput(const QAudioDeviceInfo& audioDeviceInfo, const QAudioFormat& format): QAudioOutput(audioDeviceInfo, format) {}; MiqtVirtualQAudioOutput(const QAudioDeviceInfo& audioDeviceInfo, const QAudioFormat& format, QObject* parent): QAudioOutput(audioDeviceInfo, format, parent) {}; - virtual ~MiqtVirtualQAudioOutput() = default; + virtual ~MiqtVirtualQAudioOutput() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -493,11 +493,7 @@ void QAudioOutput_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQAudioOutput*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioOutput_Delete(QAudioOutput* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioOutput_Delete(QAudioOutput* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudiooutput.go b/qt/multimedia/gen_qaudiooutput.go index 5f3837fc..a7cd84d7 100644 --- a/qt/multimedia/gen_qaudiooutput.go +++ b/qt/multimedia/gen_qaudiooutput.go @@ -492,7 +492,7 @@ func miqt_exec_callback_QAudioOutput_DisconnectNotify(self *C.QAudioOutput, cb C // Delete this object from C++ memory. func (this *QAudioOutput) Delete() { - C.QAudioOutput_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioOutput_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudiooutput.h b/qt/multimedia/gen_qaudiooutput.h index 64755c97..41bf7a6b 100644 --- a/qt/multimedia/gen_qaudiooutput.h +++ b/qt/multimedia/gen_qaudiooutput.h @@ -92,7 +92,7 @@ void QAudioOutput_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAudioOutput_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioOutput_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioOutput_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioOutput_Delete(QAudioOutput* self, bool isSubclass); +void QAudioOutput_Delete(QAudioOutput* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudiooutputselectorcontrol.cpp b/qt/multimedia/gen_qaudiooutputselectorcontrol.cpp index 7510f40d..f2f790b2 100644 --- a/qt/multimedia/gen_qaudiooutputselectorcontrol.cpp +++ b/qt/multimedia/gen_qaudiooutputselectorcontrol.cpp @@ -185,11 +185,7 @@ struct miqt_string QAudioOutputSelectorControl_TrUtf83(const char* s, const char return _ms; } -void QAudioOutputSelectorControl_Delete(QAudioOutputSelectorControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioOutputSelectorControl_Delete(QAudioOutputSelectorControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudiooutputselectorcontrol.go b/qt/multimedia/gen_qaudiooutputselectorcontrol.go index bab9d1b2..360eead5 100644 --- a/qt/multimedia/gen_qaudiooutputselectorcontrol.go +++ b/qt/multimedia/gen_qaudiooutputselectorcontrol.go @@ -216,7 +216,7 @@ func QAudioOutputSelectorControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QAudioOutputSelectorControl) Delete() { - C.QAudioOutputSelectorControl_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioOutputSelectorControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudiooutputselectorcontrol.h b/qt/multimedia/gen_qaudiooutputselectorcontrol.h index 3f352fb0..9a6c348c 100644 --- a/qt/multimedia/gen_qaudiooutputselectorcontrol.h +++ b/qt/multimedia/gen_qaudiooutputselectorcontrol.h @@ -44,7 +44,7 @@ struct miqt_string QAudioOutputSelectorControl_Tr2(const char* s, const char* c) struct miqt_string QAudioOutputSelectorControl_Tr3(const char* s, const char* c, int n); struct miqt_string QAudioOutputSelectorControl_TrUtf82(const char* s, const char* c); struct miqt_string QAudioOutputSelectorControl_TrUtf83(const char* s, const char* c, int n); -void QAudioOutputSelectorControl_Delete(QAudioOutputSelectorControl* self, bool isSubclass); +void QAudioOutputSelectorControl_Delete(QAudioOutputSelectorControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudioprobe.cpp b/qt/multimedia/gen_qaudioprobe.cpp index c9afdfd8..c2e425d3 100644 --- a/qt/multimedia/gen_qaudioprobe.cpp +++ b/qt/multimedia/gen_qaudioprobe.cpp @@ -31,13 +31,13 @@ void miqt_exec_callback_QAudioProbe_DisconnectNotify(void*, intptr_t, QMetaMetho } /* extern C */ #endif -class MiqtVirtualQAudioProbe : public virtual QAudioProbe { +class MiqtVirtualQAudioProbe final : public QAudioProbe { public: MiqtVirtualQAudioProbe(): QAudioProbe() {}; MiqtVirtualQAudioProbe(QObject* parent): QAudioProbe(parent) {}; - virtual ~MiqtVirtualQAudioProbe() = default; + virtual ~MiqtVirtualQAudioProbe() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -389,11 +389,7 @@ void QAudioProbe_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQAudioProbe*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioProbe_Delete(QAudioProbe* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioProbe_Delete(QAudioProbe* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudioprobe.go b/qt/multimedia/gen_qaudioprobe.go index 14e047ef..9c31763b 100644 --- a/qt/multimedia/gen_qaudioprobe.go +++ b/qt/multimedia/gen_qaudioprobe.go @@ -379,7 +379,7 @@ func miqt_exec_callback_QAudioProbe_DisconnectNotify(self *C.QAudioProbe, cb C.i // Delete this object from C++ memory. func (this *QAudioProbe) Delete() { - C.QAudioProbe_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioProbe_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudioprobe.h b/qt/multimedia/gen_qaudioprobe.h index 0d0eab0a..2eddefbd 100644 --- a/qt/multimedia/gen_qaudioprobe.h +++ b/qt/multimedia/gen_qaudioprobe.h @@ -70,7 +70,7 @@ void QAudioProbe_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAudioProbe_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioProbe_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioProbe_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioProbe_Delete(QAudioProbe* self, bool isSubclass); +void QAudioProbe_Delete(QAudioProbe* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudiorecorder.cpp b/qt/multimedia/gen_qaudiorecorder.cpp index 0ea589da..115e1e6c 100644 --- a/qt/multimedia/gen_qaudiorecorder.cpp +++ b/qt/multimedia/gen_qaudiorecorder.cpp @@ -23,13 +23,13 @@ bool miqt_exec_callback_QAudioRecorder_SetMediaObject(void*, intptr_t, QMediaObj } /* extern C */ #endif -class MiqtVirtualQAudioRecorder : public virtual QAudioRecorder { +class MiqtVirtualQAudioRecorder final : public QAudioRecorder { public: MiqtVirtualQAudioRecorder(): QAudioRecorder() {}; MiqtVirtualQAudioRecorder(QObject* parent): QAudioRecorder(parent) {}; - virtual ~MiqtVirtualQAudioRecorder() = default; + virtual ~MiqtVirtualQAudioRecorder() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MediaObject = 0; @@ -268,11 +268,7 @@ bool QAudioRecorder_virtualbase_SetMediaObject(void* self, QMediaObject* object) return ( (MiqtVirtualQAudioRecorder*)(self) )->virtualbase_SetMediaObject(object); } -void QAudioRecorder_Delete(QAudioRecorder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioRecorder_Delete(QAudioRecorder* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudiorecorder.go b/qt/multimedia/gen_qaudiorecorder.go index 20b08201..f9cad260 100644 --- a/qt/multimedia/gen_qaudiorecorder.go +++ b/qt/multimedia/gen_qaudiorecorder.go @@ -285,7 +285,7 @@ func miqt_exec_callback_QAudioRecorder_SetMediaObject(self *C.QAudioRecorder, cb // Delete this object from C++ memory. func (this *QAudioRecorder) Delete() { - C.QAudioRecorder_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioRecorder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudiorecorder.h b/qt/multimedia/gen_qaudiorecorder.h index 16b28227..3317777a 100644 --- a/qt/multimedia/gen_qaudiorecorder.h +++ b/qt/multimedia/gen_qaudiorecorder.h @@ -54,7 +54,7 @@ void QAudioRecorder_override_virtual_MediaObject(void* self, intptr_t slot); QMediaObject* QAudioRecorder_virtualbase_MediaObject(const void* self); void QAudioRecorder_override_virtual_SetMediaObject(void* self, intptr_t slot); bool QAudioRecorder_virtualbase_SetMediaObject(void* self, QMediaObject* object); -void QAudioRecorder_Delete(QAudioRecorder* self, bool isSubclass); +void QAudioRecorder_Delete(QAudioRecorder* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudiorolecontrol.cpp b/qt/multimedia/gen_qaudiorolecontrol.cpp index 8f3b1407..436b09fb 100644 --- a/qt/multimedia/gen_qaudiorolecontrol.cpp +++ b/qt/multimedia/gen_qaudiorolecontrol.cpp @@ -131,11 +131,7 @@ struct miqt_string QAudioRoleControl_TrUtf83(const char* s, const char* c, int n return _ms; } -void QAudioRoleControl_Delete(QAudioRoleControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioRoleControl_Delete(QAudioRoleControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudiorolecontrol.go b/qt/multimedia/gen_qaudiorolecontrol.go index 0077c318..bbcc8b20 100644 --- a/qt/multimedia/gen_qaudiorolecontrol.go +++ b/qt/multimedia/gen_qaudiorolecontrol.go @@ -164,7 +164,7 @@ func QAudioRoleControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QAudioRoleControl) Delete() { - C.QAudioRoleControl_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioRoleControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudiorolecontrol.h b/qt/multimedia/gen_qaudiorolecontrol.h index 36ea3db0..21ce999e 100644 --- a/qt/multimedia/gen_qaudiorolecontrol.h +++ b/qt/multimedia/gen_qaudiorolecontrol.h @@ -40,7 +40,7 @@ struct miqt_string QAudioRoleControl_Tr2(const char* s, const char* c); struct miqt_string QAudioRoleControl_Tr3(const char* s, const char* c, int n); struct miqt_string QAudioRoleControl_TrUtf82(const char* s, const char* c); struct miqt_string QAudioRoleControl_TrUtf83(const char* s, const char* c, int n); -void QAudioRoleControl_Delete(QAudioRoleControl* self, bool isSubclass); +void QAudioRoleControl_Delete(QAudioRoleControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudiosystem.cpp b/qt/multimedia/gen_qaudiosystem.cpp index c592d27d..85588c08 100644 --- a/qt/multimedia/gen_qaudiosystem.cpp +++ b/qt/multimedia/gen_qaudiosystem.cpp @@ -210,12 +210,8 @@ struct miqt_string QAbstractAudioDeviceInfo_TrUtf83(const char* s, const char* c return _ms; } -void QAbstractAudioDeviceInfo_Delete(QAbstractAudioDeviceInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractAudioDeviceInfo_Delete(QAbstractAudioDeviceInfo* self) { + delete self; } void QAbstractAudioOutput_virtbase(QAbstractAudioOutput* src, QObject** outptr_QObject) { @@ -431,12 +427,8 @@ struct miqt_string QAbstractAudioOutput_TrUtf83(const char* s, const char* c, in return _ms; } -void QAbstractAudioOutput_Delete(QAbstractAudioOutput* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractAudioOutput_Delete(QAbstractAudioOutput* self) { + delete self; } void QAbstractAudioInput_virtbase(QAbstractAudioInput* src, QObject** outptr_QObject) { @@ -636,11 +628,7 @@ struct miqt_string QAbstractAudioInput_TrUtf83(const char* s, const char* c, int return _ms; } -void QAbstractAudioInput_Delete(QAbstractAudioInput* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractAudioInput_Delete(QAbstractAudioInput* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudiosystem.go b/qt/multimedia/gen_qaudiosystem.go index 1723e05f..97ba2f74 100644 --- a/qt/multimedia/gen_qaudiosystem.go +++ b/qt/multimedia/gen_qaudiosystem.go @@ -206,7 +206,7 @@ func QAbstractAudioDeviceInfo_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QAbstractAudioDeviceInfo) Delete() { - C.QAbstractAudioDeviceInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractAudioDeviceInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -483,7 +483,7 @@ func QAbstractAudioOutput_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QAbstractAudioOutput) Delete() { - C.QAbstractAudioOutput_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractAudioOutput_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -745,7 +745,7 @@ func QAbstractAudioInput_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QAbstractAudioInput) Delete() { - C.QAbstractAudioInput_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractAudioInput_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudiosystem.h b/qt/multimedia/gen_qaudiosystem.h index 931d8aba..2a4672be 100644 --- a/qt/multimedia/gen_qaudiosystem.h +++ b/qt/multimedia/gen_qaudiosystem.h @@ -50,7 +50,7 @@ struct miqt_string QAbstractAudioDeviceInfo_Tr2(const char* s, const char* c); struct miqt_string QAbstractAudioDeviceInfo_Tr3(const char* s, const char* c, int n); struct miqt_string QAbstractAudioDeviceInfo_TrUtf82(const char* s, const char* c); struct miqt_string QAbstractAudioDeviceInfo_TrUtf83(const char* s, const char* c, int n); -void QAbstractAudioDeviceInfo_Delete(QAbstractAudioDeviceInfo* self, bool isSubclass); +void QAbstractAudioDeviceInfo_Delete(QAbstractAudioDeviceInfo* self); void QAbstractAudioOutput_virtbase(QAbstractAudioOutput* src, QObject** outptr_QObject); QMetaObject* QAbstractAudioOutput_MetaObject(const QAbstractAudioOutput* self); @@ -89,7 +89,7 @@ struct miqt_string QAbstractAudioOutput_Tr2(const char* s, const char* c); struct miqt_string QAbstractAudioOutput_Tr3(const char* s, const char* c, int n); struct miqt_string QAbstractAudioOutput_TrUtf82(const char* s, const char* c); struct miqt_string QAbstractAudioOutput_TrUtf83(const char* s, const char* c, int n); -void QAbstractAudioOutput_Delete(QAbstractAudioOutput* self, bool isSubclass); +void QAbstractAudioOutput_Delete(QAbstractAudioOutput* self); void QAbstractAudioInput_virtbase(QAbstractAudioInput* src, QObject** outptr_QObject); QMetaObject* QAbstractAudioInput_MetaObject(const QAbstractAudioInput* self); @@ -126,7 +126,7 @@ struct miqt_string QAbstractAudioInput_Tr2(const char* s, const char* c); struct miqt_string QAbstractAudioInput_Tr3(const char* s, const char* c, int n); struct miqt_string QAbstractAudioInput_TrUtf82(const char* s, const char* c); struct miqt_string QAbstractAudioInput_TrUtf83(const char* s, const char* c, int n); -void QAbstractAudioInput_Delete(QAbstractAudioInput* self, bool isSubclass); +void QAbstractAudioInput_Delete(QAbstractAudioInput* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qaudiosystemplugin.cpp b/qt/multimedia/gen_qaudiosystemplugin.cpp index d89770c3..cc0fefa3 100644 --- a/qt/multimedia/gen_qaudiosystemplugin.cpp +++ b/qt/multimedia/gen_qaudiosystemplugin.cpp @@ -73,21 +73,17 @@ void QAudioSystemFactoryInterface_OperatorAssign(QAudioSystemFactoryInterface* s self->operator=(*param1); } -void QAudioSystemFactoryInterface_Delete(QAudioSystemFactoryInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioSystemFactoryInterface_Delete(QAudioSystemFactoryInterface* self) { + delete self; } -class MiqtVirtualQAudioSystemPlugin : public virtual QAudioSystemPlugin { +class MiqtVirtualQAudioSystemPlugin final : public QAudioSystemPlugin { public: MiqtVirtualQAudioSystemPlugin(): QAudioSystemPlugin() {}; MiqtVirtualQAudioSystemPlugin(QObject* parent): QAudioSystemPlugin(parent) {}; - virtual ~MiqtVirtualQAudioSystemPlugin() = default; + virtual ~MiqtVirtualQAudioSystemPlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AvailableDevices = 0; @@ -543,11 +539,7 @@ void QAudioSystemPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* si ( (MiqtVirtualQAudioSystemPlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioSystemPlugin_Delete(QAudioSystemPlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioSystemPlugin_Delete(QAudioSystemPlugin* self) { + delete self; } diff --git a/qt/multimedia/gen_qaudiosystemplugin.go b/qt/multimedia/gen_qaudiosystemplugin.go index 4377ec20..85f05db3 100644 --- a/qt/multimedia/gen_qaudiosystemplugin.go +++ b/qt/multimedia/gen_qaudiosystemplugin.go @@ -88,7 +88,7 @@ func (this *QAudioSystemFactoryInterface) OperatorAssign(param1 *QAudioSystemFac // Delete this object from C++ memory. func (this *QAudioSystemFactoryInterface) Delete() { - C.QAudioSystemFactoryInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioSystemFactoryInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -559,7 +559,7 @@ func miqt_exec_callback_QAudioSystemPlugin_DisconnectNotify(self *C.QAudioSystem // Delete this object from C++ memory. func (this *QAudioSystemPlugin) Delete() { - C.QAudioSystemPlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioSystemPlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qaudiosystemplugin.h b/qt/multimedia/gen_qaudiosystemplugin.h index fa0a1e01..0bc86aa7 100644 --- a/qt/multimedia/gen_qaudiosystemplugin.h +++ b/qt/multimedia/gen_qaudiosystemplugin.h @@ -45,7 +45,7 @@ QAbstractAudioInput* QAudioSystemFactoryInterface_CreateInput(QAudioSystemFactor QAbstractAudioOutput* QAudioSystemFactoryInterface_CreateOutput(QAudioSystemFactoryInterface* self, struct miqt_string device); QAbstractAudioDeviceInfo* QAudioSystemFactoryInterface_CreateDeviceInfo(QAudioSystemFactoryInterface* self, struct miqt_string device, int mode); void QAudioSystemFactoryInterface_OperatorAssign(QAudioSystemFactoryInterface* self, QAudioSystemFactoryInterface* param1); -void QAudioSystemFactoryInterface_Delete(QAudioSystemFactoryInterface* self, bool isSubclass); +void QAudioSystemFactoryInterface_Delete(QAudioSystemFactoryInterface* self); QAudioSystemPlugin* QAudioSystemPlugin_new(); QAudioSystemPlugin* QAudioSystemPlugin_new2(QObject* parent); @@ -84,7 +84,7 @@ void QAudioSystemPlugin_override_virtual_ConnectNotify(void* self, intptr_t slot void QAudioSystemPlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioSystemPlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioSystemPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioSystemPlugin_Delete(QAudioSystemPlugin* self, bool isSubclass); +void QAudioSystemPlugin_Delete(QAudioSystemPlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcamera.cpp b/qt/multimedia/gen_qcamera.cpp index 1c253a0a..db640ff9 100644 --- a/qt/multimedia/gen_qcamera.cpp +++ b/qt/multimedia/gen_qcamera.cpp @@ -43,7 +43,7 @@ void miqt_exec_callback_QCamera_Unbind(void*, intptr_t, QObject*); } /* extern C */ #endif -class MiqtVirtualQCamera : public virtual QCamera { +class MiqtVirtualQCamera final : public QCamera { public: MiqtVirtualQCamera(): QCamera() {}; @@ -55,7 +55,7 @@ public: MiqtVirtualQCamera(const QCameraInfo& cameraInfo, QObject* parent): QCamera(cameraInfo, parent) {}; MiqtVirtualQCamera(QCamera::Position position, QObject* parent): QCamera(position, parent) {}; - virtual ~MiqtVirtualQCamera() = default; + virtual ~MiqtVirtualQCamera() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Availability = 0; @@ -699,12 +699,8 @@ void QCamera_virtualbase_Unbind(void* self, QObject* param1) { ( (MiqtVirtualQCamera*)(self) )->virtualbase_Unbind(param1); } -void QCamera_Delete(QCamera* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCamera_Delete(QCamera* self) { + delete self; } QCamera__FrameRateRange* QCamera__FrameRateRange_new() { @@ -719,11 +715,7 @@ QCamera__FrameRateRange* QCamera__FrameRateRange_new3(QCamera__FrameRateRange* p return new QCamera::FrameRateRange(*param1); } -void QCamera__FrameRateRange_Delete(QCamera__FrameRateRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCamera__FrameRateRange_Delete(QCamera__FrameRateRange* self) { + delete self; } diff --git a/qt/multimedia/gen_qcamera.go b/qt/multimedia/gen_qcamera.go index 7a5cfc74..83a5f401 100644 --- a/qt/multimedia/gen_qcamera.go +++ b/qt/multimedia/gen_qcamera.go @@ -812,7 +812,7 @@ func miqt_exec_callback_QCamera_Unbind(self *C.QCamera, cb C.intptr_t, param1 *C // Delete this object from C++ memory. func (this *QCamera) Delete() { - C.QCamera_Delete(this.h, C.bool(this.isSubclass)) + C.QCamera_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -883,7 +883,7 @@ func NewQCamera__FrameRateRange3(param1 *QCamera__FrameRateRange) *QCamera__Fram // Delete this object from C++ memory. func (this *QCamera__FrameRateRange) Delete() { - C.QCamera__FrameRateRange_Delete(this.h, C.bool(this.isSubclass)) + C.QCamera__FrameRateRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcamera.h b/qt/multimedia/gen_qcamera.h index 327859c1..a7bc857e 100644 --- a/qt/multimedia/gen_qcamera.h +++ b/qt/multimedia/gen_qcamera.h @@ -135,12 +135,12 @@ void QCamera_override_virtual_Bind(void* self, intptr_t slot); bool QCamera_virtualbase_Bind(void* self, QObject* param1); void QCamera_override_virtual_Unbind(void* self, intptr_t slot); void QCamera_virtualbase_Unbind(void* self, QObject* param1); -void QCamera_Delete(QCamera* self, bool isSubclass); +void QCamera_Delete(QCamera* self); QCamera__FrameRateRange* QCamera__FrameRateRange_new(); QCamera__FrameRateRange* QCamera__FrameRateRange_new2(double minimum, double maximum); QCamera__FrameRateRange* QCamera__FrameRateRange_new3(QCamera__FrameRateRange* param1); -void QCamera__FrameRateRange_Delete(QCamera__FrameRateRange* self, bool isSubclass); +void QCamera__FrameRateRange_Delete(QCamera__FrameRateRange* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameracapturebufferformatcontrol.cpp b/qt/multimedia/gen_qcameracapturebufferformatcontrol.cpp index 0b101f46..04a84ae2 100644 --- a/qt/multimedia/gen_qcameracapturebufferformatcontrol.cpp +++ b/qt/multimedia/gen_qcameracapturebufferformatcontrol.cpp @@ -131,11 +131,7 @@ struct miqt_string QCameraCaptureBufferFormatControl_TrUtf83(const char* s, cons return _ms; } -void QCameraCaptureBufferFormatControl_Delete(QCameraCaptureBufferFormatControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraCaptureBufferFormatControl_Delete(QCameraCaptureBufferFormatControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameracapturebufferformatcontrol.go b/qt/multimedia/gen_qcameracapturebufferformatcontrol.go index 2d13a9ee..7185b76c 100644 --- a/qt/multimedia/gen_qcameracapturebufferformatcontrol.go +++ b/qt/multimedia/gen_qcameracapturebufferformatcontrol.go @@ -164,7 +164,7 @@ func QCameraCaptureBufferFormatControl_TrUtf83(s string, c string, n int) string // Delete this object from C++ memory. func (this *QCameraCaptureBufferFormatControl) Delete() { - C.QCameraCaptureBufferFormatControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraCaptureBufferFormatControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameracapturebufferformatcontrol.h b/qt/multimedia/gen_qcameracapturebufferformatcontrol.h index 7b40de1a..34dd13f2 100644 --- a/qt/multimedia/gen_qcameracapturebufferformatcontrol.h +++ b/qt/multimedia/gen_qcameracapturebufferformatcontrol.h @@ -40,7 +40,7 @@ struct miqt_string QCameraCaptureBufferFormatControl_Tr2(const char* s, const ch struct miqt_string QCameraCaptureBufferFormatControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraCaptureBufferFormatControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraCaptureBufferFormatControl_TrUtf83(const char* s, const char* c, int n); -void QCameraCaptureBufferFormatControl_Delete(QCameraCaptureBufferFormatControl* self, bool isSubclass); +void QCameraCaptureBufferFormatControl_Delete(QCameraCaptureBufferFormatControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameracapturedestinationcontrol.cpp b/qt/multimedia/gen_qcameracapturedestinationcontrol.cpp index cafbc06b..24373041 100644 --- a/qt/multimedia/gen_qcameracapturedestinationcontrol.cpp +++ b/qt/multimedia/gen_qcameracapturedestinationcontrol.cpp @@ -120,11 +120,7 @@ struct miqt_string QCameraCaptureDestinationControl_TrUtf83(const char* s, const return _ms; } -void QCameraCaptureDestinationControl_Delete(QCameraCaptureDestinationControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraCaptureDestinationControl_Delete(QCameraCaptureDestinationControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameracapturedestinationcontrol.go b/qt/multimedia/gen_qcameracapturedestinationcontrol.go index 7356cf7d..cc2df3c6 100644 --- a/qt/multimedia/gen_qcameracapturedestinationcontrol.go +++ b/qt/multimedia/gen_qcameracapturedestinationcontrol.go @@ -158,7 +158,7 @@ func QCameraCaptureDestinationControl_TrUtf83(s string, c string, n int) string // Delete this object from C++ memory. func (this *QCameraCaptureDestinationControl) Delete() { - C.QCameraCaptureDestinationControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraCaptureDestinationControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameracapturedestinationcontrol.h b/qt/multimedia/gen_qcameracapturedestinationcontrol.h index 1ccbef54..c2269b94 100644 --- a/qt/multimedia/gen_qcameracapturedestinationcontrol.h +++ b/qt/multimedia/gen_qcameracapturedestinationcontrol.h @@ -40,7 +40,7 @@ struct miqt_string QCameraCaptureDestinationControl_Tr2(const char* s, const cha struct miqt_string QCameraCaptureDestinationControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraCaptureDestinationControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraCaptureDestinationControl_TrUtf83(const char* s, const char* c, int n); -void QCameraCaptureDestinationControl_Delete(QCameraCaptureDestinationControl* self, bool isSubclass); +void QCameraCaptureDestinationControl_Delete(QCameraCaptureDestinationControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameracontrol.cpp b/qt/multimedia/gen_qcameracontrol.cpp index 752d37ad..0b15be5b 100644 --- a/qt/multimedia/gen_qcameracontrol.cpp +++ b/qt/multimedia/gen_qcameracontrol.cpp @@ -185,11 +185,7 @@ struct miqt_string QCameraControl_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QCameraControl_Delete(QCameraControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraControl_Delete(QCameraControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameracontrol.go b/qt/multimedia/gen_qcameracontrol.go index d3f315c1..cf8a2484 100644 --- a/qt/multimedia/gen_qcameracontrol.go +++ b/qt/multimedia/gen_qcameracontrol.go @@ -253,7 +253,7 @@ func QCameraControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QCameraControl) Delete() { - C.QCameraControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameracontrol.h b/qt/multimedia/gen_qcameracontrol.h index 4ecb3b36..b063ce4f 100644 --- a/qt/multimedia/gen_qcameracontrol.h +++ b/qt/multimedia/gen_qcameracontrol.h @@ -50,7 +50,7 @@ struct miqt_string QCameraControl_Tr2(const char* s, const char* c); struct miqt_string QCameraControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraControl_TrUtf83(const char* s, const char* c, int n); -void QCameraControl_Delete(QCameraControl* self, bool isSubclass); +void QCameraControl_Delete(QCameraControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameraexposurecontrol.cpp b/qt/multimedia/gen_qcameraexposurecontrol.cpp index 456f4d5c..c9fdeb26 100644 --- a/qt/multimedia/gen_qcameraexposurecontrol.cpp +++ b/qt/multimedia/gen_qcameraexposurecontrol.cpp @@ -147,11 +147,7 @@ struct miqt_string QCameraExposureControl_TrUtf83(const char* s, const char* c, return _ms; } -void QCameraExposureControl_Delete(QCameraExposureControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraExposureControl_Delete(QCameraExposureControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameraexposurecontrol.go b/qt/multimedia/gen_qcameraexposurecontrol.go index c9400fd6..ae8519d4 100644 --- a/qt/multimedia/gen_qcameraexposurecontrol.go +++ b/qt/multimedia/gen_qcameraexposurecontrol.go @@ -222,7 +222,7 @@ func QCameraExposureControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QCameraExposureControl) Delete() { - C.QCameraExposureControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraExposureControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameraexposurecontrol.h b/qt/multimedia/gen_qcameraexposurecontrol.h index ed856163..24ecfca4 100644 --- a/qt/multimedia/gen_qcameraexposurecontrol.h +++ b/qt/multimedia/gen_qcameraexposurecontrol.h @@ -47,7 +47,7 @@ struct miqt_string QCameraExposureControl_Tr2(const char* s, const char* c); struct miqt_string QCameraExposureControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraExposureControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraExposureControl_TrUtf83(const char* s, const char* c, int n); -void QCameraExposureControl_Delete(QCameraExposureControl* self, bool isSubclass); +void QCameraExposureControl_Delete(QCameraExposureControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcamerafeedbackcontrol.cpp b/qt/multimedia/gen_qcamerafeedbackcontrol.cpp index c1a07feb..b7f1efe8 100644 --- a/qt/multimedia/gen_qcamerafeedbackcontrol.cpp +++ b/qt/multimedia/gen_qcamerafeedbackcontrol.cpp @@ -115,11 +115,7 @@ struct miqt_string QCameraFeedbackControl_TrUtf83(const char* s, const char* c, return _ms; } -void QCameraFeedbackControl_Delete(QCameraFeedbackControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraFeedbackControl_Delete(QCameraFeedbackControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcamerafeedbackcontrol.go b/qt/multimedia/gen_qcamerafeedbackcontrol.go index 4e5e54e3..a9143a12 100644 --- a/qt/multimedia/gen_qcamerafeedbackcontrol.go +++ b/qt/multimedia/gen_qcamerafeedbackcontrol.go @@ -165,7 +165,7 @@ func QCameraFeedbackControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QCameraFeedbackControl) Delete() { - C.QCameraFeedbackControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraFeedbackControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcamerafeedbackcontrol.h b/qt/multimedia/gen_qcamerafeedbackcontrol.h index 09567b2c..299dd504 100644 --- a/qt/multimedia/gen_qcamerafeedbackcontrol.h +++ b/qt/multimedia/gen_qcamerafeedbackcontrol.h @@ -40,7 +40,7 @@ struct miqt_string QCameraFeedbackControl_Tr2(const char* s, const char* c); struct miqt_string QCameraFeedbackControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraFeedbackControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraFeedbackControl_TrUtf83(const char* s, const char* c, int n); -void QCameraFeedbackControl_Delete(QCameraFeedbackControl* self, bool isSubclass); +void QCameraFeedbackControl_Delete(QCameraFeedbackControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameraflashcontrol.cpp b/qt/multimedia/gen_qcameraflashcontrol.cpp index 73749069..9d03694d 100644 --- a/qt/multimedia/gen_qcameraflashcontrol.cpp +++ b/qt/multimedia/gen_qcameraflashcontrol.cpp @@ -123,11 +123,7 @@ struct miqt_string QCameraFlashControl_TrUtf83(const char* s, const char* c, int return _ms; } -void QCameraFlashControl_Delete(QCameraFlashControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraFlashControl_Delete(QCameraFlashControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameraflashcontrol.go b/qt/multimedia/gen_qcameraflashcontrol.go index 08d825ff..c1a69a5e 100644 --- a/qt/multimedia/gen_qcameraflashcontrol.go +++ b/qt/multimedia/gen_qcameraflashcontrol.go @@ -162,7 +162,7 @@ func QCameraFlashControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QCameraFlashControl) Delete() { - C.QCameraFlashControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraFlashControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameraflashcontrol.h b/qt/multimedia/gen_qcameraflashcontrol.h index 97984215..d073a746 100644 --- a/qt/multimedia/gen_qcameraflashcontrol.h +++ b/qt/multimedia/gen_qcameraflashcontrol.h @@ -41,7 +41,7 @@ struct miqt_string QCameraFlashControl_Tr2(const char* s, const char* c); struct miqt_string QCameraFlashControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraFlashControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraFlashControl_TrUtf83(const char* s, const char* c, int n); -void QCameraFlashControl_Delete(QCameraFlashControl* self, bool isSubclass); +void QCameraFlashControl_Delete(QCameraFlashControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcamerafocus.cpp b/qt/multimedia/gen_qcamerafocus.cpp index 67517c08..3dfc50fa 100644 --- a/qt/multimedia/gen_qcamerafocus.cpp +++ b/qt/multimedia/gen_qcamerafocus.cpp @@ -69,12 +69,8 @@ void QCameraFocusZone_SetStatus(QCameraFocusZone* self, int status) { self->setStatus(static_cast(status)); } -void QCameraFocusZone_Delete(QCameraFocusZone* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraFocusZone_Delete(QCameraFocusZone* self) { + delete self; } void QCameraFocus_virtbase(QCameraFocus* src, QObject** outptr_QObject) { diff --git a/qt/multimedia/gen_qcamerafocus.go b/qt/multimedia/gen_qcamerafocus.go index ce042b22..116b19b5 100644 --- a/qt/multimedia/gen_qcamerafocus.go +++ b/qt/multimedia/gen_qcamerafocus.go @@ -141,7 +141,7 @@ func (this *QCameraFocusZone) SetStatus(status QCameraFocusZone__FocusZoneStatus // Delete this object from C++ memory. func (this *QCameraFocusZone) Delete() { - C.QCameraFocusZone_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraFocusZone_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcamerafocus.h b/qt/multimedia/gen_qcamerafocus.h index 58f1cf8b..c6a64f87 100644 --- a/qt/multimedia/gen_qcamerafocus.h +++ b/qt/multimedia/gen_qcamerafocus.h @@ -41,7 +41,7 @@ bool QCameraFocusZone_IsValid(const QCameraFocusZone* self); QRectF* QCameraFocusZone_Area(const QCameraFocusZone* self); int QCameraFocusZone_Status(const QCameraFocusZone* self); void QCameraFocusZone_SetStatus(QCameraFocusZone* self, int status); -void QCameraFocusZone_Delete(QCameraFocusZone* self, bool isSubclass); +void QCameraFocusZone_Delete(QCameraFocusZone* self); void QCameraFocus_virtbase(QCameraFocus* src, QObject** outptr_QObject); QMetaObject* QCameraFocus_MetaObject(const QCameraFocus* self); diff --git a/qt/multimedia/gen_qcamerafocuscontrol.cpp b/qt/multimedia/gen_qcamerafocuscontrol.cpp index aa99838a..ee217d92 100644 --- a/qt/multimedia/gen_qcamerafocuscontrol.cpp +++ b/qt/multimedia/gen_qcamerafocuscontrol.cpp @@ -195,11 +195,7 @@ struct miqt_string QCameraFocusControl_TrUtf83(const char* s, const char* c, int return _ms; } -void QCameraFocusControl_Delete(QCameraFocusControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraFocusControl_Delete(QCameraFocusControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcamerafocuscontrol.go b/qt/multimedia/gen_qcamerafocuscontrol.go index b314bd0b..cf6f52a3 100644 --- a/qt/multimedia/gen_qcamerafocuscontrol.go +++ b/qt/multimedia/gen_qcamerafocuscontrol.go @@ -249,7 +249,7 @@ func QCameraFocusControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QCameraFocusControl) Delete() { - C.QCameraFocusControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraFocusControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcamerafocuscontrol.h b/qt/multimedia/gen_qcamerafocuscontrol.h index 2346a58e..46d036db 100644 --- a/qt/multimedia/gen_qcamerafocuscontrol.h +++ b/qt/multimedia/gen_qcamerafocuscontrol.h @@ -56,7 +56,7 @@ struct miqt_string QCameraFocusControl_Tr2(const char* s, const char* c); struct miqt_string QCameraFocusControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraFocusControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraFocusControl_TrUtf83(const char* s, const char* c, int n); -void QCameraFocusControl_Delete(QCameraFocusControl* self, bool isSubclass); +void QCameraFocusControl_Delete(QCameraFocusControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameraimagecapture.cpp b/qt/multimedia/gen_qcameraimagecapture.cpp index cca49c0b..36fa6de5 100644 --- a/qt/multimedia/gen_qcameraimagecapture.cpp +++ b/qt/multimedia/gen_qcameraimagecapture.cpp @@ -45,13 +45,13 @@ void miqt_exec_callback_QCameraImageCapture_DisconnectNotify(void*, intptr_t, QM } /* extern C */ #endif -class MiqtVirtualQCameraImageCapture : public virtual QCameraImageCapture { +class MiqtVirtualQCameraImageCapture final : public QCameraImageCapture { public: MiqtVirtualQCameraImageCapture(QMediaObject* mediaObject): QCameraImageCapture(mediaObject) {}; MiqtVirtualQCameraImageCapture(QMediaObject* mediaObject, QObject* parent): QCameraImageCapture(mediaObject, parent) {}; - virtual ~MiqtVirtualQCameraImageCapture() = default; + virtual ~MiqtVirtualQCameraImageCapture() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MediaObject = 0; @@ -730,11 +730,7 @@ void QCameraImageCapture_virtualbase_DisconnectNotify(void* self, QMetaMethod* s ( (MiqtVirtualQCameraImageCapture*)(self) )->virtualbase_DisconnectNotify(signal); } -void QCameraImageCapture_Delete(QCameraImageCapture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraImageCapture_Delete(QCameraImageCapture* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameraimagecapture.go b/qt/multimedia/gen_qcameraimagecapture.go index 4af55a54..359f186b 100644 --- a/qt/multimedia/gen_qcameraimagecapture.go +++ b/qt/multimedia/gen_qcameraimagecapture.go @@ -767,7 +767,7 @@ func miqt_exec_callback_QCameraImageCapture_DisconnectNotify(self *C.QCameraImag // Delete this object from C++ memory. func (this *QCameraImageCapture) Delete() { - C.QCameraImageCapture_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraImageCapture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameraimagecapture.h b/qt/multimedia/gen_qcameraimagecapture.h index d7a34473..cc113076 100644 --- a/qt/multimedia/gen_qcameraimagecapture.h +++ b/qt/multimedia/gen_qcameraimagecapture.h @@ -116,7 +116,7 @@ void QCameraImageCapture_override_virtual_ConnectNotify(void* self, intptr_t slo void QCameraImageCapture_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QCameraImageCapture_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QCameraImageCapture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QCameraImageCapture_Delete(QCameraImageCapture* self, bool isSubclass); +void QCameraImageCapture_Delete(QCameraImageCapture* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameraimagecapturecontrol.cpp b/qt/multimedia/gen_qcameraimagecapturecontrol.cpp index b2a088c1..1222feae 100644 --- a/qt/multimedia/gen_qcameraimagecapturecontrol.cpp +++ b/qt/multimedia/gen_qcameraimagecapturecontrol.cpp @@ -240,11 +240,7 @@ struct miqt_string QCameraImageCaptureControl_TrUtf83(const char* s, const char* return _ms; } -void QCameraImageCaptureControl_Delete(QCameraImageCaptureControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraImageCaptureControl_Delete(QCameraImageCaptureControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameraimagecapturecontrol.go b/qt/multimedia/gen_qcameraimagecapturecontrol.go index 42fe3a6e..b85f9fe8 100644 --- a/qt/multimedia/gen_qcameraimagecapturecontrol.go +++ b/qt/multimedia/gen_qcameraimagecapturecontrol.go @@ -324,7 +324,7 @@ func QCameraImageCaptureControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QCameraImageCaptureControl) Delete() { - C.QCameraImageCaptureControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraImageCaptureControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameraimagecapturecontrol.h b/qt/multimedia/gen_qcameraimagecapturecontrol.h index ae6886bf..a560e34f 100644 --- a/qt/multimedia/gen_qcameraimagecapturecontrol.h +++ b/qt/multimedia/gen_qcameraimagecapturecontrol.h @@ -60,7 +60,7 @@ struct miqt_string QCameraImageCaptureControl_Tr2(const char* s, const char* c); struct miqt_string QCameraImageCaptureControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraImageCaptureControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraImageCaptureControl_TrUtf83(const char* s, const char* c, int n); -void QCameraImageCaptureControl_Delete(QCameraImageCaptureControl* self, bool isSubclass); +void QCameraImageCaptureControl_Delete(QCameraImageCaptureControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameraimageprocessingcontrol.cpp b/qt/multimedia/gen_qcameraimageprocessingcontrol.cpp index 959717eb..2b93b2c2 100644 --- a/qt/multimedia/gen_qcameraimageprocessingcontrol.cpp +++ b/qt/multimedia/gen_qcameraimageprocessingcontrol.cpp @@ -111,11 +111,7 @@ struct miqt_string QCameraImageProcessingControl_TrUtf83(const char* s, const ch return _ms; } -void QCameraImageProcessingControl_Delete(QCameraImageProcessingControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraImageProcessingControl_Delete(QCameraImageProcessingControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameraimageprocessingcontrol.go b/qt/multimedia/gen_qcameraimageprocessingcontrol.go index 6c599ba8..def6b478 100644 --- a/qt/multimedia/gen_qcameraimageprocessingcontrol.go +++ b/qt/multimedia/gen_qcameraimageprocessingcontrol.go @@ -162,7 +162,7 @@ func QCameraImageProcessingControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QCameraImageProcessingControl) Delete() { - C.QCameraImageProcessingControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraImageProcessingControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameraimageprocessingcontrol.h b/qt/multimedia/gen_qcameraimageprocessingcontrol.h index 9284ce29..cc6a5cd6 100644 --- a/qt/multimedia/gen_qcameraimageprocessingcontrol.h +++ b/qt/multimedia/gen_qcameraimageprocessingcontrol.h @@ -41,7 +41,7 @@ struct miqt_string QCameraImageProcessingControl_Tr2(const char* s, const char* struct miqt_string QCameraImageProcessingControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraImageProcessingControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraImageProcessingControl_TrUtf83(const char* s, const char* c, int n); -void QCameraImageProcessingControl_Delete(QCameraImageProcessingControl* self, bool isSubclass); +void QCameraImageProcessingControl_Delete(QCameraImageProcessingControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcamerainfo.cpp b/qt/multimedia/gen_qcamerainfo.cpp index f8ab6717..08f5f205 100644 --- a/qt/multimedia/gen_qcamerainfo.cpp +++ b/qt/multimedia/gen_qcamerainfo.cpp @@ -110,11 +110,7 @@ struct miqt_array /* of QCameraInfo* */ QCameraInfo_AvailableCameras1(int posit return _out; } -void QCameraInfo_Delete(QCameraInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraInfo_Delete(QCameraInfo* self) { + delete self; } diff --git a/qt/multimedia/gen_qcamerainfo.go b/qt/multimedia/gen_qcamerainfo.go index cfb73fef..d443cc83 100644 --- a/qt/multimedia/gen_qcamerainfo.go +++ b/qt/multimedia/gen_qcamerainfo.go @@ -151,7 +151,7 @@ func QCameraInfo_AvailableCameras1(position QCamera__Position) []QCameraInfo { // Delete this object from C++ memory. func (this *QCameraInfo) Delete() { - C.QCameraInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcamerainfo.h b/qt/multimedia/gen_qcamerainfo.h index 8ffaffab..d218018d 100644 --- a/qt/multimedia/gen_qcamerainfo.h +++ b/qt/multimedia/gen_qcamerainfo.h @@ -37,7 +37,7 @@ int QCameraInfo_Orientation(const QCameraInfo* self); QCameraInfo* QCameraInfo_DefaultCamera(); struct miqt_array /* of QCameraInfo* */ QCameraInfo_AvailableCameras(); struct miqt_array /* of QCameraInfo* */ QCameraInfo_AvailableCameras1(int position); -void QCameraInfo_Delete(QCameraInfo* self, bool isSubclass); +void QCameraInfo_Delete(QCameraInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcamerainfocontrol.cpp b/qt/multimedia/gen_qcamerainfocontrol.cpp index ec145939..2dc87210 100644 --- a/qt/multimedia/gen_qcamerainfocontrol.cpp +++ b/qt/multimedia/gen_qcamerainfocontrol.cpp @@ -105,11 +105,7 @@ struct miqt_string QCameraInfoControl_TrUtf83(const char* s, const char* c, int return _ms; } -void QCameraInfoControl_Delete(QCameraInfoControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraInfoControl_Delete(QCameraInfoControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcamerainfocontrol.go b/qt/multimedia/gen_qcamerainfocontrol.go index 76abbfd4..b446cd04 100644 --- a/qt/multimedia/gen_qcamerainfocontrol.go +++ b/qt/multimedia/gen_qcamerainfocontrol.go @@ -141,7 +141,7 @@ func QCameraInfoControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QCameraInfoControl) Delete() { - C.QCameraInfoControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraInfoControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcamerainfocontrol.h b/qt/multimedia/gen_qcamerainfocontrol.h index 5eb67f5a..f3db49a0 100644 --- a/qt/multimedia/gen_qcamerainfocontrol.h +++ b/qt/multimedia/gen_qcamerainfocontrol.h @@ -37,7 +37,7 @@ struct miqt_string QCameraInfoControl_Tr2(const char* s, const char* c); struct miqt_string QCameraInfoControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraInfoControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraInfoControl_TrUtf83(const char* s, const char* c, int n); -void QCameraInfoControl_Delete(QCameraInfoControl* self, bool isSubclass); +void QCameraInfoControl_Delete(QCameraInfoControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameralockscontrol.cpp b/qt/multimedia/gen_qcameralockscontrol.cpp index 3722c089..fb2dd98b 100644 --- a/qt/multimedia/gen_qcameralockscontrol.cpp +++ b/qt/multimedia/gen_qcameralockscontrol.cpp @@ -129,11 +129,7 @@ struct miqt_string QCameraLocksControl_TrUtf83(const char* s, const char* c, int return _ms; } -void QCameraLocksControl_Delete(QCameraLocksControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraLocksControl_Delete(QCameraLocksControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameralockscontrol.go b/qt/multimedia/gen_qcameralockscontrol.go index 637ba143..6fad01fa 100644 --- a/qt/multimedia/gen_qcameralockscontrol.go +++ b/qt/multimedia/gen_qcameralockscontrol.go @@ -166,7 +166,7 @@ func QCameraLocksControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QCameraLocksControl) Delete() { - C.QCameraLocksControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraLocksControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameralockscontrol.h b/qt/multimedia/gen_qcameralockscontrol.h index f016598b..689d9a7e 100644 --- a/qt/multimedia/gen_qcameralockscontrol.h +++ b/qt/multimedia/gen_qcameralockscontrol.h @@ -41,7 +41,7 @@ struct miqt_string QCameraLocksControl_Tr2(const char* s, const char* c); struct miqt_string QCameraLocksControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraLocksControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraLocksControl_TrUtf83(const char* s, const char* c, int n); -void QCameraLocksControl_Delete(QCameraLocksControl* self, bool isSubclass); +void QCameraLocksControl_Delete(QCameraLocksControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameraviewfinder.cpp b/qt/multimedia/gen_qcameraviewfinder.cpp index 52146e8b..17469834 100644 --- a/qt/multimedia/gen_qcameraviewfinder.cpp +++ b/qt/multimedia/gen_qcameraviewfinder.cpp @@ -36,13 +36,13 @@ void miqt_exec_callback_QCameraViewfinder_PaintEvent(void*, intptr_t, QPaintEven } /* extern C */ #endif -class MiqtVirtualQCameraViewfinder : public virtual QCameraViewfinder { +class MiqtVirtualQCameraViewfinder final : public QCameraViewfinder { public: MiqtVirtualQCameraViewfinder(QWidget* parent): QCameraViewfinder(parent) {}; MiqtVirtualQCameraViewfinder(): QCameraViewfinder() {}; - virtual ~MiqtVirtualQCameraViewfinder() = default; + virtual ~MiqtVirtualQCameraViewfinder() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MediaObject = 0; @@ -418,11 +418,7 @@ void QCameraViewfinder_virtualbase_PaintEvent(void* self, QPaintEvent* event) { ( (MiqtVirtualQCameraViewfinder*)(self) )->virtualbase_PaintEvent(event); } -void QCameraViewfinder_Delete(QCameraViewfinder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraViewfinder_Delete(QCameraViewfinder* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameraviewfinder.go b/qt/multimedia/gen_qcameraviewfinder.go index 23cd3979..a6d50019 100644 --- a/qt/multimedia/gen_qcameraviewfinder.go +++ b/qt/multimedia/gen_qcameraviewfinder.go @@ -384,7 +384,7 @@ func miqt_exec_callback_QCameraViewfinder_PaintEvent(self *C.QCameraViewfinder, // Delete this object from C++ memory. func (this *QCameraViewfinder) Delete() { - C.QCameraViewfinder_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraViewfinder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameraviewfinder.h b/qt/multimedia/gen_qcameraviewfinder.h index 2dd63ad6..c2453152 100644 --- a/qt/multimedia/gen_qcameraviewfinder.h +++ b/qt/multimedia/gen_qcameraviewfinder.h @@ -79,7 +79,7 @@ void QCameraViewfinder_override_virtual_MoveEvent(void* self, intptr_t slot); void QCameraViewfinder_virtualbase_MoveEvent(void* self, QMoveEvent* event); void QCameraViewfinder_override_virtual_PaintEvent(void* self, intptr_t slot); void QCameraViewfinder_virtualbase_PaintEvent(void* self, QPaintEvent* event); -void QCameraViewfinder_Delete(QCameraViewfinder* self, bool isSubclass); +void QCameraViewfinder_Delete(QCameraViewfinder* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameraviewfindersettings.cpp b/qt/multimedia/gen_qcameraviewfindersettings.cpp index e357aad2..e2ab8fb0 100644 --- a/qt/multimedia/gen_qcameraviewfindersettings.cpp +++ b/qt/multimedia/gen_qcameraviewfindersettings.cpp @@ -82,11 +82,7 @@ void QCameraViewfinderSettings_SetPixelAspectRatio2(QCameraViewfinderSettings* s self->setPixelAspectRatio(static_cast(horizontal), static_cast(vertical)); } -void QCameraViewfinderSettings_Delete(QCameraViewfinderSettings* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraViewfinderSettings_Delete(QCameraViewfinderSettings* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameraviewfindersettings.go b/qt/multimedia/gen_qcameraviewfindersettings.go index d01f42c0..4d807be6 100644 --- a/qt/multimedia/gen_qcameraviewfindersettings.go +++ b/qt/multimedia/gen_qcameraviewfindersettings.go @@ -129,7 +129,7 @@ func (this *QCameraViewfinderSettings) SetPixelAspectRatio2(horizontal int, vert // Delete this object from C++ memory. func (this *QCameraViewfinderSettings) Delete() { - C.QCameraViewfinderSettings_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraViewfinderSettings_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameraviewfindersettings.h b/qt/multimedia/gen_qcameraviewfindersettings.h index bfa63964..46266176 100644 --- a/qt/multimedia/gen_qcameraviewfindersettings.h +++ b/qt/multimedia/gen_qcameraviewfindersettings.h @@ -39,7 +39,7 @@ void QCameraViewfinderSettings_SetPixelFormat(QCameraViewfinderSettings* self, i QSize* QCameraViewfinderSettings_PixelAspectRatio(const QCameraViewfinderSettings* self); void QCameraViewfinderSettings_SetPixelAspectRatio(QCameraViewfinderSettings* self, QSize* ratio); void QCameraViewfinderSettings_SetPixelAspectRatio2(QCameraViewfinderSettings* self, int horizontal, int vertical); -void QCameraViewfinderSettings_Delete(QCameraViewfinderSettings* self, bool isSubclass); +void QCameraViewfinderSettings_Delete(QCameraViewfinderSettings* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcameraviewfindersettingscontrol.cpp b/qt/multimedia/gen_qcameraviewfindersettingscontrol.cpp index 33f7d5cb..63bef644 100644 --- a/qt/multimedia/gen_qcameraviewfindersettingscontrol.cpp +++ b/qt/multimedia/gen_qcameraviewfindersettingscontrol.cpp @@ -110,12 +110,8 @@ struct miqt_string QCameraViewfinderSettingsControl_TrUtf83(const char* s, const return _ms; } -void QCameraViewfinderSettingsControl_Delete(QCameraViewfinderSettingsControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraViewfinderSettingsControl_Delete(QCameraViewfinderSettingsControl* self) { + delete self; } void QCameraViewfinderSettingsControl2_virtbase(QCameraViewfinderSettingsControl2* src, QMediaControl** outptr_QMediaControl) { @@ -217,11 +213,7 @@ struct miqt_string QCameraViewfinderSettingsControl2_TrUtf83(const char* s, cons return _ms; } -void QCameraViewfinderSettingsControl2_Delete(QCameraViewfinderSettingsControl2* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraViewfinderSettingsControl2_Delete(QCameraViewfinderSettingsControl2* self) { + delete self; } diff --git a/qt/multimedia/gen_qcameraviewfindersettingscontrol.go b/qt/multimedia/gen_qcameraviewfindersettingscontrol.go index 04d5a3fd..c2773e9b 100644 --- a/qt/multimedia/gen_qcameraviewfindersettingscontrol.go +++ b/qt/multimedia/gen_qcameraviewfindersettingscontrol.go @@ -150,7 +150,7 @@ func QCameraViewfinderSettingsControl_TrUtf83(s string, c string, n int) string // Delete this object from C++ memory. func (this *QCameraViewfinderSettingsControl) Delete() { - C.QCameraViewfinderSettingsControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraViewfinderSettingsControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -295,7 +295,7 @@ func QCameraViewfinderSettingsControl2_TrUtf83(s string, c string, n int) string // Delete this object from C++ memory. func (this *QCameraViewfinderSettingsControl2) Delete() { - C.QCameraViewfinderSettingsControl2_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraViewfinderSettingsControl2_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcameraviewfindersettingscontrol.h b/qt/multimedia/gen_qcameraviewfindersettingscontrol.h index eba97482..a7f2acc8 100644 --- a/qt/multimedia/gen_qcameraviewfindersettingscontrol.h +++ b/qt/multimedia/gen_qcameraviewfindersettingscontrol.h @@ -44,7 +44,7 @@ struct miqt_string QCameraViewfinderSettingsControl_Tr2(const char* s, const cha struct miqt_string QCameraViewfinderSettingsControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraViewfinderSettingsControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraViewfinderSettingsControl_TrUtf83(const char* s, const char* c, int n); -void QCameraViewfinderSettingsControl_Delete(QCameraViewfinderSettingsControl* self, bool isSubclass); +void QCameraViewfinderSettingsControl_Delete(QCameraViewfinderSettingsControl* self); void QCameraViewfinderSettingsControl2_virtbase(QCameraViewfinderSettingsControl2* src, QMediaControl** outptr_QMediaControl); QMetaObject* QCameraViewfinderSettingsControl2_MetaObject(const QCameraViewfinderSettingsControl2* self); @@ -58,7 +58,7 @@ struct miqt_string QCameraViewfinderSettingsControl2_Tr2(const char* s, const ch struct miqt_string QCameraViewfinderSettingsControl2_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraViewfinderSettingsControl2_TrUtf82(const char* s, const char* c); struct miqt_string QCameraViewfinderSettingsControl2_TrUtf83(const char* s, const char* c, int n); -void QCameraViewfinderSettingsControl2_Delete(QCameraViewfinderSettingsControl2* self, bool isSubclass); +void QCameraViewfinderSettingsControl2_Delete(QCameraViewfinderSettingsControl2* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcamerazoomcontrol.cpp b/qt/multimedia/gen_qcamerazoomcontrol.cpp index 32ce2b05..2ae27962 100644 --- a/qt/multimedia/gen_qcamerazoomcontrol.cpp +++ b/qt/multimedia/gen_qcamerazoomcontrol.cpp @@ -206,11 +206,7 @@ struct miqt_string QCameraZoomControl_TrUtf83(const char* s, const char* c, int return _ms; } -void QCameraZoomControl_Delete(QCameraZoomControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraZoomControl_Delete(QCameraZoomControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcamerazoomcontrol.go b/qt/multimedia/gen_qcamerazoomcontrol.go index 513b0375..8e0b83d9 100644 --- a/qt/multimedia/gen_qcamerazoomcontrol.go +++ b/qt/multimedia/gen_qcamerazoomcontrol.go @@ -274,7 +274,7 @@ func QCameraZoomControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QCameraZoomControl) Delete() { - C.QCameraZoomControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraZoomControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcamerazoomcontrol.h b/qt/multimedia/gen_qcamerazoomcontrol.h index aee6c7bc..3480ca5a 100644 --- a/qt/multimedia/gen_qcamerazoomcontrol.h +++ b/qt/multimedia/gen_qcamerazoomcontrol.h @@ -54,7 +54,7 @@ struct miqt_string QCameraZoomControl_Tr2(const char* s, const char* c); struct miqt_string QCameraZoomControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCameraZoomControl_TrUtf82(const char* s, const char* c); struct miqt_string QCameraZoomControl_TrUtf83(const char* s, const char* c, int n); -void QCameraZoomControl_Delete(QCameraZoomControl* self, bool isSubclass); +void QCameraZoomControl_Delete(QCameraZoomControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qcustomaudiorolecontrol.cpp b/qt/multimedia/gen_qcustomaudiorolecontrol.cpp index 958b926c..79a66c9f 100644 --- a/qt/multimedia/gen_qcustomaudiorolecontrol.cpp +++ b/qt/multimedia/gen_qcustomaudiorolecontrol.cpp @@ -151,11 +151,7 @@ struct miqt_string QCustomAudioRoleControl_TrUtf83(const char* s, const char* c, return _ms; } -void QCustomAudioRoleControl_Delete(QCustomAudioRoleControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCustomAudioRoleControl_Delete(QCustomAudioRoleControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qcustomaudiorolecontrol.go b/qt/multimedia/gen_qcustomaudiorolecontrol.go index 23c136c5..25d842dc 100644 --- a/qt/multimedia/gen_qcustomaudiorolecontrol.go +++ b/qt/multimedia/gen_qcustomaudiorolecontrol.go @@ -181,7 +181,7 @@ func QCustomAudioRoleControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QCustomAudioRoleControl) Delete() { - C.QCustomAudioRoleControl_Delete(this.h, C.bool(this.isSubclass)) + C.QCustomAudioRoleControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qcustomaudiorolecontrol.h b/qt/multimedia/gen_qcustomaudiorolecontrol.h index 383ca05b..d20aaaca 100644 --- a/qt/multimedia/gen_qcustomaudiorolecontrol.h +++ b/qt/multimedia/gen_qcustomaudiorolecontrol.h @@ -40,7 +40,7 @@ struct miqt_string QCustomAudioRoleControl_Tr2(const char* s, const char* c); struct miqt_string QCustomAudioRoleControl_Tr3(const char* s, const char* c, int n); struct miqt_string QCustomAudioRoleControl_TrUtf82(const char* s, const char* c); struct miqt_string QCustomAudioRoleControl_TrUtf83(const char* s, const char* c, int n); -void QCustomAudioRoleControl_Delete(QCustomAudioRoleControl* self, bool isSubclass); +void QCustomAudioRoleControl_Delete(QCustomAudioRoleControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qgraphicsvideoitem.cpp b/qt/multimedia/gen_qgraphicsvideoitem.cpp index 56658284..ebefb156 100644 --- a/qt/multimedia/gen_qgraphicsvideoitem.cpp +++ b/qt/multimedia/gen_qgraphicsvideoitem.cpp @@ -37,13 +37,13 @@ bool miqt_exec_callback_QGraphicsVideoItem_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQGraphicsVideoItem : public virtual QGraphicsVideoItem { +class MiqtVirtualQGraphicsVideoItem final : public QGraphicsVideoItem { public: MiqtVirtualQGraphicsVideoItem(): QGraphicsVideoItem() {}; MiqtVirtualQGraphicsVideoItem(QGraphicsItem* parent): QGraphicsVideoItem(parent) {}; - virtual ~MiqtVirtualQGraphicsVideoItem() = default; + virtual ~MiqtVirtualQGraphicsVideoItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MediaObject = 0; @@ -415,11 +415,7 @@ bool QGraphicsVideoItem_virtualbase_Event(void* self, QEvent* ev) { return ( (MiqtVirtualQGraphicsVideoItem*)(self) )->virtualbase_Event(ev); } -void QGraphicsVideoItem_Delete(QGraphicsVideoItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsVideoItem_Delete(QGraphicsVideoItem* self) { + delete self; } diff --git a/qt/multimedia/gen_qgraphicsvideoitem.go b/qt/multimedia/gen_qgraphicsvideoitem.go index c3338a1e..21b2afb4 100644 --- a/qt/multimedia/gen_qgraphicsvideoitem.go +++ b/qt/multimedia/gen_qgraphicsvideoitem.go @@ -413,7 +413,7 @@ func miqt_exec_callback_QGraphicsVideoItem_Event(self *C.QGraphicsVideoItem, cb // Delete this object from C++ memory. func (this *QGraphicsVideoItem) Delete() { - C.QGraphicsVideoItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsVideoItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qgraphicsvideoitem.h b/qt/multimedia/gen_qgraphicsvideoitem.h index 696739f1..9df19a5a 100644 --- a/qt/multimedia/gen_qgraphicsvideoitem.h +++ b/qt/multimedia/gen_qgraphicsvideoitem.h @@ -93,7 +93,7 @@ void QGraphicsVideoItem_override_virtual_SetMediaObject(void* self, intptr_t slo bool QGraphicsVideoItem_virtualbase_SetMediaObject(void* self, QMediaObject* object); void QGraphicsVideoItem_override_virtual_Event(void* self, intptr_t slot); bool QGraphicsVideoItem_virtualbase_Event(void* self, QEvent* ev); -void QGraphicsVideoItem_Delete(QGraphicsVideoItem* self, bool isSubclass); +void QGraphicsVideoItem_Delete(QGraphicsVideoItem* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qimageencodercontrol.cpp b/qt/multimedia/gen_qimageencodercontrol.cpp index 88db58dc..e2dbdf36 100644 --- a/qt/multimedia/gen_qimageencodercontrol.cpp +++ b/qt/multimedia/gen_qimageencodercontrol.cpp @@ -150,11 +150,7 @@ struct miqt_string QImageEncoderControl_TrUtf83(const char* s, const char* c, in return _ms; } -void QImageEncoderControl_Delete(QImageEncoderControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImageEncoderControl_Delete(QImageEncoderControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qimageencodercontrol.go b/qt/multimedia/gen_qimageencodercontrol.go index f1c4f933..237047f6 100644 --- a/qt/multimedia/gen_qimageencodercontrol.go +++ b/qt/multimedia/gen_qimageencodercontrol.go @@ -171,7 +171,7 @@ func QImageEncoderControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QImageEncoderControl) Delete() { - C.QImageEncoderControl_Delete(this.h, C.bool(this.isSubclass)) + C.QImageEncoderControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qimageencodercontrol.h b/qt/multimedia/gen_qimageencodercontrol.h index 3137a753..6527c9a4 100644 --- a/qt/multimedia/gen_qimageencodercontrol.h +++ b/qt/multimedia/gen_qimageencodercontrol.h @@ -44,7 +44,7 @@ struct miqt_string QImageEncoderControl_Tr2(const char* s, const char* c); struct miqt_string QImageEncoderControl_Tr3(const char* s, const char* c, int n); struct miqt_string QImageEncoderControl_TrUtf82(const char* s, const char* c); struct miqt_string QImageEncoderControl_TrUtf83(const char* s, const char* c, int n); -void QImageEncoderControl_Delete(QImageEncoderControl* self, bool isSubclass); +void QImageEncoderControl_Delete(QImageEncoderControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediaaudioprobecontrol.cpp b/qt/multimedia/gen_qmediaaudioprobecontrol.cpp index 9aaec30e..df1f8221 100644 --- a/qt/multimedia/gen_qmediaaudioprobecontrol.cpp +++ b/qt/multimedia/gen_qmediaaudioprobecontrol.cpp @@ -120,11 +120,7 @@ struct miqt_string QMediaAudioProbeControl_TrUtf83(const char* s, const char* c, return _ms; } -void QMediaAudioProbeControl_Delete(QMediaAudioProbeControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaAudioProbeControl_Delete(QMediaAudioProbeControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediaaudioprobecontrol.go b/qt/multimedia/gen_qmediaaudioprobecontrol.go index 92beadcf..70c4ba47 100644 --- a/qt/multimedia/gen_qmediaaudioprobecontrol.go +++ b/qt/multimedia/gen_qmediaaudioprobecontrol.go @@ -163,7 +163,7 @@ func QMediaAudioProbeControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaAudioProbeControl) Delete() { - C.QMediaAudioProbeControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaAudioProbeControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediaaudioprobecontrol.h b/qt/multimedia/gen_qmediaaudioprobecontrol.h index e40d4c09..c8efa461 100644 --- a/qt/multimedia/gen_qmediaaudioprobecontrol.h +++ b/qt/multimedia/gen_qmediaaudioprobecontrol.h @@ -41,7 +41,7 @@ struct miqt_string QMediaAudioProbeControl_Tr2(const char* s, const char* c); struct miqt_string QMediaAudioProbeControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaAudioProbeControl_TrUtf82(const char* s, const char* c); struct miqt_string QMediaAudioProbeControl_TrUtf83(const char* s, const char* c, int n); -void QMediaAudioProbeControl_Delete(QMediaAudioProbeControl* self, bool isSubclass); +void QMediaAudioProbeControl_Delete(QMediaAudioProbeControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediaavailabilitycontrol.cpp b/qt/multimedia/gen_qmediaavailabilitycontrol.cpp index bc054451..41979201 100644 --- a/qt/multimedia/gen_qmediaavailabilitycontrol.cpp +++ b/qt/multimedia/gen_qmediaavailabilitycontrol.cpp @@ -112,11 +112,7 @@ struct miqt_string QMediaAvailabilityControl_TrUtf83(const char* s, const char* return _ms; } -void QMediaAvailabilityControl_Delete(QMediaAvailabilityControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaAvailabilityControl_Delete(QMediaAvailabilityControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediaavailabilitycontrol.go b/qt/multimedia/gen_qmediaavailabilitycontrol.go index 4021fde1..47f8aaba 100644 --- a/qt/multimedia/gen_qmediaavailabilitycontrol.go +++ b/qt/multimedia/gen_qmediaavailabilitycontrol.go @@ -150,7 +150,7 @@ func QMediaAvailabilityControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaAvailabilityControl) Delete() { - C.QMediaAvailabilityControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaAvailabilityControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediaavailabilitycontrol.h b/qt/multimedia/gen_qmediaavailabilitycontrol.h index ddab42ed..a3208bd3 100644 --- a/qt/multimedia/gen_qmediaavailabilitycontrol.h +++ b/qt/multimedia/gen_qmediaavailabilitycontrol.h @@ -38,7 +38,7 @@ struct miqt_string QMediaAvailabilityControl_Tr2(const char* s, const char* c); struct miqt_string QMediaAvailabilityControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaAvailabilityControl_TrUtf82(const char* s, const char* c); struct miqt_string QMediaAvailabilityControl_TrUtf83(const char* s, const char* c, int n); -void QMediaAvailabilityControl_Delete(QMediaAvailabilityControl* self, bool isSubclass); +void QMediaAvailabilityControl_Delete(QMediaAvailabilityControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediabindableinterface.cpp b/qt/multimedia/gen_qmediabindableinterface.cpp index 0b148abf..0c087faf 100644 --- a/qt/multimedia/gen_qmediabindableinterface.cpp +++ b/qt/multimedia/gen_qmediabindableinterface.cpp @@ -15,11 +15,7 @@ QMediaObject* QMediaBindableInterface_MediaObject(const QMediaBindableInterface* return self->mediaObject(); } -void QMediaBindableInterface_Delete(QMediaBindableInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaBindableInterface_Delete(QMediaBindableInterface* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediabindableinterface.go b/qt/multimedia/gen_qmediabindableinterface.go index b835191e..116510fd 100644 --- a/qt/multimedia/gen_qmediabindableinterface.go +++ b/qt/multimedia/gen_qmediabindableinterface.go @@ -52,7 +52,7 @@ func (this *QMediaBindableInterface) MediaObject() *QMediaObject { // Delete this object from C++ memory. func (this *QMediaBindableInterface) Delete() { - C.QMediaBindableInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaBindableInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediabindableinterface.h b/qt/multimedia/gen_qmediabindableinterface.h index 83aa54cd..195fb5fc 100644 --- a/qt/multimedia/gen_qmediabindableinterface.h +++ b/qt/multimedia/gen_qmediabindableinterface.h @@ -24,7 +24,7 @@ typedef struct QMediaObject QMediaObject; QMediaObject* QMediaBindableInterface_MediaObject(const QMediaBindableInterface* self); bool QMediaBindableInterface_SetMediaObject(QMediaBindableInterface* self, QMediaObject* object); -void QMediaBindableInterface_Delete(QMediaBindableInterface* self, bool isSubclass); +void QMediaBindableInterface_Delete(QMediaBindableInterface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediacontainercontrol.cpp b/qt/multimedia/gen_qmediacontainercontrol.cpp index 4929158d..47b2e8bd 100644 --- a/qt/multimedia/gen_qmediacontainercontrol.cpp +++ b/qt/multimedia/gen_qmediacontainercontrol.cpp @@ -143,11 +143,7 @@ struct miqt_string QMediaContainerControl_TrUtf83(const char* s, const char* c, return _ms; } -void QMediaContainerControl_Delete(QMediaContainerControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaContainerControl_Delete(QMediaContainerControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediacontainercontrol.go b/qt/multimedia/gen_qmediacontainercontrol.go index 915da1e2..9957ad41 100644 --- a/qt/multimedia/gen_qmediacontainercontrol.go +++ b/qt/multimedia/gen_qmediacontainercontrol.go @@ -164,7 +164,7 @@ func QMediaContainerControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaContainerControl) Delete() { - C.QMediaContainerControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaContainerControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediacontainercontrol.h b/qt/multimedia/gen_qmediacontainercontrol.h index b6b5ba51..061c5b45 100644 --- a/qt/multimedia/gen_qmediacontainercontrol.h +++ b/qt/multimedia/gen_qmediacontainercontrol.h @@ -39,7 +39,7 @@ struct miqt_string QMediaContainerControl_Tr2(const char* s, const char* c); struct miqt_string QMediaContainerControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaContainerControl_TrUtf82(const char* s, const char* c); struct miqt_string QMediaContainerControl_TrUtf83(const char* s, const char* c, int n); -void QMediaContainerControl_Delete(QMediaContainerControl* self, bool isSubclass); +void QMediaContainerControl_Delete(QMediaContainerControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediacontent.cpp b/qt/multimedia/gen_qmediacontent.cpp index 34132226..96569e95 100644 --- a/qt/multimedia/gen_qmediacontent.cpp +++ b/qt/multimedia/gen_qmediacontent.cpp @@ -106,11 +106,7 @@ QMediaPlaylist* QMediaContent_Playlist(const QMediaContent* self) { return self->playlist(); } -void QMediaContent_Delete(QMediaContent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaContent_Delete(QMediaContent* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediacontent.go b/qt/multimedia/gen_qmediacontent.go index 18848bcc..9e16744c 100644 --- a/qt/multimedia/gen_qmediacontent.go +++ b/qt/multimedia/gen_qmediacontent.go @@ -184,7 +184,7 @@ func (this *QMediaContent) Playlist() *QMediaPlaylist { // Delete this object from C++ memory. func (this *QMediaContent) Delete() { - C.QMediaContent_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaContent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediacontent.h b/qt/multimedia/gen_qmediacontent.h index 8fbd2dc7..036321f5 100644 --- a/qt/multimedia/gen_qmediacontent.h +++ b/qt/multimedia/gen_qmediacontent.h @@ -47,7 +47,7 @@ QNetworkRequest* QMediaContent_CanonicalRequest(const QMediaContent* self); QMediaResource* QMediaContent_CanonicalResource(const QMediaContent* self); struct miqt_array /* of QMediaResource* */ QMediaContent_Resources(const QMediaContent* self); QMediaPlaylist* QMediaContent_Playlist(const QMediaContent* self); -void QMediaContent_Delete(QMediaContent* self, bool isSubclass); +void QMediaContent_Delete(QMediaContent* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediacontrol.cpp b/qt/multimedia/gen_qmediacontrol.cpp index 33f6ae21..643a53f9 100644 --- a/qt/multimedia/gen_qmediacontrol.cpp +++ b/qt/multimedia/gen_qmediacontrol.cpp @@ -93,11 +93,7 @@ struct miqt_string QMediaControl_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QMediaControl_Delete(QMediaControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaControl_Delete(QMediaControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediacontrol.go b/qt/multimedia/gen_qmediacontrol.go index 37117af2..c59ffbc1 100644 --- a/qt/multimedia/gen_qmediacontrol.go +++ b/qt/multimedia/gen_qmediacontrol.go @@ -125,7 +125,7 @@ func QMediaControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaControl) Delete() { - C.QMediaControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediacontrol.h b/qt/multimedia/gen_qmediacontrol.h index 8b4ab5ca..2ecf316a 100644 --- a/qt/multimedia/gen_qmediacontrol.h +++ b/qt/multimedia/gen_qmediacontrol.h @@ -33,7 +33,7 @@ struct miqt_string QMediaControl_Tr2(const char* s, const char* c); struct miqt_string QMediaControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaControl_TrUtf82(const char* s, const char* c); struct miqt_string QMediaControl_TrUtf83(const char* s, const char* c, int n); -void QMediaControl_Delete(QMediaControl* self, bool isSubclass); +void QMediaControl_Delete(QMediaControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediaencodersettings.cpp b/qt/multimedia/gen_qmediaencodersettings.cpp index 6bc12563..95a55005 100644 --- a/qt/multimedia/gen_qmediaencodersettings.cpp +++ b/qt/multimedia/gen_qmediaencodersettings.cpp @@ -146,12 +146,8 @@ void QAudioEncoderSettings_SetEncodingOptions(QAudioEncoderSettings* self, struc self->setEncodingOptions(options_QMap); } -void QAudioEncoderSettings_Delete(QAudioEncoderSettings* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioEncoderSettings_Delete(QAudioEncoderSettings* self) { + delete self; } QVideoEncoderSettings* QVideoEncoderSettings_new() { @@ -287,12 +283,8 @@ void QVideoEncoderSettings_SetEncodingOptions(QVideoEncoderSettings* self, struc self->setEncodingOptions(options_QMap); } -void QVideoEncoderSettings_Delete(QVideoEncoderSettings* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoEncoderSettings_Delete(QVideoEncoderSettings* self) { + delete self; } QImageEncoderSettings* QImageEncoderSettings_new() { @@ -402,11 +394,7 @@ void QImageEncoderSettings_SetEncodingOptions(QImageEncoderSettings* self, struc self->setEncodingOptions(options_QMap); } -void QImageEncoderSettings_Delete(QImageEncoderSettings* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImageEncoderSettings_Delete(QImageEncoderSettings* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediaencodersettings.go b/qt/multimedia/gen_qmediaencodersettings.go index 511dd122..da970a7a 100644 --- a/qt/multimedia/gen_qmediaencodersettings.go +++ b/qt/multimedia/gen_qmediaencodersettings.go @@ -196,7 +196,7 @@ func (this *QAudioEncoderSettings) SetEncodingOptions(options map[string]qt.QVar // Delete this object from C++ memory. func (this *QAudioEncoderSettings) Delete() { - C.QAudioEncoderSettings_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioEncoderSettings_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -396,7 +396,7 @@ func (this *QVideoEncoderSettings) SetEncodingOptions(options map[string]qt.QVar // Delete this object from C++ memory. func (this *QVideoEncoderSettings) Delete() { - C.QVideoEncoderSettings_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoEncoderSettings_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -572,7 +572,7 @@ func (this *QImageEncoderSettings) SetEncodingOptions(options map[string]qt.QVar // Delete this object from C++ memory. func (this *QImageEncoderSettings) Delete() { - C.QImageEncoderSettings_Delete(this.h, C.bool(this.isSubclass)) + C.QImageEncoderSettings_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediaencodersettings.h b/qt/multimedia/gen_qmediaencodersettings.h index 2958fe20..cacab251 100644 --- a/qt/multimedia/gen_qmediaencodersettings.h +++ b/qt/multimedia/gen_qmediaencodersettings.h @@ -50,7 +50,7 @@ QVariant* QAudioEncoderSettings_EncodingOption(const QAudioEncoderSettings* self struct miqt_map /* of struct miqt_string to QVariant* */ QAudioEncoderSettings_EncodingOptions(const QAudioEncoderSettings* self); void QAudioEncoderSettings_SetEncodingOption(QAudioEncoderSettings* self, struct miqt_string option, QVariant* value); void QAudioEncoderSettings_SetEncodingOptions(QAudioEncoderSettings* self, struct miqt_map /* of struct miqt_string to QVariant* */ options); -void QAudioEncoderSettings_Delete(QAudioEncoderSettings* self, bool isSubclass); +void QAudioEncoderSettings_Delete(QAudioEncoderSettings* self); QVideoEncoderSettings* QVideoEncoderSettings_new(); QVideoEncoderSettings* QVideoEncoderSettings_new2(QVideoEncoderSettings* other); @@ -75,7 +75,7 @@ QVariant* QVideoEncoderSettings_EncodingOption(const QVideoEncoderSettings* self struct miqt_map /* of struct miqt_string to QVariant* */ QVideoEncoderSettings_EncodingOptions(const QVideoEncoderSettings* self); void QVideoEncoderSettings_SetEncodingOption(QVideoEncoderSettings* self, struct miqt_string option, QVariant* value); void QVideoEncoderSettings_SetEncodingOptions(QVideoEncoderSettings* self, struct miqt_map /* of struct miqt_string to QVariant* */ options); -void QVideoEncoderSettings_Delete(QVideoEncoderSettings* self, bool isSubclass); +void QVideoEncoderSettings_Delete(QVideoEncoderSettings* self); QImageEncoderSettings* QImageEncoderSettings_new(); QImageEncoderSettings* QImageEncoderSettings_new2(QImageEncoderSettings* other); @@ -94,7 +94,7 @@ QVariant* QImageEncoderSettings_EncodingOption(const QImageEncoderSettings* self struct miqt_map /* of struct miqt_string to QVariant* */ QImageEncoderSettings_EncodingOptions(const QImageEncoderSettings* self); void QImageEncoderSettings_SetEncodingOption(QImageEncoderSettings* self, struct miqt_string option, QVariant* value); void QImageEncoderSettings_SetEncodingOptions(QImageEncoderSettings* self, struct miqt_map /* of struct miqt_string to QVariant* */ options); -void QImageEncoderSettings_Delete(QImageEncoderSettings* self, bool isSubclass); +void QImageEncoderSettings_Delete(QImageEncoderSettings* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediagaplessplaybackcontrol.cpp b/qt/multimedia/gen_qmediagaplessplaybackcontrol.cpp index a4a47663..0a18bc78 100644 --- a/qt/multimedia/gen_qmediagaplessplaybackcontrol.cpp +++ b/qt/multimedia/gen_qmediagaplessplaybackcontrol.cpp @@ -154,11 +154,7 @@ struct miqt_string QMediaGaplessPlaybackControl_TrUtf83(const char* s, const cha return _ms; } -void QMediaGaplessPlaybackControl_Delete(QMediaGaplessPlaybackControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaGaplessPlaybackControl_Delete(QMediaGaplessPlaybackControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediagaplessplaybackcontrol.go b/qt/multimedia/gen_qmediagaplessplaybackcontrol.go index 2f0773c9..98fee62e 100644 --- a/qt/multimedia/gen_qmediagaplessplaybackcontrol.go +++ b/qt/multimedia/gen_qmediagaplessplaybackcontrol.go @@ -205,7 +205,7 @@ func QMediaGaplessPlaybackControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaGaplessPlaybackControl) Delete() { - C.QMediaGaplessPlaybackControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaGaplessPlaybackControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediagaplessplaybackcontrol.h b/qt/multimedia/gen_qmediagaplessplaybackcontrol.h index e051756e..ccbe3e3c 100644 --- a/qt/multimedia/gen_qmediagaplessplaybackcontrol.h +++ b/qt/multimedia/gen_qmediagaplessplaybackcontrol.h @@ -48,7 +48,7 @@ struct miqt_string QMediaGaplessPlaybackControl_Tr2(const char* s, const char* c struct miqt_string QMediaGaplessPlaybackControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaGaplessPlaybackControl_TrUtf82(const char* s, const char* c); struct miqt_string QMediaGaplessPlaybackControl_TrUtf83(const char* s, const char* c, int n); -void QMediaGaplessPlaybackControl_Delete(QMediaGaplessPlaybackControl* self, bool isSubclass); +void QMediaGaplessPlaybackControl_Delete(QMediaGaplessPlaybackControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmedianetworkaccesscontrol.cpp b/qt/multimedia/gen_qmedianetworkaccesscontrol.cpp index 7a5300d3..17fb474c 100644 --- a/qt/multimedia/gen_qmedianetworkaccesscontrol.cpp +++ b/qt/multimedia/gen_qmedianetworkaccesscontrol.cpp @@ -124,11 +124,7 @@ struct miqt_string QMediaNetworkAccessControl_TrUtf83(const char* s, const char* return _ms; } -void QMediaNetworkAccessControl_Delete(QMediaNetworkAccessControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaNetworkAccessControl_Delete(QMediaNetworkAccessControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmedianetworkaccesscontrol.go b/qt/multimedia/gen_qmedianetworkaccesscontrol.go index 62f07b65..3b1b9e6a 100644 --- a/qt/multimedia/gen_qmedianetworkaccesscontrol.go +++ b/qt/multimedia/gen_qmedianetworkaccesscontrol.go @@ -163,7 +163,7 @@ func QMediaNetworkAccessControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaNetworkAccessControl) Delete() { - C.QMediaNetworkAccessControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaNetworkAccessControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmedianetworkaccesscontrol.h b/qt/multimedia/gen_qmedianetworkaccesscontrol.h index 09057b05..c15a2293 100644 --- a/qt/multimedia/gen_qmedianetworkaccesscontrol.h +++ b/qt/multimedia/gen_qmedianetworkaccesscontrol.h @@ -41,7 +41,7 @@ struct miqt_string QMediaNetworkAccessControl_Tr2(const char* s, const char* c); struct miqt_string QMediaNetworkAccessControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaNetworkAccessControl_TrUtf82(const char* s, const char* c); struct miqt_string QMediaNetworkAccessControl_TrUtf83(const char* s, const char* c, int n); -void QMediaNetworkAccessControl_Delete(QMediaNetworkAccessControl* self, bool isSubclass); +void QMediaNetworkAccessControl_Delete(QMediaNetworkAccessControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediaobject.cpp b/qt/multimedia/gen_qmediaobject.cpp index 682a6359..85697003 100644 --- a/qt/multimedia/gen_qmediaobject.cpp +++ b/qt/multimedia/gen_qmediaobject.cpp @@ -237,11 +237,7 @@ struct miqt_string QMediaObject_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QMediaObject_Delete(QMediaObject* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaObject_Delete(QMediaObject* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediaobject.go b/qt/multimedia/gen_qmediaobject.go index 51214989..87d50d0f 100644 --- a/qt/multimedia/gen_qmediaobject.go +++ b/qt/multimedia/gen_qmediaobject.go @@ -306,7 +306,7 @@ func QMediaObject_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaObject) Delete() { - C.QMediaObject_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaObject_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediaobject.h b/qt/multimedia/gen_qmediaobject.h index 29a88460..3b6213b9 100644 --- a/qt/multimedia/gen_qmediaobject.h +++ b/qt/multimedia/gen_qmediaobject.h @@ -59,7 +59,7 @@ struct miqt_string QMediaObject_Tr2(const char* s, const char* c); struct miqt_string QMediaObject_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaObject_TrUtf82(const char* s, const char* c); struct miqt_string QMediaObject_TrUtf83(const char* s, const char* c, int n); -void QMediaObject_Delete(QMediaObject* self, bool isSubclass); +void QMediaObject_Delete(QMediaObject* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediaplayer.cpp b/qt/multimedia/gen_qmediaplayer.cpp index 48344a9e..d9a67b20 100644 --- a/qt/multimedia/gen_qmediaplayer.cpp +++ b/qt/multimedia/gen_qmediaplayer.cpp @@ -47,14 +47,14 @@ QMediaService* miqt_exec_callback_QMediaPlayer_Service(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQMediaPlayer : public virtual QMediaPlayer { +class MiqtVirtualQMediaPlayer final : public QMediaPlayer { public: MiqtVirtualQMediaPlayer(): QMediaPlayer() {}; MiqtVirtualQMediaPlayer(QObject* parent): QMediaPlayer(parent) {}; MiqtVirtualQMediaPlayer(QObject* parent, QMediaPlayer::Flags flags): QMediaPlayer(parent, flags) {}; - virtual ~MiqtVirtualQMediaPlayer() = default; + virtual ~MiqtVirtualQMediaPlayer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Availability = 0; @@ -811,11 +811,7 @@ QMediaService* QMediaPlayer_virtualbase_Service(const void* self) { return ( (const MiqtVirtualQMediaPlayer*)(self) )->virtualbase_Service(); } -void QMediaPlayer_Delete(QMediaPlayer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaPlayer_Delete(QMediaPlayer* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediaplayer.go b/qt/multimedia/gen_qmediaplayer.go index d3809513..f574f857 100644 --- a/qt/multimedia/gen_qmediaplayer.go +++ b/qt/multimedia/gen_qmediaplayer.go @@ -950,7 +950,7 @@ func miqt_exec_callback_QMediaPlayer_Service(self *C.QMediaPlayer, cb C.intptr_t // Delete this object from C++ memory. func (this *QMediaPlayer) Delete() { - C.QMediaPlayer_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaPlayer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediaplayer.h b/qt/multimedia/gen_qmediaplayer.h index 9d940d2c..3a432124 100644 --- a/qt/multimedia/gen_qmediaplayer.h +++ b/qt/multimedia/gen_qmediaplayer.h @@ -145,7 +145,7 @@ void QMediaPlayer_override_virtual_IsAvailable(void* self, intptr_t slot); bool QMediaPlayer_virtualbase_IsAvailable(const void* self); void QMediaPlayer_override_virtual_Service(void* self, intptr_t slot); QMediaService* QMediaPlayer_virtualbase_Service(const void* self); -void QMediaPlayer_Delete(QMediaPlayer* self, bool isSubclass); +void QMediaPlayer_Delete(QMediaPlayer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediaplayercontrol.cpp b/qt/multimedia/gen_qmediaplayercontrol.cpp index 58bb5c87..fe3f83be 100644 --- a/qt/multimedia/gen_qmediaplayercontrol.cpp +++ b/qt/multimedia/gen_qmediaplayercontrol.cpp @@ -376,11 +376,7 @@ struct miqt_string QMediaPlayerControl_TrUtf83(const char* s, const char* c, int return _ms; } -void QMediaPlayerControl_Delete(QMediaPlayerControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaPlayerControl_Delete(QMediaPlayerControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediaplayercontrol.go b/qt/multimedia/gen_qmediaplayercontrol.go index 530cb4db..f925a9c5 100644 --- a/qt/multimedia/gen_qmediaplayercontrol.go +++ b/qt/multimedia/gen_qmediaplayercontrol.go @@ -507,7 +507,7 @@ func QMediaPlayerControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaPlayerControl) Delete() { - C.QMediaPlayerControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaPlayerControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediaplayercontrol.h b/qt/multimedia/gen_qmediaplayercontrol.h index 60c2b1ef..633e5f8f 100644 --- a/qt/multimedia/gen_qmediaplayercontrol.h +++ b/qt/multimedia/gen_qmediaplayercontrol.h @@ -91,7 +91,7 @@ struct miqt_string QMediaPlayerControl_Tr2(const char* s, const char* c); struct miqt_string QMediaPlayerControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaPlayerControl_TrUtf82(const char* s, const char* c); struct miqt_string QMediaPlayerControl_TrUtf83(const char* s, const char* c, int n); -void QMediaPlayerControl_Delete(QMediaPlayerControl* self, bool isSubclass); +void QMediaPlayerControl_Delete(QMediaPlayerControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediaplaylist.cpp b/qt/multimedia/gen_qmediaplaylist.cpp index 187e2426..938198f5 100644 --- a/qt/multimedia/gen_qmediaplaylist.cpp +++ b/qt/multimedia/gen_qmediaplaylist.cpp @@ -45,13 +45,13 @@ void miqt_exec_callback_QMediaPlaylist_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQMediaPlaylist : public virtual QMediaPlaylist { +class MiqtVirtualQMediaPlaylist final : public QMediaPlaylist { public: MiqtVirtualQMediaPlaylist(): QMediaPlaylist() {}; MiqtVirtualQMediaPlaylist(QObject* parent): QMediaPlaylist(parent) {}; - virtual ~MiqtVirtualQMediaPlaylist() = default; + virtual ~MiqtVirtualQMediaPlaylist() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MediaObject = 0; @@ -711,11 +711,7 @@ void QMediaPlaylist_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQMediaPlaylist*)(self) )->virtualbase_DisconnectNotify(signal); } -void QMediaPlaylist_Delete(QMediaPlaylist* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaPlaylist_Delete(QMediaPlaylist* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediaplaylist.go b/qt/multimedia/gen_qmediaplaylist.go index 3000c912..a3030a35 100644 --- a/qt/multimedia/gen_qmediaplaylist.go +++ b/qt/multimedia/gen_qmediaplaylist.go @@ -784,7 +784,7 @@ func miqt_exec_callback_QMediaPlaylist_DisconnectNotify(self *C.QMediaPlaylist, // Delete this object from C++ memory. func (this *QMediaPlaylist) Delete() { - C.QMediaPlaylist_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaPlaylist_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediaplaylist.h b/qt/multimedia/gen_qmediaplaylist.h index c2710ff4..64d49ec7 100644 --- a/qt/multimedia/gen_qmediaplaylist.h +++ b/qt/multimedia/gen_qmediaplaylist.h @@ -130,7 +130,7 @@ void QMediaPlaylist_override_virtual_ConnectNotify(void* self, intptr_t slot); void QMediaPlaylist_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QMediaPlaylist_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QMediaPlaylist_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QMediaPlaylist_Delete(QMediaPlaylist* self, bool isSubclass); +void QMediaPlaylist_Delete(QMediaPlaylist* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediarecorder.cpp b/qt/multimedia/gen_qmediarecorder.cpp index 4a988883..b1b9881c 100644 --- a/qt/multimedia/gen_qmediarecorder.cpp +++ b/qt/multimedia/gen_qmediarecorder.cpp @@ -49,13 +49,13 @@ void miqt_exec_callback_QMediaRecorder_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQMediaRecorder : public virtual QMediaRecorder { +class MiqtVirtualQMediaRecorder final : public QMediaRecorder { public: MiqtVirtualQMediaRecorder(QMediaObject* mediaObject): QMediaRecorder(mediaObject) {}; MiqtVirtualQMediaRecorder(QMediaObject* mediaObject, QObject* parent): QMediaRecorder(mediaObject, parent) {}; - virtual ~MiqtVirtualQMediaRecorder() = default; + virtual ~MiqtVirtualQMediaRecorder() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MediaObject = 0; @@ -976,11 +976,7 @@ void QMediaRecorder_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQMediaRecorder*)(self) )->virtualbase_DisconnectNotify(signal); } -void QMediaRecorder_Delete(QMediaRecorder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaRecorder_Delete(QMediaRecorder* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediarecorder.go b/qt/multimedia/gen_qmediarecorder.go index f8cf8fdf..acdc213e 100644 --- a/qt/multimedia/gen_qmediarecorder.go +++ b/qt/multimedia/gen_qmediarecorder.go @@ -1018,7 +1018,7 @@ func miqt_exec_callback_QMediaRecorder_DisconnectNotify(self *C.QMediaRecorder, // Delete this object from C++ memory. func (this *QMediaRecorder) Delete() { - C.QMediaRecorder_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaRecorder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediarecorder.h b/qt/multimedia/gen_qmediarecorder.h index 26b4f8db..61d4d98c 100644 --- a/qt/multimedia/gen_qmediarecorder.h +++ b/qt/multimedia/gen_qmediarecorder.h @@ -149,7 +149,7 @@ void QMediaRecorder_override_virtual_ConnectNotify(void* self, intptr_t slot); void QMediaRecorder_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QMediaRecorder_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QMediaRecorder_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QMediaRecorder_Delete(QMediaRecorder* self, bool isSubclass); +void QMediaRecorder_Delete(QMediaRecorder* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediarecordercontrol.cpp b/qt/multimedia/gen_qmediarecordercontrol.cpp index d26da765..a2b5ed65 100644 --- a/qt/multimedia/gen_qmediarecordercontrol.cpp +++ b/qt/multimedia/gen_qmediarecordercontrol.cpp @@ -242,11 +242,7 @@ struct miqt_string QMediaRecorderControl_TrUtf83(const char* s, const char* c, i return _ms; } -void QMediaRecorderControl_Delete(QMediaRecorderControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaRecorderControl_Delete(QMediaRecorderControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediarecordercontrol.go b/qt/multimedia/gen_qmediarecordercontrol.go index 55c92240..0d06b85d 100644 --- a/qt/multimedia/gen_qmediarecordercontrol.go +++ b/qt/multimedia/gen_qmediarecordercontrol.go @@ -321,7 +321,7 @@ func QMediaRecorderControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaRecorderControl) Delete() { - C.QMediaRecorderControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaRecorderControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediarecordercontrol.h b/qt/multimedia/gen_qmediarecordercontrol.h index a43a3b99..fe832438 100644 --- a/qt/multimedia/gen_qmediarecordercontrol.h +++ b/qt/multimedia/gen_qmediarecordercontrol.h @@ -62,7 +62,7 @@ struct miqt_string QMediaRecorderControl_Tr2(const char* s, const char* c); struct miqt_string QMediaRecorderControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaRecorderControl_TrUtf82(const char* s, const char* c); struct miqt_string QMediaRecorderControl_TrUtf83(const char* s, const char* c, int n); -void QMediaRecorderControl_Delete(QMediaRecorderControl* self, bool isSubclass); +void QMediaRecorderControl_Delete(QMediaRecorderControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediaresource.cpp b/qt/multimedia/gen_qmediaresource.cpp index 498a28f5..467218a7 100644 --- a/qt/multimedia/gen_qmediaresource.cpp +++ b/qt/multimedia/gen_qmediaresource.cpp @@ -178,11 +178,7 @@ void QMediaResource_SetResolution2(QMediaResource* self, int width, int height) self->setResolution(static_cast(width), static_cast(height)); } -void QMediaResource_Delete(QMediaResource* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaResource_Delete(QMediaResource* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediaresource.go b/qt/multimedia/gen_qmediaresource.go index 1cbbfb47..7727f35f 100644 --- a/qt/multimedia/gen_qmediaresource.go +++ b/qt/multimedia/gen_qmediaresource.go @@ -240,7 +240,7 @@ func (this *QMediaResource) SetResolution2(width int, height int) { // Delete this object from C++ memory. func (this *QMediaResource) Delete() { - C.QMediaResource_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaResource_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediaresource.h b/qt/multimedia/gen_qmediaresource.h index 92e95cbf..b1cb9e39 100644 --- a/qt/multimedia/gen_qmediaresource.h +++ b/qt/multimedia/gen_qmediaresource.h @@ -58,7 +58,7 @@ void QMediaResource_SetVideoBitRate(QMediaResource* self, int rate); QSize* QMediaResource_Resolution(const QMediaResource* self); void QMediaResource_SetResolution(QMediaResource* self, QSize* resolution); void QMediaResource_SetResolution2(QMediaResource* self, int width, int height); -void QMediaResource_Delete(QMediaResource* self, bool isSubclass); +void QMediaResource_Delete(QMediaResource* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediaservice.cpp b/qt/multimedia/gen_qmediaservice.cpp index 3e7e2f83..79fc8a43 100644 --- a/qt/multimedia/gen_qmediaservice.cpp +++ b/qt/multimedia/gen_qmediaservice.cpp @@ -102,11 +102,7 @@ struct miqt_string QMediaService_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QMediaService_Delete(QMediaService* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaService_Delete(QMediaService* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediaservice.go b/qt/multimedia/gen_qmediaservice.go index 1115d124..0b38eb1a 100644 --- a/qt/multimedia/gen_qmediaservice.go +++ b/qt/multimedia/gen_qmediaservice.go @@ -135,7 +135,7 @@ func QMediaService_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaService) Delete() { - C.QMediaService_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaService_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediaservice.h b/qt/multimedia/gen_qmediaservice.h index 5de4a1ee..b947d7ff 100644 --- a/qt/multimedia/gen_qmediaservice.h +++ b/qt/multimedia/gen_qmediaservice.h @@ -37,7 +37,7 @@ struct miqt_string QMediaService_Tr2(const char* s, const char* c); struct miqt_string QMediaService_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaService_TrUtf82(const char* s, const char* c); struct miqt_string QMediaService_TrUtf83(const char* s, const char* c, int n); -void QMediaService_Delete(QMediaService* self, bool isSubclass); +void QMediaService_Delete(QMediaService* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediaserviceproviderplugin.cpp b/qt/multimedia/gen_qmediaserviceproviderplugin.cpp index 6492371d..c12c8366 100644 --- a/qt/multimedia/gen_qmediaserviceproviderplugin.cpp +++ b/qt/multimedia/gen_qmediaserviceproviderplugin.cpp @@ -129,12 +129,8 @@ int QMediaServiceProviderHint_Features(const QMediaServiceProviderHint* self) { return static_cast(_ret); } -void QMediaServiceProviderHint_Delete(QMediaServiceProviderHint* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaServiceProviderHint_Delete(QMediaServiceProviderHint* self) { + delete self; } QMediaService* QMediaServiceProviderFactoryInterface_Create(QMediaServiceProviderFactoryInterface* self, struct miqt_string key) { @@ -150,12 +146,8 @@ void QMediaServiceProviderFactoryInterface_OperatorAssign(QMediaServiceProviderF self->operator=(*param1); } -void QMediaServiceProviderFactoryInterface_Delete(QMediaServiceProviderFactoryInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaServiceProviderFactoryInterface_Delete(QMediaServiceProviderFactoryInterface* self) { + delete self; } int QMediaServiceSupportedFormatsInterface_HasSupport(const QMediaServiceSupportedFormatsInterface* self, struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs) { @@ -195,12 +187,8 @@ void QMediaServiceSupportedFormatsInterface_OperatorAssign(QMediaServiceSupporte self->operator=(*param1); } -void QMediaServiceSupportedFormatsInterface_Delete(QMediaServiceSupportedFormatsInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaServiceSupportedFormatsInterface_Delete(QMediaServiceSupportedFormatsInterface* self) { + delete self; } struct miqt_array /* of struct miqt_string */ QMediaServiceSupportedDevicesInterface_Devices(const QMediaServiceSupportedDevicesInterface* self, struct miqt_string service) { @@ -239,12 +227,8 @@ void QMediaServiceSupportedDevicesInterface_OperatorAssign(QMediaServiceSupporte self->operator=(*param1); } -void QMediaServiceSupportedDevicesInterface_Delete(QMediaServiceSupportedDevicesInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaServiceSupportedDevicesInterface_Delete(QMediaServiceSupportedDevicesInterface* self) { + delete self; } struct miqt_string QMediaServiceDefaultDeviceInterface_DefaultDevice(const QMediaServiceDefaultDeviceInterface* self, struct miqt_string service) { @@ -261,12 +245,8 @@ void QMediaServiceDefaultDeviceInterface_OperatorAssign(QMediaServiceDefaultDevi self->operator=(*param1); } -void QMediaServiceDefaultDeviceInterface_Delete(QMediaServiceDefaultDeviceInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaServiceDefaultDeviceInterface_Delete(QMediaServiceDefaultDeviceInterface* self) { + delete self; } int QMediaServiceCameraInfoInterface_CameraPosition(const QMediaServiceCameraInfoInterface* self, struct miqt_string device) { @@ -284,12 +264,8 @@ void QMediaServiceCameraInfoInterface_OperatorAssign(QMediaServiceCameraInfoInte self->operator=(*param1); } -void QMediaServiceCameraInfoInterface_Delete(QMediaServiceCameraInfoInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaServiceCameraInfoInterface_Delete(QMediaServiceCameraInfoInterface* self) { + delete self; } int QMediaServiceFeaturesInterface_SupportedFeatures(const QMediaServiceFeaturesInterface* self, struct miqt_string service) { @@ -302,12 +278,8 @@ void QMediaServiceFeaturesInterface_OperatorAssign(QMediaServiceFeaturesInterfac self->operator=(*param1); } -void QMediaServiceFeaturesInterface_Delete(QMediaServiceFeaturesInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaServiceFeaturesInterface_Delete(QMediaServiceFeaturesInterface* self) { + delete self; } void QMediaServiceProviderPlugin_virtbase(QMediaServiceProviderPlugin* src, QObject** outptr_QObject, QMediaServiceProviderFactoryInterface** outptr_QMediaServiceProviderFactoryInterface) { @@ -398,11 +370,7 @@ struct miqt_string QMediaServiceProviderPlugin_TrUtf83(const char* s, const char return _ms; } -void QMediaServiceProviderPlugin_Delete(QMediaServiceProviderPlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaServiceProviderPlugin_Delete(QMediaServiceProviderPlugin* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediaserviceproviderplugin.go b/qt/multimedia/gen_qmediaserviceproviderplugin.go index 03b12996..1f5aec4c 100644 --- a/qt/multimedia/gen_qmediaserviceproviderplugin.go +++ b/qt/multimedia/gen_qmediaserviceproviderplugin.go @@ -188,7 +188,7 @@ func (this *QMediaServiceProviderHint) Features() QMediaServiceProviderHint__Fea // Delete this object from C++ memory. func (this *QMediaServiceProviderHint) Delete() { - C.QMediaServiceProviderHint_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaServiceProviderHint_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -251,7 +251,7 @@ func (this *QMediaServiceProviderFactoryInterface) OperatorAssign(param1 *QMedia // Delete this object from C++ memory. func (this *QMediaServiceProviderFactoryInterface) Delete() { - C.QMediaServiceProviderFactoryInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaServiceProviderFactoryInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -333,7 +333,7 @@ func (this *QMediaServiceSupportedFormatsInterface) OperatorAssign(param1 *QMedi // Delete this object from C++ memory. func (this *QMediaServiceSupportedFormatsInterface) Delete() { - C.QMediaServiceSupportedFormatsInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaServiceSupportedFormatsInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -413,7 +413,7 @@ func (this *QMediaServiceSupportedDevicesInterface) OperatorAssign(param1 *QMedi // Delete this object from C++ memory. func (this *QMediaServiceSupportedDevicesInterface) Delete() { - C.QMediaServiceSupportedDevicesInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaServiceSupportedDevicesInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -474,7 +474,7 @@ func (this *QMediaServiceDefaultDeviceInterface) OperatorAssign(param1 *QMediaSe // Delete this object from C++ memory. func (this *QMediaServiceDefaultDeviceInterface) Delete() { - C.QMediaServiceDefaultDeviceInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaServiceDefaultDeviceInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -539,7 +539,7 @@ func (this *QMediaServiceCameraInfoInterface) OperatorAssign(param1 *QMediaServi // Delete this object from C++ memory. func (this *QMediaServiceCameraInfoInterface) Delete() { - C.QMediaServiceCameraInfoInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaServiceCameraInfoInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -597,7 +597,7 @@ func (this *QMediaServiceFeaturesInterface) OperatorAssign(param1 *QMediaService // Delete this object from C++ memory. func (this *QMediaServiceFeaturesInterface) Delete() { - C.QMediaServiceFeaturesInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaServiceFeaturesInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -735,7 +735,7 @@ func QMediaServiceProviderPlugin_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaServiceProviderPlugin) Delete() { - C.QMediaServiceProviderPlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaServiceProviderPlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediaserviceproviderplugin.h b/qt/multimedia/gen_qmediaserviceproviderplugin.h index d48079a7..590cb2e2 100644 --- a/qt/multimedia/gen_qmediaserviceproviderplugin.h +++ b/qt/multimedia/gen_qmediaserviceproviderplugin.h @@ -56,35 +56,35 @@ struct miqt_array /* of struct miqt_string */ QMediaServiceProviderHint_Codecs( struct miqt_string QMediaServiceProviderHint_Device(const QMediaServiceProviderHint* self); int QMediaServiceProviderHint_CameraPosition(const QMediaServiceProviderHint* self); int QMediaServiceProviderHint_Features(const QMediaServiceProviderHint* self); -void QMediaServiceProviderHint_Delete(QMediaServiceProviderHint* self, bool isSubclass); +void QMediaServiceProviderHint_Delete(QMediaServiceProviderHint* self); QMediaService* QMediaServiceProviderFactoryInterface_Create(QMediaServiceProviderFactoryInterface* self, struct miqt_string key); void QMediaServiceProviderFactoryInterface_Release(QMediaServiceProviderFactoryInterface* self, QMediaService* service); void QMediaServiceProviderFactoryInterface_OperatorAssign(QMediaServiceProviderFactoryInterface* self, QMediaServiceProviderFactoryInterface* param1); -void QMediaServiceProviderFactoryInterface_Delete(QMediaServiceProviderFactoryInterface* self, bool isSubclass); +void QMediaServiceProviderFactoryInterface_Delete(QMediaServiceProviderFactoryInterface* self); int QMediaServiceSupportedFormatsInterface_HasSupport(const QMediaServiceSupportedFormatsInterface* self, struct miqt_string mimeType, struct miqt_array /* of struct miqt_string */ codecs); struct miqt_array /* of struct miqt_string */ QMediaServiceSupportedFormatsInterface_SupportedMimeTypes(const QMediaServiceSupportedFormatsInterface* self); void QMediaServiceSupportedFormatsInterface_OperatorAssign(QMediaServiceSupportedFormatsInterface* self, QMediaServiceSupportedFormatsInterface* param1); -void QMediaServiceSupportedFormatsInterface_Delete(QMediaServiceSupportedFormatsInterface* self, bool isSubclass); +void QMediaServiceSupportedFormatsInterface_Delete(QMediaServiceSupportedFormatsInterface* self); struct miqt_array /* of struct miqt_string */ QMediaServiceSupportedDevicesInterface_Devices(const QMediaServiceSupportedDevicesInterface* self, struct miqt_string service); struct miqt_string QMediaServiceSupportedDevicesInterface_DeviceDescription(QMediaServiceSupportedDevicesInterface* self, struct miqt_string service, struct miqt_string device); void QMediaServiceSupportedDevicesInterface_OperatorAssign(QMediaServiceSupportedDevicesInterface* self, QMediaServiceSupportedDevicesInterface* param1); -void QMediaServiceSupportedDevicesInterface_Delete(QMediaServiceSupportedDevicesInterface* self, bool isSubclass); +void QMediaServiceSupportedDevicesInterface_Delete(QMediaServiceSupportedDevicesInterface* self); struct miqt_string QMediaServiceDefaultDeviceInterface_DefaultDevice(const QMediaServiceDefaultDeviceInterface* self, struct miqt_string service); void QMediaServiceDefaultDeviceInterface_OperatorAssign(QMediaServiceDefaultDeviceInterface* self, QMediaServiceDefaultDeviceInterface* param1); -void QMediaServiceDefaultDeviceInterface_Delete(QMediaServiceDefaultDeviceInterface* self, bool isSubclass); +void QMediaServiceDefaultDeviceInterface_Delete(QMediaServiceDefaultDeviceInterface* self); int QMediaServiceCameraInfoInterface_CameraPosition(const QMediaServiceCameraInfoInterface* self, struct miqt_string device); int QMediaServiceCameraInfoInterface_CameraOrientation(const QMediaServiceCameraInfoInterface* self, struct miqt_string device); void QMediaServiceCameraInfoInterface_OperatorAssign(QMediaServiceCameraInfoInterface* self, QMediaServiceCameraInfoInterface* param1); -void QMediaServiceCameraInfoInterface_Delete(QMediaServiceCameraInfoInterface* self, bool isSubclass); +void QMediaServiceCameraInfoInterface_Delete(QMediaServiceCameraInfoInterface* self); int QMediaServiceFeaturesInterface_SupportedFeatures(const QMediaServiceFeaturesInterface* self, struct miqt_string service); void QMediaServiceFeaturesInterface_OperatorAssign(QMediaServiceFeaturesInterface* self, QMediaServiceFeaturesInterface* param1); -void QMediaServiceFeaturesInterface_Delete(QMediaServiceFeaturesInterface* self, bool isSubclass); +void QMediaServiceFeaturesInterface_Delete(QMediaServiceFeaturesInterface* self); void QMediaServiceProviderPlugin_virtbase(QMediaServiceProviderPlugin* src, QObject** outptr_QObject, QMediaServiceProviderFactoryInterface** outptr_QMediaServiceProviderFactoryInterface); QMetaObject* QMediaServiceProviderPlugin_MetaObject(const QMediaServiceProviderPlugin* self); @@ -97,7 +97,7 @@ struct miqt_string QMediaServiceProviderPlugin_Tr2(const char* s, const char* c) struct miqt_string QMediaServiceProviderPlugin_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaServiceProviderPlugin_TrUtf82(const char* s, const char* c); struct miqt_string QMediaServiceProviderPlugin_TrUtf83(const char* s, const char* c, int n); -void QMediaServiceProviderPlugin_Delete(QMediaServiceProviderPlugin* self, bool isSubclass); +void QMediaServiceProviderPlugin_Delete(QMediaServiceProviderPlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediastreamscontrol.cpp b/qt/multimedia/gen_qmediastreamscontrol.cpp index acdb131a..b4cf0a4c 100644 --- a/qt/multimedia/gen_qmediastreamscontrol.cpp +++ b/qt/multimedia/gen_qmediastreamscontrol.cpp @@ -139,11 +139,7 @@ struct miqt_string QMediaStreamsControl_TrUtf83(const char* s, const char* c, in return _ms; } -void QMediaStreamsControl_Delete(QMediaStreamsControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaStreamsControl_Delete(QMediaStreamsControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediastreamscontrol.go b/qt/multimedia/gen_qmediastreamscontrol.go index 16a6e344..f16a9fdf 100644 --- a/qt/multimedia/gen_qmediastreamscontrol.go +++ b/qt/multimedia/gen_qmediastreamscontrol.go @@ -196,7 +196,7 @@ func QMediaStreamsControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaStreamsControl) Delete() { - C.QMediaStreamsControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaStreamsControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediastreamscontrol.h b/qt/multimedia/gen_qmediastreamscontrol.h index 4487ac4a..c667fedf 100644 --- a/qt/multimedia/gen_qmediastreamscontrol.h +++ b/qt/multimedia/gen_qmediastreamscontrol.h @@ -46,7 +46,7 @@ struct miqt_string QMediaStreamsControl_Tr2(const char* s, const char* c); struct miqt_string QMediaStreamsControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaStreamsControl_TrUtf82(const char* s, const char* c); struct miqt_string QMediaStreamsControl_TrUtf83(const char* s, const char* c, int n); -void QMediaStreamsControl_Delete(QMediaStreamsControl* self, bool isSubclass); +void QMediaStreamsControl_Delete(QMediaStreamsControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediatimerange.cpp b/qt/multimedia/gen_qmediatimerange.cpp index edebd9c0..a0e63285 100644 --- a/qt/multimedia/gen_qmediatimerange.cpp +++ b/qt/multimedia/gen_qmediatimerange.cpp @@ -54,12 +54,8 @@ QMediaTimeInterval* QMediaTimeInterval_Translated(const QMediaTimeInterval* self return new QMediaTimeInterval(self->translated(static_cast(offset))); } -void QMediaTimeInterval_Delete(QMediaTimeInterval* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaTimeInterval_Delete(QMediaTimeInterval* self) { + delete self; } QMediaTimeRange* QMediaTimeRange_new() { @@ -173,11 +169,7 @@ void QMediaTimeRange_Clear(QMediaTimeRange* self) { self->clear(); } -void QMediaTimeRange_Delete(QMediaTimeRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaTimeRange_Delete(QMediaTimeRange* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediatimerange.go b/qt/multimedia/gen_qmediatimerange.go index 1c3a7fc7..eb817ae0 100644 --- a/qt/multimedia/gen_qmediatimerange.go +++ b/qt/multimedia/gen_qmediatimerange.go @@ -104,7 +104,7 @@ func (this *QMediaTimeInterval) Translated(offset int64) *QMediaTimeInterval { // Delete this object from C++ memory. func (this *QMediaTimeInterval) Delete() { - C.QMediaTimeInterval_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaTimeInterval_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -267,7 +267,7 @@ func (this *QMediaTimeRange) Clear() { // Delete this object from C++ memory. func (this *QMediaTimeRange) Delete() { - C.QMediaTimeRange_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaTimeRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediatimerange.h b/qt/multimedia/gen_qmediatimerange.h index 1336d17e..0c710781 100644 --- a/qt/multimedia/gen_qmediatimerange.h +++ b/qt/multimedia/gen_qmediatimerange.h @@ -32,7 +32,7 @@ bool QMediaTimeInterval_Contains(const QMediaTimeInterval* self, long long time) bool QMediaTimeInterval_IsNormal(const QMediaTimeInterval* self); QMediaTimeInterval* QMediaTimeInterval_Normalized(const QMediaTimeInterval* self); QMediaTimeInterval* QMediaTimeInterval_Translated(const QMediaTimeInterval* self, long long offset); -void QMediaTimeInterval_Delete(QMediaTimeInterval* self, bool isSubclass); +void QMediaTimeInterval_Delete(QMediaTimeInterval* self); QMediaTimeRange* QMediaTimeRange_new(); QMediaTimeRange* QMediaTimeRange_new2(long long start, long long end); @@ -57,7 +57,7 @@ QMediaTimeRange* QMediaTimeRange_OperatorPlusAssignWithQMediaTimeInterval(QMedia QMediaTimeRange* QMediaTimeRange_OperatorMinusAssign(QMediaTimeRange* self, QMediaTimeRange* param1); QMediaTimeRange* QMediaTimeRange_OperatorMinusAssignWithQMediaTimeInterval(QMediaTimeRange* self, QMediaTimeInterval* param1); void QMediaTimeRange_Clear(QMediaTimeRange* self); -void QMediaTimeRange_Delete(QMediaTimeRange* self, bool isSubclass); +void QMediaTimeRange_Delete(QMediaTimeRange* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmediavideoprobecontrol.cpp b/qt/multimedia/gen_qmediavideoprobecontrol.cpp index 3b87f84f..7fe87da6 100644 --- a/qt/multimedia/gen_qmediavideoprobecontrol.cpp +++ b/qt/multimedia/gen_qmediavideoprobecontrol.cpp @@ -120,11 +120,7 @@ struct miqt_string QMediaVideoProbeControl_TrUtf83(const char* s, const char* c, return _ms; } -void QMediaVideoProbeControl_Delete(QMediaVideoProbeControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaVideoProbeControl_Delete(QMediaVideoProbeControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmediavideoprobecontrol.go b/qt/multimedia/gen_qmediavideoprobecontrol.go index f4678064..02d1983c 100644 --- a/qt/multimedia/gen_qmediavideoprobecontrol.go +++ b/qt/multimedia/gen_qmediavideoprobecontrol.go @@ -163,7 +163,7 @@ func QMediaVideoProbeControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMediaVideoProbeControl) Delete() { - C.QMediaVideoProbeControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaVideoProbeControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmediavideoprobecontrol.h b/qt/multimedia/gen_qmediavideoprobecontrol.h index 99a1f5e6..1f313dad 100644 --- a/qt/multimedia/gen_qmediavideoprobecontrol.h +++ b/qt/multimedia/gen_qmediavideoprobecontrol.h @@ -41,7 +41,7 @@ struct miqt_string QMediaVideoProbeControl_Tr2(const char* s, const char* c); struct miqt_string QMediaVideoProbeControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMediaVideoProbeControl_TrUtf82(const char* s, const char* c); struct miqt_string QMediaVideoProbeControl_TrUtf83(const char* s, const char* c, int n); -void QMediaVideoProbeControl_Delete(QMediaVideoProbeControl* self, bool isSubclass); +void QMediaVideoProbeControl_Delete(QMediaVideoProbeControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmetadatareadercontrol.cpp b/qt/multimedia/gen_qmetadatareadercontrol.cpp index b4188e47..574134c5 100644 --- a/qt/multimedia/gen_qmetadatareadercontrol.cpp +++ b/qt/multimedia/gen_qmetadatareadercontrol.cpp @@ -171,11 +171,7 @@ struct miqt_string QMetaDataReaderControl_TrUtf83(const char* s, const char* c, return _ms; } -void QMetaDataReaderControl_Delete(QMetaDataReaderControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaDataReaderControl_Delete(QMetaDataReaderControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmetadatareadercontrol.go b/qt/multimedia/gen_qmetadatareadercontrol.go index 3f336d5d..e7eff1e4 100644 --- a/qt/multimedia/gen_qmetadatareadercontrol.go +++ b/qt/multimedia/gen_qmetadatareadercontrol.go @@ -218,7 +218,7 @@ func QMetaDataReaderControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMetaDataReaderControl) Delete() { - C.QMetaDataReaderControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaDataReaderControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmetadatareadercontrol.h b/qt/multimedia/gen_qmetadatareadercontrol.h index 186a6e33..b5a0ad76 100644 --- a/qt/multimedia/gen_qmetadatareadercontrol.h +++ b/qt/multimedia/gen_qmetadatareadercontrol.h @@ -46,7 +46,7 @@ struct miqt_string QMetaDataReaderControl_Tr2(const char* s, const char* c); struct miqt_string QMetaDataReaderControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMetaDataReaderControl_TrUtf82(const char* s, const char* c); struct miqt_string QMetaDataReaderControl_TrUtf83(const char* s, const char* c, int n); -void QMetaDataReaderControl_Delete(QMetaDataReaderControl* self, bool isSubclass); +void QMetaDataReaderControl_Delete(QMetaDataReaderControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qmetadatawritercontrol.cpp b/qt/multimedia/gen_qmetadatawritercontrol.cpp index ebcd20e9..7d86198a 100644 --- a/qt/multimedia/gen_qmetadatawritercontrol.cpp +++ b/qt/multimedia/gen_qmetadatawritercontrol.cpp @@ -192,11 +192,7 @@ struct miqt_string QMetaDataWriterControl_TrUtf83(const char* s, const char* c, return _ms; } -void QMetaDataWriterControl_Delete(QMetaDataWriterControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaDataWriterControl_Delete(QMetaDataWriterControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qmetadatawritercontrol.go b/qt/multimedia/gen_qmetadatawritercontrol.go index 5c1a05d0..aaab83b0 100644 --- a/qt/multimedia/gen_qmetadatawritercontrol.go +++ b/qt/multimedia/gen_qmetadatawritercontrol.go @@ -250,7 +250,7 @@ func QMetaDataWriterControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QMetaDataWriterControl) Delete() { - C.QMetaDataWriterControl_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaDataWriterControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qmetadatawritercontrol.h b/qt/multimedia/gen_qmetadatawritercontrol.h index fec0cf56..e4b0d62a 100644 --- a/qt/multimedia/gen_qmetadatawritercontrol.h +++ b/qt/multimedia/gen_qmetadatawritercontrol.h @@ -50,7 +50,7 @@ struct miqt_string QMetaDataWriterControl_Tr2(const char* s, const char* c); struct miqt_string QMetaDataWriterControl_Tr3(const char* s, const char* c, int n); struct miqt_string QMetaDataWriterControl_TrUtf82(const char* s, const char* c); struct miqt_string QMetaDataWriterControl_TrUtf83(const char* s, const char* c, int n); -void QMetaDataWriterControl_Delete(QMetaDataWriterControl* self, bool isSubclass); +void QMetaDataWriterControl_Delete(QMetaDataWriterControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qradiodata.cpp b/qt/multimedia/gen_qradiodata.cpp index 9eef7e2b..4f806c81 100644 --- a/qt/multimedia/gen_qradiodata.cpp +++ b/qt/multimedia/gen_qradiodata.cpp @@ -37,13 +37,13 @@ void miqt_exec_callback_QRadioData_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQRadioData : public virtual QRadioData { +class MiqtVirtualQRadioData final : public QRadioData { public: MiqtVirtualQRadioData(QMediaObject* mediaObject): QRadioData(mediaObject) {}; MiqtVirtualQRadioData(QMediaObject* mediaObject, QObject* parent): QRadioData(mediaObject, parent) {}; - virtual ~MiqtVirtualQRadioData() = default; + virtual ~MiqtVirtualQRadioData() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MediaObject = 0; @@ -615,11 +615,7 @@ void QRadioData_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQRadioData*)(self) )->virtualbase_DisconnectNotify(signal); } -void QRadioData_Delete(QRadioData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRadioData_Delete(QRadioData* self) { + delete self; } diff --git a/qt/multimedia/gen_qradiodata.go b/qt/multimedia/gen_qradiodata.go index d4ecfe28..ebf3df61 100644 --- a/qt/multimedia/gen_qradiodata.go +++ b/qt/multimedia/gen_qradiodata.go @@ -675,7 +675,7 @@ func miqt_exec_callback_QRadioData_DisconnectNotify(self *C.QRadioData, cb C.int // Delete this object from C++ memory. func (this *QRadioData) Delete() { - C.QRadioData_Delete(this.h, C.bool(this.isSubclass)) + C.QRadioData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qradiodata.h b/qt/multimedia/gen_qradiodata.h index e6489846..21df9b88 100644 --- a/qt/multimedia/gen_qradiodata.h +++ b/qt/multimedia/gen_qradiodata.h @@ -91,7 +91,7 @@ void QRadioData_override_virtual_ConnectNotify(void* self, intptr_t slot); void QRadioData_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QRadioData_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QRadioData_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QRadioData_Delete(QRadioData* self, bool isSubclass); +void QRadioData_Delete(QRadioData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qradiodatacontrol.cpp b/qt/multimedia/gen_qradiodatacontrol.cpp index b742fa68..3193f8f8 100644 --- a/qt/multimedia/gen_qradiodatacontrol.cpp +++ b/qt/multimedia/gen_qradiodatacontrol.cpp @@ -285,11 +285,7 @@ struct miqt_string QRadioDataControl_TrUtf83(const char* s, const char* c, int n return _ms; } -void QRadioDataControl_Delete(QRadioDataControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRadioDataControl_Delete(QRadioDataControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qradiodatacontrol.go b/qt/multimedia/gen_qradiodatacontrol.go index b7f57228..2a8499da 100644 --- a/qt/multimedia/gen_qradiodatacontrol.go +++ b/qt/multimedia/gen_qradiodatacontrol.go @@ -345,7 +345,7 @@ func QRadioDataControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QRadioDataControl) Delete() { - C.QRadioDataControl_Delete(this.h, C.bool(this.isSubclass)) + C.QRadioDataControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qradiodatacontrol.h b/qt/multimedia/gen_qradiodatacontrol.h index 76f963f7..624335d3 100644 --- a/qt/multimedia/gen_qradiodatacontrol.h +++ b/qt/multimedia/gen_qradiodatacontrol.h @@ -58,7 +58,7 @@ struct miqt_string QRadioDataControl_Tr2(const char* s, const char* c); struct miqt_string QRadioDataControl_Tr3(const char* s, const char* c, int n); struct miqt_string QRadioDataControl_TrUtf82(const char* s, const char* c); struct miqt_string QRadioDataControl_TrUtf83(const char* s, const char* c, int n); -void QRadioDataControl_Delete(QRadioDataControl* self, bool isSubclass); +void QRadioDataControl_Delete(QRadioDataControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qradiotuner.cpp b/qt/multimedia/gen_qradiotuner.cpp index d4dbc03f..c6d09acd 100644 --- a/qt/multimedia/gen_qradiotuner.cpp +++ b/qt/multimedia/gen_qradiotuner.cpp @@ -35,13 +35,13 @@ void miqt_exec_callback_QRadioTuner_Unbind(void*, intptr_t, QObject*); } /* extern C */ #endif -class MiqtVirtualQRadioTuner : public virtual QRadioTuner { +class MiqtVirtualQRadioTuner final : public QRadioTuner { public: MiqtVirtualQRadioTuner(): QRadioTuner() {}; MiqtVirtualQRadioTuner(QObject* parent): QRadioTuner(parent) {}; - virtual ~MiqtVirtualQRadioTuner() = default; + virtual ~MiqtVirtualQRadioTuner() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Availability = 0; @@ -556,11 +556,7 @@ void QRadioTuner_virtualbase_Unbind(void* self, QObject* param1) { ( (MiqtVirtualQRadioTuner*)(self) )->virtualbase_Unbind(param1); } -void QRadioTuner_Delete(QRadioTuner* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRadioTuner_Delete(QRadioTuner* self) { + delete self; } diff --git a/qt/multimedia/gen_qradiotuner.go b/qt/multimedia/gen_qradiotuner.go index 35132129..c4d6e233 100644 --- a/qt/multimedia/gen_qradiotuner.go +++ b/qt/multimedia/gen_qradiotuner.go @@ -673,7 +673,7 @@ func miqt_exec_callback_QRadioTuner_Unbind(self *C.QRadioTuner, cb C.intptr_t, p // Delete this object from C++ memory. func (this *QRadioTuner) Delete() { - C.QRadioTuner_Delete(this.h, C.bool(this.isSubclass)) + C.QRadioTuner_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qradiotuner.h b/qt/multimedia/gen_qradiotuner.h index 36d002ec..916d1b82 100644 --- a/qt/multimedia/gen_qradiotuner.h +++ b/qt/multimedia/gen_qradiotuner.h @@ -102,7 +102,7 @@ void QRadioTuner_override_virtual_Bind(void* self, intptr_t slot); bool QRadioTuner_virtualbase_Bind(void* self, QObject* param1); void QRadioTuner_override_virtual_Unbind(void* self, intptr_t slot); void QRadioTuner_virtualbase_Unbind(void* self, QObject* param1); -void QRadioTuner_Delete(QRadioTuner* self, bool isSubclass); +void QRadioTuner_Delete(QRadioTuner* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qradiotunercontrol.cpp b/qt/multimedia/gen_qradiotunercontrol.cpp index edff7132..18f811b9 100644 --- a/qt/multimedia/gen_qradiotunercontrol.cpp +++ b/qt/multimedia/gen_qradiotunercontrol.cpp @@ -364,11 +364,7 @@ struct miqt_string QRadioTunerControl_TrUtf83(const char* s, const char* c, int return _ms; } -void QRadioTunerControl_Delete(QRadioTunerControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRadioTunerControl_Delete(QRadioTunerControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qradiotunercontrol.go b/qt/multimedia/gen_qradiotunercontrol.go index fcf70a2d..8fcb0905 100644 --- a/qt/multimedia/gen_qradiotunercontrol.go +++ b/qt/multimedia/gen_qradiotunercontrol.go @@ -475,7 +475,7 @@ func QRadioTunerControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QRadioTunerControl) Delete() { - C.QRadioTunerControl_Delete(this.h, C.bool(this.isSubclass)) + C.QRadioTunerControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qradiotunercontrol.h b/qt/multimedia/gen_qradiotunercontrol.h index 85c1adcc..70f43251 100644 --- a/qt/multimedia/gen_qradiotunercontrol.h +++ b/qt/multimedia/gen_qradiotunercontrol.h @@ -83,7 +83,7 @@ struct miqt_string QRadioTunerControl_Tr2(const char* s, const char* c); struct miqt_string QRadioTunerControl_Tr3(const char* s, const char* c, int n); struct miqt_string QRadioTunerControl_TrUtf82(const char* s, const char* c); struct miqt_string QRadioTunerControl_TrUtf83(const char* s, const char* c, int n); -void QRadioTunerControl_Delete(QRadioTunerControl* self, bool isSubclass); +void QRadioTunerControl_Delete(QRadioTunerControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qsound.cpp b/qt/multimedia/gen_qsound.cpp index 55193486..b5831afd 100644 --- a/qt/multimedia/gen_qsound.cpp +++ b/qt/multimedia/gen_qsound.cpp @@ -26,13 +26,13 @@ void miqt_exec_callback_QSound_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQSound : public virtual QSound { +class MiqtVirtualQSound final : public QSound { public: MiqtVirtualQSound(const QString& filename): QSound(filename) {}; MiqtVirtualQSound(const QString& filename, QObject* parent): QSound(filename, parent) {}; - virtual ~MiqtVirtualQSound() = default; + virtual ~MiqtVirtualQSound() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -391,11 +391,7 @@ void QSound_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQSound*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSound_Delete(QSound* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSound_Delete(QSound* self) { + delete self; } diff --git a/qt/multimedia/gen_qsound.go b/qt/multimedia/gen_qsound.go index 24f15692..ab33acdf 100644 --- a/qt/multimedia/gen_qsound.go +++ b/qt/multimedia/gen_qsound.go @@ -383,7 +383,7 @@ func miqt_exec_callback_QSound_DisconnectNotify(self *C.QSound, cb C.intptr_t, s // Delete this object from C++ memory. func (this *QSound) Delete() { - C.QSound_Delete(this.h, C.bool(this.isSubclass)) + C.QSound_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qsound.h b/qt/multimedia/gen_qsound.h index bcef05d4..d0dba110 100644 --- a/qt/multimedia/gen_qsound.h +++ b/qt/multimedia/gen_qsound.h @@ -65,7 +65,7 @@ void QSound_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSound_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSound_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSound_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSound_Delete(QSound* self, bool isSubclass); +void QSound_Delete(QSound* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qsoundeffect.cpp b/qt/multimedia/gen_qsoundeffect.cpp index e1d859ce..7d34ebd7 100644 --- a/qt/multimedia/gen_qsoundeffect.cpp +++ b/qt/multimedia/gen_qsoundeffect.cpp @@ -38,7 +38,7 @@ void miqt_exec_callback_QSoundEffect_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQSoundEffect : public virtual QSoundEffect { +class MiqtVirtualQSoundEffect final : public QSoundEffect { public: MiqtVirtualQSoundEffect(): QSoundEffect() {}; @@ -46,7 +46,7 @@ public: MiqtVirtualQSoundEffect(QObject* parent): QSoundEffect(parent) {}; MiqtVirtualQSoundEffect(const QAudioDeviceInfo& audioDevice, QObject* parent): QSoundEffect(audioDevice, parent) {}; - virtual ~MiqtVirtualQSoundEffect() = default; + virtual ~MiqtVirtualQSoundEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -555,11 +555,7 @@ void QSoundEffect_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQSoundEffect*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSoundEffect_Delete(QSoundEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSoundEffect_Delete(QSoundEffect* self) { + delete self; } diff --git a/qt/multimedia/gen_qsoundeffect.go b/qt/multimedia/gen_qsoundeffect.go index 77aae4ce..71890e77 100644 --- a/qt/multimedia/gen_qsoundeffect.go +++ b/qt/multimedia/gen_qsoundeffect.go @@ -600,7 +600,7 @@ func miqt_exec_callback_QSoundEffect_DisconnectNotify(self *C.QSoundEffect, cb C // Delete this object from C++ memory. func (this *QSoundEffect) Delete() { - C.QSoundEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QSoundEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qsoundeffect.h b/qt/multimedia/gen_qsoundeffect.h index 2ff80951..4899eea2 100644 --- a/qt/multimedia/gen_qsoundeffect.h +++ b/qt/multimedia/gen_qsoundeffect.h @@ -98,7 +98,7 @@ void QSoundEffect_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSoundEffect_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSoundEffect_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSoundEffect_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSoundEffect_Delete(QSoundEffect* self, bool isSubclass); +void QSoundEffect_Delete(QSoundEffect* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qvideodeviceselectorcontrol.cpp b/qt/multimedia/gen_qvideodeviceselectorcontrol.cpp index 8597e5d0..d17d8b17 100644 --- a/qt/multimedia/gen_qvideodeviceselectorcontrol.cpp +++ b/qt/multimedia/gen_qvideodeviceselectorcontrol.cpp @@ -175,11 +175,7 @@ struct miqt_string QVideoDeviceSelectorControl_TrUtf83(const char* s, const char return _ms; } -void QVideoDeviceSelectorControl_Delete(QVideoDeviceSelectorControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoDeviceSelectorControl_Delete(QVideoDeviceSelectorControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qvideodeviceselectorcontrol.go b/qt/multimedia/gen_qvideodeviceselectorcontrol.go index 3c5c17d9..51d3a2b1 100644 --- a/qt/multimedia/gen_qvideodeviceselectorcontrol.go +++ b/qt/multimedia/gen_qvideodeviceselectorcontrol.go @@ -220,7 +220,7 @@ func QVideoDeviceSelectorControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QVideoDeviceSelectorControl) Delete() { - C.QVideoDeviceSelectorControl_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoDeviceSelectorControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qvideodeviceselectorcontrol.h b/qt/multimedia/gen_qvideodeviceselectorcontrol.h index 017800b2..5a613ab6 100644 --- a/qt/multimedia/gen_qvideodeviceselectorcontrol.h +++ b/qt/multimedia/gen_qvideodeviceselectorcontrol.h @@ -47,7 +47,7 @@ struct miqt_string QVideoDeviceSelectorControl_Tr2(const char* s, const char* c) struct miqt_string QVideoDeviceSelectorControl_Tr3(const char* s, const char* c, int n); struct miqt_string QVideoDeviceSelectorControl_TrUtf82(const char* s, const char* c); struct miqt_string QVideoDeviceSelectorControl_TrUtf83(const char* s, const char* c, int n); -void QVideoDeviceSelectorControl_Delete(QVideoDeviceSelectorControl* self, bool isSubclass); +void QVideoDeviceSelectorControl_Delete(QVideoDeviceSelectorControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qvideoencodersettingscontrol.cpp b/qt/multimedia/gen_qvideoencodersettingscontrol.cpp index 95758805..7b6aca66 100644 --- a/qt/multimedia/gen_qvideoencodersettingscontrol.cpp +++ b/qt/multimedia/gen_qvideoencodersettingscontrol.cpp @@ -163,11 +163,7 @@ struct miqt_string QVideoEncoderSettingsControl_TrUtf83(const char* s, const cha return _ms; } -void QVideoEncoderSettingsControl_Delete(QVideoEncoderSettingsControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoEncoderSettingsControl_Delete(QVideoEncoderSettingsControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qvideoencodersettingscontrol.go b/qt/multimedia/gen_qvideoencodersettingscontrol.go index 8fafda8b..2e0c055c 100644 --- a/qt/multimedia/gen_qvideoencodersettingscontrol.go +++ b/qt/multimedia/gen_qvideoencodersettingscontrol.go @@ -181,7 +181,7 @@ func QVideoEncoderSettingsControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QVideoEncoderSettingsControl) Delete() { - C.QVideoEncoderSettingsControl_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoEncoderSettingsControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qvideoencodersettingscontrol.h b/qt/multimedia/gen_qvideoencodersettingscontrol.h index 6399337f..f147dbdf 100644 --- a/qt/multimedia/gen_qvideoencodersettingscontrol.h +++ b/qt/multimedia/gen_qvideoencodersettingscontrol.h @@ -45,7 +45,7 @@ struct miqt_string QVideoEncoderSettingsControl_Tr2(const char* s, const char* c struct miqt_string QVideoEncoderSettingsControl_Tr3(const char* s, const char* c, int n); struct miqt_string QVideoEncoderSettingsControl_TrUtf82(const char* s, const char* c); struct miqt_string QVideoEncoderSettingsControl_TrUtf83(const char* s, const char* c, int n); -void QVideoEncoderSettingsControl_Delete(QVideoEncoderSettingsControl* self, bool isSubclass); +void QVideoEncoderSettingsControl_Delete(QVideoEncoderSettingsControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qvideoframe.cpp b/qt/multimedia/gen_qvideoframe.cpp index 1afd4cf4..9a4a3fa7 100644 --- a/qt/multimedia/gen_qvideoframe.cpp +++ b/qt/multimedia/gen_qvideoframe.cpp @@ -212,11 +212,7 @@ int QVideoFrame_ImageFormatFromPixelFormat(int format) { return static_cast(_ret); } -void QVideoFrame_Delete(QVideoFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoFrame_Delete(QVideoFrame* self) { + delete self; } diff --git a/qt/multimedia/gen_qvideoframe.go b/qt/multimedia/gen_qvideoframe.go index d709ab91..80e54ed4 100644 --- a/qt/multimedia/gen_qvideoframe.go +++ b/qt/multimedia/gen_qvideoframe.go @@ -307,7 +307,7 @@ func QVideoFrame_ImageFormatFromPixelFormat(format QVideoFrame__PixelFormat) qt. // Delete this object from C++ memory. func (this *QVideoFrame) Delete() { - C.QVideoFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qvideoframe.h b/qt/multimedia/gen_qvideoframe.h index 963925e3..0e4ff924 100644 --- a/qt/multimedia/gen_qvideoframe.h +++ b/qt/multimedia/gen_qvideoframe.h @@ -66,7 +66,7 @@ void QVideoFrame_SetMetaData(QVideoFrame* self, struct miqt_string key, QVariant QImage* QVideoFrame_Image(const QVideoFrame* self); int QVideoFrame_PixelFormatFromImageFormat(int format); int QVideoFrame_ImageFormatFromPixelFormat(int format); -void QVideoFrame_Delete(QVideoFrame* self, bool isSubclass); +void QVideoFrame_Delete(QVideoFrame* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qvideoprobe.cpp b/qt/multimedia/gen_qvideoprobe.cpp index eb2c2ec4..c89152be 100644 --- a/qt/multimedia/gen_qvideoprobe.cpp +++ b/qt/multimedia/gen_qvideoprobe.cpp @@ -31,13 +31,13 @@ void miqt_exec_callback_QVideoProbe_DisconnectNotify(void*, intptr_t, QMetaMetho } /* extern C */ #endif -class MiqtVirtualQVideoProbe : public virtual QVideoProbe { +class MiqtVirtualQVideoProbe final : public QVideoProbe { public: MiqtVirtualQVideoProbe(): QVideoProbe() {}; MiqtVirtualQVideoProbe(QObject* parent): QVideoProbe(parent) {}; - virtual ~MiqtVirtualQVideoProbe() = default; + virtual ~MiqtVirtualQVideoProbe() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -389,11 +389,7 @@ void QVideoProbe_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQVideoProbe*)(self) )->virtualbase_DisconnectNotify(signal); } -void QVideoProbe_Delete(QVideoProbe* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoProbe_Delete(QVideoProbe* self) { + delete self; } diff --git a/qt/multimedia/gen_qvideoprobe.go b/qt/multimedia/gen_qvideoprobe.go index 1eab6f42..d0ddeabf 100644 --- a/qt/multimedia/gen_qvideoprobe.go +++ b/qt/multimedia/gen_qvideoprobe.go @@ -379,7 +379,7 @@ func miqt_exec_callback_QVideoProbe_DisconnectNotify(self *C.QVideoProbe, cb C.i // Delete this object from C++ memory. func (this *QVideoProbe) Delete() { - C.QVideoProbe_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoProbe_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qvideoprobe.h b/qt/multimedia/gen_qvideoprobe.h index 66038224..bccbd6c3 100644 --- a/qt/multimedia/gen_qvideoprobe.h +++ b/qt/multimedia/gen_qvideoprobe.h @@ -70,7 +70,7 @@ void QVideoProbe_override_virtual_ConnectNotify(void* self, intptr_t slot); void QVideoProbe_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QVideoProbe_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QVideoProbe_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QVideoProbe_Delete(QVideoProbe* self, bool isSubclass); +void QVideoProbe_Delete(QVideoProbe* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qvideorenderercontrol.cpp b/qt/multimedia/gen_qvideorenderercontrol.cpp index c0851b2f..7f371231 100644 --- a/qt/multimedia/gen_qvideorenderercontrol.cpp +++ b/qt/multimedia/gen_qvideorenderercontrol.cpp @@ -103,11 +103,7 @@ struct miqt_string QVideoRendererControl_TrUtf83(const char* s, const char* c, i return _ms; } -void QVideoRendererControl_Delete(QVideoRendererControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoRendererControl_Delete(QVideoRendererControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qvideorenderercontrol.go b/qt/multimedia/gen_qvideorenderercontrol.go index 1194ad0c..56dbd8ca 100644 --- a/qt/multimedia/gen_qvideorenderercontrol.go +++ b/qt/multimedia/gen_qvideorenderercontrol.go @@ -133,7 +133,7 @@ func QVideoRendererControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QVideoRendererControl) Delete() { - C.QVideoRendererControl_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoRendererControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qvideorenderercontrol.h b/qt/multimedia/gen_qvideorenderercontrol.h index 456dedfb..f1cb6f46 100644 --- a/qt/multimedia/gen_qvideorenderercontrol.h +++ b/qt/multimedia/gen_qvideorenderercontrol.h @@ -39,7 +39,7 @@ struct miqt_string QVideoRendererControl_Tr2(const char* s, const char* c); struct miqt_string QVideoRendererControl_Tr3(const char* s, const char* c, int n); struct miqt_string QVideoRendererControl_TrUtf82(const char* s, const char* c); struct miqt_string QVideoRendererControl_TrUtf83(const char* s, const char* c, int n); -void QVideoRendererControl_Delete(QVideoRendererControl* self, bool isSubclass); +void QVideoRendererControl_Delete(QVideoRendererControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qvideosurfaceformat.cpp b/qt/multimedia/gen_qvideosurfaceformat.cpp index 304a78f2..11ade8d1 100644 --- a/qt/multimedia/gen_qvideosurfaceformat.cpp +++ b/qt/multimedia/gen_qvideosurfaceformat.cpp @@ -162,11 +162,7 @@ void QVideoSurfaceFormat_SetProperty(QVideoSurfaceFormat* self, const char* name self->setProperty(name, *value); } -void QVideoSurfaceFormat_Delete(QVideoSurfaceFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoSurfaceFormat_Delete(QVideoSurfaceFormat* self) { + delete self; } diff --git a/qt/multimedia/gen_qvideosurfaceformat.go b/qt/multimedia/gen_qvideosurfaceformat.go index 4755fba8..24853452 100644 --- a/qt/multimedia/gen_qvideosurfaceformat.go +++ b/qt/multimedia/gen_qvideosurfaceformat.go @@ -235,7 +235,7 @@ func (this *QVideoSurfaceFormat) SetProperty(name string, value *qt.QVariant) { // Delete this object from C++ memory. func (this *QVideoSurfaceFormat) Delete() { - C.QVideoSurfaceFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoSurfaceFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qvideosurfaceformat.h b/qt/multimedia/gen_qvideosurfaceformat.h index e1b126b3..9737606b 100644 --- a/qt/multimedia/gen_qvideosurfaceformat.h +++ b/qt/multimedia/gen_qvideosurfaceformat.h @@ -58,7 +58,7 @@ QSize* QVideoSurfaceFormat_SizeHint(const QVideoSurfaceFormat* self); struct miqt_array /* of struct miqt_string */ QVideoSurfaceFormat_PropertyNames(const QVideoSurfaceFormat* self); QVariant* QVideoSurfaceFormat_Property(const QVideoSurfaceFormat* self, const char* name); void QVideoSurfaceFormat_SetProperty(QVideoSurfaceFormat* self, const char* name, QVariant* value); -void QVideoSurfaceFormat_Delete(QVideoSurfaceFormat* self, bool isSubclass); +void QVideoSurfaceFormat_Delete(QVideoSurfaceFormat* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qvideowidget.cpp b/qt/multimedia/gen_qvideowidget.cpp index 7e5a102f..1a87a6ee 100644 --- a/qt/multimedia/gen_qvideowidget.cpp +++ b/qt/multimedia/gen_qvideowidget.cpp @@ -93,13 +93,13 @@ bool miqt_exec_callback_QVideoWidget_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQVideoWidget : public virtual QVideoWidget { +class MiqtVirtualQVideoWidget final : public QVideoWidget { public: MiqtVirtualQVideoWidget(QWidget* parent): QVideoWidget(parent) {}; MiqtVirtualQVideoWidget(): QVideoWidget() {}; - virtual ~MiqtVirtualQVideoWidget() = default; + virtual ~MiqtVirtualQVideoWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MediaObject = 0; @@ -1666,11 +1666,7 @@ bool QVideoWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQVideoWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QVideoWidget_Delete(QVideoWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoWidget_Delete(QVideoWidget* self) { + delete self; } diff --git a/qt/multimedia/gen_qvideowidget.go b/qt/multimedia/gen_qvideowidget.go index 9d3647f8..7d95ab55 100644 --- a/qt/multimedia/gen_qvideowidget.go +++ b/qt/multimedia/gen_qvideowidget.go @@ -1445,7 +1445,7 @@ func miqt_exec_callback_QVideoWidget_FocusNextPrevChild(self *C.QVideoWidget, cb // Delete this object from C++ memory. func (this *QVideoWidget) Delete() { - C.QVideoWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qvideowidget.h b/qt/multimedia/gen_qvideowidget.h index 6f104baa..9d967a8f 100644 --- a/qt/multimedia/gen_qvideowidget.h +++ b/qt/multimedia/gen_qvideowidget.h @@ -210,7 +210,7 @@ void QVideoWidget_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QVideoWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QVideoWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QVideoWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QVideoWidget_Delete(QVideoWidget* self, bool isSubclass); +void QVideoWidget_Delete(QVideoWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qvideowidgetcontrol.cpp b/qt/multimedia/gen_qvideowidgetcontrol.cpp index 27ae59f4..338d9dfc 100644 --- a/qt/multimedia/gen_qvideowidgetcontrol.cpp +++ b/qt/multimedia/gen_qvideowidgetcontrol.cpp @@ -208,11 +208,7 @@ struct miqt_string QVideoWidgetControl_TrUtf83(const char* s, const char* c, int return _ms; } -void QVideoWidgetControl_Delete(QVideoWidgetControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoWidgetControl_Delete(QVideoWidgetControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qvideowidgetcontrol.go b/qt/multimedia/gen_qvideowidgetcontrol.go index 2e8cddf5..7804ae50 100644 --- a/qt/multimedia/gen_qvideowidgetcontrol.go +++ b/qt/multimedia/gen_qvideowidgetcontrol.go @@ -278,7 +278,7 @@ func QVideoWidgetControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QVideoWidgetControl) Delete() { - C.QVideoWidgetControl_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoWidgetControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qvideowidgetcontrol.h b/qt/multimedia/gen_qvideowidgetcontrol.h index 9f1eae2e..8a989091 100644 --- a/qt/multimedia/gen_qvideowidgetcontrol.h +++ b/qt/multimedia/gen_qvideowidgetcontrol.h @@ -60,7 +60,7 @@ struct miqt_string QVideoWidgetControl_Tr2(const char* s, const char* c); struct miqt_string QVideoWidgetControl_Tr3(const char* s, const char* c, int n); struct miqt_string QVideoWidgetControl_TrUtf82(const char* s, const char* c); struct miqt_string QVideoWidgetControl_TrUtf83(const char* s, const char* c, int n); -void QVideoWidgetControl_Delete(QVideoWidgetControl* self, bool isSubclass); +void QVideoWidgetControl_Delete(QVideoWidgetControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/multimedia/gen_qvideowindowcontrol.cpp b/qt/multimedia/gen_qvideowindowcontrol.cpp index ee4b267a..947a7914 100644 --- a/qt/multimedia/gen_qvideowindowcontrol.cpp +++ b/qt/multimedia/gen_qvideowindowcontrol.cpp @@ -241,11 +241,7 @@ struct miqt_string QVideoWindowControl_TrUtf83(const char* s, const char* c, int return _ms; } -void QVideoWindowControl_Delete(QVideoWindowControl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoWindowControl_Delete(QVideoWindowControl* self) { + delete self; } diff --git a/qt/multimedia/gen_qvideowindowcontrol.go b/qt/multimedia/gen_qvideowindowcontrol.go index ffcfcc3b..3a1279f0 100644 --- a/qt/multimedia/gen_qvideowindowcontrol.go +++ b/qt/multimedia/gen_qvideowindowcontrol.go @@ -319,7 +319,7 @@ func QVideoWindowControl_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QVideoWindowControl) Delete() { - C.QVideoWindowControl_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoWindowControl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/multimedia/gen_qvideowindowcontrol.h b/qt/multimedia/gen_qvideowindowcontrol.h index 79a46b7c..f9589c9d 100644 --- a/qt/multimedia/gen_qvideowindowcontrol.h +++ b/qt/multimedia/gen_qvideowindowcontrol.h @@ -69,7 +69,7 @@ struct miqt_string QVideoWindowControl_Tr2(const char* s, const char* c); struct miqt_string QVideoWindowControl_Tr3(const char* s, const char* c, int n); struct miqt_string QVideoWindowControl_TrUtf82(const char* s, const char* c); struct miqt_string QVideoWindowControl_TrUtf83(const char* s, const char* c, int n); -void QVideoWindowControl_Delete(QVideoWindowControl* self, bool isSubclass); +void QVideoWindowControl_Delete(QVideoWindowControl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qabstractnetworkcache.cpp b/qt/network/gen_qabstractnetworkcache.cpp index 53488d8c..e9d0853d 100644 --- a/qt/network/gen_qabstractnetworkcache.cpp +++ b/qt/network/gen_qabstractnetworkcache.cpp @@ -164,12 +164,8 @@ void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miq self->setAttributes(attributes_QMap); } -void QNetworkCacheMetaData_Delete(QNetworkCacheMetaData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkCacheMetaData_Delete(QNetworkCacheMetaData* self) { + delete self; } void QAbstractNetworkCache_virtbase(QAbstractNetworkCache* src, QObject** outptr_QObject) { @@ -283,11 +279,7 @@ struct miqt_string QAbstractNetworkCache_TrUtf83(const char* s, const char* c, i return _ms; } -void QAbstractNetworkCache_Delete(QAbstractNetworkCache* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractNetworkCache_Delete(QAbstractNetworkCache* self) { + delete self; } diff --git a/qt/network/gen_qabstractnetworkcache.go b/qt/network/gen_qabstractnetworkcache.go index 9c2d95c5..942f978a 100644 --- a/qt/network/gen_qabstractnetworkcache.go +++ b/qt/network/gen_qabstractnetworkcache.go @@ -219,7 +219,7 @@ func (this *QNetworkCacheMetaData) SetAttributes(attributes map[QNetworkRequest_ // Delete this object from C++ memory. func (this *QNetworkCacheMetaData) Delete() { - C.QNetworkCacheMetaData_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkCacheMetaData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -376,7 +376,7 @@ func QAbstractNetworkCache_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QAbstractNetworkCache) Delete() { - C.QAbstractNetworkCache_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractNetworkCache_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qabstractnetworkcache.h b/qt/network/gen_qabstractnetworkcache.h index 33947d6d..e96e4d04 100644 --- a/qt/network/gen_qabstractnetworkcache.h +++ b/qt/network/gen_qabstractnetworkcache.h @@ -53,7 +53,7 @@ bool QNetworkCacheMetaData_SaveToDisk(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetSaveToDisk(QNetworkCacheMetaData* self, bool allow); struct miqt_map /* of int to QVariant* */ QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miqt_map /* of int to QVariant* */ attributes); -void QNetworkCacheMetaData_Delete(QNetworkCacheMetaData* self, bool isSubclass); +void QNetworkCacheMetaData_Delete(QNetworkCacheMetaData* self); void QAbstractNetworkCache_virtbase(QAbstractNetworkCache* src, QObject** outptr_QObject); QMetaObject* QAbstractNetworkCache_MetaObject(const QAbstractNetworkCache* self); @@ -72,7 +72,7 @@ struct miqt_string QAbstractNetworkCache_Tr2(const char* s, const char* c); struct miqt_string QAbstractNetworkCache_Tr3(const char* s, const char* c, int n); struct miqt_string QAbstractNetworkCache_TrUtf82(const char* s, const char* c); struct miqt_string QAbstractNetworkCache_TrUtf83(const char* s, const char* c, int n); -void QAbstractNetworkCache_Delete(QAbstractNetworkCache* self, bool isSubclass); +void QAbstractNetworkCache_Delete(QAbstractNetworkCache* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qabstractsocket.cpp b/qt/network/gen_qabstractsocket.cpp index e246096a..36efacf2 100644 --- a/qt/network/gen_qabstractsocket.cpp +++ b/qt/network/gen_qabstractsocket.cpp @@ -54,12 +54,12 @@ bool miqt_exec_callback_QAbstractSocket_Reset(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQAbstractSocket : public virtual QAbstractSocket { +class MiqtVirtualQAbstractSocket final : public QAbstractSocket { public: MiqtVirtualQAbstractSocket(QAbstractSocket::SocketType socketType, QObject* parent): QAbstractSocket(socketType, parent) {}; - virtual ~MiqtVirtualQAbstractSocket() = default; + virtual ~MiqtVirtualQAbstractSocket() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Resume = 0; @@ -1302,11 +1302,7 @@ bool QAbstractSocket_virtualbase_Reset(void* self) { return ( (MiqtVirtualQAbstractSocket*)(self) )->virtualbase_Reset(); } -void QAbstractSocket_Delete(QAbstractSocket* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractSocket_Delete(QAbstractSocket* self) { + delete self; } diff --git a/qt/network/gen_qabstractsocket.go b/qt/network/gen_qabstractsocket.go index ca852ebe..17dfae26 100644 --- a/qt/network/gen_qabstractsocket.go +++ b/qt/network/gen_qabstractsocket.go @@ -1294,7 +1294,7 @@ func miqt_exec_callback_QAbstractSocket_Reset(self *C.QAbstractSocket, cb C.intp // Delete this object from C++ memory. func (this *QAbstractSocket) Delete() { - C.QAbstractSocket_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractSocket_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qabstractsocket.h b/qt/network/gen_qabstractsocket.h index 46960f64..4e98444a 100644 --- a/qt/network/gen_qabstractsocket.h +++ b/qt/network/gen_qabstractsocket.h @@ -158,7 +158,7 @@ void QAbstractSocket_override_virtual_Seek(void* self, intptr_t slot); bool QAbstractSocket_virtualbase_Seek(void* self, long long pos); void QAbstractSocket_override_virtual_Reset(void* self, intptr_t slot); bool QAbstractSocket_virtualbase_Reset(void* self); -void QAbstractSocket_Delete(QAbstractSocket* self, bool isSubclass); +void QAbstractSocket_Delete(QAbstractSocket* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qauthenticator.cpp b/qt/network/gen_qauthenticator.cpp index 4734c67b..21c343ec 100644 --- a/qt/network/gen_qauthenticator.cpp +++ b/qt/network/gen_qauthenticator.cpp @@ -126,11 +126,7 @@ void QAuthenticator_Detach(QAuthenticator* self) { self->detach(); } -void QAuthenticator_Delete(QAuthenticator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAuthenticator_Delete(QAuthenticator* self) { + delete self; } diff --git a/qt/network/gen_qauthenticator.go b/qt/network/gen_qauthenticator.go index 18398acf..9b17929c 100644 --- a/qt/network/gen_qauthenticator.go +++ b/qt/network/gen_qauthenticator.go @@ -167,7 +167,7 @@ func (this *QAuthenticator) Detach() { // Delete this object from C++ memory. func (this *QAuthenticator) Delete() { - C.QAuthenticator_Delete(this.h, C.bool(this.isSubclass)) + C.QAuthenticator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qauthenticator.h b/qt/network/gen_qauthenticator.h index 1e609a25..3fb382e2 100644 --- a/qt/network/gen_qauthenticator.h +++ b/qt/network/gen_qauthenticator.h @@ -38,7 +38,7 @@ struct miqt_map /* of struct miqt_string to QVariant* */ QAuthenticator_Options void QAuthenticator_SetOption(QAuthenticator* self, struct miqt_string opt, QVariant* value); bool QAuthenticator_IsNull(const QAuthenticator* self); void QAuthenticator_Detach(QAuthenticator* self); -void QAuthenticator_Delete(QAuthenticator* self, bool isSubclass); +void QAuthenticator_Delete(QAuthenticator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qdnslookup.cpp b/qt/network/gen_qdnslookup.cpp index ad9f870b..3aedb692 100644 --- a/qt/network/gen_qdnslookup.cpp +++ b/qt/network/gen_qdnslookup.cpp @@ -81,12 +81,8 @@ struct miqt_string QDnsDomainNameRecord_Value(const QDnsDomainNameRecord* self) return _ms; } -void QDnsDomainNameRecord_Delete(QDnsDomainNameRecord* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsDomainNameRecord_Delete(QDnsDomainNameRecord* self) { + delete self; } QDnsHostAddressRecord* QDnsHostAddressRecord_new() { @@ -125,12 +121,8 @@ QHostAddress* QDnsHostAddressRecord_Value(const QDnsHostAddressRecord* self) { return new QHostAddress(self->value()); } -void QDnsHostAddressRecord_Delete(QDnsHostAddressRecord* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsHostAddressRecord_Delete(QDnsHostAddressRecord* self) { + delete self; } QDnsMailExchangeRecord* QDnsMailExchangeRecord_new() { @@ -181,12 +173,8 @@ unsigned int QDnsMailExchangeRecord_TimeToLive(const QDnsMailExchangeRecord* sel return static_cast(_ret); } -void QDnsMailExchangeRecord_Delete(QDnsMailExchangeRecord* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsMailExchangeRecord_Delete(QDnsMailExchangeRecord* self) { + delete self; } QDnsServiceRecord* QDnsServiceRecord_new() { @@ -247,12 +235,8 @@ uint16_t QDnsServiceRecord_Weight(const QDnsServiceRecord* self) { return static_cast(_ret); } -void QDnsServiceRecord_Delete(QDnsServiceRecord* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsServiceRecord_Delete(QDnsServiceRecord* self) { + delete self; } QDnsTextRecord* QDnsTextRecord_new() { @@ -305,15 +289,11 @@ struct miqt_array /* of struct miqt_string */ QDnsTextRecord_Values(const QDnsT return _out; } -void QDnsTextRecord_Delete(QDnsTextRecord* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsTextRecord_Delete(QDnsTextRecord* self) { + delete self; } -class MiqtVirtualQDnsLookup : public virtual QDnsLookup { +class MiqtVirtualQDnsLookup final : public QDnsLookup { public: MiqtVirtualQDnsLookup(): QDnsLookup() {}; @@ -323,7 +303,7 @@ public: MiqtVirtualQDnsLookup(QDnsLookup::Type typeVal, const QString& name, QObject* parent): QDnsLookup(typeVal, name, parent) {}; MiqtVirtualQDnsLookup(QDnsLookup::Type typeVal, const QString& name, const QHostAddress& nameserver, QObject* parent): QDnsLookup(typeVal, name, nameserver, parent) {}; - virtual ~MiqtVirtualQDnsLookup() = default; + virtual ~MiqtVirtualQDnsLookup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -866,11 +846,7 @@ void QDnsLookup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQDnsLookup*)(self) )->virtualbase_DisconnectNotify(signal); } -void QDnsLookup_Delete(QDnsLookup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsLookup_Delete(QDnsLookup* self) { + delete self; } diff --git a/qt/network/gen_qdnslookup.go b/qt/network/gen_qdnslookup.go index a6dc788f..81aa193c 100644 --- a/qt/network/gen_qdnslookup.go +++ b/qt/network/gen_qdnslookup.go @@ -119,7 +119,7 @@ func (this *QDnsDomainNameRecord) Value() string { // Delete this object from C++ memory. func (this *QDnsDomainNameRecord) Delete() { - C.QDnsDomainNameRecord_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsDomainNameRecord_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -207,7 +207,7 @@ func (this *QDnsHostAddressRecord) Value() *QHostAddress { // Delete this object from C++ memory. func (this *QDnsHostAddressRecord) Delete() { - C.QDnsHostAddressRecord_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsHostAddressRecord_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -300,7 +300,7 @@ func (this *QDnsMailExchangeRecord) TimeToLive() uint { // Delete this object from C++ memory. func (this *QDnsMailExchangeRecord) Delete() { - C.QDnsMailExchangeRecord_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsMailExchangeRecord_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -401,7 +401,7 @@ func (this *QDnsServiceRecord) Weight() uint16 { // Delete this object from C++ memory. func (this *QDnsServiceRecord) Delete() { - C.QDnsServiceRecord_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsServiceRecord_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -496,7 +496,7 @@ func (this *QDnsTextRecord) Values() [][]byte { // Delete this object from C++ memory. func (this *QDnsTextRecord) Delete() { - C.QDnsTextRecord_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsTextRecord_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1095,7 +1095,7 @@ func miqt_exec_callback_QDnsLookup_DisconnectNotify(self *C.QDnsLookup, cb C.int // Delete this object from C++ memory. func (this *QDnsLookup) Delete() { - C.QDnsLookup_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsLookup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qdnslookup.h b/qt/network/gen_qdnslookup.h index 163d57a5..8bf6c0dc 100644 --- a/qt/network/gen_qdnslookup.h +++ b/qt/network/gen_qdnslookup.h @@ -51,7 +51,7 @@ void QDnsDomainNameRecord_Swap(QDnsDomainNameRecord* self, QDnsDomainNameRecord* struct miqt_string QDnsDomainNameRecord_Name(const QDnsDomainNameRecord* self); unsigned int QDnsDomainNameRecord_TimeToLive(const QDnsDomainNameRecord* self); struct miqt_string QDnsDomainNameRecord_Value(const QDnsDomainNameRecord* self); -void QDnsDomainNameRecord_Delete(QDnsDomainNameRecord* self, bool isSubclass); +void QDnsDomainNameRecord_Delete(QDnsDomainNameRecord* self); QDnsHostAddressRecord* QDnsHostAddressRecord_new(); QDnsHostAddressRecord* QDnsHostAddressRecord_new2(QDnsHostAddressRecord* other); @@ -60,7 +60,7 @@ void QDnsHostAddressRecord_Swap(QDnsHostAddressRecord* self, QDnsHostAddressReco struct miqt_string QDnsHostAddressRecord_Name(const QDnsHostAddressRecord* self); unsigned int QDnsHostAddressRecord_TimeToLive(const QDnsHostAddressRecord* self); QHostAddress* QDnsHostAddressRecord_Value(const QDnsHostAddressRecord* self); -void QDnsHostAddressRecord_Delete(QDnsHostAddressRecord* self, bool isSubclass); +void QDnsHostAddressRecord_Delete(QDnsHostAddressRecord* self); QDnsMailExchangeRecord* QDnsMailExchangeRecord_new(); QDnsMailExchangeRecord* QDnsMailExchangeRecord_new2(QDnsMailExchangeRecord* other); @@ -70,7 +70,7 @@ struct miqt_string QDnsMailExchangeRecord_Exchange(const QDnsMailExchangeRecord* struct miqt_string QDnsMailExchangeRecord_Name(const QDnsMailExchangeRecord* self); uint16_t QDnsMailExchangeRecord_Preference(const QDnsMailExchangeRecord* self); unsigned int QDnsMailExchangeRecord_TimeToLive(const QDnsMailExchangeRecord* self); -void QDnsMailExchangeRecord_Delete(QDnsMailExchangeRecord* self, bool isSubclass); +void QDnsMailExchangeRecord_Delete(QDnsMailExchangeRecord* self); QDnsServiceRecord* QDnsServiceRecord_new(); QDnsServiceRecord* QDnsServiceRecord_new2(QDnsServiceRecord* other); @@ -82,7 +82,7 @@ uint16_t QDnsServiceRecord_Priority(const QDnsServiceRecord* self); struct miqt_string QDnsServiceRecord_Target(const QDnsServiceRecord* self); unsigned int QDnsServiceRecord_TimeToLive(const QDnsServiceRecord* self); uint16_t QDnsServiceRecord_Weight(const QDnsServiceRecord* self); -void QDnsServiceRecord_Delete(QDnsServiceRecord* self, bool isSubclass); +void QDnsServiceRecord_Delete(QDnsServiceRecord* self); QDnsTextRecord* QDnsTextRecord_new(); QDnsTextRecord* QDnsTextRecord_new2(QDnsTextRecord* other); @@ -91,7 +91,7 @@ void QDnsTextRecord_Swap(QDnsTextRecord* self, QDnsTextRecord* other); struct miqt_string QDnsTextRecord_Name(const QDnsTextRecord* self); unsigned int QDnsTextRecord_TimeToLive(const QDnsTextRecord* self); struct miqt_array /* of struct miqt_string */ QDnsTextRecord_Values(const QDnsTextRecord* self); -void QDnsTextRecord_Delete(QDnsTextRecord* self, bool isSubclass); +void QDnsTextRecord_Delete(QDnsTextRecord* self); QDnsLookup* QDnsLookup_new(); QDnsLookup* QDnsLookup_new2(int typeVal, struct miqt_string name); @@ -148,7 +148,7 @@ void QDnsLookup_override_virtual_ConnectNotify(void* self, intptr_t slot); void QDnsLookup_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QDnsLookup_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QDnsLookup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QDnsLookup_Delete(QDnsLookup* self, bool isSubclass); +void QDnsLookup_Delete(QDnsLookup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qdtls.cpp b/qt/network/gen_qdtls.cpp index a0f89387..1c1a3a66 100644 --- a/qt/network/gen_qdtls.cpp +++ b/qt/network/gen_qdtls.cpp @@ -45,13 +45,13 @@ void miqt_exec_callback_QDtls_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQDtlsClientVerifier : public virtual QDtlsClientVerifier { +class MiqtVirtualQDtlsClientVerifier final : public QDtlsClientVerifier { public: MiqtVirtualQDtlsClientVerifier(): QDtlsClientVerifier() {}; MiqtVirtualQDtlsClientVerifier(QObject* parent): QDtlsClientVerifier(parent) {}; - virtual ~MiqtVirtualQDtlsClientVerifier() = default; + virtual ~MiqtVirtualQDtlsClientVerifier() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -406,21 +406,17 @@ void QDtlsClientVerifier_virtualbase_DisconnectNotify(void* self, QMetaMethod* s ( (MiqtVirtualQDtlsClientVerifier*)(self) )->virtualbase_DisconnectNotify(signal); } -void QDtlsClientVerifier_Delete(QDtlsClientVerifier* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDtlsClientVerifier_Delete(QDtlsClientVerifier* self) { + delete self; } -class MiqtVirtualQDtls : public virtual QDtls { +class MiqtVirtualQDtls final : public QDtls { public: MiqtVirtualQDtls(QSslSocket::SslMode mode): QDtls(mode) {}; MiqtVirtualQDtls(QSslSocket::SslMode mode, QObject* parent): QDtls(mode, parent) {}; - virtual ~MiqtVirtualQDtls() = default; + virtual ~MiqtVirtualQDtls() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -920,12 +916,8 @@ void QDtls_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQDtls*)(self) )->virtualbase_DisconnectNotify(signal); } -void QDtls_Delete(QDtls* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDtls_Delete(QDtls* self) { + delete self; } QDtlsClientVerifier__GeneratorParameters* QDtlsClientVerifier__GeneratorParameters_new() { @@ -945,11 +937,7 @@ void QDtlsClientVerifier__GeneratorParameters_OperatorAssign(QDtlsClientVerifier self->operator=(*param1); } -void QDtlsClientVerifier__GeneratorParameters_Delete(QDtlsClientVerifier__GeneratorParameters* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDtlsClientVerifier__GeneratorParameters_Delete(QDtlsClientVerifier__GeneratorParameters* self) { + delete self; } diff --git a/qt/network/gen_qdtls.go b/qt/network/gen_qdtls.go index 265496c3..9d23b2b4 100644 --- a/qt/network/gen_qdtls.go +++ b/qt/network/gen_qdtls.go @@ -388,7 +388,7 @@ func miqt_exec_callback_QDtlsClientVerifier_DisconnectNotify(self *C.QDtlsClient // Delete this object from C++ memory. func (this *QDtlsClientVerifier) Delete() { - C.QDtlsClientVerifier_Delete(this.h, C.bool(this.isSubclass)) + C.QDtlsClientVerifier_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -916,7 +916,7 @@ func miqt_exec_callback_QDtls_DisconnectNotify(self *C.QDtls, cb C.intptr_t, sig // Delete this object from C++ memory. func (this *QDtls) Delete() { - C.QDtls_Delete(this.h, C.bool(this.isSubclass)) + C.QDtls_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -994,7 +994,7 @@ func (this *QDtlsClientVerifier__GeneratorParameters) OperatorAssign(param1 *QDt // Delete this object from C++ memory. func (this *QDtlsClientVerifier__GeneratorParameters) Delete() { - C.QDtlsClientVerifier__GeneratorParameters_Delete(this.h, C.bool(this.isSubclass)) + C.QDtlsClientVerifier__GeneratorParameters_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qdtls.h b/qt/network/gen_qdtls.h index a4e78067..88a3de4f 100644 --- a/qt/network/gen_qdtls.h +++ b/qt/network/gen_qdtls.h @@ -83,7 +83,7 @@ void QDtlsClientVerifier_override_virtual_ConnectNotify(void* self, intptr_t slo void QDtlsClientVerifier_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QDtlsClientVerifier_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QDtlsClientVerifier_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QDtlsClientVerifier_Delete(QDtlsClientVerifier* self, bool isSubclass); +void QDtlsClientVerifier_Delete(QDtlsClientVerifier* self); QDtls* QDtls_new(int mode); QDtls* QDtls_new2(int mode, QObject* parent); @@ -143,13 +143,13 @@ void QDtls_override_virtual_ConnectNotify(void* self, intptr_t slot); void QDtls_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QDtls_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QDtls_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QDtls_Delete(QDtls* self, bool isSubclass); +void QDtls_Delete(QDtls* self); QDtlsClientVerifier__GeneratorParameters* QDtlsClientVerifier__GeneratorParameters_new(); QDtlsClientVerifier__GeneratorParameters* QDtlsClientVerifier__GeneratorParameters_new2(int a, struct miqt_string s); QDtlsClientVerifier__GeneratorParameters* QDtlsClientVerifier__GeneratorParameters_new3(QDtlsClientVerifier__GeneratorParameters* param1); void QDtlsClientVerifier__GeneratorParameters_OperatorAssign(QDtlsClientVerifier__GeneratorParameters* self, QDtlsClientVerifier__GeneratorParameters* param1); -void QDtlsClientVerifier__GeneratorParameters_Delete(QDtlsClientVerifier__GeneratorParameters* self, bool isSubclass); +void QDtlsClientVerifier__GeneratorParameters_Delete(QDtlsClientVerifier__GeneratorParameters* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qhostaddress.cpp b/qt/network/gen_qhostaddress.cpp index 9a231095..b020c4a7 100644 --- a/qt/network/gen_qhostaddress.cpp +++ b/qt/network/gen_qhostaddress.cpp @@ -20,12 +20,8 @@ unsigned char QIPv6Address_OperatorSubscript(const QIPv6Address* self, int index return static_cast(_ret); } -void QIPv6Address_Delete(QIPv6Address* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIPv6Address_Delete(QIPv6Address* self) { + delete self; } QHostAddress* QHostAddress_new() { @@ -237,11 +233,7 @@ bool QHostAddress_IsEqual2(const QHostAddress* self, QHostAddress* address, int return self->isEqual(*address, static_cast(mode)); } -void QHostAddress_Delete(QHostAddress* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHostAddress_Delete(QHostAddress* self) { + delete self; } diff --git a/qt/network/gen_qhostaddress.go b/qt/network/gen_qhostaddress.go index abfe8e4b..1ed61387 100644 --- a/qt/network/gen_qhostaddress.go +++ b/qt/network/gen_qhostaddress.go @@ -75,7 +75,7 @@ func (this *QIPv6Address) OperatorSubscript(index int) byte { // Delete this object from C++ memory. func (this *QIPv6Address) Delete() { - C.QIPv6Address_Delete(this.h, C.bool(this.isSubclass)) + C.QIPv6Address_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -383,7 +383,7 @@ func (this *QHostAddress) IsEqual2(address *QHostAddress, mode QHostAddress__Con // Delete this object from C++ memory. func (this *QHostAddress) Delete() { - C.QHostAddress_Delete(this.h, C.bool(this.isSubclass)) + C.QHostAddress_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qhostaddress.h b/qt/network/gen_qhostaddress.h index f4692cf2..fd8f31e7 100644 --- a/qt/network/gen_qhostaddress.h +++ b/qt/network/gen_qhostaddress.h @@ -23,7 +23,7 @@ typedef struct QIPv6Address QIPv6Address; #endif unsigned char QIPv6Address_OperatorSubscript(const QIPv6Address* self, int index); -void QIPv6Address_Delete(QIPv6Address* self, bool isSubclass); +void QIPv6Address_Delete(QIPv6Address* self); QHostAddress* QHostAddress_new(); QHostAddress* QHostAddress_new2(unsigned int ip4Addr); @@ -68,7 +68,7 @@ bool QHostAddress_IsMulticast(const QHostAddress* self); bool QHostAddress_IsBroadcast(const QHostAddress* self); struct miqt_map /* tuple of QHostAddress* and int */ QHostAddress_ParseSubnet(struct miqt_string subnet); bool QHostAddress_IsEqual2(const QHostAddress* self, QHostAddress* address, int mode); -void QHostAddress_Delete(QHostAddress* self, bool isSubclass); +void QHostAddress_Delete(QHostAddress* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qhostinfo.cpp b/qt/network/gen_qhostinfo.cpp index e52a7472..dcf46b85 100644 --- a/qt/network/gen_qhostinfo.cpp +++ b/qt/network/gen_qhostinfo.cpp @@ -138,11 +138,7 @@ struct miqt_string QHostInfo_LocalDomainName() { return _ms; } -void QHostInfo_Delete(QHostInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHostInfo_Delete(QHostInfo* self) { + delete self; } diff --git a/qt/network/gen_qhostinfo.go b/qt/network/gen_qhostinfo.go index bc2392e1..ff5dde6a 100644 --- a/qt/network/gen_qhostinfo.go +++ b/qt/network/gen_qhostinfo.go @@ -184,7 +184,7 @@ func QHostInfo_LocalDomainName() string { // Delete this object from C++ memory. func (this *QHostInfo) Delete() { - C.QHostInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QHostInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qhostinfo.h b/qt/network/gen_qhostinfo.h index 25ab3e46..7a141104 100644 --- a/qt/network/gen_qhostinfo.h +++ b/qt/network/gen_qhostinfo.h @@ -41,7 +41,7 @@ void QHostInfo_AbortHostLookup(int lookupId); QHostInfo* QHostInfo_FromName(struct miqt_string name); struct miqt_string QHostInfo_LocalHostName(); struct miqt_string QHostInfo_LocalDomainName(); -void QHostInfo_Delete(QHostInfo* self, bool isSubclass); +void QHostInfo_Delete(QHostInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qhstspolicy.cpp b/qt/network/gen_qhstspolicy.cpp index 5f44a441..ad8bf1b9 100644 --- a/qt/network/gen_qhstspolicy.cpp +++ b/qt/network/gen_qhstspolicy.cpp @@ -92,11 +92,7 @@ struct miqt_string QHstsPolicy_Host1(const QHstsPolicy* self, int options) { return _ms; } -void QHstsPolicy_Delete(QHstsPolicy* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHstsPolicy_Delete(QHstsPolicy* self) { + delete self; } diff --git a/qt/network/gen_qhstspolicy.go b/qt/network/gen_qhstspolicy.go index 7310e010..684e93cb 100644 --- a/qt/network/gen_qhstspolicy.go +++ b/qt/network/gen_qhstspolicy.go @@ -155,7 +155,7 @@ func (this *QHstsPolicy) Host1(options qt.QUrl__ComponentFormattingOption) strin // Delete this object from C++ memory. func (this *QHstsPolicy) Delete() { - C.QHstsPolicy_Delete(this.h, C.bool(this.isSubclass)) + C.QHstsPolicy_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qhstspolicy.h b/qt/network/gen_qhstspolicy.h index ee90ed58..3de04e38 100644 --- a/qt/network/gen_qhstspolicy.h +++ b/qt/network/gen_qhstspolicy.h @@ -37,7 +37,7 @@ bool QHstsPolicy_IncludesSubDomains(const QHstsPolicy* self); bool QHstsPolicy_IsExpired(const QHstsPolicy* self); void QHstsPolicy_SetHost2(QHstsPolicy* self, struct miqt_string host, int mode); struct miqt_string QHstsPolicy_Host1(const QHstsPolicy* self, int options); -void QHstsPolicy_Delete(QHstsPolicy* self, bool isSubclass); +void QHstsPolicy_Delete(QHstsPolicy* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qhttp2configuration.cpp b/qt/network/gen_qhttp2configuration.cpp index 995187a2..b080dd94 100644 --- a/qt/network/gen_qhttp2configuration.cpp +++ b/qt/network/gen_qhttp2configuration.cpp @@ -66,11 +66,7 @@ void QHttp2Configuration_Swap(QHttp2Configuration* self, QHttp2Configuration* ot self->swap(*other); } -void QHttp2Configuration_Delete(QHttp2Configuration* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHttp2Configuration_Delete(QHttp2Configuration* self) { + delete self; } diff --git a/qt/network/gen_qhttp2configuration.go b/qt/network/gen_qhttp2configuration.go index 7bda510f..8e0d0e55 100644 --- a/qt/network/gen_qhttp2configuration.go +++ b/qt/network/gen_qhttp2configuration.go @@ -112,7 +112,7 @@ func (this *QHttp2Configuration) Swap(other *QHttp2Configuration) { // Delete this object from C++ memory. func (this *QHttp2Configuration) Delete() { - C.QHttp2Configuration_Delete(this.h, C.bool(this.isSubclass)) + C.QHttp2Configuration_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qhttp2configuration.h b/qt/network/gen_qhttp2configuration.h index 8613e111..0897d4fc 100644 --- a/qt/network/gen_qhttp2configuration.h +++ b/qt/network/gen_qhttp2configuration.h @@ -34,7 +34,7 @@ unsigned int QHttp2Configuration_StreamReceiveWindowSize(const QHttp2Configurati bool QHttp2Configuration_SetMaxFrameSize(QHttp2Configuration* self, unsigned int size); unsigned int QHttp2Configuration_MaxFrameSize(const QHttp2Configuration* self); void QHttp2Configuration_Swap(QHttp2Configuration* self, QHttp2Configuration* other); -void QHttp2Configuration_Delete(QHttp2Configuration* self, bool isSubclass); +void QHttp2Configuration_Delete(QHttp2Configuration* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qhttpmultipart.cpp b/qt/network/gen_qhttpmultipart.cpp index ddf59952..a13fe44c 100644 --- a/qt/network/gen_qhttpmultipart.cpp +++ b/qt/network/gen_qhttpmultipart.cpp @@ -73,15 +73,11 @@ void QHttpPart_SetBodyDevice(QHttpPart* self, QIODevice* device) { self->setBodyDevice(device); } -void QHttpPart_Delete(QHttpPart* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHttpPart_Delete(QHttpPart* self) { + delete self; } -class MiqtVirtualQHttpMultiPart : public virtual QHttpMultiPart { +class MiqtVirtualQHttpMultiPart final : public QHttpMultiPart { public: MiqtVirtualQHttpMultiPart(): QHttpMultiPart() {}; @@ -89,7 +85,7 @@ public: MiqtVirtualQHttpMultiPart(QObject* parent): QHttpMultiPart(parent) {}; MiqtVirtualQHttpMultiPart(QHttpMultiPart::ContentType contentType, QObject* parent): QHttpMultiPart(contentType, parent) {}; - virtual ~MiqtVirtualQHttpMultiPart() = default; + virtual ~MiqtVirtualQHttpMultiPart() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -436,11 +432,7 @@ void QHttpMultiPart_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQHttpMultiPart*)(self) )->virtualbase_DisconnectNotify(signal); } -void QHttpMultiPart_Delete(QHttpMultiPart* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHttpMultiPart_Delete(QHttpMultiPart* self) { + delete self; } diff --git a/qt/network/gen_qhttpmultipart.go b/qt/network/gen_qhttpmultipart.go index 8b8609df..053dfaab 100644 --- a/qt/network/gen_qhttpmultipart.go +++ b/qt/network/gen_qhttpmultipart.go @@ -116,7 +116,7 @@ func (this *QHttpPart) SetBodyDevice(device *qt.QIODevice) { // Delete this object from C++ memory. func (this *QHttpPart) Delete() { - C.QHttpPart_Delete(this.h, C.bool(this.isSubclass)) + C.QHttpPart_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -481,7 +481,7 @@ func miqt_exec_callback_QHttpMultiPart_DisconnectNotify(self *C.QHttpMultiPart, // Delete this object from C++ memory. func (this *QHttpMultiPart) Delete() { - C.QHttpMultiPart_Delete(this.h, C.bool(this.isSubclass)) + C.QHttpMultiPart_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qhttpmultipart.h b/qt/network/gen_qhttpmultipart.h index ab941354..35bfbcf2 100644 --- a/qt/network/gen_qhttpmultipart.h +++ b/qt/network/gen_qhttpmultipart.h @@ -48,7 +48,7 @@ void QHttpPart_SetHeader(QHttpPart* self, int header, QVariant* value); void QHttpPart_SetRawHeader(QHttpPart* self, struct miqt_string headerName, struct miqt_string headerValue); void QHttpPart_SetBody(QHttpPart* self, struct miqt_string body); void QHttpPart_SetBodyDevice(QHttpPart* self, QIODevice* device); -void QHttpPart_Delete(QHttpPart* self, bool isSubclass); +void QHttpPart_Delete(QHttpPart* self); QHttpMultiPart* QHttpMultiPart_new(); QHttpMultiPart* QHttpMultiPart_new2(int contentType); @@ -81,7 +81,7 @@ void QHttpMultiPart_override_virtual_ConnectNotify(void* self, intptr_t slot); void QHttpMultiPart_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QHttpMultiPart_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QHttpMultiPart_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QHttpMultiPart_Delete(QHttpMultiPart* self, bool isSubclass); +void QHttpMultiPart_Delete(QHttpMultiPart* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qlocalserver.cpp b/qt/network/gen_qlocalserver.cpp index edd1676f..ce7c7293 100644 --- a/qt/network/gen_qlocalserver.cpp +++ b/qt/network/gen_qlocalserver.cpp @@ -31,13 +31,13 @@ void miqt_exec_callback_QLocalServer_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQLocalServer : public virtual QLocalServer { +class MiqtVirtualQLocalServer final : public QLocalServer { public: MiqtVirtualQLocalServer(): QLocalServer() {}; MiqtVirtualQLocalServer(QObject* parent): QLocalServer(parent) {}; - virtual ~MiqtVirtualQLocalServer() = default; + virtual ~MiqtVirtualQLocalServer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__HasPendingConnections = 0; @@ -559,11 +559,7 @@ void QLocalServer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQLocalServer*)(self) )->virtualbase_DisconnectNotify(signal); } -void QLocalServer_Delete(QLocalServer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLocalServer_Delete(QLocalServer* self) { + delete self; } diff --git a/qt/network/gen_qlocalserver.go b/qt/network/gen_qlocalserver.go index d8e6e89f..480edd00 100644 --- a/qt/network/gen_qlocalserver.go +++ b/qt/network/gen_qlocalserver.go @@ -526,7 +526,7 @@ func miqt_exec_callback_QLocalServer_DisconnectNotify(self *C.QLocalServer, cb C // Delete this object from C++ memory. func (this *QLocalServer) Delete() { - C.QLocalServer_Delete(this.h, C.bool(this.isSubclass)) + C.QLocalServer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qlocalserver.h b/qt/network/gen_qlocalserver.h index 16ca4a07..6729432c 100644 --- a/qt/network/gen_qlocalserver.h +++ b/qt/network/gen_qlocalserver.h @@ -87,7 +87,7 @@ void QLocalServer_override_virtual_ConnectNotify(void* self, intptr_t slot); void QLocalServer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QLocalServer_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QLocalServer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QLocalServer_Delete(QLocalServer* self, bool isSubclass); +void QLocalServer_Delete(QLocalServer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qlocalsocket.cpp b/qt/network/gen_qlocalsocket.cpp index e6403a4c..301c341b 100644 --- a/qt/network/gen_qlocalsocket.cpp +++ b/qt/network/gen_qlocalsocket.cpp @@ -37,13 +37,13 @@ long long miqt_exec_callback_QLocalSocket_ReadLineData(void*, intptr_t, char*, l } /* extern C */ #endif -class MiqtVirtualQLocalSocket : public virtual QLocalSocket { +class MiqtVirtualQLocalSocket final : public QLocalSocket { public: MiqtVirtualQLocalSocket(): QLocalSocket() {}; MiqtVirtualQLocalSocket(QObject* parent): QLocalSocket(parent) {}; - virtual ~MiqtVirtualQLocalSocket() = default; + virtual ~MiqtVirtualQLocalSocket() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IsSequential = 0; @@ -839,11 +839,7 @@ long long QLocalSocket_virtualbase_ReadLineData(void* self, char* data, long lon return ( (MiqtVirtualQLocalSocket*)(self) )->virtualbase_ReadLineData(data, maxlen); } -void QLocalSocket_Delete(QLocalSocket* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLocalSocket_Delete(QLocalSocket* self) { + delete self; } diff --git a/qt/network/gen_qlocalsocket.go b/qt/network/gen_qlocalsocket.go index d7c2b445..f152df55 100644 --- a/qt/network/gen_qlocalsocket.go +++ b/qt/network/gen_qlocalsocket.go @@ -837,7 +837,7 @@ func miqt_exec_callback_QLocalSocket_ReadLineData(self *C.QLocalSocket, cb C.int // Delete this object from C++ memory. func (this *QLocalSocket) Delete() { - C.QLocalSocket_Delete(this.h, C.bool(this.isSubclass)) + C.QLocalSocket_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qlocalsocket.h b/qt/network/gen_qlocalsocket.h index e385bbd3..4e561c53 100644 --- a/qt/network/gen_qlocalsocket.h +++ b/qt/network/gen_qlocalsocket.h @@ -112,7 +112,7 @@ void QLocalSocket_override_virtual_Reset(void* self, intptr_t slot); bool QLocalSocket_virtualbase_Reset(void* self); void QLocalSocket_override_virtual_ReadLineData(void* self, intptr_t slot); long long QLocalSocket_virtualbase_ReadLineData(void* self, char* data, long long maxlen); -void QLocalSocket_Delete(QLocalSocket* self, bool isSubclass); +void QLocalSocket_Delete(QLocalSocket* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworkaccessmanager.cpp b/qt/network/gen_qnetworkaccessmanager.cpp index de7928b5..0da92319 100644 --- a/qt/network/gen_qnetworkaccessmanager.cpp +++ b/qt/network/gen_qnetworkaccessmanager.cpp @@ -51,13 +51,13 @@ void miqt_exec_callback_QNetworkAccessManager_DisconnectNotify(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQNetworkAccessManager : public virtual QNetworkAccessManager { +class MiqtVirtualQNetworkAccessManager final : public QNetworkAccessManager { public: MiqtVirtualQNetworkAccessManager(): QNetworkAccessManager() {}; MiqtVirtualQNetworkAccessManager(QObject* parent): QNetworkAccessManager(parent) {}; - virtual ~MiqtVirtualQNetworkAccessManager() = default; + virtual ~MiqtVirtualQNetworkAccessManager() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CreateRequest = 0; @@ -763,11 +763,7 @@ void QNetworkAccessManager_virtualbase_DisconnectNotify(void* self, QMetaMethod* ( (MiqtVirtualQNetworkAccessManager*)(self) )->virtualbase_DisconnectNotify(signal); } -void QNetworkAccessManager_Delete(QNetworkAccessManager* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkAccessManager_Delete(QNetworkAccessManager* self) { + delete self; } diff --git a/qt/network/gen_qnetworkaccessmanager.go b/qt/network/gen_qnetworkaccessmanager.go index ddf10c15..6e123041 100644 --- a/qt/network/gen_qnetworkaccessmanager.go +++ b/qt/network/gen_qnetworkaccessmanager.go @@ -839,7 +839,7 @@ func miqt_exec_callback_QNetworkAccessManager_DisconnectNotify(self *C.QNetworkA // Delete this object from C++ memory. func (this *QNetworkAccessManager) Delete() { - C.QNetworkAccessManager_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkAccessManager_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworkaccessmanager.h b/qt/network/gen_qnetworkaccessmanager.h index 271269f5..75e2bab1 100644 --- a/qt/network/gen_qnetworkaccessmanager.h +++ b/qt/network/gen_qnetworkaccessmanager.h @@ -153,7 +153,7 @@ void QNetworkAccessManager_override_virtual_ConnectNotify(void* self, intptr_t s void QNetworkAccessManager_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QNetworkAccessManager_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QNetworkAccessManager_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QNetworkAccessManager_Delete(QNetworkAccessManager* self, bool isSubclass); +void QNetworkAccessManager_Delete(QNetworkAccessManager* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworkconfigmanager.cpp b/qt/network/gen_qnetworkconfigmanager.cpp index 114beecd..0cd34197 100644 --- a/qt/network/gen_qnetworkconfigmanager.cpp +++ b/qt/network/gen_qnetworkconfigmanager.cpp @@ -33,13 +33,13 @@ void miqt_exec_callback_QNetworkConfigurationManager_DisconnectNotify(void*, int } /* extern C */ #endif -class MiqtVirtualQNetworkConfigurationManager : public virtual QNetworkConfigurationManager { +class MiqtVirtualQNetworkConfigurationManager final : public QNetworkConfigurationManager { public: MiqtVirtualQNetworkConfigurationManager(): QNetworkConfigurationManager() {}; MiqtVirtualQNetworkConfigurationManager(QObject* parent): QNetworkConfigurationManager(parent) {}; - virtual ~MiqtVirtualQNetworkConfigurationManager() = default; + virtual ~MiqtVirtualQNetworkConfigurationManager() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -464,11 +464,7 @@ void QNetworkConfigurationManager_virtualbase_DisconnectNotify(void* self, QMeta ( (MiqtVirtualQNetworkConfigurationManager*)(self) )->virtualbase_DisconnectNotify(signal); } -void QNetworkConfigurationManager_Delete(QNetworkConfigurationManager* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkConfigurationManager_Delete(QNetworkConfigurationManager* self) { + delete self; } diff --git a/qt/network/gen_qnetworkconfigmanager.go b/qt/network/gen_qnetworkconfigmanager.go index fc21fba8..3d711515 100644 --- a/qt/network/gen_qnetworkconfigmanager.go +++ b/qt/network/gen_qnetworkconfigmanager.go @@ -491,7 +491,7 @@ func miqt_exec_callback_QNetworkConfigurationManager_DisconnectNotify(self *C.QN // Delete this object from C++ memory. func (this *QNetworkConfigurationManager) Delete() { - C.QNetworkConfigurationManager_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkConfigurationManager_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworkconfigmanager.h b/qt/network/gen_qnetworkconfigmanager.h index 2268c434..8471c6b0 100644 --- a/qt/network/gen_qnetworkconfigmanager.h +++ b/qt/network/gen_qnetworkconfigmanager.h @@ -76,7 +76,7 @@ void QNetworkConfigurationManager_override_virtual_ConnectNotify(void* self, int void QNetworkConfigurationManager_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QNetworkConfigurationManager_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QNetworkConfigurationManager_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QNetworkConfigurationManager_Delete(QNetworkConfigurationManager* self, bool isSubclass); +void QNetworkConfigurationManager_Delete(QNetworkConfigurationManager* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworkconfiguration.cpp b/qt/network/gen_qnetworkconfiguration.cpp index 0cf25b79..2b53c621 100644 --- a/qt/network/gen_qnetworkconfiguration.cpp +++ b/qt/network/gen_qnetworkconfiguration.cpp @@ -125,11 +125,7 @@ bool QNetworkConfiguration_SetConnectTimeout(QNetworkConfiguration* self, int ti return self->setConnectTimeout(static_cast(timeout)); } -void QNetworkConfiguration_Delete(QNetworkConfiguration* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkConfiguration_Delete(QNetworkConfiguration* self) { + delete self; } diff --git a/qt/network/gen_qnetworkconfiguration.go b/qt/network/gen_qnetworkconfiguration.go index 395c685b..bb407fbb 100644 --- a/qt/network/gen_qnetworkconfiguration.go +++ b/qt/network/gen_qnetworkconfiguration.go @@ -194,7 +194,7 @@ func (this *QNetworkConfiguration) SetConnectTimeout(timeout int) bool { // Delete this object from C++ memory. func (this *QNetworkConfiguration) Delete() { - C.QNetworkConfiguration_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkConfiguration_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworkconfiguration.h b/qt/network/gen_qnetworkconfiguration.h index 3b503f3b..a54fbe1c 100644 --- a/qt/network/gen_qnetworkconfiguration.h +++ b/qt/network/gen_qnetworkconfiguration.h @@ -39,7 +39,7 @@ struct miqt_string QNetworkConfiguration_Name(const QNetworkConfiguration* self) bool QNetworkConfiguration_IsValid(const QNetworkConfiguration* self); int QNetworkConfiguration_ConnectTimeout(const QNetworkConfiguration* self); bool QNetworkConfiguration_SetConnectTimeout(QNetworkConfiguration* self, int timeout); -void QNetworkConfiguration_Delete(QNetworkConfiguration* self, bool isSubclass); +void QNetworkConfiguration_Delete(QNetworkConfiguration* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworkcookie.cpp b/qt/network/gen_qnetworkcookie.cpp index 324373f2..f4aeeba7 100644 --- a/qt/network/gen_qnetworkcookie.cpp +++ b/qt/network/gen_qnetworkcookie.cpp @@ -180,11 +180,7 @@ struct miqt_string QNetworkCookie_ToRawForm1(const QNetworkCookie* self, int for return _ms; } -void QNetworkCookie_Delete(QNetworkCookie* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkCookie_Delete(QNetworkCookie* self) { + delete self; } diff --git a/qt/network/gen_qnetworkcookie.go b/qt/network/gen_qnetworkcookie.go index f55b9b66..d1d43182 100644 --- a/qt/network/gen_qnetworkcookie.go +++ b/qt/network/gen_qnetworkcookie.go @@ -238,7 +238,7 @@ func (this *QNetworkCookie) ToRawForm1(form QNetworkCookie__RawForm) []byte { // Delete this object from C++ memory. func (this *QNetworkCookie) Delete() { - C.QNetworkCookie_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkCookie_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworkcookie.h b/qt/network/gen_qnetworkcookie.h index a3755dde..b5355222 100644 --- a/qt/network/gen_qnetworkcookie.h +++ b/qt/network/gen_qnetworkcookie.h @@ -52,7 +52,7 @@ bool QNetworkCookie_HasSameIdentifier(const QNetworkCookie* self, QNetworkCookie void QNetworkCookie_Normalize(QNetworkCookie* self, QUrl* url); struct miqt_array /* of QNetworkCookie* */ QNetworkCookie_ParseCookies(struct miqt_string cookieString); struct miqt_string QNetworkCookie_ToRawForm1(const QNetworkCookie* self, int form); -void QNetworkCookie_Delete(QNetworkCookie* self, bool isSubclass); +void QNetworkCookie_Delete(QNetworkCookie* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworkcookiejar.cpp b/qt/network/gen_qnetworkcookiejar.cpp index b25a01aa..789081d7 100644 --- a/qt/network/gen_qnetworkcookiejar.cpp +++ b/qt/network/gen_qnetworkcookiejar.cpp @@ -35,13 +35,13 @@ void miqt_exec_callback_QNetworkCookieJar_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQNetworkCookieJar : public virtual QNetworkCookieJar { +class MiqtVirtualQNetworkCookieJar final : public QNetworkCookieJar { public: MiqtVirtualQNetworkCookieJar(): QNetworkCookieJar() {}; MiqtVirtualQNetworkCookieJar(QObject* parent): QNetworkCookieJar(parent) {}; - virtual ~MiqtVirtualQNetworkCookieJar() = default; + virtual ~MiqtVirtualQNetworkCookieJar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CookiesForUrl = 0; @@ -625,11 +625,7 @@ void QNetworkCookieJar_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQNetworkCookieJar*)(self) )->virtualbase_DisconnectNotify(signal); } -void QNetworkCookieJar_Delete(QNetworkCookieJar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkCookieJar_Delete(QNetworkCookieJar* self) { + delete self; } diff --git a/qt/network/gen_qnetworkcookiejar.go b/qt/network/gen_qnetworkcookiejar.go index e1e6ab7b..0d954747 100644 --- a/qt/network/gen_qnetworkcookiejar.go +++ b/qt/network/gen_qnetworkcookiejar.go @@ -564,7 +564,7 @@ func miqt_exec_callback_QNetworkCookieJar_DisconnectNotify(self *C.QNetworkCooki // Delete this object from C++ memory. func (this *QNetworkCookieJar) Delete() { - C.QNetworkCookieJar_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkCookieJar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworkcookiejar.h b/qt/network/gen_qnetworkcookiejar.h index 823c969c..4ccfb543 100644 --- a/qt/network/gen_qnetworkcookiejar.h +++ b/qt/network/gen_qnetworkcookiejar.h @@ -79,7 +79,7 @@ void QNetworkCookieJar_override_virtual_ConnectNotify(void* self, intptr_t slot) void QNetworkCookieJar_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QNetworkCookieJar_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QNetworkCookieJar_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QNetworkCookieJar_Delete(QNetworkCookieJar* self, bool isSubclass); +void QNetworkCookieJar_Delete(QNetworkCookieJar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworkdatagram.cpp b/qt/network/gen_qnetworkdatagram.cpp index 9b536a37..642b29f4 100644 --- a/qt/network/gen_qnetworkdatagram.cpp +++ b/qt/network/gen_qnetworkdatagram.cpp @@ -119,11 +119,7 @@ void QNetworkDatagram_SetSender2(QNetworkDatagram* self, QHostAddress* address, self->setSender(*address, static_cast(port)); } -void QNetworkDatagram_Delete(QNetworkDatagram* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkDatagram_Delete(QNetworkDatagram* self) { + delete self; } diff --git a/qt/network/gen_qnetworkdatagram.go b/qt/network/gen_qnetworkdatagram.go index 05caa0d3..495f10e8 100644 --- a/qt/network/gen_qnetworkdatagram.go +++ b/qt/network/gen_qnetworkdatagram.go @@ -188,7 +188,7 @@ func (this *QNetworkDatagram) SetSender2(address *QHostAddress, port uint16) { // Delete this object from C++ memory. func (this *QNetworkDatagram) Delete() { - C.QNetworkDatagram_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkDatagram_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworkdatagram.h b/qt/network/gen_qnetworkdatagram.h index 9ecefa5d..db0c1290 100644 --- a/qt/network/gen_qnetworkdatagram.h +++ b/qt/network/gen_qnetworkdatagram.h @@ -46,7 +46,7 @@ struct miqt_string QNetworkDatagram_Data(const QNetworkDatagram* self); void QNetworkDatagram_SetData(QNetworkDatagram* self, struct miqt_string data); QNetworkDatagram* QNetworkDatagram_MakeReply(const QNetworkDatagram* self, struct miqt_string payload); void QNetworkDatagram_SetSender2(QNetworkDatagram* self, QHostAddress* address, uint16_t port); -void QNetworkDatagram_Delete(QNetworkDatagram* self, bool isSubclass); +void QNetworkDatagram_Delete(QNetworkDatagram* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworkdiskcache.cpp b/qt/network/gen_qnetworkdiskcache.cpp index 61213a22..4b0210b1 100644 --- a/qt/network/gen_qnetworkdiskcache.cpp +++ b/qt/network/gen_qnetworkdiskcache.cpp @@ -28,13 +28,13 @@ long long miqt_exec_callback_QNetworkDiskCache_Expire(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQNetworkDiskCache : public virtual QNetworkDiskCache { +class MiqtVirtualQNetworkDiskCache final : public QNetworkDiskCache { public: MiqtVirtualQNetworkDiskCache(): QNetworkDiskCache() {}; MiqtVirtualQNetworkDiskCache(QObject* parent): QNetworkDiskCache(parent) {}; - virtual ~MiqtVirtualQNetworkDiskCache() = default; + virtual ~MiqtVirtualQNetworkDiskCache() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CacheSize = 0; @@ -478,11 +478,7 @@ long long QNetworkDiskCache_virtualbase_Expire(void* self) { return ( (MiqtVirtualQNetworkDiskCache*)(self) )->virtualbase_Expire(); } -void QNetworkDiskCache_Delete(QNetworkDiskCache* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkDiskCache_Delete(QNetworkDiskCache* self) { + delete self; } diff --git a/qt/network/gen_qnetworkdiskcache.go b/qt/network/gen_qnetworkdiskcache.go index 9a29da12..c14af60a 100644 --- a/qt/network/gen_qnetworkdiskcache.go +++ b/qt/network/gen_qnetworkdiskcache.go @@ -448,7 +448,7 @@ func miqt_exec_callback_QNetworkDiskCache_Expire(self *C.QNetworkDiskCache, cb C // Delete this object from C++ memory. func (this *QNetworkDiskCache) Delete() { - C.QNetworkDiskCache_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkDiskCache_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworkdiskcache.h b/qt/network/gen_qnetworkdiskcache.h index a1d8f143..741df388 100644 --- a/qt/network/gen_qnetworkdiskcache.h +++ b/qt/network/gen_qnetworkdiskcache.h @@ -75,7 +75,7 @@ void QNetworkDiskCache_override_virtual_Clear(void* self, intptr_t slot); void QNetworkDiskCache_virtualbase_Clear(void* self); void QNetworkDiskCache_override_virtual_Expire(void* self, intptr_t slot); long long QNetworkDiskCache_virtualbase_Expire(void* self); -void QNetworkDiskCache_Delete(QNetworkDiskCache* self, bool isSubclass); +void QNetworkDiskCache_Delete(QNetworkDiskCache* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworkinterface.cpp b/qt/network/gen_qnetworkinterface.cpp index 3355b216..3e690b98 100644 --- a/qt/network/gen_qnetworkinterface.cpp +++ b/qt/network/gen_qnetworkinterface.cpp @@ -110,12 +110,8 @@ bool QNetworkAddressEntry_IsTemporary(const QNetworkAddressEntry* self) { return self->isTemporary(); } -void QNetworkAddressEntry_Delete(QNetworkAddressEntry* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkAddressEntry_Delete(QNetworkAddressEntry* self) { + delete self; } QNetworkInterface* QNetworkInterface_new() { @@ -253,11 +249,7 @@ struct miqt_array /* of QHostAddress* */ QNetworkInterface_AllAddresses() { return _out; } -void QNetworkInterface_Delete(QNetworkInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkInterface_Delete(QNetworkInterface* self) { + delete self; } diff --git a/qt/network/gen_qnetworkinterface.go b/qt/network/gen_qnetworkinterface.go index 4752b33c..3ae7099e 100644 --- a/qt/network/gen_qnetworkinterface.go +++ b/qt/network/gen_qnetworkinterface.go @@ -198,7 +198,7 @@ func (this *QNetworkAddressEntry) IsTemporary() bool { // Delete this object from C++ memory. func (this *QNetworkAddressEntry) Delete() { - C.QNetworkAddressEntry_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkAddressEntry_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -377,7 +377,7 @@ func QNetworkInterface_AllAddresses() []QHostAddress { // Delete this object from C++ memory. func (this *QNetworkInterface) Delete() { - C.QNetworkInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworkinterface.h b/qt/network/gen_qnetworkinterface.h index 77ba6be4..825ac90e 100644 --- a/qt/network/gen_qnetworkinterface.h +++ b/qt/network/gen_qnetworkinterface.h @@ -49,7 +49,7 @@ void QNetworkAddressEntry_SetAddressLifetime(QNetworkAddressEntry* self, QDeadli void QNetworkAddressEntry_ClearAddressLifetime(QNetworkAddressEntry* self); bool QNetworkAddressEntry_IsPermanent(const QNetworkAddressEntry* self); bool QNetworkAddressEntry_IsTemporary(const QNetworkAddressEntry* self); -void QNetworkAddressEntry_Delete(QNetworkAddressEntry* self, bool isSubclass); +void QNetworkAddressEntry_Delete(QNetworkAddressEntry* self); QNetworkInterface* QNetworkInterface_new(); QNetworkInterface* QNetworkInterface_new2(QNetworkInterface* other); @@ -70,7 +70,7 @@ QNetworkInterface* QNetworkInterface_InterfaceFromIndex(int index); struct miqt_string QNetworkInterface_InterfaceNameFromIndex(int index); struct miqt_array /* of QNetworkInterface* */ QNetworkInterface_AllInterfaces(); struct miqt_array /* of QHostAddress* */ QNetworkInterface_AllAddresses(); -void QNetworkInterface_Delete(QNetworkInterface* self, bool isSubclass); +void QNetworkInterface_Delete(QNetworkInterface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworkproxy.cpp b/qt/network/gen_qnetworkproxy.cpp index 10deb546..e2f9fc3f 100644 --- a/qt/network/gen_qnetworkproxy.cpp +++ b/qt/network/gen_qnetworkproxy.cpp @@ -196,12 +196,8 @@ void QNetworkProxyQuery_SetNetworkConfiguration(QNetworkProxyQuery* self, QNetwo self->setNetworkConfiguration(*networkConfiguration); } -void QNetworkProxyQuery_Delete(QNetworkProxyQuery* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkProxyQuery_Delete(QNetworkProxyQuery* self) { + delete self; } QNetworkProxy* QNetworkProxy_new() { @@ -393,20 +389,16 @@ void QNetworkProxy_SetRawHeader(QNetworkProxy* self, struct miqt_string headerNa self->setRawHeader(headerName_QByteArray, value_QByteArray); } -void QNetworkProxy_Delete(QNetworkProxy* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkProxy_Delete(QNetworkProxy* self) { + delete self; } -class MiqtVirtualQNetworkProxyFactory : public virtual QNetworkProxyFactory { +class MiqtVirtualQNetworkProxyFactory final : public QNetworkProxyFactory { public: MiqtVirtualQNetworkProxyFactory(): QNetworkProxyFactory() {}; - virtual ~MiqtVirtualQNetworkProxyFactory() = default; + virtual ~MiqtVirtualQNetworkProxyFactory() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__QueryProxy = 0; @@ -510,11 +502,7 @@ void QNetworkProxyFactory_override_virtual_QueryProxy(void* self, intptr_t slot) dynamic_cast( (QNetworkProxyFactory*)(self) )->handle__QueryProxy = slot; } -void QNetworkProxyFactory_Delete(QNetworkProxyFactory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkProxyFactory_Delete(QNetworkProxyFactory* self) { + delete self; } diff --git a/qt/network/gen_qnetworkproxy.go b/qt/network/gen_qnetworkproxy.go index 9aa05fff..c036a321 100644 --- a/qt/network/gen_qnetworkproxy.go +++ b/qt/network/gen_qnetworkproxy.go @@ -374,7 +374,7 @@ func (this *QNetworkProxyQuery) SetNetworkConfiguration(networkConfiguration *QN // Delete this object from C++ memory. func (this *QNetworkProxyQuery) Delete() { - C.QNetworkProxyQuery_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkProxyQuery_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -658,7 +658,7 @@ func (this *QNetworkProxy) SetRawHeader(headerName []byte, value []byte) { // Delete this object from C++ memory. func (this *QNetworkProxy) Delete() { - C.QNetworkProxy_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkProxy_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -805,7 +805,7 @@ func miqt_exec_callback_QNetworkProxyFactory_QueryProxy(self *C.QNetworkProxyFac // Delete this object from C++ memory. func (this *QNetworkProxyFactory) Delete() { - C.QNetworkProxyFactory_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkProxyFactory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworkproxy.h b/qt/network/gen_qnetworkproxy.h index 5a1e671f..34ca9d47 100644 --- a/qt/network/gen_qnetworkproxy.h +++ b/qt/network/gen_qnetworkproxy.h @@ -66,7 +66,7 @@ QUrl* QNetworkProxyQuery_Url(const QNetworkProxyQuery* self); void QNetworkProxyQuery_SetUrl(QNetworkProxyQuery* self, QUrl* url); QNetworkConfiguration* QNetworkProxyQuery_NetworkConfiguration(const QNetworkProxyQuery* self); void QNetworkProxyQuery_SetNetworkConfiguration(QNetworkProxyQuery* self, QNetworkConfiguration* networkConfiguration); -void QNetworkProxyQuery_Delete(QNetworkProxyQuery* self, bool isSubclass); +void QNetworkProxyQuery_Delete(QNetworkProxyQuery* self); QNetworkProxy* QNetworkProxy_new(); QNetworkProxy* QNetworkProxy_new2(int typeVal); @@ -101,7 +101,7 @@ bool QNetworkProxy_HasRawHeader(const QNetworkProxy* self, struct miqt_string he struct miqt_array /* of struct miqt_string */ QNetworkProxy_RawHeaderList(const QNetworkProxy* self); struct miqt_string QNetworkProxy_RawHeader(const QNetworkProxy* self, struct miqt_string headerName); void QNetworkProxy_SetRawHeader(QNetworkProxy* self, struct miqt_string headerName, struct miqt_string value); -void QNetworkProxy_Delete(QNetworkProxy* self, bool isSubclass); +void QNetworkProxy_Delete(QNetworkProxy* self); QNetworkProxyFactory* QNetworkProxyFactory_new(); struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_QueryProxy(QNetworkProxyFactory* self, QNetworkProxyQuery* query); @@ -114,7 +114,7 @@ void QNetworkProxyFactory_OperatorAssign(QNetworkProxyFactory* self, QNetworkPro struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_SystemProxyForQuery1(QNetworkProxyQuery* query); void QNetworkProxyFactory_override_virtual_QueryProxy(void* self, intptr_t slot); struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_virtualbase_QueryProxy(void* self, QNetworkProxyQuery* query); -void QNetworkProxyFactory_Delete(QNetworkProxyFactory* self, bool isSubclass); +void QNetworkProxyFactory_Delete(QNetworkProxyFactory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworkreply.cpp b/qt/network/gen_qnetworkreply.cpp index 892f8009..304115b3 100644 --- a/qt/network/gen_qnetworkreply.cpp +++ b/qt/network/gen_qnetworkreply.cpp @@ -404,11 +404,7 @@ struct miqt_string QNetworkReply_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QNetworkReply_Delete(QNetworkReply* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkReply_Delete(QNetworkReply* self) { + delete self; } diff --git a/qt/network/gen_qnetworkreply.go b/qt/network/gen_qnetworkreply.go index 68bb7769..df6137cb 100644 --- a/qt/network/gen_qnetworkreply.go +++ b/qt/network/gen_qnetworkreply.go @@ -539,7 +539,7 @@ func QNetworkReply_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QNetworkReply) Delete() { - C.QNetworkReply_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkReply_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworkreply.h b/qt/network/gen_qnetworkreply.h index 1c26ee5d..5fef641c 100644 --- a/qt/network/gen_qnetworkreply.h +++ b/qt/network/gen_qnetworkreply.h @@ -97,7 +97,7 @@ struct miqt_string QNetworkReply_Tr2(const char* s, const char* c); struct miqt_string QNetworkReply_Tr3(const char* s, const char* c, int n); struct miqt_string QNetworkReply_TrUtf82(const char* s, const char* c); struct miqt_string QNetworkReply_TrUtf83(const char* s, const char* c, int n); -void QNetworkReply_Delete(QNetworkReply* self, bool isSubclass); +void QNetworkReply_Delete(QNetworkReply* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworkrequest.cpp b/qt/network/gen_qnetworkrequest.cpp index 4608daca..d502c24b 100644 --- a/qt/network/gen_qnetworkrequest.cpp +++ b/qt/network/gen_qnetworkrequest.cpp @@ -184,11 +184,7 @@ void QNetworkRequest_SetTransferTimeout1(QNetworkRequest* self, int timeout) { self->setTransferTimeout(static_cast(timeout)); } -void QNetworkRequest_Delete(QNetworkRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkRequest_Delete(QNetworkRequest* self) { + delete self; } diff --git a/qt/network/gen_qnetworkrequest.go b/qt/network/gen_qnetworkrequest.go index 90b37825..be4ae8b4 100644 --- a/qt/network/gen_qnetworkrequest.go +++ b/qt/network/gen_qnetworkrequest.go @@ -331,7 +331,7 @@ func (this *QNetworkRequest) SetTransferTimeout1(timeout int) { // Delete this object from C++ memory. func (this *QNetworkRequest) Delete() { - C.QNetworkRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworkrequest.h b/qt/network/gen_qnetworkrequest.h index 59f1b8d2..f56dd11a 100644 --- a/qt/network/gen_qnetworkrequest.h +++ b/qt/network/gen_qnetworkrequest.h @@ -63,7 +63,7 @@ int QNetworkRequest_TransferTimeout(const QNetworkRequest* self); void QNetworkRequest_SetTransferTimeout(QNetworkRequest* self); QVariant* QNetworkRequest_Attribute2(const QNetworkRequest* self, int code, QVariant* defaultValue); void QNetworkRequest_SetTransferTimeout1(QNetworkRequest* self, int timeout); -void QNetworkRequest_Delete(QNetworkRequest* self, bool isSubclass); +void QNetworkRequest_Delete(QNetworkRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qnetworksession.cpp b/qt/network/gen_qnetworksession.cpp index d10039ef..fdc84cdc 100644 --- a/qt/network/gen_qnetworksession.cpp +++ b/qt/network/gen_qnetworksession.cpp @@ -36,13 +36,13 @@ void miqt_exec_callback_QNetworkSession_CustomEvent(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQNetworkSession : public virtual QNetworkSession { +class MiqtVirtualQNetworkSession final : public QNetworkSession { public: MiqtVirtualQNetworkSession(const QNetworkConfiguration& connConfig): QNetworkSession(connConfig) {}; MiqtVirtualQNetworkSession(const QNetworkConfiguration& connConfig, QObject* parent): QNetworkSession(connConfig, parent) {}; - virtual ~MiqtVirtualQNetworkSession() = default; + virtual ~MiqtVirtualQNetworkSession() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ConnectNotify = 0; @@ -538,11 +538,7 @@ void QNetworkSession_virtualbase_CustomEvent(void* self, QEvent* event) { ( (MiqtVirtualQNetworkSession*)(self) )->virtualbase_CustomEvent(event); } -void QNetworkSession_Delete(QNetworkSession* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkSession_Delete(QNetworkSession* self) { + delete self; } diff --git a/qt/network/gen_qnetworksession.go b/qt/network/gen_qnetworksession.go index c9bdb516..fb4d5d94 100644 --- a/qt/network/gen_qnetworksession.go +++ b/qt/network/gen_qnetworksession.go @@ -593,7 +593,7 @@ func miqt_exec_callback_QNetworkSession_CustomEvent(self *C.QNetworkSession, cb // Delete this object from C++ memory. func (this *QNetworkSession) Delete() { - C.QNetworkSession_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkSession_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qnetworksession.h b/qt/network/gen_qnetworksession.h index 9bafc7fb..8e98a2f3 100644 --- a/qt/network/gen_qnetworksession.h +++ b/qt/network/gen_qnetworksession.h @@ -100,7 +100,7 @@ void QNetworkSession_override_virtual_ChildEvent(void* self, intptr_t slot); void QNetworkSession_virtualbase_ChildEvent(void* self, QChildEvent* event); void QNetworkSession_override_virtual_CustomEvent(void* self, intptr_t slot); void QNetworkSession_virtualbase_CustomEvent(void* self, QEvent* event); -void QNetworkSession_Delete(QNetworkSession* self, bool isSubclass); +void QNetworkSession_Delete(QNetworkSession* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qocspresponse.cpp b/qt/network/gen_qocspresponse.cpp index b20f6308..ca8abb4a 100644 --- a/qt/network/gen_qocspresponse.cpp +++ b/qt/network/gen_qocspresponse.cpp @@ -45,11 +45,7 @@ void QOcspResponse_Swap(QOcspResponse* self, QOcspResponse* other) { self->swap(*other); } -void QOcspResponse_Delete(QOcspResponse* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QOcspResponse_Delete(QOcspResponse* self) { + delete self; } diff --git a/qt/network/gen_qocspresponse.go b/qt/network/gen_qocspresponse.go index c862e9a4..a3d8f40d 100644 --- a/qt/network/gen_qocspresponse.go +++ b/qt/network/gen_qocspresponse.go @@ -114,7 +114,7 @@ func (this *QOcspResponse) Swap(other *QOcspResponse) { // Delete this object from C++ memory. func (this *QOcspResponse) Delete() { - C.QOcspResponse_Delete(this.h, C.bool(this.isSubclass)) + C.QOcspResponse_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qocspresponse.h b/qt/network/gen_qocspresponse.h index 641a4561..2b4d3400 100644 --- a/qt/network/gen_qocspresponse.h +++ b/qt/network/gen_qocspresponse.h @@ -30,7 +30,7 @@ int QOcspResponse_RevocationReason(const QOcspResponse* self); QSslCertificate* QOcspResponse_Responder(const QOcspResponse* self); QSslCertificate* QOcspResponse_Subject(const QOcspResponse* self); void QOcspResponse_Swap(QOcspResponse* self, QOcspResponse* other); -void QOcspResponse_Delete(QOcspResponse* self, bool isSubclass); +void QOcspResponse_Delete(QOcspResponse* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qsslcertificate.cpp b/qt/network/gen_qsslcertificate.cpp index 14cb620a..a09425d3 100644 --- a/qt/network/gen_qsslcertificate.cpp +++ b/qt/network/gen_qsslcertificate.cpp @@ -487,11 +487,7 @@ bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertific return QSslCertificate::importPkcs12(device, key, cert, &caCertificates_QList, passPhrase_QByteArray); } -void QSslCertificate_Delete(QSslCertificate* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslCertificate_Delete(QSslCertificate* self) { + delete self; } diff --git a/qt/network/gen_qsslcertificate.go b/qt/network/gen_qsslcertificate.go index 2c57533b..da25966b 100644 --- a/qt/network/gen_qsslcertificate.go +++ b/qt/network/gen_qsslcertificate.go @@ -523,7 +523,7 @@ func QSslCertificate_ImportPkcs125(device *qt.QIODevice, key *QSslKey, cert *QSs // Delete this object from C++ memory. func (this *QSslCertificate) Delete() { - C.QSslCertificate_Delete(this.h, C.bool(this.isSubclass)) + C.QSslCertificate_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qsslcertificate.h b/qt/network/gen_qsslcertificate.h index 69fcb34a..a188a3ad 100644 --- a/qt/network/gen_qsslcertificate.h +++ b/qt/network/gen_qsslcertificate.h @@ -77,7 +77,7 @@ struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromData2(struct mi struct miqt_array /* of QSslError* */ QSslCertificate_Verify2(struct miqt_array /* of QSslCertificate* */ certificateChain, struct miqt_string hostName); bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates); bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates, struct miqt_string passPhrase); -void QSslCertificate_Delete(QSslCertificate* self, bool isSubclass); +void QSslCertificate_Delete(QSslCertificate* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qsslcertificateextension.cpp b/qt/network/gen_qsslcertificateextension.cpp index 04dbece5..9b29db43 100644 --- a/qt/network/gen_qsslcertificateextension.cpp +++ b/qt/network/gen_qsslcertificateextension.cpp @@ -64,11 +64,7 @@ bool QSslCertificateExtension_IsSupported(const QSslCertificateExtension* self) return self->isSupported(); } -void QSslCertificateExtension_Delete(QSslCertificateExtension* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslCertificateExtension_Delete(QSslCertificateExtension* self) { + delete self; } diff --git a/qt/network/gen_qsslcertificateextension.go b/qt/network/gen_qsslcertificateextension.go index 4dc10845..0a84f358 100644 --- a/qt/network/gen_qsslcertificateextension.go +++ b/qt/network/gen_qsslcertificateextension.go @@ -101,7 +101,7 @@ func (this *QSslCertificateExtension) IsSupported() bool { // Delete this object from C++ memory. func (this *QSslCertificateExtension) Delete() { - C.QSslCertificateExtension_Delete(this.h, C.bool(this.isSubclass)) + C.QSslCertificateExtension_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qsslcertificateextension.h b/qt/network/gen_qsslcertificateextension.h index 42ce68ef..05ba4303 100644 --- a/qt/network/gen_qsslcertificateextension.h +++ b/qt/network/gen_qsslcertificateextension.h @@ -31,7 +31,7 @@ struct miqt_string QSslCertificateExtension_Name(const QSslCertificateExtension* QVariant* QSslCertificateExtension_Value(const QSslCertificateExtension* self); bool QSslCertificateExtension_IsCritical(const QSslCertificateExtension* self); bool QSslCertificateExtension_IsSupported(const QSslCertificateExtension* self); -void QSslCertificateExtension_Delete(QSslCertificateExtension* self, bool isSubclass); +void QSslCertificateExtension_Delete(QSslCertificateExtension* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qsslcipher.cpp b/qt/network/gen_qsslcipher.cpp index 3baba36e..d1c4eb2d 100644 --- a/qt/network/gen_qsslcipher.cpp +++ b/qt/network/gen_qsslcipher.cpp @@ -119,11 +119,7 @@ int QSslCipher_Protocol(const QSslCipher* self) { return static_cast(_ret); } -void QSslCipher_Delete(QSslCipher* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslCipher_Delete(QSslCipher* self) { + delete self; } diff --git a/qt/network/gen_qsslcipher.go b/qt/network/gen_qsslcipher.go index 402a8dfe..bbb07c2a 100644 --- a/qt/network/gen_qsslcipher.go +++ b/qt/network/gen_qsslcipher.go @@ -155,7 +155,7 @@ func (this *QSslCipher) Protocol() QSsl__SslProtocol { // Delete this object from C++ memory. func (this *QSslCipher) Delete() { - C.QSslCipher_Delete(this.h, C.bool(this.isSubclass)) + C.QSslCipher_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qsslcipher.h b/qt/network/gen_qsslcipher.h index c5cd3200..fce571ea 100644 --- a/qt/network/gen_qsslcipher.h +++ b/qt/network/gen_qsslcipher.h @@ -37,7 +37,7 @@ struct miqt_string QSslCipher_AuthenticationMethod(const QSslCipher* self); struct miqt_string QSslCipher_EncryptionMethod(const QSslCipher* self); struct miqt_string QSslCipher_ProtocolString(const QSslCipher* self); int QSslCipher_Protocol(const QSslCipher* self); -void QSslCipher_Delete(QSslCipher* self, bool isSubclass); +void QSslCipher_Delete(QSslCipher* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qsslconfiguration.cpp b/qt/network/gen_qsslconfiguration.cpp index 269f6872..a47b893c 100644 --- a/qt/network/gen_qsslconfiguration.cpp +++ b/qt/network/gen_qsslconfiguration.cpp @@ -413,11 +413,7 @@ bool QSslConfiguration_AddCaCertificates3(QSslConfiguration* self, struct miqt_s return self->addCaCertificates(path_QString, static_cast(format), static_cast(syntax)); } -void QSslConfiguration_Delete(QSslConfiguration* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslConfiguration_Delete(QSslConfiguration* self) { + delete self; } diff --git a/qt/network/gen_qsslconfiguration.go b/qt/network/gen_qsslconfiguration.go index 4e4ebf2b..189a1c1a 100644 --- a/qt/network/gen_qsslconfiguration.go +++ b/qt/network/gen_qsslconfiguration.go @@ -467,7 +467,7 @@ func (this *QSslConfiguration) AddCaCertificates3(path string, format QSsl__Enco // Delete this object from C++ memory. func (this *QSslConfiguration) Delete() { - C.QSslConfiguration_Delete(this.h, C.bool(this.isSubclass)) + C.QSslConfiguration_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qsslconfiguration.h b/qt/network/gen_qsslconfiguration.h index 59f5d0b9..a4633ea2 100644 --- a/qt/network/gen_qsslconfiguration.h +++ b/qt/network/gen_qsslconfiguration.h @@ -93,7 +93,7 @@ struct miqt_string QSslConfiguration_NextNegotiatedProtocol(const QSslConfigurat int QSslConfiguration_NextProtocolNegotiationStatus(const QSslConfiguration* self); bool QSslConfiguration_AddCaCertificates2(QSslConfiguration* self, struct miqt_string path, int format); bool QSslConfiguration_AddCaCertificates3(QSslConfiguration* self, struct miqt_string path, int format, int syntax); -void QSslConfiguration_Delete(QSslConfiguration* self, bool isSubclass); +void QSslConfiguration_Delete(QSslConfiguration* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qssldiffiehellmanparameters.cpp b/qt/network/gen_qssldiffiehellmanparameters.cpp index 17dd89b9..45b12a72 100644 --- a/qt/network/gen_qssldiffiehellmanparameters.cpp +++ b/qt/network/gen_qssldiffiehellmanparameters.cpp @@ -77,11 +77,7 @@ QSslDiffieHellmanParameters* QSslDiffieHellmanParameters_FromEncoded22(QIODevice return new QSslDiffieHellmanParameters(QSslDiffieHellmanParameters::fromEncoded(device, static_cast(format))); } -void QSslDiffieHellmanParameters_Delete(QSslDiffieHellmanParameters* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslDiffieHellmanParameters_Delete(QSslDiffieHellmanParameters* self) { + delete self; } diff --git a/qt/network/gen_qssldiffiehellmanparameters.go b/qt/network/gen_qssldiffiehellmanparameters.go index d991b1c3..d9e620c7 100644 --- a/qt/network/gen_qssldiffiehellmanparameters.go +++ b/qt/network/gen_qssldiffiehellmanparameters.go @@ -136,7 +136,7 @@ func QSslDiffieHellmanParameters_FromEncoded22(device *qt.QIODevice, format QSsl // Delete this object from C++ memory. func (this *QSslDiffieHellmanParameters) Delete() { - C.QSslDiffieHellmanParameters_Delete(this.h, C.bool(this.isSubclass)) + C.QSslDiffieHellmanParameters_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qssldiffiehellmanparameters.h b/qt/network/gen_qssldiffiehellmanparameters.h index b406139e..83ecd265 100644 --- a/qt/network/gen_qssldiffiehellmanparameters.h +++ b/qt/network/gen_qssldiffiehellmanparameters.h @@ -35,7 +35,7 @@ int QSslDiffieHellmanParameters_Error(const QSslDiffieHellmanParameters* self); struct miqt_string QSslDiffieHellmanParameters_ErrorString(const QSslDiffieHellmanParameters* self); QSslDiffieHellmanParameters* QSslDiffieHellmanParameters_FromEncoded2(struct miqt_string encoded, int format); QSslDiffieHellmanParameters* QSslDiffieHellmanParameters_FromEncoded22(QIODevice* device, int format); -void QSslDiffieHellmanParameters_Delete(QSslDiffieHellmanParameters* self, bool isSubclass); +void QSslDiffieHellmanParameters_Delete(QSslDiffieHellmanParameters* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qsslellipticcurve.cpp b/qt/network/gen_qsslellipticcurve.cpp index a2d35662..5e310bf7 100644 --- a/qt/network/gen_qsslellipticcurve.cpp +++ b/qt/network/gen_qsslellipticcurve.cpp @@ -61,11 +61,7 @@ bool QSslEllipticCurve_IsTlsNamedCurve(const QSslEllipticCurve* self) { return self->isTlsNamedCurve(); } -void QSslEllipticCurve_Delete(QSslEllipticCurve* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslEllipticCurve_Delete(QSslEllipticCurve* self) { + delete self; } diff --git a/qt/network/gen_qsslellipticcurve.go b/qt/network/gen_qsslellipticcurve.go index 3a737154..52e28825 100644 --- a/qt/network/gen_qsslellipticcurve.go +++ b/qt/network/gen_qsslellipticcurve.go @@ -106,7 +106,7 @@ func (this *QSslEllipticCurve) IsTlsNamedCurve() bool { // Delete this object from C++ memory. func (this *QSslEllipticCurve) Delete() { - C.QSslEllipticCurve_Delete(this.h, C.bool(this.isSubclass)) + C.QSslEllipticCurve_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qsslellipticcurve.h b/qt/network/gen_qsslellipticcurve.h index 1fe18ffd..1e872b03 100644 --- a/qt/network/gen_qsslellipticcurve.h +++ b/qt/network/gen_qsslellipticcurve.h @@ -28,7 +28,7 @@ struct miqt_string QSslEllipticCurve_ShortName(const QSslEllipticCurve* self); struct miqt_string QSslEllipticCurve_LongName(const QSslEllipticCurve* self); bool QSslEllipticCurve_IsValid(const QSslEllipticCurve* self); bool QSslEllipticCurve_IsTlsNamedCurve(const QSslEllipticCurve* self); -void QSslEllipticCurve_Delete(QSslEllipticCurve* self, bool isSubclass); +void QSslEllipticCurve_Delete(QSslEllipticCurve* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qsslerror.cpp b/qt/network/gen_qsslerror.cpp index 9c9b1a4a..bc74afc4 100644 --- a/qt/network/gen_qsslerror.cpp +++ b/qt/network/gen_qsslerror.cpp @@ -66,11 +66,7 @@ QSslCertificate* QSslError_Certificate(const QSslError* self) { return new QSslCertificate(self->certificate()); } -void QSslError_Delete(QSslError* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslError_Delete(QSslError* self) { + delete self; } diff --git a/qt/network/gen_qsslerror.go b/qt/network/gen_qsslerror.go index 8b51802c..a8b52e68 100644 --- a/qt/network/gen_qsslerror.go +++ b/qt/network/gen_qsslerror.go @@ -156,7 +156,7 @@ func (this *QSslError) Certificate() *QSslCertificate { // Delete this object from C++ memory. func (this *QSslError) Delete() { - C.QSslError_Delete(this.h, C.bool(this.isSubclass)) + C.QSslError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qsslerror.h b/qt/network/gen_qsslerror.h index 7f9b340c..a18f1580 100644 --- a/qt/network/gen_qsslerror.h +++ b/qt/network/gen_qsslerror.h @@ -33,7 +33,7 @@ bool QSslError_OperatorNotEqual(const QSslError* self, QSslError* other); int QSslError_Error(const QSslError* self); struct miqt_string QSslError_ErrorString(const QSslError* self); QSslCertificate* QSslError_Certificate(const QSslError* self); -void QSslError_Delete(QSslError* self, bool isSubclass); +void QSslError_Delete(QSslError* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qsslkey.cpp b/qt/network/gen_qsslkey.cpp index 76ff42e6..be2c959f 100644 --- a/qt/network/gen_qsslkey.cpp +++ b/qt/network/gen_qsslkey.cpp @@ -147,11 +147,7 @@ struct miqt_string QSslKey_ToDer1(const QSslKey* self, struct miqt_string passPh return _ms; } -void QSslKey_Delete(QSslKey* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslKey_Delete(QSslKey* self) { + delete self; } diff --git a/qt/network/gen_qsslkey.go b/qt/network/gen_qsslkey.go index 4b1ff663..d94c26bb 100644 --- a/qt/network/gen_qsslkey.go +++ b/qt/network/gen_qsslkey.go @@ -237,7 +237,7 @@ func (this *QSslKey) ToDer1(passPhrase []byte) []byte { // Delete this object from C++ memory. func (this *QSslKey) Delete() { - C.QSslKey_Delete(this.h, C.bool(this.isSubclass)) + C.QSslKey_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qsslkey.h b/qt/network/gen_qsslkey.h index 5e4f99ff..e116a886 100644 --- a/qt/network/gen_qsslkey.h +++ b/qt/network/gen_qsslkey.h @@ -48,7 +48,7 @@ bool QSslKey_OperatorEqual(const QSslKey* self, QSslKey* key); bool QSslKey_OperatorNotEqual(const QSslKey* self, QSslKey* key); struct miqt_string QSslKey_ToPem1(const QSslKey* self, struct miqt_string passPhrase); struct miqt_string QSslKey_ToDer1(const QSslKey* self, struct miqt_string passPhrase); -void QSslKey_Delete(QSslKey* self, bool isSubclass); +void QSslKey_Delete(QSslKey* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qsslpresharedkeyauthenticator.cpp b/qt/network/gen_qsslpresharedkeyauthenticator.cpp index 4297ae2a..0c44a722 100644 --- a/qt/network/gen_qsslpresharedkeyauthenticator.cpp +++ b/qt/network/gen_qsslpresharedkeyauthenticator.cpp @@ -72,11 +72,7 @@ int QSslPreSharedKeyAuthenticator_MaximumPreSharedKeyLength(const QSslPreSharedK return self->maximumPreSharedKeyLength(); } -void QSslPreSharedKeyAuthenticator_Delete(QSslPreSharedKeyAuthenticator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslPreSharedKeyAuthenticator_Delete(QSslPreSharedKeyAuthenticator* self) { + delete self; } diff --git a/qt/network/gen_qsslpresharedkeyauthenticator.go b/qt/network/gen_qsslpresharedkeyauthenticator.go index c1aa8d01..e550f663 100644 --- a/qt/network/gen_qsslpresharedkeyauthenticator.go +++ b/qt/network/gen_qsslpresharedkeyauthenticator.go @@ -115,7 +115,7 @@ func (this *QSslPreSharedKeyAuthenticator) MaximumPreSharedKeyLength() int { // Delete this object from C++ memory. func (this *QSslPreSharedKeyAuthenticator) Delete() { - C.QSslPreSharedKeyAuthenticator_Delete(this.h, C.bool(this.isSubclass)) + C.QSslPreSharedKeyAuthenticator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qsslpresharedkeyauthenticator.h b/qt/network/gen_qsslpresharedkeyauthenticator.h index 59f804d5..eb1ec002 100644 --- a/qt/network/gen_qsslpresharedkeyauthenticator.h +++ b/qt/network/gen_qsslpresharedkeyauthenticator.h @@ -31,7 +31,7 @@ int QSslPreSharedKeyAuthenticator_MaximumIdentityLength(const QSslPreSharedKeyAu void QSslPreSharedKeyAuthenticator_SetPreSharedKey(QSslPreSharedKeyAuthenticator* self, struct miqt_string preSharedKey); struct miqt_string QSslPreSharedKeyAuthenticator_PreSharedKey(const QSslPreSharedKeyAuthenticator* self); int QSslPreSharedKeyAuthenticator_MaximumPreSharedKeyLength(const QSslPreSharedKeyAuthenticator* self); -void QSslPreSharedKeyAuthenticator_Delete(QSslPreSharedKeyAuthenticator* self, bool isSubclass); +void QSslPreSharedKeyAuthenticator_Delete(QSslPreSharedKeyAuthenticator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qsslsocket.cpp b/qt/network/gen_qsslsocket.cpp index 0dfa2c0d..b9b16525 100644 --- a/qt/network/gen_qsslsocket.cpp +++ b/qt/network/gen_qsslsocket.cpp @@ -53,13 +53,13 @@ long long miqt_exec_callback_QSslSocket_WriteData(void*, intptr_t, const char*, } /* extern C */ #endif -class MiqtVirtualQSslSocket : public virtual QSslSocket { +class MiqtVirtualQSslSocket final : public QSslSocket { public: MiqtVirtualQSslSocket(): QSslSocket() {}; MiqtVirtualQSslSocket(QObject* parent): QSslSocket(parent) {}; - virtual ~MiqtVirtualQSslSocket() = default; + virtual ~MiqtVirtualQSslSocket() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Resume = 0; @@ -1390,11 +1390,7 @@ long long QSslSocket_virtualbase_WriteData(void* self, const char* data, long lo return ( (MiqtVirtualQSslSocket*)(self) )->virtualbase_WriteData(data, lenVal); } -void QSslSocket_Delete(QSslSocket* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslSocket_Delete(QSslSocket* self) { + delete self; } diff --git a/qt/network/gen_qsslsocket.go b/qt/network/gen_qsslsocket.go index 0effb150..80968a4a 100644 --- a/qt/network/gen_qsslsocket.go +++ b/qt/network/gen_qsslsocket.go @@ -1420,7 +1420,7 @@ func miqt_exec_callback_QSslSocket_WriteData(self *C.QSslSocket, cb C.intptr_t, // Delete this object from C++ memory. func (this *QSslSocket) Delete() { - C.QSslSocket_Delete(this.h, C.bool(this.isSubclass)) + C.QSslSocket_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qsslsocket.h b/qt/network/gen_qsslsocket.h index e4e9df27..5ad37274 100644 --- a/qt/network/gen_qsslsocket.h +++ b/qt/network/gen_qsslsocket.h @@ -198,7 +198,7 @@ void QSslSocket_override_virtual_ReadData(void* self, intptr_t slot); long long QSslSocket_virtualbase_ReadData(void* self, char* data, long long maxlen); void QSslSocket_override_virtual_WriteData(void* self, intptr_t slot); long long QSslSocket_virtualbase_WriteData(void* self, const char* data, long long lenVal); -void QSslSocket_Delete(QSslSocket* self, bool isSubclass); +void QSslSocket_Delete(QSslSocket* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qtcpserver.cpp b/qt/network/gen_qtcpserver.cpp index 456e6433..71106fe2 100644 --- a/qt/network/gen_qtcpserver.cpp +++ b/qt/network/gen_qtcpserver.cpp @@ -34,13 +34,13 @@ void miqt_exec_callback_QTcpServer_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQTcpServer : public virtual QTcpServer { +class MiqtVirtualQTcpServer final : public QTcpServer { public: MiqtVirtualQTcpServer(): QTcpServer() {}; MiqtVirtualQTcpServer(QObject* parent): QTcpServer(parent) {}; - virtual ~MiqtVirtualQTcpServer() = default; + virtual ~MiqtVirtualQTcpServer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__HasPendingConnections = 0; @@ -570,11 +570,7 @@ void QTcpServer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTcpServer*)(self) )->virtualbase_DisconnectNotify(signal); } -void QTcpServer_Delete(QTcpServer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTcpServer_Delete(QTcpServer* self) { + delete self; } diff --git a/qt/network/gen_qtcpserver.go b/qt/network/gen_qtcpserver.go index a255f4d1..96b706b2 100644 --- a/qt/network/gen_qtcpserver.go +++ b/qt/network/gen_qtcpserver.go @@ -538,7 +538,7 @@ func miqt_exec_callback_QTcpServer_DisconnectNotify(self *C.QTcpServer, cb C.int // Delete this object from C++ memory. func (this *QTcpServer) Delete() { - C.QTcpServer_Delete(this.h, C.bool(this.isSubclass)) + C.QTcpServer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qtcpserver.h b/qt/network/gen_qtcpserver.h index 443aa1da..794b329f 100644 --- a/qt/network/gen_qtcpserver.h +++ b/qt/network/gen_qtcpserver.h @@ -96,7 +96,7 @@ void QTcpServer_override_virtual_ConnectNotify(void* self, intptr_t slot); void QTcpServer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QTcpServer_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QTcpServer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QTcpServer_Delete(QTcpServer* self, bool isSubclass); +void QTcpServer_Delete(QTcpServer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qtcpsocket.cpp b/qt/network/gen_qtcpsocket.cpp index d3c542c4..69a6a380 100644 --- a/qt/network/gen_qtcpsocket.cpp +++ b/qt/network/gen_qtcpsocket.cpp @@ -39,13 +39,13 @@ long long miqt_exec_callback_QTcpSocket_WriteData(void*, intptr_t, const char*, } /* extern C */ #endif -class MiqtVirtualQTcpSocket : public virtual QTcpSocket { +class MiqtVirtualQTcpSocket final : public QTcpSocket { public: MiqtVirtualQTcpSocket(): QTcpSocket() {}; MiqtVirtualQTcpSocket(QObject* parent): QTcpSocket(parent) {}; - virtual ~MiqtVirtualQTcpSocket() = default; + virtual ~MiqtVirtualQTcpSocket() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Resume = 0; @@ -820,11 +820,7 @@ long long QTcpSocket_virtualbase_WriteData(void* self, const char* data, long lo return ( (MiqtVirtualQTcpSocket*)(self) )->virtualbase_WriteData(data, lenVal); } -void QTcpSocket_Delete(QTcpSocket* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTcpSocket_Delete(QTcpSocket* self) { + delete self; } diff --git a/qt/network/gen_qtcpsocket.go b/qt/network/gen_qtcpsocket.go index e7fc8ab2..f8bf7267 100644 --- a/qt/network/gen_qtcpsocket.go +++ b/qt/network/gen_qtcpsocket.go @@ -726,7 +726,7 @@ func miqt_exec_callback_QTcpSocket_WriteData(self *C.QTcpSocket, cb C.intptr_t, // Delete this object from C++ memory. func (this *QTcpSocket) Delete() { - C.QTcpSocket_Delete(this.h, C.bool(this.isSubclass)) + C.QTcpSocket_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qtcpsocket.h b/qt/network/gen_qtcpsocket.h index 46cd336b..f7e02ae3 100644 --- a/qt/network/gen_qtcpsocket.h +++ b/qt/network/gen_qtcpsocket.h @@ -83,7 +83,7 @@ void QTcpSocket_override_virtual_ReadLineData(void* self, intptr_t slot); long long QTcpSocket_virtualbase_ReadLineData(void* self, char* data, long long maxlen); void QTcpSocket_override_virtual_WriteData(void* self, intptr_t slot); long long QTcpSocket_virtualbase_WriteData(void* self, const char* data, long long lenVal); -void QTcpSocket_Delete(QTcpSocket* self, bool isSubclass); +void QTcpSocket_Delete(QTcpSocket* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/network/gen_qudpsocket.cpp b/qt/network/gen_qudpsocket.cpp index bb53e862..4669bd74 100644 --- a/qt/network/gen_qudpsocket.cpp +++ b/qt/network/gen_qudpsocket.cpp @@ -43,13 +43,13 @@ long long miqt_exec_callback_QUdpSocket_WriteData(void*, intptr_t, const char*, } /* extern C */ #endif -class MiqtVirtualQUdpSocket : public virtual QUdpSocket { +class MiqtVirtualQUdpSocket final : public QUdpSocket { public: MiqtVirtualQUdpSocket(): QUdpSocket() {}; MiqtVirtualQUdpSocket(QObject* parent): QUdpSocket(parent) {}; - virtual ~MiqtVirtualQUdpSocket() = default; + virtual ~MiqtVirtualQUdpSocket() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Resume = 0; @@ -896,11 +896,7 @@ long long QUdpSocket_virtualbase_WriteData(void* self, const char* data, long lo return ( (MiqtVirtualQUdpSocket*)(self) )->virtualbase_WriteData(data, lenVal); } -void QUdpSocket_Delete(QUdpSocket* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUdpSocket_Delete(QUdpSocket* self) { + delete self; } diff --git a/qt/network/gen_qudpsocket.go b/qt/network/gen_qudpsocket.go index de561692..0e4665ee 100644 --- a/qt/network/gen_qudpsocket.go +++ b/qt/network/gen_qudpsocket.go @@ -807,7 +807,7 @@ func miqt_exec_callback_QUdpSocket_WriteData(self *C.QUdpSocket, cb C.intptr_t, // Delete this object from C++ memory. func (this *QUdpSocket) Delete() { - C.QUdpSocket_Delete(this.h, C.bool(this.isSubclass)) + C.QUdpSocket_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/network/gen_qudpsocket.h b/qt/network/gen_qudpsocket.h index 2993a8fa..591496c9 100644 --- a/qt/network/gen_qudpsocket.h +++ b/qt/network/gen_qudpsocket.h @@ -105,7 +105,7 @@ void QUdpSocket_override_virtual_ReadLineData(void* self, intptr_t slot); long long QUdpSocket_virtualbase_ReadLineData(void* self, char* data, long long maxlen); void QUdpSocket_override_virtual_WriteData(void* self, intptr_t slot); long long QUdpSocket_virtualbase_WriteData(void* self, const char* data, long long lenVal); -void QUdpSocket_Delete(QUdpSocket* self, bool isSubclass); +void QUdpSocket_Delete(QUdpSocket* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/printsupport/gen_qabstractprintdialog.cpp b/qt/printsupport/gen_qabstractprintdialog.cpp index f1f91206..7516e7a1 100644 --- a/qt/printsupport/gen_qabstractprintdialog.cpp +++ b/qt/printsupport/gen_qabstractprintdialog.cpp @@ -41,13 +41,13 @@ bool miqt_exec_callback_QAbstractPrintDialog_EventFilter(void*, intptr_t, QObjec } /* extern C */ #endif -class MiqtVirtualQAbstractPrintDialog : public virtual QAbstractPrintDialog { +class MiqtVirtualQAbstractPrintDialog final : public QAbstractPrintDialog { public: MiqtVirtualQAbstractPrintDialog(QPrinter* printer): QAbstractPrintDialog(printer) {}; MiqtVirtualQAbstractPrintDialog(QPrinter* printer, QWidget* parent): QAbstractPrintDialog(printer, parent) {}; - virtual ~MiqtVirtualQAbstractPrintDialog() = default; + virtual ~MiqtVirtualQAbstractPrintDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -640,11 +640,7 @@ bool QAbstractPrintDialog_virtualbase_EventFilter(void* self, QObject* param1, Q return ( (MiqtVirtualQAbstractPrintDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QAbstractPrintDialog_Delete(QAbstractPrintDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractPrintDialog_Delete(QAbstractPrintDialog* self) { + delete self; } diff --git a/qt/printsupport/gen_qabstractprintdialog.go b/qt/printsupport/gen_qabstractprintdialog.go index c713804c..2f303ce1 100644 --- a/qt/printsupport/gen_qabstractprintdialog.go +++ b/qt/printsupport/gen_qabstractprintdialog.go @@ -586,7 +586,7 @@ func miqt_exec_callback_QAbstractPrintDialog_EventFilter(self *C.QAbstractPrintD // Delete this object from C++ memory. func (this *QAbstractPrintDialog) Delete() { - C.QAbstractPrintDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractPrintDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/printsupport/gen_qabstractprintdialog.h b/qt/printsupport/gen_qabstractprintdialog.h index ce0f8628..93765e53 100644 --- a/qt/printsupport/gen_qabstractprintdialog.h +++ b/qt/printsupport/gen_qabstractprintdialog.h @@ -99,7 +99,7 @@ void QAbstractPrintDialog_override_virtual_ContextMenuEvent(void* self, intptr_t void QAbstractPrintDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QAbstractPrintDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QAbstractPrintDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QAbstractPrintDialog_Delete(QAbstractPrintDialog* self, bool isSubclass); +void QAbstractPrintDialog_Delete(QAbstractPrintDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/printsupport/gen_qpagesetupdialog.cpp b/qt/printsupport/gen_qpagesetupdialog.cpp index cb22d788..a246563d 100644 --- a/qt/printsupport/gen_qpagesetupdialog.cpp +++ b/qt/printsupport/gen_qpagesetupdialog.cpp @@ -40,7 +40,7 @@ bool miqt_exec_callback_QPageSetupDialog_EventFilter(void*, intptr_t, QObject*, } /* extern C */ #endif -class MiqtVirtualQPageSetupDialog : public virtual QPageSetupDialog { +class MiqtVirtualQPageSetupDialog final : public QPageSetupDialog { public: MiqtVirtualQPageSetupDialog(QWidget* parent): QPageSetupDialog(parent) {}; @@ -48,7 +48,7 @@ public: MiqtVirtualQPageSetupDialog(): QPageSetupDialog() {}; MiqtVirtualQPageSetupDialog(QPrinter* printer, QWidget* parent): QPageSetupDialog(printer, parent) {}; - virtual ~MiqtVirtualQPageSetupDialog() = default; + virtual ~MiqtVirtualQPageSetupDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Exec = 0; @@ -597,11 +597,7 @@ bool QPageSetupDialog_virtualbase_EventFilter(void* self, QObject* param1, QEven return ( (MiqtVirtualQPageSetupDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QPageSetupDialog_Delete(QPageSetupDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPageSetupDialog_Delete(QPageSetupDialog* self) { + delete self; } diff --git a/qt/printsupport/gen_qpagesetupdialog.go b/qt/printsupport/gen_qpagesetupdialog.go index f99253b6..37819f98 100644 --- a/qt/printsupport/gen_qpagesetupdialog.go +++ b/qt/printsupport/gen_qpagesetupdialog.go @@ -530,7 +530,7 @@ func miqt_exec_callback_QPageSetupDialog_EventFilter(self *C.QPageSetupDialog, c // Delete this object from C++ memory. func (this *QPageSetupDialog) Delete() { - C.QPageSetupDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QPageSetupDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/printsupport/gen_qpagesetupdialog.h b/qt/printsupport/gen_qpagesetupdialog.h index 1a763500..89f3a6d0 100644 --- a/qt/printsupport/gen_qpagesetupdialog.h +++ b/qt/printsupport/gen_qpagesetupdialog.h @@ -90,7 +90,7 @@ void QPageSetupDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slo void QPageSetupDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QPageSetupDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QPageSetupDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QPageSetupDialog_Delete(QPageSetupDialog* self, bool isSubclass); +void QPageSetupDialog_Delete(QPageSetupDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/printsupport/gen_qprintdialog.cpp b/qt/printsupport/gen_qprintdialog.cpp index 6d8f85a7..b65756ef 100644 --- a/qt/printsupport/gen_qprintdialog.cpp +++ b/qt/printsupport/gen_qprintdialog.cpp @@ -25,7 +25,7 @@ void miqt_exec_callback_QPrintDialog_SetVisible(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQPrintDialog : public virtual QPrintDialog { +class MiqtVirtualQPrintDialog final : public QPrintDialog { public: MiqtVirtualQPrintDialog(QWidget* parent): QPrintDialog(parent) {}; @@ -33,7 +33,7 @@ public: MiqtVirtualQPrintDialog(): QPrintDialog() {}; MiqtVirtualQPrintDialog(QPrinter* printer, QWidget* parent): QPrintDialog(printer, parent) {}; - virtual ~MiqtVirtualQPrintDialog() = default; + virtual ~MiqtVirtualQPrintDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Exec = 0; @@ -304,11 +304,7 @@ void QPrintDialog_virtualbase_SetVisible(void* self, bool visible) { ( (MiqtVirtualQPrintDialog*)(self) )->virtualbase_SetVisible(visible); } -void QPrintDialog_Delete(QPrintDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrintDialog_Delete(QPrintDialog* self) { + delete self; } diff --git a/qt/printsupport/gen_qprintdialog.go b/qt/printsupport/gen_qprintdialog.go index 01172691..a3403b04 100644 --- a/qt/printsupport/gen_qprintdialog.go +++ b/qt/printsupport/gen_qprintdialog.go @@ -314,7 +314,7 @@ func miqt_exec_callback_QPrintDialog_SetVisible(self *C.QPrintDialog, cb C.intpt // Delete this object from C++ memory. func (this *QPrintDialog) Delete() { - C.QPrintDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QPrintDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/printsupport/gen_qprintdialog.h b/qt/printsupport/gen_qprintdialog.h index 6710dcea..a478d5f9 100644 --- a/qt/printsupport/gen_qprintdialog.h +++ b/qt/printsupport/gen_qprintdialog.h @@ -66,7 +66,7 @@ void QPrintDialog_override_virtual_Done(void* self, intptr_t slot); void QPrintDialog_virtualbase_Done(void* self, int result); void QPrintDialog_override_virtual_SetVisible(void* self, intptr_t slot); void QPrintDialog_virtualbase_SetVisible(void* self, bool visible); -void QPrintDialog_Delete(QPrintDialog* self, bool isSubclass); +void QPrintDialog_Delete(QPrintDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/printsupport/gen_qprintengine.cpp b/qt/printsupport/gen_qprintengine.cpp index a5b54750..813a992f 100644 --- a/qt/printsupport/gen_qprintengine.cpp +++ b/qt/printsupport/gen_qprintengine.cpp @@ -40,11 +40,7 @@ void QPrintEngine_OperatorAssign(QPrintEngine* self, QPrintEngine* param1) { self->operator=(*param1); } -void QPrintEngine_Delete(QPrintEngine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrintEngine_Delete(QPrintEngine* self) { + delete self; } diff --git a/qt/printsupport/gen_qprintengine.go b/qt/printsupport/gen_qprintengine.go index 87d05b06..f4732dcc 100644 --- a/qt/printsupport/gen_qprintengine.go +++ b/qt/printsupport/gen_qprintengine.go @@ -116,7 +116,7 @@ func (this *QPrintEngine) OperatorAssign(param1 *QPrintEngine) { // Delete this object from C++ memory. func (this *QPrintEngine) Delete() { - C.QPrintEngine_Delete(this.h, C.bool(this.isSubclass)) + C.QPrintEngine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/printsupport/gen_qprintengine.h b/qt/printsupport/gen_qprintengine.h index 14e3e65d..4d741e49 100644 --- a/qt/printsupport/gen_qprintengine.h +++ b/qt/printsupport/gen_qprintengine.h @@ -29,7 +29,7 @@ bool QPrintEngine_Abort(QPrintEngine* self); int QPrintEngine_Metric(const QPrintEngine* self, int param1); int QPrintEngine_PrinterState(const QPrintEngine* self); void QPrintEngine_OperatorAssign(QPrintEngine* self, QPrintEngine* param1); -void QPrintEngine_Delete(QPrintEngine* self, bool isSubclass); +void QPrintEngine_Delete(QPrintEngine* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/printsupport/gen_qprinter.cpp b/qt/printsupport/gen_qprinter.cpp index e6b0ec38..15c53fbd 100644 --- a/qt/printsupport/gen_qprinter.cpp +++ b/qt/printsupport/gen_qprinter.cpp @@ -30,7 +30,7 @@ int miqt_exec_callback_QPrinter_Metric(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQPrinter : public virtual QPrinter { +class MiqtVirtualQPrinter final : public QPrinter { public: MiqtVirtualQPrinter(): QPrinter() {}; @@ -38,7 +38,7 @@ public: MiqtVirtualQPrinter(QPrinter::PrinterMode mode): QPrinter(mode) {}; MiqtVirtualQPrinter(const QPrinterInfo& printer, QPrinter::PrinterMode mode): QPrinter(printer, mode) {}; - virtual ~MiqtVirtualQPrinter() = default; + virtual ~MiqtVirtualQPrinter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -653,11 +653,7 @@ int QPrinter_virtualbase_Metric(const void* self, int param1) { return ( (const MiqtVirtualQPrinter*)(self) )->virtualbase_Metric(param1); } -void QPrinter_Delete(QPrinter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrinter_Delete(QPrinter* self) { + delete self; } diff --git a/qt/printsupport/gen_qprinter.go b/qt/printsupport/gen_qprinter.go index ebf7ed59..9af0bf92 100644 --- a/qt/printsupport/gen_qprinter.go +++ b/qt/printsupport/gen_qprinter.go @@ -721,7 +721,7 @@ func miqt_exec_callback_QPrinter_Metric(self *C.QPrinter, cb C.intptr_t, param1 // Delete this object from C++ memory. func (this *QPrinter) Delete() { - C.QPrinter_Delete(this.h, C.bool(this.isSubclass)) + C.QPrinter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/printsupport/gen_qprinter.h b/qt/printsupport/gen_qprinter.h index 8f3654c1..ec981eb1 100644 --- a/qt/printsupport/gen_qprinter.h +++ b/qt/printsupport/gen_qprinter.h @@ -135,7 +135,7 @@ void QPrinter_override_virtual_SetMargins(void* self, intptr_t slot); void QPrinter_virtualbase_SetMargins(void* self, QPagedPaintDevice__Margins* m); void QPrinter_override_virtual_Metric(void* self, intptr_t slot); int QPrinter_virtualbase_Metric(const void* self, int param1); -void QPrinter_Delete(QPrinter* self, bool isSubclass); +void QPrinter_Delete(QPrinter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/printsupport/gen_qprinterinfo.cpp b/qt/printsupport/gen_qprinterinfo.cpp index 34c5f810..30d9ce38 100644 --- a/qt/printsupport/gen_qprinterinfo.cpp +++ b/qt/printsupport/gen_qprinterinfo.cpp @@ -272,11 +272,7 @@ QPrinterInfo* QPrinterInfo_PrinterInfo(struct miqt_string printerName) { return new QPrinterInfo(QPrinterInfo::printerInfo(printerName_QString)); } -void QPrinterInfo_Delete(QPrinterInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrinterInfo_Delete(QPrinterInfo* self) { + delete self; } diff --git a/qt/printsupport/gen_qprinterinfo.go b/qt/printsupport/gen_qprinterinfo.go index 2d910c39..aaec9938 100644 --- a/qt/printsupport/gen_qprinterinfo.go +++ b/qt/printsupport/gen_qprinterinfo.go @@ -281,7 +281,7 @@ func QPrinterInfo_PrinterInfo(printerName string) *QPrinterInfo { // Delete this object from C++ memory. func (this *QPrinterInfo) Delete() { - C.QPrinterInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QPrinterInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/printsupport/gen_qprinterinfo.h b/qt/printsupport/gen_qprinterinfo.h index 1c101734..c10624fc 100644 --- a/qt/printsupport/gen_qprinterinfo.h +++ b/qt/printsupport/gen_qprinterinfo.h @@ -55,7 +55,7 @@ struct miqt_array /* of QPrinterInfo* */ QPrinterInfo_AvailablePrinters(); struct miqt_string QPrinterInfo_DefaultPrinterName(); QPrinterInfo* QPrinterInfo_DefaultPrinter(); QPrinterInfo* QPrinterInfo_PrinterInfo(struct miqt_string printerName); -void QPrinterInfo_Delete(QPrinterInfo* self, bool isSubclass); +void QPrinterInfo_Delete(QPrinterInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/printsupport/gen_qprintpreviewdialog.cpp b/qt/printsupport/gen_qprintpreviewdialog.cpp index 18ed4c26..859e95b5 100644 --- a/qt/printsupport/gen_qprintpreviewdialog.cpp +++ b/qt/printsupport/gen_qprintpreviewdialog.cpp @@ -41,7 +41,7 @@ bool miqt_exec_callback_QPrintPreviewDialog_EventFilter(void*, intptr_t, QObject } /* extern C */ #endif -class MiqtVirtualQPrintPreviewDialog : public virtual QPrintPreviewDialog { +class MiqtVirtualQPrintPreviewDialog final : public QPrintPreviewDialog { public: MiqtVirtualQPrintPreviewDialog(QWidget* parent): QPrintPreviewDialog(parent) {}; @@ -51,7 +51,7 @@ public: MiqtVirtualQPrintPreviewDialog(QPrinter* printer, QWidget* parent): QPrintPreviewDialog(printer, parent) {}; MiqtVirtualQPrintPreviewDialog(QPrinter* printer, QWidget* parent, Qt::WindowFlags flags): QPrintPreviewDialog(printer, parent, flags) {}; - virtual ~MiqtVirtualQPrintPreviewDialog() = default; + virtual ~MiqtVirtualQPrintPreviewDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -619,11 +619,7 @@ bool QPrintPreviewDialog_virtualbase_EventFilter(void* self, QObject* param1, QE return ( (MiqtVirtualQPrintPreviewDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QPrintPreviewDialog_Delete(QPrintPreviewDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrintPreviewDialog_Delete(QPrintPreviewDialog* self) { + delete self; } diff --git a/qt/printsupport/gen_qprintpreviewdialog.go b/qt/printsupport/gen_qprintpreviewdialog.go index 923f1e9f..c0c99e8c 100644 --- a/qt/printsupport/gen_qprintpreviewdialog.go +++ b/qt/printsupport/gen_qprintpreviewdialog.go @@ -566,7 +566,7 @@ func miqt_exec_callback_QPrintPreviewDialog_EventFilter(self *C.QPrintPreviewDia // Delete this object from C++ memory. func (this *QPrintPreviewDialog) Delete() { - C.QPrintPreviewDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QPrintPreviewDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/printsupport/gen_qprintpreviewdialog.h b/qt/printsupport/gen_qprintpreviewdialog.h index 914430fc..7bc237ff 100644 --- a/qt/printsupport/gen_qprintpreviewdialog.h +++ b/qt/printsupport/gen_qprintpreviewdialog.h @@ -94,7 +94,7 @@ void QPrintPreviewDialog_override_virtual_ContextMenuEvent(void* self, intptr_t void QPrintPreviewDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QPrintPreviewDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QPrintPreviewDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QPrintPreviewDialog_Delete(QPrintPreviewDialog* self, bool isSubclass); +void QPrintPreviewDialog_Delete(QPrintPreviewDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/printsupport/gen_qprintpreviewwidget.cpp b/qt/printsupport/gen_qprintpreviewwidget.cpp index 743fccec..c16a3a46 100644 --- a/qt/printsupport/gen_qprintpreviewwidget.cpp +++ b/qt/printsupport/gen_qprintpreviewwidget.cpp @@ -86,7 +86,7 @@ bool miqt_exec_callback_QPrintPreviewWidget_FocusNextPrevChild(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQPrintPreviewWidget : public virtual QPrintPreviewWidget { +class MiqtVirtualQPrintPreviewWidget final : public QPrintPreviewWidget { public: MiqtVirtualQPrintPreviewWidget(QWidget* parent): QPrintPreviewWidget(parent) {}; @@ -96,7 +96,7 @@ public: MiqtVirtualQPrintPreviewWidget(QPrinter* printer, QWidget* parent, Qt::WindowFlags flags): QPrintPreviewWidget(printer, parent, flags) {}; MiqtVirtualQPrintPreviewWidget(QWidget* parent, Qt::WindowFlags flags): QPrintPreviewWidget(parent, flags) {}; - virtual ~MiqtVirtualQPrintPreviewWidget() = default; + virtual ~MiqtVirtualQPrintPreviewWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -1630,11 +1630,7 @@ bool QPrintPreviewWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQPrintPreviewWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QPrintPreviewWidget_Delete(QPrintPreviewWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrintPreviewWidget_Delete(QPrintPreviewWidget* self) { + delete self; } diff --git a/qt/printsupport/gen_qprintpreviewwidget.go b/qt/printsupport/gen_qprintpreviewwidget.go index d158390e..f58eccd7 100644 --- a/qt/printsupport/gen_qprintpreviewwidget.go +++ b/qt/printsupport/gen_qprintpreviewwidget.go @@ -1416,7 +1416,7 @@ func miqt_exec_callback_QPrintPreviewWidget_FocusNextPrevChild(self *C.QPrintPre // Delete this object from C++ memory. func (this *QPrintPreviewWidget) Delete() { - C.QPrintPreviewWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QPrintPreviewWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/printsupport/gen_qprintpreviewwidget.h b/qt/printsupport/gen_qprintpreviewwidget.h index 30282043..5ec7b9d2 100644 --- a/qt/printsupport/gen_qprintpreviewwidget.h +++ b/qt/printsupport/gen_qprintpreviewwidget.h @@ -204,7 +204,7 @@ void QPrintPreviewWidget_override_virtual_InputMethodQuery(void* self, intptr_t QVariant* QPrintPreviewWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QPrintPreviewWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QPrintPreviewWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QPrintPreviewWidget_Delete(QPrintPreviewWidget* self, bool isSubclass); +void QPrintPreviewWidget_Delete(QPrintPreviewWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptable.cpp b/qt/script/gen_qscriptable.cpp index 19c2ac54..936f40fe 100644 --- a/qt/script/gen_qscriptable.cpp +++ b/qt/script/gen_qscriptable.cpp @@ -37,11 +37,7 @@ QScriptValue* QScriptable_Argument(const QScriptable* self, int index) { return new QScriptValue(self->argument(static_cast(index))); } -void QScriptable_Delete(QScriptable* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptable_Delete(QScriptable* self) { + delete self; } diff --git a/qt/script/gen_qscriptable.go b/qt/script/gen_qscriptable.go index 4236859d..8ef03fed 100644 --- a/qt/script/gen_qscriptable.go +++ b/qt/script/gen_qscriptable.go @@ -80,7 +80,7 @@ func (this *QScriptable) Argument(index int) *QScriptValue { // Delete this object from C++ memory. func (this *QScriptable) Delete() { - C.QScriptable_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptable_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptable.h b/qt/script/gen_qscriptable.h index 9629dd4f..0d8ff035 100644 --- a/qt/script/gen_qscriptable.h +++ b/qt/script/gen_qscriptable.h @@ -32,7 +32,7 @@ QScriptContext* QScriptable_Context(const QScriptable* self); QScriptValue* QScriptable_ThisObject(const QScriptable* self); int QScriptable_ArgumentCount(const QScriptable* self); QScriptValue* QScriptable_Argument(const QScriptable* self, int index); -void QScriptable_Delete(QScriptable* self, bool isSubclass); +void QScriptable_Delete(QScriptable* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptclass.cpp b/qt/script/gen_qscriptclass.cpp index aa3b2791..7d71b4e5 100644 --- a/qt/script/gen_qscriptclass.cpp +++ b/qt/script/gen_qscriptclass.cpp @@ -27,12 +27,12 @@ QVariant* miqt_exec_callback_QScriptClass_Extension(void*, intptr_t, int, QVaria } /* extern C */ #endif -class MiqtVirtualQScriptClass : public virtual QScriptClass { +class MiqtVirtualQScriptClass final : public QScriptClass { public: MiqtVirtualQScriptClass(QScriptEngine* engine): QScriptClass(engine) {}; - virtual ~MiqtVirtualQScriptClass() = default; + virtual ~MiqtVirtualQScriptClass() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__QueryProperty = 0; @@ -417,11 +417,7 @@ QVariant* QScriptClass_virtualbase_Extension(void* self, int extension, QVariant return ( (MiqtVirtualQScriptClass*)(self) )->virtualbase_Extension(extension, argument); } -void QScriptClass_Delete(QScriptClass* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptClass_Delete(QScriptClass* self) { + delete self; } diff --git a/qt/script/gen_qscriptclass.go b/qt/script/gen_qscriptclass.go index 25fc312c..d075f957 100644 --- a/qt/script/gen_qscriptclass.go +++ b/qt/script/gen_qscriptclass.go @@ -399,7 +399,7 @@ func miqt_exec_callback_QScriptClass_Extension(self *C.QScriptClass, cb C.intptr // Delete this object from C++ memory. func (this *QScriptClass) Delete() { - C.QScriptClass_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptClass_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptclass.h b/qt/script/gen_qscriptclass.h index 017aa522..5c2c473e 100644 --- a/qt/script/gen_qscriptclass.h +++ b/qt/script/gen_qscriptclass.h @@ -59,7 +59,7 @@ void QScriptClass_override_virtual_SupportsExtension(void* self, intptr_t slot); bool QScriptClass_virtualbase_SupportsExtension(const void* self, int extension); void QScriptClass_override_virtual_Extension(void* self, intptr_t slot); QVariant* QScriptClass_virtualbase_Extension(void* self, int extension, QVariant* argument); -void QScriptClass_Delete(QScriptClass* self, bool isSubclass); +void QScriptClass_Delete(QScriptClass* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptclasspropertyiterator.cpp b/qt/script/gen_qscriptclasspropertyiterator.cpp index 96caf7a3..c8eb8bad 100644 --- a/qt/script/gen_qscriptclasspropertyiterator.cpp +++ b/qt/script/gen_qscriptclasspropertyiterator.cpp @@ -54,11 +54,7 @@ int QScriptClassPropertyIterator_Flags(const QScriptClassPropertyIterator* self) return static_cast(_ret); } -void QScriptClassPropertyIterator_Delete(QScriptClassPropertyIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptClassPropertyIterator_Delete(QScriptClassPropertyIterator* self) { + delete self; } diff --git a/qt/script/gen_qscriptclasspropertyiterator.go b/qt/script/gen_qscriptclasspropertyiterator.go index 6d476318..9516a4af 100644 --- a/qt/script/gen_qscriptclasspropertyiterator.go +++ b/qt/script/gen_qscriptclasspropertyiterator.go @@ -92,7 +92,7 @@ func (this *QScriptClassPropertyIterator) Flags() QScriptValue__PropertyFlag { // Delete this object from C++ memory. func (this *QScriptClassPropertyIterator) Delete() { - C.QScriptClassPropertyIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptClassPropertyIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptclasspropertyiterator.h b/qt/script/gen_qscriptclasspropertyiterator.h index 2db49d6c..72732c12 100644 --- a/qt/script/gen_qscriptclasspropertyiterator.h +++ b/qt/script/gen_qscriptclasspropertyiterator.h @@ -34,7 +34,7 @@ void QScriptClassPropertyIterator_ToBack(QScriptClassPropertyIterator* self); QScriptString* QScriptClassPropertyIterator_Name(const QScriptClassPropertyIterator* self); unsigned int QScriptClassPropertyIterator_Id(const QScriptClassPropertyIterator* self); int QScriptClassPropertyIterator_Flags(const QScriptClassPropertyIterator* self); -void QScriptClassPropertyIterator_Delete(QScriptClassPropertyIterator* self, bool isSubclass); +void QScriptClassPropertyIterator_Delete(QScriptClassPropertyIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptcontext.cpp b/qt/script/gen_qscriptcontext.cpp index c12fa6de..b3c769b0 100644 --- a/qt/script/gen_qscriptcontext.cpp +++ b/qt/script/gen_qscriptcontext.cpp @@ -139,11 +139,7 @@ struct miqt_string QScriptContext_ToString(const QScriptContext* self) { return _ms; } -void QScriptContext_Delete(QScriptContext* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptContext_Delete(QScriptContext* self) { + delete self; } diff --git a/qt/script/gen_qscriptcontext.go b/qt/script/gen_qscriptcontext.go index 69e1e015..e6e1d8de 100644 --- a/qt/script/gen_qscriptcontext.go +++ b/qt/script/gen_qscriptcontext.go @@ -202,7 +202,7 @@ func (this *QScriptContext) ToString() string { // Delete this object from C++ memory. func (this *QScriptContext) Delete() { - C.QScriptContext_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptContext_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptcontext.h b/qt/script/gen_qscriptcontext.h index 85faa157..b611ed37 100644 --- a/qt/script/gen_qscriptcontext.h +++ b/qt/script/gen_qscriptcontext.h @@ -46,7 +46,7 @@ QScriptValue* QScriptContext_ThrowError(QScriptContext* self, int error, struct QScriptValue* QScriptContext_ThrowErrorWithText(QScriptContext* self, struct miqt_string text); struct miqt_array /* of struct miqt_string */ QScriptContext_Backtrace(const QScriptContext* self); struct miqt_string QScriptContext_ToString(const QScriptContext* self); -void QScriptContext_Delete(QScriptContext* self, bool isSubclass); +void QScriptContext_Delete(QScriptContext* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptcontextinfo.cpp b/qt/script/gen_qscriptcontextinfo.cpp index 86ec3e17..375de586 100644 --- a/qt/script/gen_qscriptcontextinfo.cpp +++ b/qt/script/gen_qscriptcontextinfo.cpp @@ -115,11 +115,7 @@ bool QScriptContextInfo_OperatorNotEqual(const QScriptContextInfo* self, QScript return (*self != *other); } -void QScriptContextInfo_Delete(QScriptContextInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptContextInfo_Delete(QScriptContextInfo* self) { + delete self; } diff --git a/qt/script/gen_qscriptcontextinfo.go b/qt/script/gen_qscriptcontextinfo.go index 8002ca9f..060d9d15 100644 --- a/qt/script/gen_qscriptcontextinfo.go +++ b/qt/script/gen_qscriptcontextinfo.go @@ -152,7 +152,7 @@ func (this *QScriptContextInfo) OperatorNotEqual(other *QScriptContextInfo) bool // Delete this object from C++ memory. func (this *QScriptContextInfo) Delete() { - C.QScriptContextInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptContextInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptcontextinfo.h b/qt/script/gen_qscriptcontextinfo.h index 04053461..3517e539 100644 --- a/qt/script/gen_qscriptcontextinfo.h +++ b/qt/script/gen_qscriptcontextinfo.h @@ -39,7 +39,7 @@ int QScriptContextInfo_FunctionEndLineNumber(const QScriptContextInfo* self); int QScriptContextInfo_FunctionMetaIndex(const QScriptContextInfo* self); bool QScriptContextInfo_OperatorEqual(const QScriptContextInfo* self, QScriptContextInfo* other); bool QScriptContextInfo_OperatorNotEqual(const QScriptContextInfo* self, QScriptContextInfo* other); -void QScriptContextInfo_Delete(QScriptContextInfo* self, bool isSubclass); +void QScriptContextInfo_Delete(QScriptContextInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptengine.cpp b/qt/script/gen_qscriptengine.cpp index 64c07468..c7919103 100644 --- a/qt/script/gen_qscriptengine.cpp +++ b/qt/script/gen_qscriptengine.cpp @@ -70,21 +70,17 @@ void QScriptSyntaxCheckResult_OperatorAssign(QScriptSyntaxCheckResult* self, QSc self->operator=(*other); } -void QScriptSyntaxCheckResult_Delete(QScriptSyntaxCheckResult* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptSyntaxCheckResult_Delete(QScriptSyntaxCheckResult* self) { + delete self; } -class MiqtVirtualQScriptEngine : public virtual QScriptEngine { +class MiqtVirtualQScriptEngine final : public QScriptEngine { public: MiqtVirtualQScriptEngine(): QScriptEngine() {}; MiqtVirtualQScriptEngine(QObject* parent): QScriptEngine(parent) {}; - virtual ~MiqtVirtualQScriptEngine() = default; + virtual ~MiqtVirtualQScriptEngine() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -701,11 +697,7 @@ void QScriptEngine_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQScriptEngine*)(self) )->virtualbase_DisconnectNotify(signal); } -void QScriptEngine_Delete(QScriptEngine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptEngine_Delete(QScriptEngine* self) { + delete self; } diff --git a/qt/script/gen_qscriptengine.go b/qt/script/gen_qscriptengine.go index f64d1c5b..19a0aae6 100644 --- a/qt/script/gen_qscriptengine.go +++ b/qt/script/gen_qscriptengine.go @@ -111,7 +111,7 @@ func (this *QScriptSyntaxCheckResult) OperatorAssign(other *QScriptSyntaxCheckRe // Delete this object from C++ memory. func (this *QScriptSyntaxCheckResult) Delete() { - C.QScriptSyntaxCheckResult_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptSyntaxCheckResult_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -825,7 +825,7 @@ func miqt_exec_callback_QScriptEngine_DisconnectNotify(self *C.QScriptEngine, cb // Delete this object from C++ memory. func (this *QScriptEngine) Delete() { - C.QScriptEngine_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptEngine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptengine.h b/qt/script/gen_qscriptengine.h index c6c99e6f..382da20c 100644 --- a/qt/script/gen_qscriptengine.h +++ b/qt/script/gen_qscriptengine.h @@ -58,7 +58,7 @@ int QScriptSyntaxCheckResult_ErrorLineNumber(const QScriptSyntaxCheckResult* sel int QScriptSyntaxCheckResult_ErrorColumnNumber(const QScriptSyntaxCheckResult* self); struct miqt_string QScriptSyntaxCheckResult_ErrorMessage(const QScriptSyntaxCheckResult* self); void QScriptSyntaxCheckResult_OperatorAssign(QScriptSyntaxCheckResult* self, QScriptSyntaxCheckResult* other); -void QScriptSyntaxCheckResult_Delete(QScriptSyntaxCheckResult* self, bool isSubclass); +void QScriptSyntaxCheckResult_Delete(QScriptSyntaxCheckResult* self); QScriptEngine* QScriptEngine_new(); QScriptEngine* QScriptEngine_new2(QObject* parent); @@ -144,7 +144,7 @@ void QScriptEngine_override_virtual_ConnectNotify(void* self, intptr_t slot); void QScriptEngine_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QScriptEngine_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QScriptEngine_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QScriptEngine_Delete(QScriptEngine* self, bool isSubclass); +void QScriptEngine_Delete(QScriptEngine* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptengineagent.cpp b/qt/script/gen_qscriptengineagent.cpp index 85d6b22b..2061df67 100644 --- a/qt/script/gen_qscriptengineagent.cpp +++ b/qt/script/gen_qscriptengineagent.cpp @@ -27,12 +27,12 @@ QVariant* miqt_exec_callback_QScriptEngineAgent_Extension(void*, intptr_t, int, } /* extern C */ #endif -class MiqtVirtualQScriptEngineAgent : public virtual QScriptEngineAgent { +class MiqtVirtualQScriptEngineAgent final : public QScriptEngineAgent { public: MiqtVirtualQScriptEngineAgent(QScriptEngine* engine): QScriptEngineAgent(engine) {}; - virtual ~MiqtVirtualQScriptEngineAgent() = default; + virtual ~MiqtVirtualQScriptEngineAgent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ScriptLoad = 0; @@ -481,11 +481,7 @@ QVariant* QScriptEngineAgent_virtualbase_Extension(void* self, int extension, QV return ( (MiqtVirtualQScriptEngineAgent*)(self) )->virtualbase_Extension(extension, argument); } -void QScriptEngineAgent_Delete(QScriptEngineAgent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptEngineAgent_Delete(QScriptEngineAgent* self) { + delete self; } diff --git a/qt/script/gen_qscriptengineagent.go b/qt/script/gen_qscriptengineagent.go index 1165e53a..6c2f3f73 100644 --- a/qt/script/gen_qscriptengineagent.go +++ b/qt/script/gen_qscriptengineagent.go @@ -440,7 +440,7 @@ func miqt_exec_callback_QScriptEngineAgent_Extension(self *C.QScriptEngineAgent, // Delete this object from C++ memory. func (this *QScriptEngineAgent) Delete() { - C.QScriptEngineAgent_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptEngineAgent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptengineagent.h b/qt/script/gen_qscriptengineagent.h index 84e5d02e..184e3f84 100644 --- a/qt/script/gen_qscriptengineagent.h +++ b/qt/script/gen_qscriptengineagent.h @@ -61,7 +61,7 @@ void QScriptEngineAgent_override_virtual_SupportsExtension(void* self, intptr_t bool QScriptEngineAgent_virtualbase_SupportsExtension(const void* self, int extension); void QScriptEngineAgent_override_virtual_Extension(void* self, intptr_t slot); QVariant* QScriptEngineAgent_virtualbase_Extension(void* self, int extension, QVariant* argument); -void QScriptEngineAgent_Delete(QScriptEngineAgent* self, bool isSubclass); +void QScriptEngineAgent_Delete(QScriptEngineAgent* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptextensioninterface.cpp b/qt/script/gen_qscriptextensioninterface.cpp index 4ccd2faa..a5b6e408 100644 --- a/qt/script/gen_qscriptextensioninterface.cpp +++ b/qt/script/gen_qscriptextensioninterface.cpp @@ -18,12 +18,12 @@ struct miqt_array /* of struct miqt_string */ miqt_exec_callback_QScriptExtensi } /* extern C */ #endif -class MiqtVirtualQScriptExtensionInterface : public virtual QScriptExtensionInterface { +class MiqtVirtualQScriptExtensionInterface final : public QScriptExtensionInterface { public: MiqtVirtualQScriptExtensionInterface(const QScriptExtensionInterface& param1): QScriptExtensionInterface(param1) {}; - virtual ~MiqtVirtualQScriptExtensionInterface() = default; + virtual ~MiqtVirtualQScriptExtensionInterface() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Initialize = 0; @@ -98,11 +98,7 @@ void QScriptExtensionInterface_override_virtual_Keys(void* self, intptr_t slot) dynamic_cast( (QScriptExtensionInterface*)(self) )->handle__Keys = slot; } -void QScriptExtensionInterface_Delete(QScriptExtensionInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptExtensionInterface_Delete(QScriptExtensionInterface* self) { + delete self; } diff --git a/qt/script/gen_qscriptextensioninterface.go b/qt/script/gen_qscriptextensioninterface.go index 9349137c..ed377d82 100644 --- a/qt/script/gen_qscriptextensioninterface.go +++ b/qt/script/gen_qscriptextensioninterface.go @@ -127,7 +127,7 @@ func miqt_exec_callback_QScriptExtensionInterface_Keys(self *C.QScriptExtensionI // Delete this object from C++ memory. func (this *QScriptExtensionInterface) Delete() { - C.QScriptExtensionInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptExtensionInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptextensioninterface.h b/qt/script/gen_qscriptextensioninterface.h index bb8d9c98..760321bd 100644 --- a/qt/script/gen_qscriptextensioninterface.h +++ b/qt/script/gen_qscriptextensioninterface.h @@ -32,7 +32,7 @@ void QScriptExtensionInterface_override_virtual_Initialize(void* self, intptr_t void QScriptExtensionInterface_virtualbase_Initialize(void* self, struct miqt_string key, QScriptEngine* engine); void QScriptExtensionInterface_override_virtual_Keys(void* self, intptr_t slot); struct miqt_array /* of struct miqt_string */ QScriptExtensionInterface_virtualbase_Keys(const void* self); -void QScriptExtensionInterface_Delete(QScriptExtensionInterface* self, bool isSubclass); +void QScriptExtensionInterface_Delete(QScriptExtensionInterface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptextensionplugin.cpp b/qt/script/gen_qscriptextensionplugin.cpp index 248213af..d6d224c3 100644 --- a/qt/script/gen_qscriptextensionplugin.cpp +++ b/qt/script/gen_qscriptextensionplugin.cpp @@ -33,13 +33,13 @@ void miqt_exec_callback_QScriptExtensionPlugin_DisconnectNotify(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQScriptExtensionPlugin : public virtual QScriptExtensionPlugin { +class MiqtVirtualQScriptExtensionPlugin final : public QScriptExtensionPlugin { public: MiqtVirtualQScriptExtensionPlugin(): QScriptExtensionPlugin() {}; MiqtVirtualQScriptExtensionPlugin(QObject* parent): QScriptExtensionPlugin(parent) {}; - virtual ~MiqtVirtualQScriptExtensionPlugin() = default; + virtual ~MiqtVirtualQScriptExtensionPlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Keys = 0; @@ -441,11 +441,7 @@ void QScriptExtensionPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod ( (MiqtVirtualQScriptExtensionPlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QScriptExtensionPlugin_Delete(QScriptExtensionPlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptExtensionPlugin_Delete(QScriptExtensionPlugin* self) { + delete self; } diff --git a/qt/script/gen_qscriptextensionplugin.go b/qt/script/gen_qscriptextensionplugin.go index 43402fa5..b66dff2f 100644 --- a/qt/script/gen_qscriptextensionplugin.go +++ b/qt/script/gen_qscriptextensionplugin.go @@ -417,7 +417,7 @@ func miqt_exec_callback_QScriptExtensionPlugin_DisconnectNotify(self *C.QScriptE // Delete this object from C++ memory. func (this *QScriptExtensionPlugin) Delete() { - C.QScriptExtensionPlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptExtensionPlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptextensionplugin.h b/qt/script/gen_qscriptextensionplugin.h index 3d5a065c..3d393190 100644 --- a/qt/script/gen_qscriptextensionplugin.h +++ b/qt/script/gen_qscriptextensionplugin.h @@ -72,7 +72,7 @@ void QScriptExtensionPlugin_override_virtual_ConnectNotify(void* self, intptr_t void QScriptExtensionPlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QScriptExtensionPlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QScriptExtensionPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QScriptExtensionPlugin_Delete(QScriptExtensionPlugin* self, bool isSubclass); +void QScriptExtensionPlugin_Delete(QScriptExtensionPlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptprogram.cpp b/qt/script/gen_qscriptprogram.cpp index 9d5ab1ab..6c5edc57 100644 --- a/qt/script/gen_qscriptprogram.cpp +++ b/qt/script/gen_qscriptprogram.cpp @@ -80,11 +80,7 @@ bool QScriptProgram_OperatorNotEqual(const QScriptProgram* self, QScriptProgram* return (*self != *other); } -void QScriptProgram_Delete(QScriptProgram* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptProgram_Delete(QScriptProgram* self) { + delete self; } diff --git a/qt/script/gen_qscriptprogram.go b/qt/script/gen_qscriptprogram.go index 94cb3a8c..4cb6becc 100644 --- a/qt/script/gen_qscriptprogram.go +++ b/qt/script/gen_qscriptprogram.go @@ -142,7 +142,7 @@ func (this *QScriptProgram) OperatorNotEqual(other *QScriptProgram) bool { // Delete this object from C++ memory. func (this *QScriptProgram) Delete() { - C.QScriptProgram_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptProgram_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptprogram.h b/qt/script/gen_qscriptprogram.h index 4f44e750..0a2b8f3f 100644 --- a/qt/script/gen_qscriptprogram.h +++ b/qt/script/gen_qscriptprogram.h @@ -32,7 +32,7 @@ struct miqt_string QScriptProgram_FileName(const QScriptProgram* self); int QScriptProgram_FirstLineNumber(const QScriptProgram* self); bool QScriptProgram_OperatorEqual(const QScriptProgram* self, QScriptProgram* other); bool QScriptProgram_OperatorNotEqual(const QScriptProgram* self, QScriptProgram* other); -void QScriptProgram_Delete(QScriptProgram* self, bool isSubclass); +void QScriptProgram_Delete(QScriptProgram* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptstring.cpp b/qt/script/gen_qscriptstring.cpp index 4ffff822..b7ce4245 100644 --- a/qt/script/gen_qscriptstring.cpp +++ b/qt/script/gen_qscriptstring.cpp @@ -69,11 +69,7 @@ unsigned int QScriptString_ToArrayIndex1(const QScriptString* self, bool* ok) { return static_cast(_ret); } -void QScriptString_Delete(QScriptString* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptString_Delete(QScriptString* self) { + delete self; } diff --git a/qt/script/gen_qscriptstring.go b/qt/script/gen_qscriptstring.go index 55faac77..a1749134 100644 --- a/qt/script/gen_qscriptstring.go +++ b/qt/script/gen_qscriptstring.go @@ -102,7 +102,7 @@ func (this *QScriptString) ToArrayIndex1(ok *bool) uint { // Delete this object from C++ memory. func (this *QScriptString) Delete() { - C.QScriptString_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptString_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptstring.h b/qt/script/gen_qscriptstring.h index ae353494..88f6b343 100644 --- a/qt/script/gen_qscriptstring.h +++ b/qt/script/gen_qscriptstring.h @@ -30,7 +30,7 @@ unsigned int QScriptString_ToArrayIndex(const QScriptString* self); struct miqt_string QScriptString_ToString(const QScriptString* self); struct miqt_string QScriptString_ToQString(const QScriptString* self); unsigned int QScriptString_ToArrayIndex1(const QScriptString* self, bool* ok); -void QScriptString_Delete(QScriptString* self, bool isSubclass); +void QScriptString_Delete(QScriptString* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptvalue.cpp b/qt/script/gen_qscriptvalue.cpp index d0d4303c..ecb64fbc 100644 --- a/qt/script/gen_qscriptvalue.cpp +++ b/qt/script/gen_qscriptvalue.cpp @@ -395,11 +395,7 @@ QScriptValue* QScriptValue_Construct1(QScriptValue* self, struct miqt_array /* o return new QScriptValue(self->construct(args_QList)); } -void QScriptValue_Delete(QScriptValue* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptValue_Delete(QScriptValue* self) { + delete self; } diff --git a/qt/script/gen_qscriptvalue.go b/qt/script/gen_qscriptvalue.go index f891e706..c511c440 100644 --- a/qt/script/gen_qscriptvalue.go +++ b/qt/script/gen_qscriptvalue.go @@ -568,7 +568,7 @@ func (this *QScriptValue) Construct1(args []QScriptValue) *QScriptValue { // Delete this object from C++ memory. func (this *QScriptValue) Delete() { - C.QScriptValue_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptValue_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptvalue.h b/qt/script/gen_qscriptvalue.h index 2b6dfad9..dd9822e9 100644 --- a/qt/script/gen_qscriptvalue.h +++ b/qt/script/gen_qscriptvalue.h @@ -120,7 +120,7 @@ int QScriptValue_PropertyFlags22(const QScriptValue* self, QScriptString* name, QScriptValue* QScriptValue_Call1(QScriptValue* self, QScriptValue* thisObject); QScriptValue* QScriptValue_Call22(QScriptValue* self, QScriptValue* thisObject, struct miqt_array /* of QScriptValue* */ args); QScriptValue* QScriptValue_Construct1(QScriptValue* self, struct miqt_array /* of QScriptValue* */ args); -void QScriptValue_Delete(QScriptValue* self, bool isSubclass); +void QScriptValue_Delete(QScriptValue* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/script/gen_qscriptvalueiterator.cpp b/qt/script/gen_qscriptvalueiterator.cpp index 36acda73..11e032fe 100644 --- a/qt/script/gen_qscriptvalueiterator.cpp +++ b/qt/script/gen_qscriptvalueiterator.cpp @@ -79,11 +79,7 @@ void QScriptValueIterator_OperatorAssign(QScriptValueIterator* self, QScriptValu self->operator=(*value); } -void QScriptValueIterator_Delete(QScriptValueIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScriptValueIterator_Delete(QScriptValueIterator* self) { + delete self; } diff --git a/qt/script/gen_qscriptvalueiterator.go b/qt/script/gen_qscriptvalueiterator.go index 07e82027..7fd9994b 100644 --- a/qt/script/gen_qscriptvalueiterator.go +++ b/qt/script/gen_qscriptvalueiterator.go @@ -115,7 +115,7 @@ func (this *QScriptValueIterator) OperatorAssign(value *QScriptValue) { // Delete this object from C++ memory. func (this *QScriptValueIterator) Delete() { - C.QScriptValueIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QScriptValueIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/script/gen_qscriptvalueiterator.h b/qt/script/gen_qscriptvalueiterator.h index f2677248..2b78f2b5 100644 --- a/qt/script/gen_qscriptvalueiterator.h +++ b/qt/script/gen_qscriptvalueiterator.h @@ -38,7 +38,7 @@ void QScriptValueIterator_Remove(QScriptValueIterator* self); void QScriptValueIterator_ToFront(QScriptValueIterator* self); void QScriptValueIterator_ToBack(QScriptValueIterator* self); void QScriptValueIterator_OperatorAssign(QScriptValueIterator* self, QScriptValue* value); -void QScriptValueIterator_Delete(QScriptValueIterator* self, bool isSubclass); +void QScriptValueIterator_Delete(QScriptValueIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/svg/gen_qgraphicssvgitem.cpp b/qt/svg/gen_qgraphicssvgitem.cpp index f47a4f19..e5863f9f 100644 --- a/qt/svg/gen_qgraphicssvgitem.cpp +++ b/qt/svg/gen_qgraphicssvgitem.cpp @@ -28,7 +28,7 @@ bool miqt_exec_callback_QGraphicsSvgItem_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQGraphicsSvgItem : public virtual QGraphicsSvgItem { +class MiqtVirtualQGraphicsSvgItem final : public QGraphicsSvgItem { public: MiqtVirtualQGraphicsSvgItem(): QGraphicsSvgItem() {}; @@ -36,7 +36,7 @@ public: MiqtVirtualQGraphicsSvgItem(QGraphicsItem* parentItem): QGraphicsSvgItem(parentItem) {}; MiqtVirtualQGraphicsSvgItem(const QString& fileName, QGraphicsItem* parentItem): QGraphicsSvgItem(fileName, parentItem) {}; - virtual ~MiqtVirtualQGraphicsSvgItem() = default; + virtual ~MiqtVirtualQGraphicsSvgItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -313,11 +313,7 @@ bool QGraphicsSvgItem_virtualbase_Event(void* self, QEvent* ev) { return ( (MiqtVirtualQGraphicsSvgItem*)(self) )->virtualbase_Event(ev); } -void QGraphicsSvgItem_Delete(QGraphicsSvgItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSvgItem_Delete(QGraphicsSvgItem* self) { + delete self; } diff --git a/qt/svg/gen_qgraphicssvgitem.go b/qt/svg/gen_qgraphicssvgitem.go index 603cb158..0fd38a42 100644 --- a/qt/svg/gen_qgraphicssvgitem.go +++ b/qt/svg/gen_qgraphicssvgitem.go @@ -337,7 +337,7 @@ func miqt_exec_callback_QGraphicsSvgItem_Event(self *C.QGraphicsSvgItem, cb C.in // Delete this object from C++ memory. func (this *QGraphicsSvgItem) Delete() { - C.QGraphicsSvgItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSvgItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/svg/gen_qgraphicssvgitem.h b/qt/svg/gen_qgraphicssvgitem.h index 96ecdc44..96c110f8 100644 --- a/qt/svg/gen_qgraphicssvgitem.h +++ b/qt/svg/gen_qgraphicssvgitem.h @@ -74,7 +74,7 @@ void QGraphicsSvgItem_override_virtual_Type(void* self, intptr_t slot); int QGraphicsSvgItem_virtualbase_Type(const void* self); void QGraphicsSvgItem_override_virtual_Event(void* self, intptr_t slot); bool QGraphicsSvgItem_virtualbase_Event(void* self, QEvent* ev); -void QGraphicsSvgItem_Delete(QGraphicsSvgItem* self, bool isSubclass); +void QGraphicsSvgItem_Delete(QGraphicsSvgItem* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/svg/gen_qsvggenerator.cpp b/qt/svg/gen_qsvggenerator.cpp index b6751a4a..ce2cc0e9 100644 --- a/qt/svg/gen_qsvggenerator.cpp +++ b/qt/svg/gen_qsvggenerator.cpp @@ -27,12 +27,12 @@ QPainter* miqt_exec_callback_QSvgGenerator_SharedPainter(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQSvgGenerator : public virtual QSvgGenerator { +class MiqtVirtualQSvgGenerator final : public QSvgGenerator { public: MiqtVirtualQSvgGenerator(): QSvgGenerator() {}; - virtual ~MiqtVirtualQSvgGenerator() = default; + virtual ~MiqtVirtualQSvgGenerator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__PaintEngine = 0; @@ -317,11 +317,7 @@ QPainter* QSvgGenerator_virtualbase_SharedPainter(const void* self) { return ( (const MiqtVirtualQSvgGenerator*)(self) )->virtualbase_SharedPainter(); } -void QSvgGenerator_Delete(QSvgGenerator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSvgGenerator_Delete(QSvgGenerator* self) { + delete self; } diff --git a/qt/svg/gen_qsvggenerator.go b/qt/svg/gen_qsvggenerator.go index b857a704..089402b8 100644 --- a/qt/svg/gen_qsvggenerator.go +++ b/qt/svg/gen_qsvggenerator.go @@ -310,7 +310,7 @@ func miqt_exec_callback_QSvgGenerator_SharedPainter(self *C.QSvgGenerator, cb C. // Delete this object from C++ memory. func (this *QSvgGenerator) Delete() { - C.QSvgGenerator_Delete(this.h, C.bool(this.isSubclass)) + C.QSvgGenerator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/svg/gen_qsvggenerator.h b/qt/svg/gen_qsvggenerator.h index bf2497c6..b2fa464b 100644 --- a/qt/svg/gen_qsvggenerator.h +++ b/qt/svg/gen_qsvggenerator.h @@ -68,7 +68,7 @@ void QSvgGenerator_override_virtual_Redirected(void* self, intptr_t slot); QPaintDevice* QSvgGenerator_virtualbase_Redirected(const void* self, QPoint* offset); void QSvgGenerator_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QSvgGenerator_virtualbase_SharedPainter(const void* self); -void QSvgGenerator_Delete(QSvgGenerator* self, bool isSubclass); +void QSvgGenerator_Delete(QSvgGenerator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/svg/gen_qsvgrenderer.cpp b/qt/svg/gen_qsvgrenderer.cpp index 45c7dd08..4606f73f 100644 --- a/qt/svg/gen_qsvgrenderer.cpp +++ b/qt/svg/gen_qsvgrenderer.cpp @@ -35,7 +35,7 @@ void miqt_exec_callback_QSvgRenderer_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQSvgRenderer : public virtual QSvgRenderer { +class MiqtVirtualQSvgRenderer final : public QSvgRenderer { public: MiqtVirtualQSvgRenderer(): QSvgRenderer() {}; @@ -47,7 +47,7 @@ public: MiqtVirtualQSvgRenderer(const QByteArray& contents, QObject* parent): QSvgRenderer(contents, parent) {}; MiqtVirtualQSvgRenderer(QXmlStreamReader* contents, QObject* parent): QSvgRenderer(contents, parent) {}; - virtual ~MiqtVirtualQSvgRenderer() = default; + virtual ~MiqtVirtualQSvgRenderer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -511,11 +511,7 @@ void QSvgRenderer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQSvgRenderer*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSvgRenderer_Delete(QSvgRenderer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSvgRenderer_Delete(QSvgRenderer* self) { + delete self; } diff --git a/qt/svg/gen_qsvgrenderer.go b/qt/svg/gen_qsvgrenderer.go index 0b058678..9e6b03c9 100644 --- a/qt/svg/gen_qsvgrenderer.go +++ b/qt/svg/gen_qsvgrenderer.go @@ -552,7 +552,7 @@ func miqt_exec_callback_QSvgRenderer_DisconnectNotify(self *C.QSvgRenderer, cb C // Delete this object from C++ memory. func (this *QSvgRenderer) Delete() { - C.QSvgRenderer_Delete(this.h, C.bool(this.isSubclass)) + C.QSvgRenderer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/svg/gen_qsvgrenderer.h b/qt/svg/gen_qsvgrenderer.h index 302175a4..6bf8bb05 100644 --- a/qt/svg/gen_qsvgrenderer.h +++ b/qt/svg/gen_qsvgrenderer.h @@ -104,7 +104,7 @@ void QSvgRenderer_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSvgRenderer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSvgRenderer_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSvgRenderer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSvgRenderer_Delete(QSvgRenderer* self, bool isSubclass); +void QSvgRenderer_Delete(QSvgRenderer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/svg/gen_qsvgwidget.cpp b/qt/svg/gen_qsvgwidget.cpp index 223f57be..be8ade5a 100644 --- a/qt/svg/gen_qsvgwidget.cpp +++ b/qt/svg/gen_qsvgwidget.cpp @@ -84,7 +84,7 @@ bool miqt_exec_callback_QSvgWidget_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQSvgWidget : public virtual QSvgWidget { +class MiqtVirtualQSvgWidget final : public QSvgWidget { public: MiqtVirtualQSvgWidget(QWidget* parent): QSvgWidget(parent) {}; @@ -92,7 +92,7 @@ public: MiqtVirtualQSvgWidget(const QString& file): QSvgWidget(file) {}; MiqtVirtualQSvgWidget(const QString& file, QWidget* parent): QSvgWidget(file, parent) {}; - virtual ~MiqtVirtualQSvgWidget() = default; + virtual ~MiqtVirtualQSvgWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1513,11 +1513,7 @@ bool QSvgWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQSvgWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QSvgWidget_Delete(QSvgWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSvgWidget_Delete(QSvgWidget* self) { + delete self; } diff --git a/qt/svg/gen_qsvgwidget.go b/qt/svg/gen_qsvgwidget.go index c2e9dc02..7fadcc8f 100644 --- a/qt/svg/gen_qsvgwidget.go +++ b/qt/svg/gen_qsvgwidget.go @@ -1280,7 +1280,7 @@ func miqt_exec_callback_QSvgWidget_FocusNextPrevChild(self *C.QSvgWidget, cb C.i // Delete this object from C++ memory. func (this *QSvgWidget) Delete() { - C.QSvgWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QSvgWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/svg/gen_qsvgwidget.h b/qt/svg/gen_qsvgwidget.h index 9ea599c4..f3df4dac 100644 --- a/qt/svg/gen_qsvgwidget.h +++ b/qt/svg/gen_qsvgwidget.h @@ -178,7 +178,7 @@ void QSvgWidget_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QSvgWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QSvgWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QSvgWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QSvgWidget_Delete(QSvgWidget* self, bool isSubclass); +void QSvgWidget_Delete(QSvgWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webchannel/gen_qqmlwebchannel.cpp b/qt/webchannel/gen_qqmlwebchannel.cpp index b093022a..5c7cec6e 100644 --- a/qt/webchannel/gen_qqmlwebchannel.cpp +++ b/qt/webchannel/gen_qqmlwebchannel.cpp @@ -123,11 +123,7 @@ struct miqt_string QQmlWebChannel_TrUtf83(const char* s, const char* c, int n) { return _ms; } -void QQmlWebChannel_Delete(QQmlWebChannel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QQmlWebChannel_Delete(QQmlWebChannel* self) { + delete self; } diff --git a/qt/webchannel/gen_qqmlwebchannel.go b/qt/webchannel/gen_qqmlwebchannel.go index c91f20ae..3d39f012 100644 --- a/qt/webchannel/gen_qqmlwebchannel.go +++ b/qt/webchannel/gen_qqmlwebchannel.go @@ -172,7 +172,7 @@ func QQmlWebChannel_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QQmlWebChannel) Delete() { - C.QQmlWebChannel_Delete(this.h, C.bool(this.isSubclass)) + C.QQmlWebChannel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webchannel/gen_qqmlwebchannel.h b/qt/webchannel/gen_qqmlwebchannel.h index 4c3a9353..f28a6a99 100644 --- a/qt/webchannel/gen_qqmlwebchannel.h +++ b/qt/webchannel/gen_qqmlwebchannel.h @@ -42,7 +42,7 @@ struct miqt_string QQmlWebChannel_Tr2(const char* s, const char* c); struct miqt_string QQmlWebChannel_Tr3(const char* s, const char* c, int n); struct miqt_string QQmlWebChannel_TrUtf82(const char* s, const char* c); struct miqt_string QQmlWebChannel_TrUtf83(const char* s, const char* c, int n); -void QQmlWebChannel_Delete(QQmlWebChannel* self, bool isSubclass); +void QQmlWebChannel_Delete(QQmlWebChannel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webchannel/gen_qwebchannel.cpp b/qt/webchannel/gen_qwebchannel.cpp index f1d865c9..ee8ecbb9 100644 --- a/qt/webchannel/gen_qwebchannel.cpp +++ b/qt/webchannel/gen_qwebchannel.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QWebChannel_DisconnectNotify(void*, intptr_t, QMetaMetho } /* extern C */ #endif -class MiqtVirtualQWebChannel : public virtual QWebChannel { +class MiqtVirtualQWebChannel final : public QWebChannel { public: MiqtVirtualQWebChannel(): QWebChannel() {}; MiqtVirtualQWebChannel(QObject* parent): QWebChannel(parent) {}; - virtual ~MiqtVirtualQWebChannel() = default; + virtual ~MiqtVirtualQWebChannel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -425,11 +425,7 @@ void QWebChannel_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQWebChannel*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebChannel_Delete(QWebChannel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebChannel_Delete(QWebChannel* self) { + delete self; } diff --git a/qt/webchannel/gen_qwebchannel.go b/qt/webchannel/gen_qwebchannel.go index 55a4ff6f..ca079769 100644 --- a/qt/webchannel/gen_qwebchannel.go +++ b/qt/webchannel/gen_qwebchannel.go @@ -418,7 +418,7 @@ func miqt_exec_callback_QWebChannel_DisconnectNotify(self *C.QWebChannel, cb C.i // Delete this object from C++ memory. func (this *QWebChannel) Delete() { - C.QWebChannel_Delete(this.h, C.bool(this.isSubclass)) + C.QWebChannel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webchannel/gen_qwebchannel.h b/qt/webchannel/gen_qwebchannel.h index ebf11bde..8cfcbe69 100644 --- a/qt/webchannel/gen_qwebchannel.h +++ b/qt/webchannel/gen_qwebchannel.h @@ -69,7 +69,7 @@ void QWebChannel_override_virtual_ConnectNotify(void* self, intptr_t slot); void QWebChannel_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebChannel_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebChannel_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebChannel_Delete(QWebChannel* self, bool isSubclass); +void QWebChannel_Delete(QWebChannel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webchannel/gen_qwebchannelabstracttransport.cpp b/qt/webchannel/gen_qwebchannelabstracttransport.cpp index ec578a79..f3a6fd29 100644 --- a/qt/webchannel/gen_qwebchannelabstracttransport.cpp +++ b/qt/webchannel/gen_qwebchannelabstracttransport.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QWebChannelAbstractTransport_DisconnectNotify(void*, int } /* extern C */ #endif -class MiqtVirtualQWebChannelAbstractTransport : public virtual QWebChannelAbstractTransport { +class MiqtVirtualQWebChannelAbstractTransport final : public QWebChannelAbstractTransport { public: MiqtVirtualQWebChannelAbstractTransport(): QWebChannelAbstractTransport() {}; MiqtVirtualQWebChannelAbstractTransport(QObject* parent): QWebChannelAbstractTransport(parent) {}; - virtual ~MiqtVirtualQWebChannelAbstractTransport() = default; + virtual ~MiqtVirtualQWebChannelAbstractTransport() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SendMessage = 0; @@ -392,11 +392,7 @@ void QWebChannelAbstractTransport_virtualbase_DisconnectNotify(void* self, QMeta ( (MiqtVirtualQWebChannelAbstractTransport*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebChannelAbstractTransport_Delete(QWebChannelAbstractTransport* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebChannelAbstractTransport_Delete(QWebChannelAbstractTransport* self) { + delete self; } diff --git a/qt/webchannel/gen_qwebchannelabstracttransport.go b/qt/webchannel/gen_qwebchannelabstracttransport.go index 60f35cea..1bb7f974 100644 --- a/qt/webchannel/gen_qwebchannelabstracttransport.go +++ b/qt/webchannel/gen_qwebchannelabstracttransport.go @@ -376,7 +376,7 @@ func miqt_exec_callback_QWebChannelAbstractTransport_DisconnectNotify(self *C.QW // Delete this object from C++ memory. func (this *QWebChannelAbstractTransport) Delete() { - C.QWebChannelAbstractTransport_Delete(this.h, C.bool(this.isSubclass)) + C.QWebChannelAbstractTransport_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webchannel/gen_qwebchannelabstracttransport.h b/qt/webchannel/gen_qwebchannelabstracttransport.h index 88156618..fa7d09d4 100644 --- a/qt/webchannel/gen_qwebchannelabstracttransport.h +++ b/qt/webchannel/gen_qwebchannelabstracttransport.h @@ -64,7 +64,7 @@ void QWebChannelAbstractTransport_override_virtual_ConnectNotify(void* self, int void QWebChannelAbstractTransport_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebChannelAbstractTransport_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebChannelAbstractTransport_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebChannelAbstractTransport_Delete(QWebChannelAbstractTransport* self, bool isSubclass); +void QWebChannelAbstractTransport_Delete(QWebChannelAbstractTransport* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginecertificateerror.cpp b/qt/webengine/gen_qwebenginecertificateerror.cpp index fd624802..00bb8a8a 100644 --- a/qt/webengine/gen_qwebenginecertificateerror.cpp +++ b/qt/webengine/gen_qwebenginecertificateerror.cpp @@ -86,11 +86,7 @@ struct miqt_array /* of QSslCertificate* */ QWebEngineCertificateError_Certific return _out; } -void QWebEngineCertificateError_Delete(QWebEngineCertificateError* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineCertificateError_Delete(QWebEngineCertificateError* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginecertificateerror.go b/qt/webengine/gen_qwebenginecertificateerror.go index 0fdf6dae..b102a4cc 100644 --- a/qt/webengine/gen_qwebenginecertificateerror.go +++ b/qt/webengine/gen_qwebenginecertificateerror.go @@ -148,7 +148,7 @@ func (this *QWebEngineCertificateError) CertificateChain() []network.QSslCertifi // Delete this object from C++ memory. func (this *QWebEngineCertificateError) Delete() { - C.QWebEngineCertificateError_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineCertificateError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginecertificateerror.h b/qt/webengine/gen_qwebenginecertificateerror.h index c64c82ed..efebb287 100644 --- a/qt/webengine/gen_qwebenginecertificateerror.h +++ b/qt/webengine/gen_qwebenginecertificateerror.h @@ -37,7 +37,7 @@ void QWebEngineCertificateError_RejectCertificate(QWebEngineCertificateError* se void QWebEngineCertificateError_IgnoreCertificateError(QWebEngineCertificateError* self); bool QWebEngineCertificateError_Answered(const QWebEngineCertificateError* self); struct miqt_array /* of QSslCertificate* */ QWebEngineCertificateError_CertificateChain(const QWebEngineCertificateError* self); -void QWebEngineCertificateError_Delete(QWebEngineCertificateError* self, bool isSubclass); +void QWebEngineCertificateError_Delete(QWebEngineCertificateError* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebengineclientcertificateselection.cpp b/qt/webengine/gen_qwebengineclientcertificateselection.cpp index e1ad32d1..73102bab 100644 --- a/qt/webengine/gen_qwebengineclientcertificateselection.cpp +++ b/qt/webengine/gen_qwebengineclientcertificateselection.cpp @@ -46,11 +46,7 @@ struct miqt_array /* of QSslCertificate* */ QWebEngineClientCertificateSelectio return _out; } -void QWebEngineClientCertificateSelection_Delete(QWebEngineClientCertificateSelection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineClientCertificateSelection_Delete(QWebEngineClientCertificateSelection* self) { + delete self; } diff --git a/qt/webengine/gen_qwebengineclientcertificateselection.go b/qt/webengine/gen_qwebengineclientcertificateselection.go index 2608da25..120d238d 100644 --- a/qt/webengine/gen_qwebengineclientcertificateselection.go +++ b/qt/webengine/gen_qwebengineclientcertificateselection.go @@ -88,7 +88,7 @@ func (this *QWebEngineClientCertificateSelection) Certificates() []network.QSslC // Delete this object from C++ memory. func (this *QWebEngineClientCertificateSelection) Delete() { - C.QWebEngineClientCertificateSelection_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineClientCertificateSelection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebengineclientcertificateselection.h b/qt/webengine/gen_qwebengineclientcertificateselection.h index f66094d8..589a822b 100644 --- a/qt/webengine/gen_qwebengineclientcertificateselection.h +++ b/qt/webengine/gen_qwebengineclientcertificateselection.h @@ -30,7 +30,7 @@ QUrl* QWebEngineClientCertificateSelection_Host(const QWebEngineClientCertificat void QWebEngineClientCertificateSelection_Select(QWebEngineClientCertificateSelection* self, QSslCertificate* certificate); void QWebEngineClientCertificateSelection_SelectNone(QWebEngineClientCertificateSelection* self); struct miqt_array /* of QSslCertificate* */ QWebEngineClientCertificateSelection_Certificates(const QWebEngineClientCertificateSelection* self); -void QWebEngineClientCertificateSelection_Delete(QWebEngineClientCertificateSelection* self, bool isSubclass); +void QWebEngineClientCertificateSelection_Delete(QWebEngineClientCertificateSelection* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginecontextmenudata.cpp b/qt/webengine/gen_qwebenginecontextmenudata.cpp index 8ecd3832..5b874d5b 100644 --- a/qt/webengine/gen_qwebenginecontextmenudata.cpp +++ b/qt/webengine/gen_qwebenginecontextmenudata.cpp @@ -116,11 +116,7 @@ int QWebEngineContextMenuData_EditFlags(const QWebEngineContextMenuData* self) { return static_cast(_ret); } -void QWebEngineContextMenuData_Delete(QWebEngineContextMenuData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineContextMenuData_Delete(QWebEngineContextMenuData* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginecontextmenudata.go b/qt/webengine/gen_qwebenginecontextmenudata.go index 24735b5f..07b3e45d 100644 --- a/qt/webengine/gen_qwebenginecontextmenudata.go +++ b/qt/webengine/gen_qwebenginecontextmenudata.go @@ -182,7 +182,7 @@ func (this *QWebEngineContextMenuData) EditFlags() QWebEngineContextMenuData__Ed // Delete this object from C++ memory. func (this *QWebEngineContextMenuData) Delete() { - C.QWebEngineContextMenuData_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineContextMenuData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginecontextmenudata.h b/qt/webengine/gen_qwebenginecontextmenudata.h index 48d12e8e..95216644 100644 --- a/qt/webengine/gen_qwebenginecontextmenudata.h +++ b/qt/webengine/gen_qwebenginecontextmenudata.h @@ -39,7 +39,7 @@ struct miqt_string QWebEngineContextMenuData_MisspelledWord(const QWebEngineCont struct miqt_array /* of struct miqt_string */ QWebEngineContextMenuData_SpellCheckerSuggestions(const QWebEngineContextMenuData* self); int QWebEngineContextMenuData_MediaFlags(const QWebEngineContextMenuData* self); int QWebEngineContextMenuData_EditFlags(const QWebEngineContextMenuData* self); -void QWebEngineContextMenuData_Delete(QWebEngineContextMenuData* self, bool isSubclass); +void QWebEngineContextMenuData_Delete(QWebEngineContextMenuData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginecookiestore.cpp b/qt/webengine/gen_qwebenginecookiestore.cpp index 1dc3bf00..2db53264 100644 --- a/qt/webengine/gen_qwebenginecookiestore.cpp +++ b/qt/webengine/gen_qwebenginecookiestore.cpp @@ -152,12 +152,8 @@ void QWebEngineCookieStore_DeleteCookie2(QWebEngineCookieStore* self, QNetworkCo self->deleteCookie(*cookie, *origin); } -void QWebEngineCookieStore_Delete(QWebEngineCookieStore* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineCookieStore_Delete(QWebEngineCookieStore* self) { + delete self; } QWebEngineCookieStore__FilterRequest* QWebEngineCookieStore__FilterRequest_new(QWebEngineCookieStore__FilterRequest* param1) { @@ -168,11 +164,7 @@ void QWebEngineCookieStore__FilterRequest_OperatorAssign(QWebEngineCookieStore__ self->operator=(*param1); } -void QWebEngineCookieStore__FilterRequest_Delete(QWebEngineCookieStore__FilterRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineCookieStore__FilterRequest_Delete(QWebEngineCookieStore__FilterRequest* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginecookiestore.go b/qt/webengine/gen_qwebenginecookiestore.go index 4a51d8f5..7b59e1e6 100644 --- a/qt/webengine/gen_qwebenginecookiestore.go +++ b/qt/webengine/gen_qwebenginecookiestore.go @@ -195,7 +195,7 @@ func (this *QWebEngineCookieStore) DeleteCookie2(cookie *network.QNetworkCookie, // Delete this object from C++ memory. func (this *QWebEngineCookieStore) Delete() { - C.QWebEngineCookieStore_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineCookieStore_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -254,7 +254,7 @@ func (this *QWebEngineCookieStore__FilterRequest) OperatorAssign(param1 *QWebEng // Delete this object from C++ memory. func (this *QWebEngineCookieStore__FilterRequest) Delete() { - C.QWebEngineCookieStore__FilterRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineCookieStore__FilterRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginecookiestore.h b/qt/webengine/gen_qwebenginecookiestore.h index abd98418..2303c743 100644 --- a/qt/webengine/gen_qwebenginecookiestore.h +++ b/qt/webengine/gen_qwebenginecookiestore.h @@ -54,11 +54,11 @@ struct miqt_string QWebEngineCookieStore_TrUtf82(const char* s, const char* c); struct miqt_string QWebEngineCookieStore_TrUtf83(const char* s, const char* c, int n); void QWebEngineCookieStore_SetCookie2(QWebEngineCookieStore* self, QNetworkCookie* cookie, QUrl* origin); void QWebEngineCookieStore_DeleteCookie2(QWebEngineCookieStore* self, QNetworkCookie* cookie, QUrl* origin); -void QWebEngineCookieStore_Delete(QWebEngineCookieStore* self, bool isSubclass); +void QWebEngineCookieStore_Delete(QWebEngineCookieStore* self); QWebEngineCookieStore__FilterRequest* QWebEngineCookieStore__FilterRequest_new(QWebEngineCookieStore__FilterRequest* param1); void QWebEngineCookieStore__FilterRequest_OperatorAssign(QWebEngineCookieStore__FilterRequest* self, QWebEngineCookieStore__FilterRequest* param1); -void QWebEngineCookieStore__FilterRequest_Delete(QWebEngineCookieStore__FilterRequest* self, bool isSubclass); +void QWebEngineCookieStore__FilterRequest_Delete(QWebEngineCookieStore__FilterRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginedownloaditem.cpp b/qt/webengine/gen_qwebenginedownloaditem.cpp index 0067705e..5674f4aa 100644 --- a/qt/webengine/gen_qwebenginedownloaditem.cpp +++ b/qt/webengine/gen_qwebenginedownloaditem.cpp @@ -302,11 +302,7 @@ struct miqt_string QWebEngineDownloadItem_TrUtf83(const char* s, const char* c, return _ms; } -void QWebEngineDownloadItem_Delete(QWebEngineDownloadItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineDownloadItem_Delete(QWebEngineDownloadItem* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginedownloaditem.go b/qt/webengine/gen_qwebenginedownloaditem.go index e14725d7..4d5e0b18 100644 --- a/qt/webengine/gen_qwebenginedownloaditem.go +++ b/qt/webengine/gen_qwebenginedownloaditem.go @@ -398,7 +398,7 @@ func QWebEngineDownloadItem_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebEngineDownloadItem) Delete() { - C.QWebEngineDownloadItem_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineDownloadItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginedownloaditem.h b/qt/webengine/gen_qwebenginedownloaditem.h index b95b1713..63147d93 100644 --- a/qt/webengine/gen_qwebenginedownloaditem.h +++ b/qt/webengine/gen_qwebenginedownloaditem.h @@ -71,7 +71,7 @@ struct miqt_string QWebEngineDownloadItem_Tr2(const char* s, const char* c); struct miqt_string QWebEngineDownloadItem_Tr3(const char* s, const char* c, int n); struct miqt_string QWebEngineDownloadItem_TrUtf82(const char* s, const char* c); struct miqt_string QWebEngineDownloadItem_TrUtf83(const char* s, const char* c, int n); -void QWebEngineDownloadItem_Delete(QWebEngineDownloadItem* self, bool isSubclass); +void QWebEngineDownloadItem_Delete(QWebEngineDownloadItem* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginefindtextresult.cpp b/qt/webengine/gen_qwebenginefindtextresult.cpp index f467522a..7f7322c0 100644 --- a/qt/webengine/gen_qwebenginefindtextresult.cpp +++ b/qt/webengine/gen_qwebenginefindtextresult.cpp @@ -30,11 +30,7 @@ void QWebEngineFindTextResult_OperatorAssign(QWebEngineFindTextResult* self, QWe self->operator=(*other); } -void QWebEngineFindTextResult_Delete(QWebEngineFindTextResult* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineFindTextResult_Delete(QWebEngineFindTextResult* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginefindtextresult.go b/qt/webengine/gen_qwebenginefindtextresult.go index df11a80d..0ccd0b20 100644 --- a/qt/webengine/gen_qwebenginefindtextresult.go +++ b/qt/webengine/gen_qwebenginefindtextresult.go @@ -76,7 +76,7 @@ func (this *QWebEngineFindTextResult) OperatorAssign(other *QWebEngineFindTextRe // Delete this object from C++ memory. func (this *QWebEngineFindTextResult) Delete() { - C.QWebEngineFindTextResult_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineFindTextResult_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginefindtextresult.h b/qt/webengine/gen_qwebenginefindtextresult.h index 68a27f1a..699db92e 100644 --- a/qt/webengine/gen_qwebenginefindtextresult.h +++ b/qt/webengine/gen_qwebenginefindtextresult.h @@ -25,7 +25,7 @@ QWebEngineFindTextResult* QWebEngineFindTextResult_new2(QWebEngineFindTextResult int QWebEngineFindTextResult_NumberOfMatches(const QWebEngineFindTextResult* self); int QWebEngineFindTextResult_ActiveMatch(const QWebEngineFindTextResult* self); void QWebEngineFindTextResult_OperatorAssign(QWebEngineFindTextResult* self, QWebEngineFindTextResult* other); -void QWebEngineFindTextResult_Delete(QWebEngineFindTextResult* self, bool isSubclass); +void QWebEngineFindTextResult_Delete(QWebEngineFindTextResult* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginefullscreenrequest.cpp b/qt/webengine/gen_qwebenginefullscreenrequest.cpp index 58431090..5bfd23a4 100644 --- a/qt/webengine/gen_qwebenginefullscreenrequest.cpp +++ b/qt/webengine/gen_qwebenginefullscreenrequest.cpp @@ -33,11 +33,7 @@ QUrl* QWebEngineFullScreenRequest_Origin(const QWebEngineFullScreenRequest* self return const_cast(&_ret); } -void QWebEngineFullScreenRequest_Delete(QWebEngineFullScreenRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineFullScreenRequest_Delete(QWebEngineFullScreenRequest* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginefullscreenrequest.go b/qt/webengine/gen_qwebenginefullscreenrequest.go index 56d34eaa..df933451 100644 --- a/qt/webengine/gen_qwebenginefullscreenrequest.go +++ b/qt/webengine/gen_qwebenginefullscreenrequest.go @@ -73,7 +73,7 @@ func (this *QWebEngineFullScreenRequest) Origin() *qt.QUrl { // Delete this object from C++ memory. func (this *QWebEngineFullScreenRequest) Delete() { - C.QWebEngineFullScreenRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineFullScreenRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginefullscreenrequest.h b/qt/webengine/gen_qwebenginefullscreenrequest.h index 274dbd20..a6f6e3b4 100644 --- a/qt/webengine/gen_qwebenginefullscreenrequest.h +++ b/qt/webengine/gen_qwebenginefullscreenrequest.h @@ -27,7 +27,7 @@ void QWebEngineFullScreenRequest_Reject(QWebEngineFullScreenRequest* self); void QWebEngineFullScreenRequest_Accept(QWebEngineFullScreenRequest* self); bool QWebEngineFullScreenRequest_ToggleOn(const QWebEngineFullScreenRequest* self); QUrl* QWebEngineFullScreenRequest_Origin(const QWebEngineFullScreenRequest* self); -void QWebEngineFullScreenRequest_Delete(QWebEngineFullScreenRequest* self, bool isSubclass); +void QWebEngineFullScreenRequest_Delete(QWebEngineFullScreenRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginehistory.cpp b/qt/webengine/gen_qwebenginehistory.cpp index d5308c4c..33ed807a 100644 --- a/qt/webengine/gen_qwebenginehistory.cpp +++ b/qt/webengine/gen_qwebenginehistory.cpp @@ -60,12 +60,8 @@ void QWebEngineHistoryItem_Swap(QWebEngineHistoryItem* self, QWebEngineHistoryIt self->swap(*other); } -void QWebEngineHistoryItem_Delete(QWebEngineHistoryItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineHistoryItem_Delete(QWebEngineHistoryItem* self) { + delete self; } void QWebEngineHistory_Clear(QWebEngineHistory* self) { diff --git a/qt/webengine/gen_qwebenginehistory.go b/qt/webengine/gen_qwebenginehistory.go index 79483084..89d9d0bb 100644 --- a/qt/webengine/gen_qwebenginehistory.go +++ b/qt/webengine/gen_qwebenginehistory.go @@ -100,7 +100,7 @@ func (this *QWebEngineHistoryItem) Swap(other *QWebEngineHistoryItem) { // Delete this object from C++ memory. func (this *QWebEngineHistoryItem) Delete() { - C.QWebEngineHistoryItem_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineHistoryItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginehistory.h b/qt/webengine/gen_qwebenginehistory.h index b8d46b43..99243323 100644 --- a/qt/webengine/gen_qwebenginehistory.h +++ b/qt/webengine/gen_qwebenginehistory.h @@ -35,7 +35,7 @@ QDateTime* QWebEngineHistoryItem_LastVisited(const QWebEngineHistoryItem* self); QUrl* QWebEngineHistoryItem_IconUrl(const QWebEngineHistoryItem* self); bool QWebEngineHistoryItem_IsValid(const QWebEngineHistoryItem* self); void QWebEngineHistoryItem_Swap(QWebEngineHistoryItem* self, QWebEngineHistoryItem* other); -void QWebEngineHistoryItem_Delete(QWebEngineHistoryItem* self, bool isSubclass); +void QWebEngineHistoryItem_Delete(QWebEngineHistoryItem* self); void QWebEngineHistory_Clear(QWebEngineHistory* self); struct miqt_array /* of QWebEngineHistoryItem* */ QWebEngineHistory_Items(const QWebEngineHistory* self); diff --git a/qt/webengine/gen_qwebenginehttprequest.cpp b/qt/webengine/gen_qwebenginehttprequest.cpp index 0875b997..31dc810f 100644 --- a/qt/webengine/gen_qwebenginehttprequest.cpp +++ b/qt/webengine/gen_qwebenginehttprequest.cpp @@ -136,11 +136,7 @@ void QWebEngineHttpRequest_UnsetHeader(QWebEngineHttpRequest* self, struct miqt_ self->unsetHeader(headerName_QByteArray); } -void QWebEngineHttpRequest_Delete(QWebEngineHttpRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineHttpRequest_Delete(QWebEngineHttpRequest* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginehttprequest.go b/qt/webengine/gen_qwebenginehttprequest.go index 104a22b4..156ac0d3 100644 --- a/qt/webengine/gen_qwebenginehttprequest.go +++ b/qt/webengine/gen_qwebenginehttprequest.go @@ -212,7 +212,7 @@ func (this *QWebEngineHttpRequest) UnsetHeader(headerName []byte) { // Delete this object from C++ memory. func (this *QWebEngineHttpRequest) Delete() { - C.QWebEngineHttpRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineHttpRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginehttprequest.h b/qt/webengine/gen_qwebenginehttprequest.h index 0861919b..1a99bb54 100644 --- a/qt/webengine/gen_qwebenginehttprequest.h +++ b/qt/webengine/gen_qwebenginehttprequest.h @@ -42,7 +42,7 @@ struct miqt_array /* of struct miqt_string */ QWebEngineHttpRequest_Headers(con struct miqt_string QWebEngineHttpRequest_Header(const QWebEngineHttpRequest* self, struct miqt_string headerName); void QWebEngineHttpRequest_SetHeader(QWebEngineHttpRequest* self, struct miqt_string headerName, struct miqt_string value); void QWebEngineHttpRequest_UnsetHeader(QWebEngineHttpRequest* self, struct miqt_string headerName); -void QWebEngineHttpRequest_Delete(QWebEngineHttpRequest* self, bool isSubclass); +void QWebEngineHttpRequest_Delete(QWebEngineHttpRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginenotification.cpp b/qt/webengine/gen_qwebenginenotification.cpp index c27b0631..dea03550 100644 --- a/qt/webengine/gen_qwebenginenotification.cpp +++ b/qt/webengine/gen_qwebenginenotification.cpp @@ -179,11 +179,7 @@ struct miqt_string QWebEngineNotification_TrUtf83(const char* s, const char* c, return _ms; } -void QWebEngineNotification_Delete(QWebEngineNotification* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineNotification_Delete(QWebEngineNotification* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginenotification.go b/qt/webengine/gen_qwebenginenotification.go index 44fa7f69..de5d4d48 100644 --- a/qt/webengine/gen_qwebenginenotification.go +++ b/qt/webengine/gen_qwebenginenotification.go @@ -203,7 +203,7 @@ func QWebEngineNotification_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebEngineNotification) Delete() { - C.QWebEngineNotification_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineNotification_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginenotification.h b/qt/webengine/gen_qwebenginenotification.h index a43e089d..03d6bdf3 100644 --- a/qt/webengine/gen_qwebenginenotification.h +++ b/qt/webengine/gen_qwebenginenotification.h @@ -50,7 +50,7 @@ struct miqt_string QWebEngineNotification_Tr2(const char* s, const char* c); struct miqt_string QWebEngineNotification_Tr3(const char* s, const char* c, int n); struct miqt_string QWebEngineNotification_TrUtf82(const char* s, const char* c); struct miqt_string QWebEngineNotification_TrUtf83(const char* s, const char* c, int n); -void QWebEngineNotification_Delete(QWebEngineNotification* self, bool isSubclass); +void QWebEngineNotification_Delete(QWebEngineNotification* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginepage.cpp b/qt/webengine/gen_qwebenginepage.cpp index 3dc2fe03..98dd9742 100644 --- a/qt/webengine/gen_qwebenginepage.cpp +++ b/qt/webengine/gen_qwebenginepage.cpp @@ -92,7 +92,7 @@ void miqt_exec_callback_QWebEnginePage_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQWebEnginePage : public virtual QWebEnginePage { +class MiqtVirtualQWebEnginePage final : public QWebEnginePage { public: MiqtVirtualQWebEnginePage(): QWebEnginePage() {}; @@ -100,7 +100,7 @@ public: MiqtVirtualQWebEnginePage(QObject* parent): QWebEnginePage(parent) {}; MiqtVirtualQWebEnginePage(QWebEngineProfile* profile, QObject* parent): QWebEnginePage(profile, parent) {}; - virtual ~MiqtVirtualQWebEnginePage() = default; + virtual ~MiqtVirtualQWebEnginePage() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__TriggerAction = 0; @@ -1487,11 +1487,7 @@ void QWebEnginePage_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQWebEnginePage*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebEnginePage_Delete(QWebEnginePage* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEnginePage_Delete(QWebEnginePage* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginepage.go b/qt/webengine/gen_qwebenginepage.go index 54650c06..e5525d3c 100644 --- a/qt/webengine/gen_qwebenginepage.go +++ b/qt/webengine/gen_qwebenginepage.go @@ -1789,7 +1789,7 @@ func miqt_exec_callback_QWebEnginePage_DisconnectNotify(self *C.QWebEnginePage, // Delete this object from C++ memory. func (this *QWebEnginePage) Delete() { - C.QWebEnginePage_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEnginePage_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginepage.h b/qt/webengine/gen_qwebenginepage.h index 94faf8f5..c2df3766 100644 --- a/qt/webengine/gen_qwebenginepage.h +++ b/qt/webengine/gen_qwebenginepage.h @@ -255,7 +255,7 @@ void QWebEnginePage_override_virtual_ConnectNotify(void* self, intptr_t slot); void QWebEnginePage_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebEnginePage_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebEnginePage_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebEnginePage_Delete(QWebEnginePage* self, bool isSubclass); +void QWebEnginePage_Delete(QWebEnginePage* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebengineprofile.cpp b/qt/webengine/gen_qwebengineprofile.cpp index 74d3b41a..38c384e4 100644 --- a/qt/webengine/gen_qwebengineprofile.cpp +++ b/qt/webengine/gen_qwebengineprofile.cpp @@ -37,7 +37,7 @@ void miqt_exec_callback_QWebEngineProfile_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQWebEngineProfile : public virtual QWebEngineProfile { +class MiqtVirtualQWebEngineProfile final : public QWebEngineProfile { public: MiqtVirtualQWebEngineProfile(): QWebEngineProfile() {}; @@ -45,7 +45,7 @@ public: MiqtVirtualQWebEngineProfile(QObject* parent): QWebEngineProfile(parent) {}; MiqtVirtualQWebEngineProfile(const QString& name, QObject* parent): QWebEngineProfile(name, parent) {}; - virtual ~MiqtVirtualQWebEngineProfile() = default; + virtual ~MiqtVirtualQWebEngineProfile() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -628,11 +628,7 @@ void QWebEngineProfile_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQWebEngineProfile*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebEngineProfile_Delete(QWebEngineProfile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineProfile_Delete(QWebEngineProfile* self) { + delete self; } diff --git a/qt/webengine/gen_qwebengineprofile.go b/qt/webengine/gen_qwebengineprofile.go index bac660f5..00d6bbbe 100644 --- a/qt/webengine/gen_qwebengineprofile.go +++ b/qt/webengine/gen_qwebengineprofile.go @@ -626,7 +626,7 @@ func miqt_exec_callback_QWebEngineProfile_DisconnectNotify(self *C.QWebEnginePro // Delete this object from C++ memory. func (this *QWebEngineProfile) Delete() { - C.QWebEngineProfile_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineProfile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebengineprofile.h b/qt/webengine/gen_qwebengineprofile.h index dfc859da..7c1c3c46 100644 --- a/qt/webengine/gen_qwebengineprofile.h +++ b/qt/webengine/gen_qwebengineprofile.h @@ -118,7 +118,7 @@ void QWebEngineProfile_override_virtual_ConnectNotify(void* self, intptr_t slot) void QWebEngineProfile_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebEngineProfile_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebEngineProfile_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebEngineProfile_Delete(QWebEngineProfile* self, bool isSubclass); +void QWebEngineProfile_Delete(QWebEngineProfile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginequotarequest.cpp b/qt/webengine/gen_qwebenginequotarequest.cpp index e904b888..659b95b7 100644 --- a/qt/webengine/gen_qwebenginequotarequest.cpp +++ b/qt/webengine/gen_qwebenginequotarequest.cpp @@ -44,11 +44,7 @@ bool QWebEngineQuotaRequest_OperatorNotEqual(const QWebEngineQuotaRequest* self, return (*self != *that); } -void QWebEngineQuotaRequest_Delete(QWebEngineQuotaRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineQuotaRequest_Delete(QWebEngineQuotaRequest* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginequotarequest.go b/qt/webengine/gen_qwebenginequotarequest.go index b2714f8c..490bc3bf 100644 --- a/qt/webengine/gen_qwebenginequotarequest.go +++ b/qt/webengine/gen_qwebenginequotarequest.go @@ -91,7 +91,7 @@ func (this *QWebEngineQuotaRequest) OperatorNotEqual(that *QWebEngineQuotaReques // Delete this object from C++ memory. func (this *QWebEngineQuotaRequest) Delete() { - C.QWebEngineQuotaRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineQuotaRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginequotarequest.h b/qt/webengine/gen_qwebenginequotarequest.h index 1653032c..b94d1111 100644 --- a/qt/webengine/gen_qwebenginequotarequest.h +++ b/qt/webengine/gen_qwebenginequotarequest.h @@ -30,7 +30,7 @@ QUrl* QWebEngineQuotaRequest_Origin(const QWebEngineQuotaRequest* self); long long QWebEngineQuotaRequest_RequestedSize(const QWebEngineQuotaRequest* self); bool QWebEngineQuotaRequest_OperatorEqual(const QWebEngineQuotaRequest* self, QWebEngineQuotaRequest* that); bool QWebEngineQuotaRequest_OperatorNotEqual(const QWebEngineQuotaRequest* self, QWebEngineQuotaRequest* that); -void QWebEngineQuotaRequest_Delete(QWebEngineQuotaRequest* self, bool isSubclass); +void QWebEngineQuotaRequest_Delete(QWebEngineQuotaRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.cpp b/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.cpp index fcfd9418..617c0743 100644 --- a/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.cpp +++ b/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.cpp @@ -53,11 +53,7 @@ bool QWebEngineRegisterProtocolHandlerRequest_OperatorNotEqual(const QWebEngineR return (*self != *that); } -void QWebEngineRegisterProtocolHandlerRequest_Delete(QWebEngineRegisterProtocolHandlerRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineRegisterProtocolHandlerRequest_Delete(QWebEngineRegisterProtocolHandlerRequest* self) { + delete self; } diff --git a/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.go b/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.go index e571de66..9534ab08 100644 --- a/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.go +++ b/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.go @@ -94,7 +94,7 @@ func (this *QWebEngineRegisterProtocolHandlerRequest) OperatorNotEqual(that *QWe // Delete this object from C++ memory. func (this *QWebEngineRegisterProtocolHandlerRequest) Delete() { - C.QWebEngineRegisterProtocolHandlerRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineRegisterProtocolHandlerRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.h b/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.h index f67604af..54115cf6 100644 --- a/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.h +++ b/qt/webengine/gen_qwebengineregisterprotocolhandlerrequest.h @@ -30,7 +30,7 @@ QUrl* QWebEngineRegisterProtocolHandlerRequest_Origin(const QWebEngineRegisterPr struct miqt_string QWebEngineRegisterProtocolHandlerRequest_Scheme(const QWebEngineRegisterProtocolHandlerRequest* self); bool QWebEngineRegisterProtocolHandlerRequest_OperatorEqual(const QWebEngineRegisterProtocolHandlerRequest* self, QWebEngineRegisterProtocolHandlerRequest* that); bool QWebEngineRegisterProtocolHandlerRequest_OperatorNotEqual(const QWebEngineRegisterProtocolHandlerRequest* self, QWebEngineRegisterProtocolHandlerRequest* that); -void QWebEngineRegisterProtocolHandlerRequest_Delete(QWebEngineRegisterProtocolHandlerRequest* self, bool isSubclass); +void QWebEngineRegisterProtocolHandlerRequest_Delete(QWebEngineRegisterProtocolHandlerRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginescript.cpp b/qt/webengine/gen_qwebenginescript.cpp index 48f20917..7e195029 100644 --- a/qt/webengine/gen_qwebenginescript.cpp +++ b/qt/webengine/gen_qwebenginescript.cpp @@ -99,11 +99,7 @@ void QWebEngineScript_Swap(QWebEngineScript* self, QWebEngineScript* other) { self->swap(*other); } -void QWebEngineScript_Delete(QWebEngineScript* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineScript_Delete(QWebEngineScript* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginescript.go b/qt/webengine/gen_qwebenginescript.go index 3b98e54f..cc2dcdb3 100644 --- a/qt/webengine/gen_qwebenginescript.go +++ b/qt/webengine/gen_qwebenginescript.go @@ -154,7 +154,7 @@ func (this *QWebEngineScript) Swap(other *QWebEngineScript) { // Delete this object from C++ memory. func (this *QWebEngineScript) Delete() { - C.QWebEngineScript_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineScript_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginescript.h b/qt/webengine/gen_qwebenginescript.h index 357d89e1..ee6708b4 100644 --- a/qt/webengine/gen_qwebenginescript.h +++ b/qt/webengine/gen_qwebenginescript.h @@ -37,7 +37,7 @@ void QWebEngineScript_SetRunsOnSubFrames(QWebEngineScript* self, bool on); bool QWebEngineScript_OperatorEqual(const QWebEngineScript* self, QWebEngineScript* other); bool QWebEngineScript_OperatorNotEqual(const QWebEngineScript* self, QWebEngineScript* other); void QWebEngineScript_Swap(QWebEngineScript* self, QWebEngineScript* other); -void QWebEngineScript_Delete(QWebEngineScript* self, bool isSubclass); +void QWebEngineScript_Delete(QWebEngineScript* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebenginescriptcollection.cpp b/qt/webengine/gen_qwebenginescriptcollection.cpp index 1d8c2f20..89f587ed 100644 --- a/qt/webengine/gen_qwebenginescriptcollection.cpp +++ b/qt/webengine/gen_qwebenginescriptcollection.cpp @@ -85,11 +85,7 @@ struct miqt_array /* of QWebEngineScript* */ QWebEngineScriptCollection_ToList( return _out; } -void QWebEngineScriptCollection_Delete(QWebEngineScriptCollection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineScriptCollection_Delete(QWebEngineScriptCollection* self) { + delete self; } diff --git a/qt/webengine/gen_qwebenginescriptcollection.go b/qt/webengine/gen_qwebenginescriptcollection.go index 3aba8da2..b31ba161 100644 --- a/qt/webengine/gen_qwebenginescriptcollection.go +++ b/qt/webengine/gen_qwebenginescriptcollection.go @@ -124,7 +124,7 @@ func (this *QWebEngineScriptCollection) ToList() []QWebEngineScript { // Delete this object from C++ memory. func (this *QWebEngineScriptCollection) Delete() { - C.QWebEngineScriptCollection_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineScriptCollection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebenginescriptcollection.h b/qt/webengine/gen_qwebenginescriptcollection.h index 767eb755..9ebc47df 100644 --- a/qt/webengine/gen_qwebenginescriptcollection.h +++ b/qt/webengine/gen_qwebenginescriptcollection.h @@ -33,7 +33,7 @@ void QWebEngineScriptCollection_InsertWithList(QWebEngineScriptCollection* self, bool QWebEngineScriptCollection_Remove(QWebEngineScriptCollection* self, QWebEngineScript* param1); void QWebEngineScriptCollection_Clear(QWebEngineScriptCollection* self); struct miqt_array /* of QWebEngineScript* */ QWebEngineScriptCollection_ToList(const QWebEngineScriptCollection* self); -void QWebEngineScriptCollection_Delete(QWebEngineScriptCollection* self, bool isSubclass); +void QWebEngineScriptCollection_Delete(QWebEngineScriptCollection* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebengineurlrequestinterceptor.cpp b/qt/webengine/gen_qwebengineurlrequestinterceptor.cpp index a4384bfa..ca5f7c28 100644 --- a/qt/webengine/gen_qwebengineurlrequestinterceptor.cpp +++ b/qt/webengine/gen_qwebengineurlrequestinterceptor.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QWebEngineUrlRequestInterceptor_DisconnectNotify(void*, } /* extern C */ #endif -class MiqtVirtualQWebEngineUrlRequestInterceptor : public virtual QWebEngineUrlRequestInterceptor { +class MiqtVirtualQWebEngineUrlRequestInterceptor final : public QWebEngineUrlRequestInterceptor { public: MiqtVirtualQWebEngineUrlRequestInterceptor(): QWebEngineUrlRequestInterceptor() {}; MiqtVirtualQWebEngineUrlRequestInterceptor(QObject* p): QWebEngineUrlRequestInterceptor(p) {}; - virtual ~MiqtVirtualQWebEngineUrlRequestInterceptor() = default; + virtual ~MiqtVirtualQWebEngineUrlRequestInterceptor() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__InterceptRequest = 0; @@ -377,11 +377,7 @@ void QWebEngineUrlRequestInterceptor_virtualbase_DisconnectNotify(void* self, QM ( (MiqtVirtualQWebEngineUrlRequestInterceptor*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebEngineUrlRequestInterceptor_Delete(QWebEngineUrlRequestInterceptor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineUrlRequestInterceptor_Delete(QWebEngineUrlRequestInterceptor* self) { + delete self; } diff --git a/qt/webengine/gen_qwebengineurlrequestinterceptor.go b/qt/webengine/gen_qwebengineurlrequestinterceptor.go index 71689dc4..ff4af5cd 100644 --- a/qt/webengine/gen_qwebengineurlrequestinterceptor.go +++ b/qt/webengine/gen_qwebengineurlrequestinterceptor.go @@ -354,7 +354,7 @@ func miqt_exec_callback_QWebEngineUrlRequestInterceptor_DisconnectNotify(self *C // Delete this object from C++ memory. func (this *QWebEngineUrlRequestInterceptor) Delete() { - C.QWebEngineUrlRequestInterceptor_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineUrlRequestInterceptor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebengineurlrequestinterceptor.h b/qt/webengine/gen_qwebengineurlrequestinterceptor.h index 62257d7b..dd11db29 100644 --- a/qt/webengine/gen_qwebengineurlrequestinterceptor.h +++ b/qt/webengine/gen_qwebengineurlrequestinterceptor.h @@ -62,7 +62,7 @@ void QWebEngineUrlRequestInterceptor_override_virtual_ConnectNotify(void* self, void QWebEngineUrlRequestInterceptor_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebEngineUrlRequestInterceptor_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebEngineUrlRequestInterceptor_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebEngineUrlRequestInterceptor_Delete(QWebEngineUrlRequestInterceptor* self, bool isSubclass); +void QWebEngineUrlRequestInterceptor_Delete(QWebEngineUrlRequestInterceptor* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebengineurlrequestjob.cpp b/qt/webengine/gen_qwebengineurlrequestjob.cpp index 3be9616e..62160ee9 100644 --- a/qt/webengine/gen_qwebengineurlrequestjob.cpp +++ b/qt/webengine/gen_qwebengineurlrequestjob.cpp @@ -126,11 +126,7 @@ struct miqt_string QWebEngineUrlRequestJob_TrUtf83(const char* s, const char* c, return _ms; } -void QWebEngineUrlRequestJob_Delete(QWebEngineUrlRequestJob* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineUrlRequestJob_Delete(QWebEngineUrlRequestJob* self) { + delete self; } diff --git a/qt/webengine/gen_qwebengineurlrequestjob.go b/qt/webengine/gen_qwebengineurlrequestjob.go index c573be2f..2db00095 100644 --- a/qt/webengine/gen_qwebengineurlrequestjob.go +++ b/qt/webengine/gen_qwebengineurlrequestjob.go @@ -170,7 +170,7 @@ func QWebEngineUrlRequestJob_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebEngineUrlRequestJob) Delete() { - C.QWebEngineUrlRequestJob_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineUrlRequestJob_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebengineurlrequestjob.h b/qt/webengine/gen_qwebengineurlrequestjob.h index 1a4bb53b..f772422b 100644 --- a/qt/webengine/gen_qwebengineurlrequestjob.h +++ b/qt/webengine/gen_qwebengineurlrequestjob.h @@ -43,7 +43,7 @@ struct miqt_string QWebEngineUrlRequestJob_Tr2(const char* s, const char* c); struct miqt_string QWebEngineUrlRequestJob_Tr3(const char* s, const char* c, int n); struct miqt_string QWebEngineUrlRequestJob_TrUtf82(const char* s, const char* c); struct miqt_string QWebEngineUrlRequestJob_TrUtf83(const char* s, const char* c, int n); -void QWebEngineUrlRequestJob_Delete(QWebEngineUrlRequestJob* self, bool isSubclass); +void QWebEngineUrlRequestJob_Delete(QWebEngineUrlRequestJob* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebengineurlscheme.cpp b/qt/webengine/gen_qwebengineurlscheme.cpp index 0dc85996..a9be6979 100644 --- a/qt/webengine/gen_qwebengineurlscheme.cpp +++ b/qt/webengine/gen_qwebengineurlscheme.cpp @@ -85,11 +85,7 @@ QWebEngineUrlScheme* QWebEngineUrlScheme_SchemeByName(struct miqt_string name) { return new QWebEngineUrlScheme(QWebEngineUrlScheme::schemeByName(name_QByteArray)); } -void QWebEngineUrlScheme_Delete(QWebEngineUrlScheme* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineUrlScheme_Delete(QWebEngineUrlScheme* self) { + delete self; } diff --git a/qt/webengine/gen_qwebengineurlscheme.go b/qt/webengine/gen_qwebengineurlscheme.go index dd3330c6..7e3e1b38 100644 --- a/qt/webengine/gen_qwebengineurlscheme.go +++ b/qt/webengine/gen_qwebengineurlscheme.go @@ -166,7 +166,7 @@ func QWebEngineUrlScheme_SchemeByName(name []byte) *QWebEngineUrlScheme { // Delete this object from C++ memory. func (this *QWebEngineUrlScheme) Delete() { - C.QWebEngineUrlScheme_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineUrlScheme_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebengineurlscheme.h b/qt/webengine/gen_qwebengineurlscheme.h index c40b7727..85d4b610 100644 --- a/qt/webengine/gen_qwebengineurlscheme.h +++ b/qt/webengine/gen_qwebengineurlscheme.h @@ -36,7 +36,7 @@ int QWebEngineUrlScheme_Flags(const QWebEngineUrlScheme* self); void QWebEngineUrlScheme_SetFlags(QWebEngineUrlScheme* self, int newValue); void QWebEngineUrlScheme_RegisterScheme(QWebEngineUrlScheme* scheme); QWebEngineUrlScheme* QWebEngineUrlScheme_SchemeByName(struct miqt_string name); -void QWebEngineUrlScheme_Delete(QWebEngineUrlScheme* self, bool isSubclass); +void QWebEngineUrlScheme_Delete(QWebEngineUrlScheme* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebengineurlschemehandler.cpp b/qt/webengine/gen_qwebengineurlschemehandler.cpp index e2ab79c9..25bc2fd8 100644 --- a/qt/webengine/gen_qwebengineurlschemehandler.cpp +++ b/qt/webengine/gen_qwebengineurlschemehandler.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QWebEngineUrlSchemeHandler_DisconnectNotify(void*, intpt } /* extern C */ #endif -class MiqtVirtualQWebEngineUrlSchemeHandler : public virtual QWebEngineUrlSchemeHandler { +class MiqtVirtualQWebEngineUrlSchemeHandler final : public QWebEngineUrlSchemeHandler { public: MiqtVirtualQWebEngineUrlSchemeHandler(): QWebEngineUrlSchemeHandler() {}; MiqtVirtualQWebEngineUrlSchemeHandler(QObject* parent): QWebEngineUrlSchemeHandler(parent) {}; - virtual ~MiqtVirtualQWebEngineUrlSchemeHandler() = default; + virtual ~MiqtVirtualQWebEngineUrlSchemeHandler() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__RequestStarted = 0; @@ -375,11 +375,7 @@ void QWebEngineUrlSchemeHandler_virtualbase_DisconnectNotify(void* self, QMetaMe ( (MiqtVirtualQWebEngineUrlSchemeHandler*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebEngineUrlSchemeHandler_Delete(QWebEngineUrlSchemeHandler* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineUrlSchemeHandler_Delete(QWebEngineUrlSchemeHandler* self) { + delete self; } diff --git a/qt/webengine/gen_qwebengineurlschemehandler.go b/qt/webengine/gen_qwebengineurlschemehandler.go index 7d0a7191..c2d11f62 100644 --- a/qt/webengine/gen_qwebengineurlschemehandler.go +++ b/qt/webengine/gen_qwebengineurlschemehandler.go @@ -354,7 +354,7 @@ func miqt_exec_callback_QWebEngineUrlSchemeHandler_DisconnectNotify(self *C.QWeb // Delete this object from C++ memory. func (this *QWebEngineUrlSchemeHandler) Delete() { - C.QWebEngineUrlSchemeHandler_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineUrlSchemeHandler_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebengineurlschemehandler.h b/qt/webengine/gen_qwebengineurlschemehandler.h index 4fcae1e0..625539e7 100644 --- a/qt/webengine/gen_qwebengineurlschemehandler.h +++ b/qt/webengine/gen_qwebengineurlschemehandler.h @@ -62,7 +62,7 @@ void QWebEngineUrlSchemeHandler_override_virtual_ConnectNotify(void* self, intpt void QWebEngineUrlSchemeHandler_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebEngineUrlSchemeHandler_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebEngineUrlSchemeHandler_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebEngineUrlSchemeHandler_Delete(QWebEngineUrlSchemeHandler* self, bool isSubclass); +void QWebEngineUrlSchemeHandler_Delete(QWebEngineUrlSchemeHandler* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webengine/gen_qwebengineview.cpp b/qt/webengine/gen_qwebengineview.cpp index 3e3f778e..9df6f5e5 100644 --- a/qt/webengine/gen_qwebengineview.cpp +++ b/qt/webengine/gen_qwebengineview.cpp @@ -100,13 +100,13 @@ bool miqt_exec_callback_QWebEngineView_FocusNextPrevChild(void*, intptr_t, bool) } /* extern C */ #endif -class MiqtVirtualQWebEngineView : public virtual QWebEngineView { +class MiqtVirtualQWebEngineView final : public QWebEngineView { public: MiqtVirtualQWebEngineView(QWidget* parent): QWebEngineView(parent) {}; MiqtVirtualQWebEngineView(): QWebEngineView() {}; - virtual ~MiqtVirtualQWebEngineView() = default; + virtual ~MiqtVirtualQWebEngineView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1788,11 +1788,7 @@ bool QWebEngineView_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQWebEngineView*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QWebEngineView_Delete(QWebEngineView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineView_Delete(QWebEngineView* self) { + delete self; } diff --git a/qt/webengine/gen_qwebengineview.go b/qt/webengine/gen_qwebengineview.go index ae5e5fa4..13f08a76 100644 --- a/qt/webengine/gen_qwebengineview.go +++ b/qt/webengine/gen_qwebengineview.go @@ -1609,7 +1609,7 @@ func miqt_exec_callback_QWebEngineView_FocusNextPrevChild(self *C.QWebEngineView // Delete this object from C++ memory. func (this *QWebEngineView) Delete() { - C.QWebEngineView_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webengine/gen_qwebengineview.h b/qt/webengine/gen_qwebengineview.h index 58c6ab14..5a6baf5a 100644 --- a/qt/webengine/gen_qwebengineview.h +++ b/qt/webengine/gen_qwebengineview.h @@ -243,7 +243,7 @@ void QWebEngineView_override_virtual_InputMethodQuery(void* self, intptr_t slot) QVariant* QWebEngineView_virtualbase_InputMethodQuery(const void* self, int param1); void QWebEngineView_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QWebEngineView_virtualbase_FocusNextPrevChild(void* self, bool next); -void QWebEngineView_Delete(QWebEngineView* self, bool isSubclass); +void QWebEngineView_Delete(QWebEngineView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webkit/gen_qgraphicswebview.cpp b/qt/webkit/gen_qgraphicswebview.cpp index 227f0566..d4d5f06d 100644 --- a/qt/webkit/gen_qgraphicswebview.cpp +++ b/qt/webkit/gen_qgraphicswebview.cpp @@ -104,13 +104,13 @@ void miqt_exec_callback_QGraphicsWebView_UngrabKeyboardEvent(void*, intptr_t, QE } /* extern C */ #endif -class MiqtVirtualQGraphicsWebView : public virtual QGraphicsWebView { +class MiqtVirtualQGraphicsWebView final : public QGraphicsWebView { public: MiqtVirtualQGraphicsWebView(): QGraphicsWebView() {}; MiqtVirtualQGraphicsWebView(QGraphicsItem* parent): QGraphicsWebView(parent) {}; - virtual ~MiqtVirtualQGraphicsWebView() = default; + virtual ~MiqtVirtualQGraphicsWebView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetGeometry = 0; @@ -1992,11 +1992,7 @@ void QGraphicsWebView_virtualbase_UngrabKeyboardEvent(void* self, QEvent* event) ( (MiqtVirtualQGraphicsWebView*)(self) )->virtualbase_UngrabKeyboardEvent(event); } -void QGraphicsWebView_Delete(QGraphicsWebView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsWebView_Delete(QGraphicsWebView* self) { + delete self; } diff --git a/qt/webkit/gen_qgraphicswebview.go b/qt/webkit/gen_qgraphicswebview.go index bd83b304..0547b100 100644 --- a/qt/webkit/gen_qgraphicswebview.go +++ b/qt/webkit/gen_qgraphicswebview.go @@ -1779,7 +1779,7 @@ func miqt_exec_callback_QGraphicsWebView_UngrabKeyboardEvent(self *C.QGraphicsWe // Delete this object from C++ memory. func (this *QGraphicsWebView) Delete() { - C.QGraphicsWebView_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsWebView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qgraphicswebview.h b/qt/webkit/gen_qgraphicswebview.h index d12ecbe1..f1dfa601 100644 --- a/qt/webkit/gen_qgraphicswebview.h +++ b/qt/webkit/gen_qgraphicswebview.h @@ -274,7 +274,7 @@ void QGraphicsWebView_override_virtual_GrabKeyboardEvent(void* self, intptr_t sl void QGraphicsWebView_virtualbase_GrabKeyboardEvent(void* self, QEvent* event); void QGraphicsWebView_override_virtual_UngrabKeyboardEvent(void* self, intptr_t slot); void QGraphicsWebView_virtualbase_UngrabKeyboardEvent(void* self, QEvent* event); -void QGraphicsWebView_Delete(QGraphicsWebView* self, bool isSubclass); +void QGraphicsWebView_Delete(QGraphicsWebView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webkit/gen_qwebdatabase.cpp b/qt/webkit/gen_qwebdatabase.cpp index 6031f454..6f486b1f 100644 --- a/qt/webkit/gen_qwebdatabase.cpp +++ b/qt/webkit/gen_qwebdatabase.cpp @@ -77,11 +77,7 @@ void QWebDatabase_RemoveAllDatabases() { QWebDatabase::removeAllDatabases(); } -void QWebDatabase_Delete(QWebDatabase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebDatabase_Delete(QWebDatabase* self) { + delete self; } diff --git a/qt/webkit/gen_qwebdatabase.go b/qt/webkit/gen_qwebdatabase.go index 08e381f8..5a632f7f 100644 --- a/qt/webkit/gen_qwebdatabase.go +++ b/qt/webkit/gen_qwebdatabase.go @@ -103,7 +103,7 @@ func QWebDatabase_RemoveAllDatabases() { // Delete this object from C++ memory. func (this *QWebDatabase) Delete() { - C.QWebDatabase_Delete(this.h, C.bool(this.isSubclass)) + C.QWebDatabase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebdatabase.h b/qt/webkit/gen_qwebdatabase.h index d4048f6d..09270ef8 100644 --- a/qt/webkit/gen_qwebdatabase.h +++ b/qt/webkit/gen_qwebdatabase.h @@ -32,7 +32,7 @@ struct miqt_string QWebDatabase_FileName(const QWebDatabase* self); QWebSecurityOrigin* QWebDatabase_Origin(const QWebDatabase* self); void QWebDatabase_RemoveDatabase(QWebDatabase* param1); void QWebDatabase_RemoveAllDatabases(); -void QWebDatabase_Delete(QWebDatabase* self, bool isSubclass); +void QWebDatabase_Delete(QWebDatabase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webkit/gen_qwebelement.cpp b/qt/webkit/gen_qwebelement.cpp index 757d4c3d..afe2e943 100644 --- a/qt/webkit/gen_qwebelement.cpp +++ b/qt/webkit/gen_qwebelement.cpp @@ -471,12 +471,8 @@ struct miqt_array /* of struct miqt_string */ QWebElement_AttributeNames1(const return _out; } -void QWebElement_Delete(QWebElement* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebElement_Delete(QWebElement* self) { + delete self; } QWebElementCollection* QWebElementCollection_new() { @@ -567,12 +563,8 @@ QWebElementCollection__iterator* QWebElementCollection_End2(QWebElementCollectio return new QWebElementCollection::iterator(self->end()); } -void QWebElementCollection_Delete(QWebElementCollection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebElementCollection_Delete(QWebElementCollection* self) { + delete self; } QWebElementCollection__const_iterator* QWebElementCollection__const_iterator_new(QWebElementCollection* collection_, int index) { @@ -655,12 +647,8 @@ int QWebElementCollection__const_iterator_OperatorMinusWithQWebElementCollection return self->operator-(*j); } -void QWebElementCollection__const_iterator_Delete(QWebElementCollection__const_iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebElementCollection__const_iterator_Delete(QWebElementCollection__const_iterator* self) { + delete self; } QWebElementCollection__iterator* QWebElementCollection__iterator_new(QWebElementCollection* collection_, int index) { @@ -743,11 +731,7 @@ int QWebElementCollection__iterator_OperatorMinusWithQWebElementCollectioniterat return self->operator-(*j); } -void QWebElementCollection__iterator_Delete(QWebElementCollection__iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebElementCollection__iterator_Delete(QWebElementCollection__iterator* self) { + delete self; } diff --git a/qt/webkit/gen_qwebelement.go b/qt/webkit/gen_qwebelement.go index 8d7667d9..3d128e1b 100644 --- a/qt/webkit/gen_qwebelement.go +++ b/qt/webkit/gen_qwebelement.go @@ -586,7 +586,7 @@ func (this *QWebElement) AttributeNames1(namespaceUri string) []string { // Delete this object from C++ memory. func (this *QWebElement) Delete() { - C.QWebElement_Delete(this.h, C.bool(this.isSubclass)) + C.QWebElement_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -755,7 +755,7 @@ func (this *QWebElementCollection) End2() *QWebElementCollection__iterator { // Delete this object from C++ memory. func (this *QWebElementCollection) Delete() { - C.QWebElementCollection_Delete(this.h, C.bool(this.isSubclass)) + C.QWebElementCollection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -892,7 +892,7 @@ func (this *QWebElementCollection__const_iterator) OperatorMinusWithQWebElementC // Delete this object from C++ memory. func (this *QWebElementCollection__const_iterator) Delete() { - C.QWebElementCollection__const_iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QWebElementCollection__const_iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1029,7 +1029,7 @@ func (this *QWebElementCollection__iterator) OperatorMinusWithQWebElementCollect // Delete this object from C++ memory. func (this *QWebElementCollection__iterator) Delete() { - C.QWebElementCollection__iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QWebElementCollection__iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebelement.h b/qt/webkit/gen_qwebelement.h index 94460bb1..dca74a7f 100644 --- a/qt/webkit/gen_qwebelement.h +++ b/qt/webkit/gen_qwebelement.h @@ -111,7 +111,7 @@ void QWebElement_Render2(QWebElement* self, QPainter* painter, QRect* clipRect); struct miqt_string QWebElement_Attribute2(const QWebElement* self, struct miqt_string name, struct miqt_string defaultValue); struct miqt_string QWebElement_AttributeNS3(const QWebElement* self, struct miqt_string namespaceUri, struct miqt_string name, struct miqt_string defaultValue); struct miqt_array /* of struct miqt_string */ QWebElement_AttributeNames1(const QWebElement* self, struct miqt_string namespaceUri); -void QWebElement_Delete(QWebElement* self, bool isSubclass); +void QWebElement_Delete(QWebElement* self); QWebElementCollection* QWebElementCollection_new(); QWebElementCollection* QWebElementCollection_new2(QWebElement* contextElement, struct miqt_string query); @@ -132,7 +132,7 @@ QWebElementCollection__const_iterator* QWebElementCollection_ConstBegin(const QW QWebElementCollection__const_iterator* QWebElementCollection_ConstEnd(const QWebElementCollection* self); QWebElementCollection__iterator* QWebElementCollection_Begin2(QWebElementCollection* self); QWebElementCollection__iterator* QWebElementCollection_End2(QWebElementCollection* self); -void QWebElementCollection_Delete(QWebElementCollection* self, bool isSubclass); +void QWebElementCollection_Delete(QWebElementCollection* self); QWebElementCollection__const_iterator* QWebElementCollection__const_iterator_new(QWebElementCollection* collection_, int index); QWebElementCollection__const_iterator* QWebElementCollection__const_iterator_new2(QWebElementCollection__const_iterator* o); @@ -152,7 +152,7 @@ QWebElementCollection__const_iterator* QWebElementCollection__const_iterator_Ope QWebElementCollection__const_iterator* QWebElementCollection__const_iterator_OperatorPlus(const QWebElementCollection__const_iterator* self, int j); QWebElementCollection__const_iterator* QWebElementCollection__const_iterator_OperatorMinus(const QWebElementCollection__const_iterator* self, int j); int QWebElementCollection__const_iterator_OperatorMinusWithQWebElementCollectionconstIterator(const QWebElementCollection__const_iterator* self, QWebElementCollection__const_iterator* j); -void QWebElementCollection__const_iterator_Delete(QWebElementCollection__const_iterator* self, bool isSubclass); +void QWebElementCollection__const_iterator_Delete(QWebElementCollection__const_iterator* self); QWebElementCollection__iterator* QWebElementCollection__iterator_new(QWebElementCollection* collection_, int index); QWebElementCollection__iterator* QWebElementCollection__iterator_new2(QWebElementCollection__iterator* o); @@ -172,7 +172,7 @@ QWebElementCollection__iterator* QWebElementCollection__iterator_OperatorMinusAs QWebElementCollection__iterator* QWebElementCollection__iterator_OperatorPlus(const QWebElementCollection__iterator* self, int j); QWebElementCollection__iterator* QWebElementCollection__iterator_OperatorMinus(const QWebElementCollection__iterator* self, int j); int QWebElementCollection__iterator_OperatorMinusWithQWebElementCollectioniterator(const QWebElementCollection__iterator* self, QWebElementCollection__iterator* j); -void QWebElementCollection__iterator_Delete(QWebElementCollection__iterator* self, bool isSubclass); +void QWebElementCollection__iterator_Delete(QWebElementCollection__iterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webkit/gen_qwebframe.cpp b/qt/webkit/gen_qwebframe.cpp index a484935e..7c2f5061 100644 --- a/qt/webkit/gen_qwebframe.cpp +++ b/qt/webkit/gen_qwebframe.cpp @@ -160,12 +160,8 @@ QWebFrame* QWebHitTestResult_Frame(const QWebHitTestResult* self) { return self->frame(); } -void QWebHitTestResult_Delete(QWebHitTestResult* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebHitTestResult_Delete(QWebHitTestResult* self) { + delete self; } void QWebFrame_virtbase(QWebFrame* src, QObject** outptr_QObject) { diff --git a/qt/webkit/gen_qwebframe.go b/qt/webkit/gen_qwebframe.go index b5a85baf..f26bb6db 100644 --- a/qt/webkit/gen_qwebframe.go +++ b/qt/webkit/gen_qwebframe.go @@ -197,7 +197,7 @@ func (this *QWebHitTestResult) Frame() *QWebFrame { // Delete this object from C++ memory. func (this *QWebHitTestResult) Delete() { - C.QWebHitTestResult_Delete(this.h, C.bool(this.isSubclass)) + C.QWebHitTestResult_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebframe.h b/qt/webkit/gen_qwebframe.h index bdd3f79a..642415e3 100644 --- a/qt/webkit/gen_qwebframe.h +++ b/qt/webkit/gen_qwebframe.h @@ -80,7 +80,7 @@ bool QWebHitTestResult_IsContentEditable(const QWebHitTestResult* self); bool QWebHitTestResult_IsContentSelected(const QWebHitTestResult* self); QWebElement* QWebHitTestResult_Element(const QWebHitTestResult* self); QWebFrame* QWebHitTestResult_Frame(const QWebHitTestResult* self); -void QWebHitTestResult_Delete(QWebHitTestResult* self, bool isSubclass); +void QWebHitTestResult_Delete(QWebHitTestResult* self); void QWebFrame_virtbase(QWebFrame* src, QObject** outptr_QObject); QMetaObject* QWebFrame_MetaObject(const QWebFrame* self); diff --git a/qt/webkit/gen_qwebfullscreenrequest.cpp b/qt/webkit/gen_qwebfullscreenrequest.cpp index 34239cf7..9f7e3f8b 100644 --- a/qt/webkit/gen_qwebfullscreenrequest.cpp +++ b/qt/webkit/gen_qwebfullscreenrequest.cpp @@ -42,11 +42,7 @@ QWebElement* QWebFullScreenRequest_Element(const QWebFullScreenRequest* self) { return const_cast(&_ret); } -void QWebFullScreenRequest_Delete(QWebFullScreenRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebFullScreenRequest_Delete(QWebFullScreenRequest* self) { + delete self; } diff --git a/qt/webkit/gen_qwebfullscreenrequest.go b/qt/webkit/gen_qwebfullscreenrequest.go index 4922b573..5e879fe3 100644 --- a/qt/webkit/gen_qwebfullscreenrequest.go +++ b/qt/webkit/gen_qwebfullscreenrequest.go @@ -87,7 +87,7 @@ func (this *QWebFullScreenRequest) Element() *QWebElement { // Delete this object from C++ memory. func (this *QWebFullScreenRequest) Delete() { - C.QWebFullScreenRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebFullScreenRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebfullscreenrequest.h b/qt/webkit/gen_qwebfullscreenrequest.h index c0aece9d..f2d9fc0c 100644 --- a/qt/webkit/gen_qwebfullscreenrequest.h +++ b/qt/webkit/gen_qwebfullscreenrequest.h @@ -31,7 +31,7 @@ void QWebFullScreenRequest_Reject(QWebFullScreenRequest* self); bool QWebFullScreenRequest_ToggleOn(const QWebFullScreenRequest* self); QUrl* QWebFullScreenRequest_Origin(const QWebFullScreenRequest* self); QWebElement* QWebFullScreenRequest_Element(const QWebFullScreenRequest* self); -void QWebFullScreenRequest_Delete(QWebFullScreenRequest* self, bool isSubclass); +void QWebFullScreenRequest_Delete(QWebFullScreenRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webkit/gen_qwebhistory.cpp b/qt/webkit/gen_qwebhistory.cpp index 17acca81..690441a3 100644 --- a/qt/webkit/gen_qwebhistory.cpp +++ b/qt/webkit/gen_qwebhistory.cpp @@ -103,12 +103,8 @@ void QWebHistoryItem_LoadFromMap(QWebHistoryItem* self, struct miqt_map /* of st self->loadFromMap(mapVal_QMap); } -void QWebHistoryItem_Delete(QWebHistoryItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebHistoryItem_Delete(QWebHistoryItem* self) { + delete self; } void QWebHistory_Clear(QWebHistory* self) { diff --git a/qt/webkit/gen_qwebhistory.go b/qt/webkit/gen_qwebhistory.go index cb7c90aa..6b1b9819 100644 --- a/qt/webkit/gen_qwebhistory.go +++ b/qt/webkit/gen_qwebhistory.go @@ -148,7 +148,7 @@ func (this *QWebHistoryItem) LoadFromMap(mapVal map[string]qt.QVariant) { // Delete this object from C++ memory. func (this *QWebHistoryItem) Delete() { - C.QWebHistoryItem_Delete(this.h, C.bool(this.isSubclass)) + C.QWebHistoryItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebhistory.h b/qt/webkit/gen_qwebhistory.h index e20c628a..f056a340 100644 --- a/qt/webkit/gen_qwebhistory.h +++ b/qt/webkit/gen_qwebhistory.h @@ -42,7 +42,7 @@ void QWebHistoryItem_SetUserData(QWebHistoryItem* self, QVariant* userData); bool QWebHistoryItem_IsValid(const QWebHistoryItem* self); struct miqt_map /* of struct miqt_string to QVariant* */ QWebHistoryItem_ToMap(const QWebHistoryItem* self); void QWebHistoryItem_LoadFromMap(QWebHistoryItem* self, struct miqt_map /* of struct miqt_string to QVariant* */ mapVal); -void QWebHistoryItem_Delete(QWebHistoryItem* self, bool isSubclass); +void QWebHistoryItem_Delete(QWebHistoryItem* self); void QWebHistory_Clear(QWebHistory* self); struct miqt_array /* of QWebHistoryItem* */ QWebHistory_Items(const QWebHistory* self); diff --git a/qt/webkit/gen_qwebhistoryinterface.cpp b/qt/webkit/gen_qwebhistoryinterface.cpp index 7826e337..580fce2e 100644 --- a/qt/webkit/gen_qwebhistoryinterface.cpp +++ b/qt/webkit/gen_qwebhistoryinterface.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QWebHistoryInterface_DisconnectNotify(void*, intptr_t, Q } /* extern C */ #endif -class MiqtVirtualQWebHistoryInterface : public virtual QWebHistoryInterface { +class MiqtVirtualQWebHistoryInterface final : public QWebHistoryInterface { public: MiqtVirtualQWebHistoryInterface(): QWebHistoryInterface() {}; MiqtVirtualQWebHistoryInterface(QObject* parent): QWebHistoryInterface(parent) {}; - virtual ~MiqtVirtualQWebHistoryInterface() = default; + virtual ~MiqtVirtualQWebHistoryInterface() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__HistoryContains = 0; @@ -423,11 +423,7 @@ void QWebHistoryInterface_virtualbase_DisconnectNotify(void* self, QMetaMethod* ( (MiqtVirtualQWebHistoryInterface*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebHistoryInterface_Delete(QWebHistoryInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebHistoryInterface_Delete(QWebHistoryInterface* self) { + delete self; } diff --git a/qt/webkit/gen_qwebhistoryinterface.go b/qt/webkit/gen_qwebhistoryinterface.go index 1a6aafe4..87bee14d 100644 --- a/qt/webkit/gen_qwebhistoryinterface.go +++ b/qt/webkit/gen_qwebhistoryinterface.go @@ -402,7 +402,7 @@ func miqt_exec_callback_QWebHistoryInterface_DisconnectNotify(self *C.QWebHistor // Delete this object from C++ memory. func (this *QWebHistoryInterface) Delete() { - C.QWebHistoryInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QWebHistoryInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebhistoryinterface.h b/qt/webkit/gen_qwebhistoryinterface.h index 0e36f0eb..33f071c2 100644 --- a/qt/webkit/gen_qwebhistoryinterface.h +++ b/qt/webkit/gen_qwebhistoryinterface.h @@ -65,7 +65,7 @@ void QWebHistoryInterface_override_virtual_ConnectNotify(void* self, intptr_t sl void QWebHistoryInterface_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebHistoryInterface_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebHistoryInterface_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebHistoryInterface_Delete(QWebHistoryInterface* self, bool isSubclass); +void QWebHistoryInterface_Delete(QWebHistoryInterface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webkit/gen_qwebinspector.cpp b/qt/webkit/gen_qwebinspector.cpp index ac52a9f6..5867b97c 100644 --- a/qt/webkit/gen_qwebinspector.cpp +++ b/qt/webkit/gen_qwebinspector.cpp @@ -84,13 +84,13 @@ bool miqt_exec_callback_QWebInspector_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQWebInspector : public virtual QWebInspector { +class MiqtVirtualQWebInspector final : public QWebInspector { public: MiqtVirtualQWebInspector(QWidget* parent): QWebInspector(parent) {}; MiqtVirtualQWebInspector(): QWebInspector() {}; - virtual ~MiqtVirtualQWebInspector() = default; + virtual ~MiqtVirtualQWebInspector() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1499,11 +1499,7 @@ bool QWebInspector_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQWebInspector*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QWebInspector_Delete(QWebInspector* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebInspector_Delete(QWebInspector* self) { + delete self; } diff --git a/qt/webkit/gen_qwebinspector.go b/qt/webkit/gen_qwebinspector.go index d0d1ffef..2308f1dd 100644 --- a/qt/webkit/gen_qwebinspector.go +++ b/qt/webkit/gen_qwebinspector.go @@ -1249,7 +1249,7 @@ func miqt_exec_callback_QWebInspector_FocusNextPrevChild(self *C.QWebInspector, // Delete this object from C++ memory. func (this *QWebInspector) Delete() { - C.QWebInspector_Delete(this.h, C.bool(this.isSubclass)) + C.QWebInspector_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebinspector.h b/qt/webkit/gen_qwebinspector.h index 54d27ec2..4d2258af 100644 --- a/qt/webkit/gen_qwebinspector.h +++ b/qt/webkit/gen_qwebinspector.h @@ -179,7 +179,7 @@ void QWebInspector_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QWebInspector_virtualbase_InputMethodQuery(const void* self, int param1); void QWebInspector_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QWebInspector_virtualbase_FocusNextPrevChild(void* self, bool next); -void QWebInspector_Delete(QWebInspector* self, bool isSubclass); +void QWebInspector_Delete(QWebInspector* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webkit/gen_qwebkitplatformplugin.cpp b/qt/webkit/gen_qwebkitplatformplugin.cpp index 3179782e..9b6bfa99 100644 --- a/qt/webkit/gen_qwebkitplatformplugin.cpp +++ b/qt/webkit/gen_qwebkitplatformplugin.cpp @@ -95,12 +95,8 @@ void QWebSelectData_OperatorAssign(QWebSelectData* self, QWebSelectData* param1) self->operator=(*param1); } -void QWebSelectData_Delete(QWebSelectData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebSelectData_Delete(QWebSelectData* self) { + delete self; } void QWebSelectMethod_virtbase(QWebSelectMethod* src, QObject** outptr_QObject) { @@ -220,12 +216,8 @@ struct miqt_string QWebSelectMethod_TrUtf83(const char* s, const char* c, int n) return _ms; } -void QWebSelectMethod_Delete(QWebSelectMethod* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebSelectMethod_Delete(QWebSelectMethod* self) { + delete self; } struct miqt_string QWebNotificationData_Title(const QWebNotificationData* self) { @@ -262,12 +254,8 @@ void QWebNotificationData_OperatorAssign(QWebNotificationData* self, QWebNotific self->operator=(*param1); } -void QWebNotificationData_Delete(QWebNotificationData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebNotificationData_Delete(QWebNotificationData* self) { + delete self; } void QWebNotificationPresenter_virtbase(QWebNotificationPresenter* src, QObject** outptr_QObject) { @@ -372,12 +360,8 @@ struct miqt_string QWebNotificationPresenter_TrUtf83(const char* s, const char* return _ms; } -void QWebNotificationPresenter_Delete(QWebNotificationPresenter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebNotificationPresenter_Delete(QWebNotificationPresenter* self) { + delete self; } void QWebHapticFeedbackPlayer_virtbase(QWebHapticFeedbackPlayer* src, QObject** outptr_QObject) { @@ -463,12 +447,8 @@ struct miqt_string QWebHapticFeedbackPlayer_TrUtf83(const char* s, const char* c return _ms; } -void QWebHapticFeedbackPlayer_Delete(QWebHapticFeedbackPlayer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebHapticFeedbackPlayer_Delete(QWebHapticFeedbackPlayer* self) { + delete self; } void QWebTouchModifier_virtbase(QWebTouchModifier* src, QObject** outptr_QObject) { @@ -553,12 +533,8 @@ struct miqt_string QWebTouchModifier_TrUtf83(const char* s, const char* c, int n return _ms; } -void QWebTouchModifier_Delete(QWebTouchModifier* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebTouchModifier_Delete(QWebTouchModifier* self) { + delete self; } void QWebSpellChecker_virtbase(QWebSpellChecker* src, QObject** outptr_QObject) { @@ -706,12 +682,8 @@ struct miqt_string QWebSpellChecker_TrUtf83(const char* s, const char* c, int n) return _ms; } -void QWebSpellChecker_Delete(QWebSpellChecker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebSpellChecker_Delete(QWebSpellChecker* self) { + delete self; } bool QWebKitPlatformPlugin_SupportsExtension(const QWebKitPlatformPlugin* self, int param1) { @@ -726,12 +698,8 @@ void QWebKitPlatformPlugin_OperatorAssign(QWebKitPlatformPlugin* self, QWebKitPl self->operator=(*param1); } -void QWebKitPlatformPlugin_Delete(QWebKitPlatformPlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebKitPlatformPlugin_Delete(QWebKitPlatformPlugin* self) { + delete self; } QWebSpellChecker__GrammarDetail* QWebSpellChecker__GrammarDetail_new(QWebSpellChecker__GrammarDetail* param1) { @@ -742,11 +710,7 @@ void QWebSpellChecker__GrammarDetail_OperatorAssign(QWebSpellChecker__GrammarDet self->operator=(*param1); } -void QWebSpellChecker__GrammarDetail_Delete(QWebSpellChecker__GrammarDetail* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebSpellChecker__GrammarDetail_Delete(QWebSpellChecker__GrammarDetail* self) { + delete self; } diff --git a/qt/webkit/gen_qwebkitplatformplugin.go b/qt/webkit/gen_qwebkitplatformplugin.go index 510e84ad..d3f8288b 100644 --- a/qt/webkit/gen_qwebkitplatformplugin.go +++ b/qt/webkit/gen_qwebkitplatformplugin.go @@ -156,7 +156,7 @@ func (this *QWebSelectData) OperatorAssign(param1 *QWebSelectData) { // Delete this object from C++ memory. func (this *QWebSelectData) Delete() { - C.QWebSelectData_Delete(this.h, C.bool(this.isSubclass)) + C.QWebSelectData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -336,7 +336,7 @@ func QWebSelectMethod_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebSelectMethod) Delete() { - C.QWebSelectMethod_Delete(this.h, C.bool(this.isSubclass)) + C.QWebSelectMethod_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -413,7 +413,7 @@ func (this *QWebNotificationData) OperatorAssign(param1 *QWebNotificationData) { // Delete this object from C++ memory. func (this *QWebNotificationData) Delete() { - C.QWebNotificationData_Delete(this.h, C.bool(this.isSubclass)) + C.QWebNotificationData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -574,7 +574,7 @@ func QWebNotificationPresenter_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebNotificationPresenter) Delete() { - C.QWebNotificationPresenter_Delete(this.h, C.bool(this.isSubclass)) + C.QWebNotificationPresenter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -705,7 +705,7 @@ func QWebHapticFeedbackPlayer_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebHapticFeedbackPlayer) Delete() { - C.QWebHapticFeedbackPlayer_Delete(this.h, C.bool(this.isSubclass)) + C.QWebHapticFeedbackPlayer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -832,7 +832,7 @@ func QWebTouchModifier_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebTouchModifier) Delete() { - C.QWebTouchModifier_Delete(this.h, C.bool(this.isSubclass)) + C.QWebTouchModifier_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1042,7 +1042,7 @@ func QWebSpellChecker_TrUtf83(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebSpellChecker) Delete() { - C.QWebSpellChecker_Delete(this.h, C.bool(this.isSubclass)) + C.QWebSpellChecker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1101,7 +1101,7 @@ func (this *QWebKitPlatformPlugin) OperatorAssign(param1 *QWebKitPlatformPlugin) // Delete this object from C++ memory. func (this *QWebKitPlatformPlugin) Delete() { - C.QWebKitPlatformPlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QWebKitPlatformPlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1160,7 +1160,7 @@ func (this *QWebSpellChecker__GrammarDetail) OperatorAssign(param1 *QWebSpellChe // Delete this object from C++ memory. func (this *QWebSpellChecker__GrammarDetail) Delete() { - C.QWebSpellChecker__GrammarDetail_Delete(this.h, C.bool(this.isSubclass)) + C.QWebSpellChecker__GrammarDetail_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebkitplatformplugin.h b/qt/webkit/gen_qwebkitplatformplugin.h index f3778ea9..3bd8fcdb 100644 --- a/qt/webkit/gen_qwebkitplatformplugin.h +++ b/qt/webkit/gen_qwebkitplatformplugin.h @@ -64,7 +64,7 @@ QColor* QWebSelectData_ForegroundColor(const QWebSelectData* self); QColor* QWebSelectData_ItemBackgroundColor(const QWebSelectData* self, int index); QColor* QWebSelectData_ItemForegroundColor(const QWebSelectData* self, int index); void QWebSelectData_OperatorAssign(QWebSelectData* self, QWebSelectData* param1); -void QWebSelectData_Delete(QWebSelectData* self, bool isSubclass); +void QWebSelectData_Delete(QWebSelectData* self); void QWebSelectMethod_virtbase(QWebSelectMethod* src, QObject** outptr_QObject); QMetaObject* QWebSelectMethod_MetaObject(const QWebSelectMethod* self); @@ -83,14 +83,14 @@ struct miqt_string QWebSelectMethod_Tr2(const char* s, const char* c); struct miqt_string QWebSelectMethod_Tr3(const char* s, const char* c, int n); struct miqt_string QWebSelectMethod_TrUtf82(const char* s, const char* c); struct miqt_string QWebSelectMethod_TrUtf83(const char* s, const char* c, int n); -void QWebSelectMethod_Delete(QWebSelectMethod* self, bool isSubclass); +void QWebSelectMethod_Delete(QWebSelectMethod* self); struct miqt_string QWebNotificationData_Title(const QWebNotificationData* self); struct miqt_string QWebNotificationData_Message(const QWebNotificationData* self); QUrl* QWebNotificationData_IconUrl(const QWebNotificationData* self); QUrl* QWebNotificationData_OpenerPageUrl(const QWebNotificationData* self); void QWebNotificationData_OperatorAssign(QWebNotificationData* self, QWebNotificationData* param1); -void QWebNotificationData_Delete(QWebNotificationData* self, bool isSubclass); +void QWebNotificationData_Delete(QWebNotificationData* self); void QWebNotificationPresenter_virtbase(QWebNotificationPresenter* src, QObject** outptr_QObject); QMetaObject* QWebNotificationPresenter_MetaObject(const QWebNotificationPresenter* self); @@ -106,7 +106,7 @@ struct miqt_string QWebNotificationPresenter_Tr2(const char* s, const char* c); struct miqt_string QWebNotificationPresenter_Tr3(const char* s, const char* c, int n); struct miqt_string QWebNotificationPresenter_TrUtf82(const char* s, const char* c); struct miqt_string QWebNotificationPresenter_TrUtf83(const char* s, const char* c, int n); -void QWebNotificationPresenter_Delete(QWebNotificationPresenter* self, bool isSubclass); +void QWebNotificationPresenter_Delete(QWebNotificationPresenter* self); void QWebHapticFeedbackPlayer_virtbase(QWebHapticFeedbackPlayer* src, QObject** outptr_QObject); QMetaObject* QWebHapticFeedbackPlayer_MetaObject(const QWebHapticFeedbackPlayer* self); @@ -118,7 +118,7 @@ struct miqt_string QWebHapticFeedbackPlayer_Tr2(const char* s, const char* c); struct miqt_string QWebHapticFeedbackPlayer_Tr3(const char* s, const char* c, int n); struct miqt_string QWebHapticFeedbackPlayer_TrUtf82(const char* s, const char* c); struct miqt_string QWebHapticFeedbackPlayer_TrUtf83(const char* s, const char* c, int n); -void QWebHapticFeedbackPlayer_Delete(QWebHapticFeedbackPlayer* self, bool isSubclass); +void QWebHapticFeedbackPlayer_Delete(QWebHapticFeedbackPlayer* self); void QWebTouchModifier_virtbase(QWebTouchModifier* src, QObject** outptr_QObject); QMetaObject* QWebTouchModifier_MetaObject(const QWebTouchModifier* self); @@ -130,7 +130,7 @@ struct miqt_string QWebTouchModifier_Tr2(const char* s, const char* c); struct miqt_string QWebTouchModifier_Tr3(const char* s, const char* c, int n); struct miqt_string QWebTouchModifier_TrUtf82(const char* s, const char* c); struct miqt_string QWebTouchModifier_TrUtf83(const char* s, const char* c, int n); -void QWebTouchModifier_Delete(QWebTouchModifier* self, bool isSubclass); +void QWebTouchModifier_Delete(QWebTouchModifier* self); void QWebSpellChecker_virtbase(QWebSpellChecker* src, QObject** outptr_QObject); QMetaObject* QWebSpellChecker_MetaObject(const QWebSpellChecker* self); @@ -151,16 +151,16 @@ struct miqt_string QWebSpellChecker_Tr2(const char* s, const char* c); struct miqt_string QWebSpellChecker_Tr3(const char* s, const char* c, int n); struct miqt_string QWebSpellChecker_TrUtf82(const char* s, const char* c); struct miqt_string QWebSpellChecker_TrUtf83(const char* s, const char* c, int n); -void QWebSpellChecker_Delete(QWebSpellChecker* self, bool isSubclass); +void QWebSpellChecker_Delete(QWebSpellChecker* self); bool QWebKitPlatformPlugin_SupportsExtension(const QWebKitPlatformPlugin* self, int param1); QObject* QWebKitPlatformPlugin_CreateExtension(const QWebKitPlatformPlugin* self, int param1); void QWebKitPlatformPlugin_OperatorAssign(QWebKitPlatformPlugin* self, QWebKitPlatformPlugin* param1); -void QWebKitPlatformPlugin_Delete(QWebKitPlatformPlugin* self, bool isSubclass); +void QWebKitPlatformPlugin_Delete(QWebKitPlatformPlugin* self); QWebSpellChecker__GrammarDetail* QWebSpellChecker__GrammarDetail_new(QWebSpellChecker__GrammarDetail* param1); void QWebSpellChecker__GrammarDetail_OperatorAssign(QWebSpellChecker__GrammarDetail* self, QWebSpellChecker__GrammarDetail* param1); -void QWebSpellChecker__GrammarDetail_Delete(QWebSpellChecker__GrammarDetail* self, bool isSubclass); +void QWebSpellChecker__GrammarDetail_Delete(QWebSpellChecker__GrammarDetail* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webkit/gen_qwebpage.cpp b/qt/webkit/gen_qwebpage.cpp index d947ae5b..1f67c9cd 100644 --- a/qt/webkit/gen_qwebpage.cpp +++ b/qt/webkit/gen_qwebpage.cpp @@ -100,13 +100,13 @@ void miqt_exec_callback_QWebPage_DisconnectNotify(void*, intptr_t, QMetaMethod*) } /* extern C */ #endif -class MiqtVirtualQWebPage : public virtual QWebPage { +class MiqtVirtualQWebPage final : public QWebPage { public: MiqtVirtualQWebPage(): QWebPage() {}; MiqtVirtualQWebPage(QObject* parent): QWebPage(parent) {}; - virtual ~MiqtVirtualQWebPage() = default; + virtual ~MiqtVirtualQWebPage() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__TriggerAction = 0; @@ -1612,12 +1612,8 @@ void QWebPage_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQWebPage*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebPage_Delete(QWebPage* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPage_Delete(QWebPage* self) { + delete self; } QWebPage__ViewportAttributes* QWebPage__ViewportAttributes_new() { @@ -1664,24 +1660,16 @@ QSizeF* QWebPage__ViewportAttributes_Size(const QWebPage__ViewportAttributes* se return new QSizeF(self->size()); } -void QWebPage__ViewportAttributes_Delete(QWebPage__ViewportAttributes* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPage__ViewportAttributes_Delete(QWebPage__ViewportAttributes* self) { + delete self; } QWebPage__ExtensionOption* QWebPage__ExtensionOption_new(QWebPage__ExtensionOption* param1) { return new QWebPage::ExtensionOption(*param1); } -void QWebPage__ExtensionOption_Delete(QWebPage__ExtensionOption* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPage__ExtensionOption_Delete(QWebPage__ExtensionOption* self) { + delete self; } QWebPage__ExtensionReturn* QWebPage__ExtensionReturn_new(QWebPage__ExtensionReturn* param1) { @@ -1692,36 +1680,24 @@ QWebPage__ExtensionReturn* QWebPage__ExtensionReturn_new2() { return new QWebPage::ExtensionReturn(); } -void QWebPage__ExtensionReturn_Delete(QWebPage__ExtensionReturn* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPage__ExtensionReturn_Delete(QWebPage__ExtensionReturn* self) { + delete self; } void QWebPage__ChooseMultipleFilesExtensionOption_virtbase(QWebPage__ChooseMultipleFilesExtensionOption* src, QWebPage::ExtensionOption** outptr_QWebPage__ExtensionOption) { *outptr_QWebPage__ExtensionOption = static_cast(src); } -void QWebPage__ChooseMultipleFilesExtensionOption_Delete(QWebPage__ChooseMultipleFilesExtensionOption* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPage__ChooseMultipleFilesExtensionOption_Delete(QWebPage__ChooseMultipleFilesExtensionOption* self) { + delete self; } void QWebPage__ChooseMultipleFilesExtensionReturn_virtbase(QWebPage__ChooseMultipleFilesExtensionReturn* src, QWebPage::ExtensionReturn** outptr_QWebPage__ExtensionReturn) { *outptr_QWebPage__ExtensionReturn = static_cast(src); } -void QWebPage__ChooseMultipleFilesExtensionReturn_Delete(QWebPage__ChooseMultipleFilesExtensionReturn* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPage__ChooseMultipleFilesExtensionReturn_Delete(QWebPage__ChooseMultipleFilesExtensionReturn* self) { + delete self; } QWebPage__ErrorPageExtensionOption* QWebPage__ErrorPageExtensionOption_new(QWebPage__ErrorPageExtensionOption* param1) { @@ -1736,12 +1712,8 @@ void QWebPage__ErrorPageExtensionOption_OperatorAssign(QWebPage__ErrorPageExtens self->operator=(*param1); } -void QWebPage__ErrorPageExtensionOption_Delete(QWebPage__ErrorPageExtensionOption* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPage__ErrorPageExtensionOption_Delete(QWebPage__ErrorPageExtensionOption* self) { + delete self; } QWebPage__ErrorPageExtensionReturn* QWebPage__ErrorPageExtensionReturn_new() { @@ -1760,11 +1732,7 @@ void QWebPage__ErrorPageExtensionReturn_OperatorAssign(QWebPage__ErrorPageExtens self->operator=(*param1); } -void QWebPage__ErrorPageExtensionReturn_Delete(QWebPage__ErrorPageExtensionReturn* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPage__ErrorPageExtensionReturn_Delete(QWebPage__ErrorPageExtensionReturn* self) { + delete self; } diff --git a/qt/webkit/gen_qwebpage.go b/qt/webkit/gen_qwebpage.go index 94b445d4..c4f68288 100644 --- a/qt/webkit/gen_qwebpage.go +++ b/qt/webkit/gen_qwebpage.go @@ -1900,7 +1900,7 @@ func miqt_exec_callback_QWebPage_DisconnectNotify(self *C.QWebPage, cb C.intptr_ // Delete this object from C++ memory. func (this *QWebPage) Delete() { - C.QWebPage_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPage_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1997,7 +1997,7 @@ func (this *QWebPage__ViewportAttributes) Size() *qt.QSizeF { // Delete this object from C++ memory. func (this *QWebPage__ViewportAttributes) Delete() { - C.QWebPage__ViewportAttributes_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPage__ViewportAttributes_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2052,7 +2052,7 @@ func NewQWebPage__ExtensionOption(param1 *QWebPage__ExtensionOption) *QWebPage__ // Delete this object from C++ memory. func (this *QWebPage__ExtensionOption) Delete() { - C.QWebPage__ExtensionOption_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPage__ExtensionOption_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2115,7 +2115,7 @@ func NewQWebPage__ExtensionReturn2() *QWebPage__ExtensionReturn { // Delete this object from C++ memory. func (this *QWebPage__ExtensionReturn) Delete() { - C.QWebPage__ExtensionReturn_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPage__ExtensionReturn_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2166,7 +2166,7 @@ func UnsafeNewQWebPage__ChooseMultipleFilesExtensionOption(h unsafe.Pointer) *QW // Delete this object from C++ memory. func (this *QWebPage__ChooseMultipleFilesExtensionOption) Delete() { - C.QWebPage__ChooseMultipleFilesExtensionOption_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPage__ChooseMultipleFilesExtensionOption_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2217,7 +2217,7 @@ func UnsafeNewQWebPage__ChooseMultipleFilesExtensionReturn(h unsafe.Pointer) *QW // Delete this object from C++ memory. func (this *QWebPage__ChooseMultipleFilesExtensionReturn) Delete() { - C.QWebPage__ChooseMultipleFilesExtensionReturn_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPage__ChooseMultipleFilesExtensionReturn_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2280,7 +2280,7 @@ func (this *QWebPage__ErrorPageExtensionOption) OperatorAssign(param1 *QWebPage_ // Delete this object from C++ memory. func (this *QWebPage__ErrorPageExtensionOption) Delete() { - C.QWebPage__ErrorPageExtensionOption_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPage__ErrorPageExtensionOption_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2351,7 +2351,7 @@ func (this *QWebPage__ErrorPageExtensionReturn) OperatorAssign(param1 *QWebPage_ // Delete this object from C++ memory. func (this *QWebPage__ErrorPageExtensionReturn) Delete() { - C.QWebPage__ErrorPageExtensionReturn_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPage__ErrorPageExtensionReturn_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebpage.h b/qt/webkit/gen_qwebpage.h index 55c41c6f..49db0525 100644 --- a/qt/webkit/gen_qwebpage.h +++ b/qt/webkit/gen_qwebpage.h @@ -294,7 +294,7 @@ void QWebPage_override_virtual_ConnectNotify(void* self, intptr_t slot); void QWebPage_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebPage_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebPage_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebPage_Delete(QWebPage* self, bool isSubclass); +void QWebPage_Delete(QWebPage* self); QWebPage__ViewportAttributes* QWebPage__ViewportAttributes_new(); QWebPage__ViewportAttributes* QWebPage__ViewportAttributes_new2(QWebPage__ViewportAttributes* other); @@ -306,31 +306,31 @@ double QWebPage__ViewportAttributes_DevicePixelRatio(const QWebPage__ViewportAtt bool QWebPage__ViewportAttributes_IsUserScalable(const QWebPage__ViewportAttributes* self); bool QWebPage__ViewportAttributes_IsValid(const QWebPage__ViewportAttributes* self); QSizeF* QWebPage__ViewportAttributes_Size(const QWebPage__ViewportAttributes* self); -void QWebPage__ViewportAttributes_Delete(QWebPage__ViewportAttributes* self, bool isSubclass); +void QWebPage__ViewportAttributes_Delete(QWebPage__ViewportAttributes* self); QWebPage__ExtensionOption* QWebPage__ExtensionOption_new(QWebPage__ExtensionOption* param1); -void QWebPage__ExtensionOption_Delete(QWebPage__ExtensionOption* self, bool isSubclass); +void QWebPage__ExtensionOption_Delete(QWebPage__ExtensionOption* self); QWebPage__ExtensionReturn* QWebPage__ExtensionReturn_new(QWebPage__ExtensionReturn* param1); QWebPage__ExtensionReturn* QWebPage__ExtensionReturn_new2(); -void QWebPage__ExtensionReturn_Delete(QWebPage__ExtensionReturn* self, bool isSubclass); +void QWebPage__ExtensionReturn_Delete(QWebPage__ExtensionReturn* self); void QWebPage__ChooseMultipleFilesExtensionOption_virtbase(QWebPage__ChooseMultipleFilesExtensionOption* src, QWebPage__ExtensionOption** outptr_QWebPage__ExtensionOption); -void QWebPage__ChooseMultipleFilesExtensionOption_Delete(QWebPage__ChooseMultipleFilesExtensionOption* self, bool isSubclass); +void QWebPage__ChooseMultipleFilesExtensionOption_Delete(QWebPage__ChooseMultipleFilesExtensionOption* self); void QWebPage__ChooseMultipleFilesExtensionReturn_virtbase(QWebPage__ChooseMultipleFilesExtensionReturn* src, QWebPage__ExtensionReturn** outptr_QWebPage__ExtensionReturn); -void QWebPage__ChooseMultipleFilesExtensionReturn_Delete(QWebPage__ChooseMultipleFilesExtensionReturn* self, bool isSubclass); +void QWebPage__ChooseMultipleFilesExtensionReturn_Delete(QWebPage__ChooseMultipleFilesExtensionReturn* self); QWebPage__ErrorPageExtensionOption* QWebPage__ErrorPageExtensionOption_new(QWebPage__ErrorPageExtensionOption* param1); void QWebPage__ErrorPageExtensionOption_virtbase(QWebPage__ErrorPageExtensionOption* src, QWebPage__ExtensionOption** outptr_QWebPage__ExtensionOption); void QWebPage__ErrorPageExtensionOption_OperatorAssign(QWebPage__ErrorPageExtensionOption* self, QWebPage__ErrorPageExtensionOption* param1); -void QWebPage__ErrorPageExtensionOption_Delete(QWebPage__ErrorPageExtensionOption* self, bool isSubclass); +void QWebPage__ErrorPageExtensionOption_Delete(QWebPage__ErrorPageExtensionOption* self); QWebPage__ErrorPageExtensionReturn* QWebPage__ErrorPageExtensionReturn_new(); QWebPage__ErrorPageExtensionReturn* QWebPage__ErrorPageExtensionReturn_new2(QWebPage__ErrorPageExtensionReturn* param1); void QWebPage__ErrorPageExtensionReturn_virtbase(QWebPage__ErrorPageExtensionReturn* src, QWebPage__ExtensionReturn** outptr_QWebPage__ExtensionReturn); void QWebPage__ErrorPageExtensionReturn_OperatorAssign(QWebPage__ErrorPageExtensionReturn* self, QWebPage__ErrorPageExtensionReturn* param1); -void QWebPage__ErrorPageExtensionReturn_Delete(QWebPage__ErrorPageExtensionReturn* self, bool isSubclass); +void QWebPage__ErrorPageExtensionReturn_Delete(QWebPage__ErrorPageExtensionReturn* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webkit/gen_qwebpluginfactory.cpp b/qt/webkit/gen_qwebpluginfactory.cpp index c3d20816..231198d6 100644 --- a/qt/webkit/gen_qwebpluginfactory.cpp +++ b/qt/webkit/gen_qwebpluginfactory.cpp @@ -37,13 +37,13 @@ void miqt_exec_callback_QWebPluginFactory_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQWebPluginFactory : public virtual QWebPluginFactory { +class MiqtVirtualQWebPluginFactory final : public QWebPluginFactory { public: MiqtVirtualQWebPluginFactory(): QWebPluginFactory() {}; MiqtVirtualQWebPluginFactory(QObject* parent): QWebPluginFactory(parent) {}; - virtual ~MiqtVirtualQWebPluginFactory() = default; + virtual ~MiqtVirtualQWebPluginFactory() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Plugins = 0; @@ -590,12 +590,8 @@ void QWebPluginFactory_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQWebPluginFactory*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebPluginFactory_Delete(QWebPluginFactory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPluginFactory_Delete(QWebPluginFactory* self) { + delete self; } QWebPluginFactory__MimeType* QWebPluginFactory__MimeType_new(QWebPluginFactory__MimeType* param1) { @@ -614,12 +610,8 @@ void QWebPluginFactory__MimeType_OperatorAssign(QWebPluginFactory__MimeType* sel self->operator=(*param1); } -void QWebPluginFactory__MimeType_Delete(QWebPluginFactory__MimeType* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPluginFactory__MimeType_Delete(QWebPluginFactory__MimeType* self) { + delete self; } QWebPluginFactory__Plugin* QWebPluginFactory__Plugin_new(QWebPluginFactory__Plugin* param1) { @@ -630,27 +622,15 @@ void QWebPluginFactory__Plugin_OperatorAssign(QWebPluginFactory__Plugin* self, Q self->operator=(*param1); } -void QWebPluginFactory__Plugin_Delete(QWebPluginFactory__Plugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPluginFactory__Plugin_Delete(QWebPluginFactory__Plugin* self) { + delete self; } -void QWebPluginFactory__ExtensionOption_Delete(QWebPluginFactory__ExtensionOption* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPluginFactory__ExtensionOption_Delete(QWebPluginFactory__ExtensionOption* self) { + delete self; } -void QWebPluginFactory__ExtensionReturn_Delete(QWebPluginFactory__ExtensionReturn* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebPluginFactory__ExtensionReturn_Delete(QWebPluginFactory__ExtensionReturn* self) { + delete self; } diff --git a/qt/webkit/gen_qwebpluginfactory.go b/qt/webkit/gen_qwebpluginfactory.go index 90e69b98..3a180ad7 100644 --- a/qt/webkit/gen_qwebpluginfactory.go +++ b/qt/webkit/gen_qwebpluginfactory.go @@ -538,7 +538,7 @@ func miqt_exec_callback_QWebPluginFactory_DisconnectNotify(self *C.QWebPluginFac // Delete this object from C++ memory. func (this *QWebPluginFactory) Delete() { - C.QWebPluginFactory_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPluginFactory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -605,7 +605,7 @@ func (this *QWebPluginFactory__MimeType) OperatorAssign(param1 *QWebPluginFactor // Delete this object from C++ memory. func (this *QWebPluginFactory__MimeType) Delete() { - C.QWebPluginFactory__MimeType_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPluginFactory__MimeType_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -664,7 +664,7 @@ func (this *QWebPluginFactory__Plugin) OperatorAssign(param1 *QWebPluginFactory_ // Delete this object from C++ memory. func (this *QWebPluginFactory__Plugin) Delete() { - C.QWebPluginFactory__Plugin_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPluginFactory__Plugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -711,7 +711,7 @@ func UnsafeNewQWebPluginFactory__ExtensionOption(h unsafe.Pointer) *QWebPluginFa // Delete this object from C++ memory. func (this *QWebPluginFactory__ExtensionOption) Delete() { - C.QWebPluginFactory__ExtensionOption_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPluginFactory__ExtensionOption_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -758,7 +758,7 @@ func UnsafeNewQWebPluginFactory__ExtensionReturn(h unsafe.Pointer) *QWebPluginFa // Delete this object from C++ memory. func (this *QWebPluginFactory__ExtensionReturn) Delete() { - C.QWebPluginFactory__ExtensionReturn_Delete(this.h, C.bool(this.isSubclass)) + C.QWebPluginFactory__ExtensionReturn_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebpluginfactory.h b/qt/webkit/gen_qwebpluginfactory.h index 8fdbfb9f..c4e8d04f 100644 --- a/qt/webkit/gen_qwebpluginfactory.h +++ b/qt/webkit/gen_qwebpluginfactory.h @@ -98,21 +98,21 @@ void QWebPluginFactory_override_virtual_ConnectNotify(void* self, intptr_t slot) void QWebPluginFactory_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebPluginFactory_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebPluginFactory_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebPluginFactory_Delete(QWebPluginFactory* self, bool isSubclass); +void QWebPluginFactory_Delete(QWebPluginFactory* self); QWebPluginFactory__MimeType* QWebPluginFactory__MimeType_new(QWebPluginFactory__MimeType* param1); bool QWebPluginFactory__MimeType_OperatorEqual(const QWebPluginFactory__MimeType* self, QWebPluginFactory__MimeType* other); bool QWebPluginFactory__MimeType_OperatorNotEqual(const QWebPluginFactory__MimeType* self, QWebPluginFactory__MimeType* other); void QWebPluginFactory__MimeType_OperatorAssign(QWebPluginFactory__MimeType* self, QWebPluginFactory__MimeType* param1); -void QWebPluginFactory__MimeType_Delete(QWebPluginFactory__MimeType* self, bool isSubclass); +void QWebPluginFactory__MimeType_Delete(QWebPluginFactory__MimeType* self); QWebPluginFactory__Plugin* QWebPluginFactory__Plugin_new(QWebPluginFactory__Plugin* param1); void QWebPluginFactory__Plugin_OperatorAssign(QWebPluginFactory__Plugin* self, QWebPluginFactory__Plugin* param1); -void QWebPluginFactory__Plugin_Delete(QWebPluginFactory__Plugin* self, bool isSubclass); +void QWebPluginFactory__Plugin_Delete(QWebPluginFactory__Plugin* self); -void QWebPluginFactory__ExtensionOption_Delete(QWebPluginFactory__ExtensionOption* self, bool isSubclass); +void QWebPluginFactory__ExtensionOption_Delete(QWebPluginFactory__ExtensionOption* self); -void QWebPluginFactory__ExtensionReturn_Delete(QWebPluginFactory__ExtensionReturn* self, bool isSubclass); +void QWebPluginFactory__ExtensionReturn_Delete(QWebPluginFactory__ExtensionReturn* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webkit/gen_qwebsecurityorigin.cpp b/qt/webkit/gen_qwebsecurityorigin.cpp index 8d4e8246..ce6744d7 100644 --- a/qt/webkit/gen_qwebsecurityorigin.cpp +++ b/qt/webkit/gen_qwebsecurityorigin.cpp @@ -140,11 +140,7 @@ void QWebSecurityOrigin_OperatorAssign(QWebSecurityOrigin* self, QWebSecurityOri self->operator=(*other); } -void QWebSecurityOrigin_Delete(QWebSecurityOrigin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebSecurityOrigin_Delete(QWebSecurityOrigin* self) { + delete self; } diff --git a/qt/webkit/gen_qwebsecurityorigin.go b/qt/webkit/gen_qwebsecurityorigin.go index eaa32cfc..31678a5a 100644 --- a/qt/webkit/gen_qwebsecurityorigin.go +++ b/qt/webkit/gen_qwebsecurityorigin.go @@ -187,7 +187,7 @@ func (this *QWebSecurityOrigin) OperatorAssign(other *QWebSecurityOrigin) { // Delete this object from C++ memory. func (this *QWebSecurityOrigin) Delete() { - C.QWebSecurityOrigin_Delete(this.h, C.bool(this.isSubclass)) + C.QWebSecurityOrigin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebsecurityorigin.h b/qt/webkit/gen_qwebsecurityorigin.h index 6321a88e..79fc9843 100644 --- a/qt/webkit/gen_qwebsecurityorigin.h +++ b/qt/webkit/gen_qwebsecurityorigin.h @@ -41,7 +41,7 @@ void QWebSecurityOrigin_SetDatabaseQuota(QWebSecurityOrigin* self, long long quo void QWebSecurityOrigin_SetApplicationCacheQuota(QWebSecurityOrigin* self, long long quota); struct miqt_array /* of QWebDatabase* */ QWebSecurityOrigin_Databases(const QWebSecurityOrigin* self); void QWebSecurityOrigin_OperatorAssign(QWebSecurityOrigin* self, QWebSecurityOrigin* other); -void QWebSecurityOrigin_Delete(QWebSecurityOrigin* self, bool isSubclass); +void QWebSecurityOrigin_Delete(QWebSecurityOrigin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt/webkit/gen_qwebview.cpp b/qt/webkit/gen_qwebview.cpp index 43c02c79..e49af138 100644 --- a/qt/webkit/gen_qwebview.cpp +++ b/qt/webkit/gen_qwebview.cpp @@ -101,13 +101,13 @@ QPainter* miqt_exec_callback_QWebView_SharedPainter(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQWebView : public virtual QWebView { +class MiqtVirtualQWebView final : public QWebView { public: MiqtVirtualQWebView(QWidget* parent): QWebView(parent) {}; MiqtVirtualQWebView(): QWebView() {}; - virtual ~MiqtVirtualQWebView() = default; + virtual ~MiqtVirtualQWebView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodQuery = 0; @@ -1850,11 +1850,7 @@ QPainter* QWebView_virtualbase_SharedPainter(const void* self) { return ( (const MiqtVirtualQWebView*)(self) )->virtualbase_SharedPainter(); } -void QWebView_Delete(QWebView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebView_Delete(QWebView* self) { + delete self; } diff --git a/qt/webkit/gen_qwebview.go b/qt/webkit/gen_qwebview.go index 03d215c6..4a453f62 100644 --- a/qt/webkit/gen_qwebview.go +++ b/qt/webkit/gen_qwebview.go @@ -1667,7 +1667,7 @@ func miqt_exec_callback_QWebView_SharedPainter(self *C.QWebView, cb C.intptr_t) // Delete this object from C++ memory. func (this *QWebView) Delete() { - C.QWebView_Delete(this.h, C.bool(this.isSubclass)) + C.QWebView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt/webkit/gen_qwebview.h b/qt/webkit/gen_qwebview.h index cc3316e3..627ab86e 100644 --- a/qt/webkit/gen_qwebview.h +++ b/qt/webkit/gen_qwebview.h @@ -267,7 +267,7 @@ void QWebView_override_virtual_Redirected(void* self, intptr_t slot); QPaintDevice* QWebView_virtualbase_Redirected(const void* self, QPoint* offset); void QWebView_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QWebView_virtualbase_SharedPainter(const void* self); -void QWebView_Delete(QWebView* self, bool isSubclass); +void QWebView_Delete(QWebView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/cbor/gen_qcborarray.cpp b/qt6/cbor/gen_qcborarray.cpp index c5589aa1..ed9391e1 100644 --- a/qt6/cbor/gen_qcborarray.cpp +++ b/qt6/cbor/gen_qcborarray.cpp @@ -248,12 +248,8 @@ QJsonArray* QCborArray_ToJsonArray(const QCborArray* self) { return new QJsonArray(self->toJsonArray()); } -void QCborArray_Delete(QCborArray* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborArray_Delete(QCborArray* self) { + delete self; } QCborArray__Iterator* QCborArray__Iterator_new() { @@ -377,12 +373,8 @@ ptrdiff_t QCborArray__Iterator_OperatorMinusWithQCborArrayIterator(const QCborAr return static_cast(_ret); } -void QCborArray__Iterator_Delete(QCborArray__Iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborArray__Iterator_Delete(QCborArray__Iterator* self) { + delete self; } QCborArray__ConstIterator* QCborArray__ConstIterator_new() { @@ -502,11 +494,7 @@ ptrdiff_t QCborArray__ConstIterator_OperatorMinusWithQCborArrayConstIterator(con return static_cast(_ret); } -void QCborArray__ConstIterator_Delete(QCborArray__ConstIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborArray__ConstIterator_Delete(QCborArray__ConstIterator* self) { + delete self; } diff --git a/qt6/cbor/gen_qcborarray.go b/qt6/cbor/gen_qcborarray.go index a754a678..2401b54f 100644 --- a/qt6/cbor/gen_qcborarray.go +++ b/qt6/cbor/gen_qcborarray.go @@ -341,7 +341,7 @@ func (this *QCborArray) ToJsonArray() *qt6.QJsonArray { // Delete this object from C++ memory. func (this *QCborArray) Delete() { - C.QCborArray_Delete(this.h, C.bool(this.isSubclass)) + C.QCborArray_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -520,7 +520,7 @@ func (this *QCborArray__Iterator) OperatorMinusWithQCborArrayIterator(j QCborArr // Delete this object from C++ memory. func (this *QCborArray__Iterator) Delete() { - C.QCborArray__Iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QCborArray__Iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -695,7 +695,7 @@ func (this *QCborArray__ConstIterator) OperatorMinusWithQCborArrayConstIterator( // Delete this object from C++ memory. func (this *QCborArray__ConstIterator) Delete() { - C.QCborArray__ConstIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QCborArray__ConstIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/cbor/gen_qcborarray.h b/qt6/cbor/gen_qcborarray.h index 2ab8e052..eff255f0 100644 --- a/qt6/cbor/gen_qcborarray.h +++ b/qt6/cbor/gen_qcborarray.h @@ -94,7 +94,7 @@ QCborArray* QCborArray_OperatorShiftLeft(QCborArray* self, QCborValue* v); QCborArray* QCborArray_FromStringList(struct miqt_array /* of struct miqt_string */ list); QCborArray* QCborArray_FromJsonArray(QJsonArray* array); QJsonArray* QCborArray_ToJsonArray(const QCborArray* self); -void QCborArray_Delete(QCborArray* self, bool isSubclass); +void QCborArray_Delete(QCborArray* self); QCborArray__Iterator* QCborArray__Iterator_new(); QCborArray__Iterator* QCborArray__Iterator_new2(QCborArray__Iterator* param1); @@ -124,7 +124,7 @@ QCborArray__Iterator* QCborArray__Iterator_OperatorMinusAssign(QCborArray__Itera QCborArray__Iterator* QCborArray__Iterator_OperatorPlus(const QCborArray__Iterator* self, ptrdiff_t j); QCborArray__Iterator* QCborArray__Iterator_OperatorMinus(const QCborArray__Iterator* self, ptrdiff_t j); ptrdiff_t QCborArray__Iterator_OperatorMinusWithQCborArrayIterator(const QCborArray__Iterator* self, QCborArray__Iterator* j); -void QCborArray__Iterator_Delete(QCborArray__Iterator* self, bool isSubclass); +void QCborArray__Iterator_Delete(QCborArray__Iterator* self); QCborArray__ConstIterator* QCborArray__ConstIterator_new(); QCborArray__ConstIterator* QCborArray__ConstIterator_new2(QCborArray__ConstIterator* param1); @@ -153,7 +153,7 @@ QCborArray__ConstIterator* QCborArray__ConstIterator_OperatorMinusAssign(QCborAr QCborArray__ConstIterator* QCborArray__ConstIterator_OperatorPlus(const QCborArray__ConstIterator* self, ptrdiff_t j); QCborArray__ConstIterator* QCborArray__ConstIterator_OperatorMinus(const QCborArray__ConstIterator* self, ptrdiff_t j); ptrdiff_t QCborArray__ConstIterator_OperatorMinusWithQCborArrayConstIterator(const QCborArray__ConstIterator* self, QCborArray__ConstIterator* j); -void QCborArray__ConstIterator_Delete(QCborArray__ConstIterator* self, bool isSubclass); +void QCborArray__ConstIterator_Delete(QCborArray__ConstIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/cbor/gen_qcborcommon.cpp b/qt6/cbor/gen_qcborcommon.cpp index ef718233..a5a8a553 100644 --- a/qt6/cbor/gen_qcborcommon.cpp +++ b/qt6/cbor/gen_qcborcommon.cpp @@ -29,11 +29,7 @@ struct miqt_string QCborError_ToString(const QCborError* self) { return _ms; } -void QCborError_Delete(QCborError* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborError_Delete(QCborError* self) { + delete self; } diff --git a/qt6/cbor/gen_qcborcommon.go b/qt6/cbor/gen_qcborcommon.go index fa68feb2..bb9b02a7 100644 --- a/qt6/cbor/gen_qcborcommon.go +++ b/qt6/cbor/gen_qcborcommon.go @@ -120,7 +120,7 @@ func (this *QCborError) ToString() string { // Delete this object from C++ memory. func (this *QCborError) Delete() { - C.QCborError_Delete(this.h, C.bool(this.isSubclass)) + C.QCborError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/cbor/gen_qcborcommon.h b/qt6/cbor/gen_qcborcommon.h index badbcd17..116af004 100644 --- a/qt6/cbor/gen_qcborcommon.h +++ b/qt6/cbor/gen_qcborcommon.h @@ -22,7 +22,7 @@ typedef struct QCborError QCborError; int QCborError_ToQCborError__Code(const QCborError* self); struct miqt_string QCborError_ToString(const QCborError* self); -void QCborError_Delete(QCborError* self, bool isSubclass); +void QCborError_Delete(QCborError* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/cbor/gen_qcbormap.cpp b/qt6/cbor/gen_qcbormap.cpp index 75762adc..d8f284bc 100644 --- a/qt6/cbor/gen_qcbormap.cpp +++ b/qt6/cbor/gen_qcbormap.cpp @@ -357,12 +357,8 @@ QJsonObject* QCborMap_ToJsonObject(const QCborMap* self) { return new QJsonObject(self->toJsonObject()); } -void QCborMap_Delete(QCborMap* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborMap_Delete(QCborMap* self) { + delete self; } QCborMap__Iterator* QCborMap__Iterator_new() { @@ -514,12 +510,8 @@ ptrdiff_t QCborMap__Iterator_OperatorMinusWithQCborMapIterator(const QCborMap__I return static_cast(_ret); } -void QCborMap__Iterator_Delete(QCborMap__Iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborMap__Iterator_Delete(QCborMap__Iterator* self) { + delete self; } QCborMap__ConstIterator* QCborMap__ConstIterator_new() { @@ -667,11 +659,7 @@ ptrdiff_t QCborMap__ConstIterator_OperatorMinusWithQCborMapConstIterator(const Q return static_cast(_ret); } -void QCborMap__ConstIterator_Delete(QCborMap__ConstIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborMap__ConstIterator_Delete(QCborMap__ConstIterator* self) { + delete self; } diff --git a/qt6/cbor/gen_qcbormap.go b/qt6/cbor/gen_qcbormap.go index cdb77988..cf2e5ed6 100644 --- a/qt6/cbor/gen_qcbormap.go +++ b/qt6/cbor/gen_qcbormap.go @@ -523,7 +523,7 @@ func (this *QCborMap) ToJsonObject() *qt6.QJsonObject { // Delete this object from C++ memory. func (this *QCborMap) Delete() { - C.QCborMap_Delete(this.h, C.bool(this.isSubclass)) + C.QCborMap_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -744,7 +744,7 @@ func (this *QCborMap__Iterator) OperatorMinusWithQCborMapIterator(j QCborMap__It // Delete this object from C++ memory. func (this *QCborMap__Iterator) Delete() { - C.QCborMap__Iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QCborMap__Iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -961,7 +961,7 @@ func (this *QCborMap__ConstIterator) OperatorMinusWithQCborMapConstIterator(j QC // Delete this object from C++ memory. func (this *QCborMap__ConstIterator) Delete() { - C.QCborMap__ConstIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QCborMap__ConstIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/cbor/gen_qcbormap.h b/qt6/cbor/gen_qcbormap.h index eaa137e7..f3ae3138 100644 --- a/qt6/cbor/gen_qcbormap.h +++ b/qt6/cbor/gen_qcbormap.h @@ -105,7 +105,7 @@ QCborMap* QCborMap_FromJsonObject(QJsonObject* o); struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantMap(const QCborMap* self); struct miqt_map /* of struct miqt_string to QVariant* */ QCborMap_ToVariantHash(const QCborMap* self); QJsonObject* QCborMap_ToJsonObject(const QCborMap* self); -void QCborMap_Delete(QCborMap* self, bool isSubclass); +void QCborMap_Delete(QCborMap* self); QCborMap__Iterator* QCborMap__Iterator_new(); QCborMap__Iterator* QCborMap__Iterator_new2(QCborMap__Iterator* param1); @@ -137,7 +137,7 @@ QCborMap__Iterator* QCborMap__Iterator_OperatorMinusAssign(QCborMap__Iterator* s QCborMap__Iterator* QCborMap__Iterator_OperatorPlus(const QCborMap__Iterator* self, ptrdiff_t j); QCborMap__Iterator* QCborMap__Iterator_OperatorMinus(const QCborMap__Iterator* self, ptrdiff_t j); ptrdiff_t QCborMap__Iterator_OperatorMinusWithQCborMapIterator(const QCborMap__Iterator* self, QCborMap__Iterator* j); -void QCborMap__Iterator_Delete(QCborMap__Iterator* self, bool isSubclass); +void QCborMap__Iterator_Delete(QCborMap__Iterator* self); QCborMap__ConstIterator* QCborMap__ConstIterator_new(); QCborMap__ConstIterator* QCborMap__ConstIterator_new2(QCborMap__ConstIterator* param1); @@ -168,7 +168,7 @@ QCborMap__ConstIterator* QCborMap__ConstIterator_OperatorMinusAssign(QCborMap__C QCborMap__ConstIterator* QCborMap__ConstIterator_OperatorPlus(const QCborMap__ConstIterator* self, ptrdiff_t j); QCborMap__ConstIterator* QCborMap__ConstIterator_OperatorMinus(const QCborMap__ConstIterator* self, ptrdiff_t j); ptrdiff_t QCborMap__ConstIterator_OperatorMinusWithQCborMapConstIterator(const QCborMap__ConstIterator* self, QCborMap__ConstIterator* j); -void QCborMap__ConstIterator_Delete(QCborMap__ConstIterator* self, bool isSubclass); +void QCborMap__ConstIterator_Delete(QCborMap__ConstIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/cbor/gen_qcborstreamreader.cpp b/qt6/cbor/gen_qcborstreamreader.cpp index 6d1ce9eb..63148929 100644 --- a/qt6/cbor/gen_qcborstreamreader.cpp +++ b/qt6/cbor/gen_qcborstreamreader.cpp @@ -245,11 +245,7 @@ bool QCborStreamReader_Next1(QCborStreamReader* self, int maxRecursion) { return self->next(static_cast(maxRecursion)); } -void QCborStreamReader_Delete(QCborStreamReader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborStreamReader_Delete(QCborStreamReader* self) { + delete self; } diff --git a/qt6/cbor/gen_qcborstreamreader.go b/qt6/cbor/gen_qcborstreamreader.go index c0db6acc..8ce229c7 100644 --- a/qt6/cbor/gen_qcborstreamreader.go +++ b/qt6/cbor/gen_qcborstreamreader.go @@ -329,7 +329,7 @@ func (this *QCborStreamReader) Next1(maxRecursion int) bool { // Delete this object from C++ memory. func (this *QCborStreamReader) Delete() { - C.QCborStreamReader_Delete(this.h, C.bool(this.isSubclass)) + C.QCborStreamReader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/cbor/gen_qcborstreamreader.h b/qt6/cbor/gen_qcborstreamreader.h index e6d8f6e4..abfcbd03 100644 --- a/qt6/cbor/gen_qcborstreamreader.h +++ b/qt6/cbor/gen_qcborstreamreader.h @@ -79,7 +79,7 @@ float QCborStreamReader_ToFloat(const QCborStreamReader* self); double QCborStreamReader_ToDouble(const QCborStreamReader* self); long long QCborStreamReader_ToInteger(const QCborStreamReader* self); bool QCborStreamReader_Next1(QCborStreamReader* self, int maxRecursion); -void QCborStreamReader_Delete(QCborStreamReader* self, bool isSubclass); +void QCborStreamReader_Delete(QCborStreamReader* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/cbor/gen_qcborstreamwriter.cpp b/qt6/cbor/gen_qcborstreamwriter.cpp index 38204425..bca9632f 100644 --- a/qt6/cbor/gen_qcborstreamwriter.cpp +++ b/qt6/cbor/gen_qcborstreamwriter.cpp @@ -121,11 +121,7 @@ void QCborStreamWriter_Append22(QCborStreamWriter* self, const char* str, ptrdif self->append(str, (qsizetype)(size)); } -void QCborStreamWriter_Delete(QCborStreamWriter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborStreamWriter_Delete(QCborStreamWriter* self) { + delete self; } diff --git a/qt6/cbor/gen_qcborstreamwriter.go b/qt6/cbor/gen_qcborstreamwriter.go index cd78b651..44574f81 100644 --- a/qt6/cbor/gen_qcborstreamwriter.go +++ b/qt6/cbor/gen_qcborstreamwriter.go @@ -172,7 +172,7 @@ func (this *QCborStreamWriter) Append22(str string, size int64) { // Delete this object from C++ memory. func (this *QCborStreamWriter) Delete() { - C.QCborStreamWriter_Delete(this.h, C.bool(this.isSubclass)) + C.QCborStreamWriter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/cbor/gen_qcborstreamwriter.h b/qt6/cbor/gen_qcborstreamwriter.h index 19382bd4..03c4581b 100644 --- a/qt6/cbor/gen_qcborstreamwriter.h +++ b/qt6/cbor/gen_qcborstreamwriter.h @@ -49,7 +49,7 @@ void QCborStreamWriter_StartMap(QCborStreamWriter* self); void QCborStreamWriter_StartMapWithCount(QCborStreamWriter* self, unsigned long long count); bool QCborStreamWriter_EndMap(QCborStreamWriter* self); void QCborStreamWriter_Append22(QCborStreamWriter* self, const char* str, ptrdiff_t size); -void QCborStreamWriter_Delete(QCborStreamWriter* self, bool isSubclass); +void QCborStreamWriter_Delete(QCborStreamWriter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/cbor/gen_qcborvalue.cpp b/qt6/cbor/gen_qcborvalue.cpp index 10e03592..f8de78cd 100644 --- a/qt6/cbor/gen_qcborvalue.cpp +++ b/qt6/cbor/gen_qcborvalue.cpp @@ -38,12 +38,8 @@ struct miqt_string QCborParserError_ErrorString(const QCborParserError* self) { return _ms; } -void QCborParserError_Delete(QCborParserError* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborParserError_Delete(QCborParserError* self) { + delete self; } QCborValue* QCborValue_new() { @@ -501,12 +497,8 @@ struct miqt_string QCborValue_ToDiagnosticNotation1(const QCborValue* self, int return _ms; } -void QCborValue_Delete(QCborValue* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborValue_Delete(QCborValue* self) { + delete self; } QCborValueConstRef* QCborValueConstRef_new(QCborValueConstRef* param1) { @@ -827,12 +819,8 @@ struct miqt_string QCborValueConstRef_ToDiagnosticNotation1(const QCborValueCons return _ms; } -void QCborValueConstRef_Delete(QCborValueConstRef* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborValueConstRef_Delete(QCborValueConstRef* self) { + delete self; } QCborValueRef* QCborValueRef_new(QCborValueRef* param1) { @@ -1174,11 +1162,7 @@ struct miqt_string QCborValueRef_ToDiagnosticNotation1(QCborValueRef* self, int return _ms; } -void QCborValueRef_Delete(QCborValueRef* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCborValueRef_Delete(QCborValueRef* self) { + delete self; } diff --git a/qt6/cbor/gen_qcborvalue.go b/qt6/cbor/gen_qcborvalue.go index 3ae12c55..0e9a7d25 100644 --- a/qt6/cbor/gen_qcborvalue.go +++ b/qt6/cbor/gen_qcborvalue.go @@ -96,7 +96,7 @@ func (this *QCborParserError) ErrorString() string { // Delete this object from C++ memory. func (this *QCborParserError) Delete() { - C.QCborParserError_Delete(this.h, C.bool(this.isSubclass)) + C.QCborParserError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -739,7 +739,7 @@ func (this *QCborValue) ToDiagnosticNotation1(opts QCborValue__DiagnosticNotatio // Delete this object from C++ memory. func (this *QCborValue) Delete() { - C.QCborValue_Delete(this.h, C.bool(this.isSubclass)) + C.QCborValue_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1123,7 +1123,7 @@ func (this *QCborValueConstRef) ToDiagnosticNotation1(opt QCborValue__Diagnostic // Delete this object from C++ memory. func (this *QCborValueConstRef) Delete() { - C.QCborValueConstRef_Delete(this.h, C.bool(this.isSubclass)) + C.QCborValueConstRef_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1535,7 +1535,7 @@ func (this *QCborValueRef) ToDiagnosticNotation1(opt QCborValue__DiagnosticNotat // Delete this object from C++ memory. func (this *QCborValueRef) Delete() { - C.QCborValueRef_Delete(this.h, C.bool(this.isSubclass)) + C.QCborValueRef_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/cbor/gen_qcborvalue.h b/qt6/cbor/gen_qcborvalue.h index 15c10a23..2bb63c14 100644 --- a/qt6/cbor/gen_qcborvalue.h +++ b/qt6/cbor/gen_qcborvalue.h @@ -47,7 +47,7 @@ typedef struct QVariant QVariant; #endif struct miqt_string QCborParserError_ErrorString(const QCborParserError* self); -void QCborParserError_Delete(QCborParserError* self, bool isSubclass); +void QCborParserError_Delete(QCborParserError* self); QCborValue* QCborValue_new(); QCborValue* QCborValue_new2(int t_); @@ -147,7 +147,7 @@ QCborValue* QCborValue_FromCbor33(const unsigned char* data, ptrdiff_t lenVal, Q struct miqt_string QCborValue_ToCbor1(const QCborValue* self, int opt); void QCborValue_ToCbor2(const QCborValue* self, QCborStreamWriter* writer, int opt); struct miqt_string QCborValue_ToDiagnosticNotation1(const QCborValue* self, int opts); -void QCborValue_Delete(QCborValue* self, bool isSubclass); +void QCborValue_Delete(QCborValue* self); QCborValueConstRef* QCborValueConstRef_new(QCborValueConstRef* param1); QCborValue* QCborValueConstRef_ToQCborValue(const QCborValueConstRef* self); @@ -214,7 +214,7 @@ QUuid* QCborValueConstRef_ToUuid1(const QCborValueConstRef* self, QUuid* default struct miqt_string QCborValueConstRef_ToCbor1(const QCborValueConstRef* self, int opt); void QCborValueConstRef_ToCbor2(const QCborValueConstRef* self, QCborStreamWriter* writer, int opt); struct miqt_string QCborValueConstRef_ToDiagnosticNotation1(const QCborValueConstRef* self, int opt); -void QCborValueConstRef_Delete(QCborValueConstRef* self, bool isSubclass); +void QCborValueConstRef_Delete(QCborValueConstRef* self); QCborValueRef* QCborValueRef_new(QCborValueRef* param1); void QCborValueRef_virtbase(QCborValueRef* src, QCborValueConstRef** outptr_QCborValueConstRef); @@ -286,7 +286,7 @@ QUuid* QCborValueRef_ToUuid1(const QCborValueRef* self, QUuid* defaultValue); struct miqt_string QCborValueRef_ToCbor1(QCborValueRef* self, int opt); void QCborValueRef_ToCbor2(QCborValueRef* self, QCborStreamWriter* writer, int opt); struct miqt_string QCborValueRef_ToDiagnosticNotation1(QCborValueRef* self, int opt); -void QCborValueRef_Delete(QCborValueRef* self, bool isSubclass); +void QCborValueRef_Delete(QCborValueRef* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstractanimation.cpp b/qt6/gen_qabstractanimation.cpp index f5f4c5fb..ae10384b 100644 --- a/qt6/gen_qabstractanimation.cpp +++ b/qt6/gen_qabstractanimation.cpp @@ -49,13 +49,13 @@ void miqt_exec_callback_QAnimationDriver_DisconnectNotify(void*, intptr_t, QMeta } /* extern C */ #endif -class MiqtVirtualQAbstractAnimation : public virtual QAbstractAnimation { +class MiqtVirtualQAbstractAnimation final : public QAbstractAnimation { public: MiqtVirtualQAbstractAnimation(): QAbstractAnimation() {}; MiqtVirtualQAbstractAnimation(QObject* parent): QAbstractAnimation(parent) {}; - virtual ~MiqtVirtualQAbstractAnimation() = default; + virtual ~MiqtVirtualQAbstractAnimation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Duration = 0; @@ -567,21 +567,17 @@ void QAbstractAnimation_virtualbase_DisconnectNotify(void* self, QMetaMethod* si ( (MiqtVirtualQAbstractAnimation*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAbstractAnimation_Delete(QAbstractAnimation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractAnimation_Delete(QAbstractAnimation* self) { + delete self; } -class MiqtVirtualQAnimationDriver : public virtual QAnimationDriver { +class MiqtVirtualQAnimationDriver final : public QAnimationDriver { public: MiqtVirtualQAnimationDriver(): QAnimationDriver() {}; MiqtVirtualQAnimationDriver(QObject* parent): QAnimationDriver(parent) {}; - virtual ~MiqtVirtualQAnimationDriver() = default; + virtual ~MiqtVirtualQAnimationDriver() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Advance = 0; @@ -1030,11 +1026,7 @@ void QAnimationDriver_virtualbase_DisconnectNotify(void* self, QMetaMethod* sign ( (MiqtVirtualQAnimationDriver*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAnimationDriver_Delete(QAnimationDriver* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAnimationDriver_Delete(QAnimationDriver* self) { + delete self; } diff --git a/qt6/gen_qabstractanimation.go b/qt6/gen_qabstractanimation.go index c593875b..881e5a12 100644 --- a/qt6/gen_qabstractanimation.go +++ b/qt6/gen_qabstractanimation.go @@ -564,7 +564,7 @@ func miqt_exec_callback_QAbstractAnimation_DisconnectNotify(self *C.QAbstractAni // Delete this object from C++ memory. func (this *QAbstractAnimation) Delete() { - C.QAbstractAnimation_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractAnimation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1008,7 +1008,7 @@ func miqt_exec_callback_QAnimationDriver_DisconnectNotify(self *C.QAnimationDriv // Delete this object from C++ memory. func (this *QAnimationDriver) Delete() { - C.QAnimationDriver_Delete(this.h, C.bool(this.isSubclass)) + C.QAnimationDriver_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstractanimation.h b/qt6/gen_qabstractanimation.h index 631d4208..c2fdcefa 100644 --- a/qt6/gen_qabstractanimation.h +++ b/qt6/gen_qabstractanimation.h @@ -96,7 +96,7 @@ void QAbstractAnimation_override_virtual_ConnectNotify(void* self, intptr_t slot void QAbstractAnimation_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAbstractAnimation_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAbstractAnimation_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAbstractAnimation_Delete(QAbstractAnimation* self, bool isSubclass); +void QAbstractAnimation_Delete(QAbstractAnimation* self); QAnimationDriver* QAnimationDriver_new(); QAnimationDriver* QAnimationDriver_new2(QObject* parent); @@ -139,7 +139,7 @@ void QAnimationDriver_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAnimationDriver_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAnimationDriver_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAnimationDriver_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAnimationDriver_Delete(QAnimationDriver* self, bool isSubclass); +void QAnimationDriver_Delete(QAnimationDriver* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstractbutton.cpp b/qt6/gen_qabstractbutton.cpp index 7bcdf1c9..66ba9d9c 100644 --- a/qt6/gen_qabstractbutton.cpp +++ b/qt6/gen_qabstractbutton.cpp @@ -97,13 +97,13 @@ bool miqt_exec_callback_QAbstractButton_FocusNextPrevChild(void*, intptr_t, bool } /* extern C */ #endif -class MiqtVirtualQAbstractButton : public virtual QAbstractButton { +class MiqtVirtualQAbstractButton final : public QAbstractButton { public: MiqtVirtualQAbstractButton(QWidget* parent): QAbstractButton(parent) {}; MiqtVirtualQAbstractButton(): QAbstractButton() {}; - virtual ~MiqtVirtualQAbstractButton() = default; + virtual ~MiqtVirtualQAbstractButton() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__PaintEvent = 0; @@ -1743,11 +1743,7 @@ bool QAbstractButton_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQAbstractButton*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QAbstractButton_Delete(QAbstractButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractButton_Delete(QAbstractButton* self) { + delete self; } diff --git a/qt6/gen_qabstractbutton.go b/qt6/gen_qabstractbutton.go index 6449ccd1..f92d4613 100644 --- a/qt6/gen_qabstractbutton.go +++ b/qt6/gen_qabstractbutton.go @@ -1502,7 +1502,7 @@ func miqt_exec_callback_QAbstractButton_FocusNextPrevChild(self *C.QAbstractButt // Delete this object from C++ memory. func (this *QAbstractButton) Delete() { - C.QAbstractButton_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstractbutton.h b/qt6/gen_qabstractbutton.h index 22b583bd..c8a4b60f 100644 --- a/qt6/gen_qabstractbutton.h +++ b/qt6/gen_qabstractbutton.h @@ -234,7 +234,7 @@ void QAbstractButton_override_virtual_InputMethodQuery(void* self, intptr_t slot QVariant* QAbstractButton_virtualbase_InputMethodQuery(const void* self, int param1); void QAbstractButton_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QAbstractButton_virtualbase_FocusNextPrevChild(void* self, bool next); -void QAbstractButton_Delete(QAbstractButton* self, bool isSubclass); +void QAbstractButton_Delete(QAbstractButton* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstracteventdispatcher.cpp b/qt6/gen_qabstracteventdispatcher.cpp index 2f01913c..f78d9f99 100644 --- a/qt6/gen_qabstracteventdispatcher.cpp +++ b/qt6/gen_qabstracteventdispatcher.cpp @@ -170,23 +170,15 @@ QAbstractEventDispatcher* QAbstractEventDispatcher_Instance1(QThread* thread) { return QAbstractEventDispatcher::instance(thread); } -void QAbstractEventDispatcher_Delete(QAbstractEventDispatcher* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractEventDispatcher_Delete(QAbstractEventDispatcher* self) { + delete self; } QAbstractEventDispatcher__TimerInfo* QAbstractEventDispatcher__TimerInfo_new(int id, int i, int t) { return new QAbstractEventDispatcher::TimerInfo(static_cast(id), static_cast(i), static_cast(t)); } -void QAbstractEventDispatcher__TimerInfo_Delete(QAbstractEventDispatcher__TimerInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractEventDispatcher__TimerInfo_Delete(QAbstractEventDispatcher__TimerInfo* self) { + delete self; } diff --git a/qt6/gen_qabstracteventdispatcher.go b/qt6/gen_qabstracteventdispatcher.go index 6c9f7ae8..cdec4574 100644 --- a/qt6/gen_qabstracteventdispatcher.go +++ b/qt6/gen_qabstracteventdispatcher.go @@ -211,7 +211,7 @@ func QAbstractEventDispatcher_Instance1(thread *QThread) *QAbstractEventDispatch // Delete this object from C++ memory. func (this *QAbstractEventDispatcher) Delete() { - C.QAbstractEventDispatcher_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractEventDispatcher_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -266,7 +266,7 @@ func NewQAbstractEventDispatcher__TimerInfo(id int, i int, t TimerType) *QAbstra // Delete this object from C++ memory. func (this *QAbstractEventDispatcher__TimerInfo) Delete() { - C.QAbstractEventDispatcher__TimerInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractEventDispatcher__TimerInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstracteventdispatcher.h b/qt6/gen_qabstracteventdispatcher.h index a47d0897..4d62da72 100644 --- a/qt6/gen_qabstracteventdispatcher.h +++ b/qt6/gen_qabstracteventdispatcher.h @@ -64,10 +64,10 @@ void QAbstractEventDispatcher_connect_Awake(QAbstractEventDispatcher* self, intp struct miqt_string QAbstractEventDispatcher_Tr2(const char* s, const char* c); struct miqt_string QAbstractEventDispatcher_Tr3(const char* s, const char* c, int n); QAbstractEventDispatcher* QAbstractEventDispatcher_Instance1(QThread* thread); -void QAbstractEventDispatcher_Delete(QAbstractEventDispatcher* self, bool isSubclass); +void QAbstractEventDispatcher_Delete(QAbstractEventDispatcher* self); QAbstractEventDispatcher__TimerInfo* QAbstractEventDispatcher__TimerInfo_new(int id, int i, int t); -void QAbstractEventDispatcher__TimerInfo_Delete(QAbstractEventDispatcher__TimerInfo* self, bool isSubclass); +void QAbstractEventDispatcher__TimerInfo_Delete(QAbstractEventDispatcher__TimerInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstractfileiconprovider.cpp b/qt6/gen_qabstractfileiconprovider.cpp index 9cdbbd1c..0273054a 100644 --- a/qt6/gen_qabstractfileiconprovider.cpp +++ b/qt6/gen_qabstractfileiconprovider.cpp @@ -20,12 +20,12 @@ int miqt_exec_callback_QAbstractFileIconProvider_Options(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQAbstractFileIconProvider : public virtual QAbstractFileIconProvider { +class MiqtVirtualQAbstractFileIconProvider final : public QAbstractFileIconProvider { public: MiqtVirtualQAbstractFileIconProvider(): QAbstractFileIconProvider() {}; - virtual ~MiqtVirtualQAbstractFileIconProvider() = default; + virtual ~MiqtVirtualQAbstractFileIconProvider() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Icon = 0; @@ -231,11 +231,7 @@ int QAbstractFileIconProvider_virtualbase_Options(const void* self) { return ( (const MiqtVirtualQAbstractFileIconProvider*)(self) )->virtualbase_Options(); } -void QAbstractFileIconProvider_Delete(QAbstractFileIconProvider* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractFileIconProvider_Delete(QAbstractFileIconProvider* self) { + delete self; } diff --git a/qt6/gen_qabstractfileiconprovider.go b/qt6/gen_qabstractfileiconprovider.go index bcd7cd85..af37e112 100644 --- a/qt6/gen_qabstractfileiconprovider.go +++ b/qt6/gen_qabstractfileiconprovider.go @@ -247,7 +247,7 @@ func miqt_exec_callback_QAbstractFileIconProvider_Options(self *C.QAbstractFileI // Delete this object from C++ memory. func (this *QAbstractFileIconProvider) Delete() { - C.QAbstractFileIconProvider_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractFileIconProvider_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstractfileiconprovider.h b/qt6/gen_qabstractfileiconprovider.h index d2491839..89fdfc68 100644 --- a/qt6/gen_qabstractfileiconprovider.h +++ b/qt6/gen_qabstractfileiconprovider.h @@ -40,7 +40,7 @@ void QAbstractFileIconProvider_override_virtual_SetOptions(void* self, intptr_t void QAbstractFileIconProvider_virtualbase_SetOptions(void* self, int options); void QAbstractFileIconProvider_override_virtual_Options(void* self, intptr_t slot); int QAbstractFileIconProvider_virtualbase_Options(const void* self); -void QAbstractFileIconProvider_Delete(QAbstractFileIconProvider* self, bool isSubclass); +void QAbstractFileIconProvider_Delete(QAbstractFileIconProvider* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstractitemdelegate.cpp b/qt6/gen_qabstractitemdelegate.cpp index 522921bb..1bc71a66 100644 --- a/qt6/gen_qabstractitemdelegate.cpp +++ b/qt6/gen_qabstractitemdelegate.cpp @@ -49,13 +49,13 @@ void miqt_exec_callback_QAbstractItemDelegate_DisconnectNotify(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQAbstractItemDelegate : public virtual QAbstractItemDelegate { +class MiqtVirtualQAbstractItemDelegate final : public QAbstractItemDelegate { public: MiqtVirtualQAbstractItemDelegate(): QAbstractItemDelegate() {}; MiqtVirtualQAbstractItemDelegate(QObject* parent): QAbstractItemDelegate(parent) {}; - virtual ~MiqtVirtualQAbstractItemDelegate() = default; + virtual ~MiqtVirtualQAbstractItemDelegate() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; @@ -789,11 +789,7 @@ void QAbstractItemDelegate_virtualbase_DisconnectNotify(void* self, QMetaMethod* ( (MiqtVirtualQAbstractItemDelegate*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAbstractItemDelegate_Delete(QAbstractItemDelegate* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractItemDelegate_Delete(QAbstractItemDelegate* self) { + delete self; } diff --git a/qt6/gen_qabstractitemdelegate.go b/qt6/gen_qabstractitemdelegate.go index 92683daa..90fef2b2 100644 --- a/qt6/gen_qabstractitemdelegate.go +++ b/qt6/gen_qabstractitemdelegate.go @@ -740,7 +740,7 @@ func miqt_exec_callback_QAbstractItemDelegate_DisconnectNotify(self *C.QAbstract // Delete this object from C++ memory. func (this *QAbstractItemDelegate) Delete() { - C.QAbstractItemDelegate_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractItemDelegate_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstractitemdelegate.h b/qt6/gen_qabstractitemdelegate.h index 1fef3945..6df97fb0 100644 --- a/qt6/gen_qabstractitemdelegate.h +++ b/qt6/gen_qabstractitemdelegate.h @@ -108,7 +108,7 @@ void QAbstractItemDelegate_override_virtual_ConnectNotify(void* self, intptr_t s void QAbstractItemDelegate_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAbstractItemDelegate_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAbstractItemDelegate_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAbstractItemDelegate_Delete(QAbstractItemDelegate* self, bool isSubclass); +void QAbstractItemDelegate_Delete(QAbstractItemDelegate* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstractitemmodel.cpp b/qt6/gen_qabstractitemmodel.cpp index f21c8835..8c70c054 100644 --- a/qt6/gen_qabstractitemmodel.cpp +++ b/qt6/gen_qabstractitemmodel.cpp @@ -185,12 +185,8 @@ void QModelRoleData_OperatorAssign(QModelRoleData* self, QModelRoleData* param1) self->operator=(*param1); } -void QModelRoleData_Delete(QModelRoleData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QModelRoleData_Delete(QModelRoleData* self) { + delete self; } QModelRoleDataSpan* QModelRoleDataSpan_new() { @@ -241,12 +237,8 @@ QVariant* QModelRoleDataSpan_DataForRole(const QModelRoleDataSpan* self, int rol return self->dataForRole(static_cast(role)); } -void QModelRoleDataSpan_Delete(QModelRoleDataSpan* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QModelRoleDataSpan_Delete(QModelRoleDataSpan* self) { + delete self; } QModelIndex* QModelIndex_new() { @@ -331,12 +323,8 @@ QVariant* QModelIndex_Data1(const QModelIndex* self, int role) { return new QVariant(self->data(static_cast(role))); } -void QModelIndex_Delete(QModelIndex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QModelIndex_Delete(QModelIndex* self) { + delete self; } QPersistentModelIndex* QPersistentModelIndex_new() { @@ -441,21 +429,17 @@ QVariant* QPersistentModelIndex_Data1(const QPersistentModelIndex* self, int rol return new QVariant(self->data(static_cast(role))); } -void QPersistentModelIndex_Delete(QPersistentModelIndex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPersistentModelIndex_Delete(QPersistentModelIndex* self) { + delete self; } -class MiqtVirtualQAbstractItemModel : public virtual QAbstractItemModel { +class MiqtVirtualQAbstractItemModel final : public QAbstractItemModel { public: MiqtVirtualQAbstractItemModel(): QAbstractItemModel() {}; MiqtVirtualQAbstractItemModel(QObject* parent): QAbstractItemModel(parent) {}; - virtual ~MiqtVirtualQAbstractItemModel() = default; + virtual ~MiqtVirtualQAbstractItemModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Index = 0; @@ -2526,21 +2510,17 @@ void QAbstractItemModel_virtualbase_DisconnectNotify(void* self, QMetaMethod* si ( (MiqtVirtualQAbstractItemModel*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAbstractItemModel_Delete(QAbstractItemModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractItemModel_Delete(QAbstractItemModel* self) { + delete self; } -class MiqtVirtualQAbstractTableModel : public virtual QAbstractTableModel { +class MiqtVirtualQAbstractTableModel final : public QAbstractTableModel { public: MiqtVirtualQAbstractTableModel(): QAbstractTableModel() {}; MiqtVirtualQAbstractTableModel(QObject* parent): QAbstractTableModel(parent) {}; - virtual ~MiqtVirtualQAbstractTableModel() = default; + virtual ~MiqtVirtualQAbstractTableModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Index = 0; @@ -3894,21 +3874,17 @@ void QAbstractTableModel_virtualbase_ResetInternalData(void* self) { ( (MiqtVirtualQAbstractTableModel*)(self) )->virtualbase_ResetInternalData(); } -void QAbstractTableModel_Delete(QAbstractTableModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractTableModel_Delete(QAbstractTableModel* self) { + delete self; } -class MiqtVirtualQAbstractListModel : public virtual QAbstractListModel { +class MiqtVirtualQAbstractListModel final : public QAbstractListModel { public: MiqtVirtualQAbstractListModel(): QAbstractListModel() {}; MiqtVirtualQAbstractListModel(QObject* parent): QAbstractListModel(parent) {}; - virtual ~MiqtVirtualQAbstractListModel() = default; + virtual ~MiqtVirtualQAbstractListModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Index = 0; @@ -5240,11 +5216,7 @@ void QAbstractListModel_virtualbase_ResetInternalData(void* self) { ( (MiqtVirtualQAbstractListModel*)(self) )->virtualbase_ResetInternalData(); } -void QAbstractListModel_Delete(QAbstractListModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractListModel_Delete(QAbstractListModel* self) { + delete self; } diff --git a/qt6/gen_qabstractitemmodel.go b/qt6/gen_qabstractitemmodel.go index 11fbfe5d..1d25440c 100644 --- a/qt6/gen_qabstractitemmodel.go +++ b/qt6/gen_qabstractitemmodel.go @@ -102,7 +102,7 @@ func (this *QModelRoleData) OperatorAssign(param1 *QModelRoleData) { // Delete this object from C++ memory. func (this *QModelRoleData) Delete() { - C.QModelRoleData_Delete(this.h, C.bool(this.isSubclass)) + C.QModelRoleData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -209,7 +209,7 @@ func (this *QModelRoleDataSpan) DataForRole(role int) *QVariant { // Delete this object from C++ memory. func (this *QModelRoleDataSpan) Delete() { - C.QModelRoleDataSpan_Delete(this.h, C.bool(this.isSubclass)) + C.QModelRoleDataSpan_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -356,7 +356,7 @@ func (this *QModelIndex) Data1(role int) *QVariant { // Delete this object from C++ memory. func (this *QModelIndex) Delete() { - C.QModelIndex_Delete(this.h, C.bool(this.isSubclass)) + C.QModelIndex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -525,7 +525,7 @@ func (this *QPersistentModelIndex) Data1(role int) *QVariant { // Delete this object from C++ memory. func (this *QPersistentModelIndex) Delete() { - C.QPersistentModelIndex_Delete(this.h, C.bool(this.isSubclass)) + C.QPersistentModelIndex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2561,7 +2561,7 @@ func miqt_exec_callback_QAbstractItemModel_DisconnectNotify(self *C.QAbstractIte // Delete this object from C++ memory. func (this *QAbstractItemModel) Delete() { - C.QAbstractItemModel_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractItemModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3852,7 +3852,7 @@ func miqt_exec_callback_QAbstractTableModel_ResetInternalData(self *C.QAbstractT // Delete this object from C++ memory. func (this *QAbstractTableModel) Delete() { - C.QAbstractTableModel_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractTableModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5121,7 +5121,7 @@ func miqt_exec_callback_QAbstractListModel_ResetInternalData(self *C.QAbstractLi // Delete this object from C++ memory. func (this *QAbstractListModel) Delete() { - C.QAbstractListModel_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractListModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstractitemmodel.h b/qt6/gen_qabstractitemmodel.h index 0d78c71b..8aa8aa50 100644 --- a/qt6/gen_qabstractitemmodel.h +++ b/qt6/gen_qabstractitemmodel.h @@ -57,7 +57,7 @@ QVariant* QModelRoleData_Data(QModelRoleData* self); QVariant* QModelRoleData_Data2(const QModelRoleData* self); void QModelRoleData_ClearData(QModelRoleData* self); void QModelRoleData_OperatorAssign(QModelRoleData* self, QModelRoleData* param1); -void QModelRoleData_Delete(QModelRoleData* self, bool isSubclass); +void QModelRoleData_Delete(QModelRoleData* self); QModelRoleDataSpan* QModelRoleDataSpan_new(); QModelRoleDataSpan* QModelRoleDataSpan_new2(QModelRoleData* modelRoleData); @@ -70,7 +70,7 @@ QModelRoleData* QModelRoleDataSpan_Begin(const QModelRoleDataSpan* self); QModelRoleData* QModelRoleDataSpan_End(const QModelRoleDataSpan* self); QModelRoleData* QModelRoleDataSpan_OperatorSubscript(const QModelRoleDataSpan* self, ptrdiff_t index); QVariant* QModelRoleDataSpan_DataForRole(const QModelRoleDataSpan* self, int role); -void QModelRoleDataSpan_Delete(QModelRoleDataSpan* self, bool isSubclass); +void QModelRoleDataSpan_Delete(QModelRoleDataSpan* self); QModelIndex* QModelIndex_new(); QModelIndex* QModelIndex_new2(QModelIndex* param1); @@ -92,7 +92,7 @@ bool QModelIndex_OperatorEqual(const QModelIndex* self, QModelIndex* other); bool QModelIndex_OperatorNotEqual(const QModelIndex* self, QModelIndex* other); bool QModelIndex_OperatorLesser(const QModelIndex* self, QModelIndex* other); QVariant* QModelIndex_Data1(const QModelIndex* self, int role); -void QModelIndex_Delete(QModelIndex* self, bool isSubclass); +void QModelIndex_Delete(QModelIndex* self); QPersistentModelIndex* QPersistentModelIndex_new(); QPersistentModelIndex* QPersistentModelIndex_new2(QModelIndex* index); @@ -119,7 +119,7 @@ int QPersistentModelIndex_Flags(const QPersistentModelIndex* self); QAbstractItemModel* QPersistentModelIndex_Model(const QPersistentModelIndex* self); bool QPersistentModelIndex_IsValid(const QPersistentModelIndex* self); QVariant* QPersistentModelIndex_Data1(const QPersistentModelIndex* self, int role); -void QPersistentModelIndex_Delete(QPersistentModelIndex* self, bool isSubclass); +void QPersistentModelIndex_Delete(QPersistentModelIndex* self); QAbstractItemModel* QAbstractItemModel_new(); QAbstractItemModel* QAbstractItemModel_new2(QObject* parent); @@ -286,7 +286,7 @@ void QAbstractItemModel_override_virtual_ConnectNotify(void* self, intptr_t slot void QAbstractItemModel_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAbstractItemModel_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAbstractItemModel_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAbstractItemModel_Delete(QAbstractItemModel* self, bool isSubclass); +void QAbstractItemModel_Delete(QAbstractItemModel* self); QAbstractTableModel* QAbstractTableModel_new(); QAbstractTableModel* QAbstractTableModel_new2(QObject* parent); @@ -370,7 +370,7 @@ void QAbstractTableModel_override_virtual_Revert(void* self, intptr_t slot); void QAbstractTableModel_virtualbase_Revert(void* self); void QAbstractTableModel_override_virtual_ResetInternalData(void* self, intptr_t slot); void QAbstractTableModel_virtualbase_ResetInternalData(void* self); -void QAbstractTableModel_Delete(QAbstractTableModel* self, bool isSubclass); +void QAbstractTableModel_Delete(QAbstractTableModel* self); QAbstractListModel* QAbstractListModel_new(); QAbstractListModel* QAbstractListModel_new2(QObject* parent); @@ -452,7 +452,7 @@ void QAbstractListModel_override_virtual_Revert(void* self, intptr_t slot); void QAbstractListModel_virtualbase_Revert(void* self); void QAbstractListModel_override_virtual_ResetInternalData(void* self, intptr_t slot); void QAbstractListModel_virtualbase_ResetInternalData(void* self); -void QAbstractListModel_Delete(QAbstractListModel* self, bool isSubclass); +void QAbstractListModel_Delete(QAbstractListModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstractitemview.cpp b/qt6/gen_qabstractitemview.cpp index 61136bcd..94d7674f 100644 --- a/qt6/gen_qabstractitemview.cpp +++ b/qt6/gen_qabstractitemview.cpp @@ -118,13 +118,13 @@ void miqt_exec_callback_QAbstractItemView_ScrollContentsBy(void*, intptr_t, int, } /* extern C */ #endif -class MiqtVirtualQAbstractItemView : public virtual QAbstractItemView { +class MiqtVirtualQAbstractItemView final : public QAbstractItemView { public: MiqtVirtualQAbstractItemView(QWidget* parent): QAbstractItemView(parent) {}; MiqtVirtualQAbstractItemView(): QAbstractItemView() {}; - virtual ~MiqtVirtualQAbstractItemView() = default; + virtual ~MiqtVirtualQAbstractItemView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetModel = 0; @@ -2640,11 +2640,7 @@ void QAbstractItemView_virtualbase_ScrollContentsBy(void* self, int dx, int dy) ( (MiqtVirtualQAbstractItemView*)(self) )->virtualbase_ScrollContentsBy(dx, dy); } -void QAbstractItemView_Delete(QAbstractItemView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractItemView_Delete(QAbstractItemView* self) { + delete self; } diff --git a/qt6/gen_qabstractitemview.go b/qt6/gen_qabstractitemview.go index cbaef7be..fd2b8cc2 100644 --- a/qt6/gen_qabstractitemview.go +++ b/qt6/gen_qabstractitemview.go @@ -2384,7 +2384,7 @@ func miqt_exec_callback_QAbstractItemView_ScrollContentsBy(self *C.QAbstractItem // Delete this object from C++ memory. func (this *QAbstractItemView) Delete() { - C.QAbstractItemView_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractItemView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstractitemview.h b/qt6/gen_qabstractitemview.h index 807642f9..56010c9a 100644 --- a/qt6/gen_qabstractitemview.h +++ b/qt6/gen_qabstractitemview.h @@ -352,7 +352,7 @@ void QAbstractItemView_override_virtual_ContextMenuEvent(void* self, intptr_t sl void QAbstractItemView_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QAbstractItemView_override_virtual_ScrollContentsBy(void* self, intptr_t slot); void QAbstractItemView_virtualbase_ScrollContentsBy(void* self, int dx, int dy); -void QAbstractItemView_Delete(QAbstractItemView* self, bool isSubclass); +void QAbstractItemView_Delete(QAbstractItemView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstractnativeeventfilter.cpp b/qt6/gen_qabstractnativeeventfilter.cpp index e8220bf8..ebdbe09e 100644 --- a/qt6/gen_qabstractnativeeventfilter.cpp +++ b/qt6/gen_qabstractnativeeventfilter.cpp @@ -12,12 +12,12 @@ bool miqt_exec_callback_QAbstractNativeEventFilter_NativeEventFilter(void*, intp } /* extern C */ #endif -class MiqtVirtualQAbstractNativeEventFilter : public virtual QAbstractNativeEventFilter { +class MiqtVirtualQAbstractNativeEventFilter final : public QAbstractNativeEventFilter { public: MiqtVirtualQAbstractNativeEventFilter(): QAbstractNativeEventFilter() {}; - virtual ~MiqtVirtualQAbstractNativeEventFilter() = default; + virtual ~MiqtVirtualQAbstractNativeEventFilter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__NativeEventFilter = 0; @@ -58,11 +58,7 @@ void QAbstractNativeEventFilter_override_virtual_NativeEventFilter(void* self, i dynamic_cast( (QAbstractNativeEventFilter*)(self) )->handle__NativeEventFilter = slot; } -void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self) { + delete self; } diff --git a/qt6/gen_qabstractnativeeventfilter.go b/qt6/gen_qabstractnativeeventfilter.go index 3d99e978..717bb9da 100644 --- a/qt6/gen_qabstractnativeeventfilter.go +++ b/qt6/gen_qabstractnativeeventfilter.go @@ -92,7 +92,7 @@ func miqt_exec_callback_QAbstractNativeEventFilter_NativeEventFilter(self *C.QAb // Delete this object from C++ memory. func (this *QAbstractNativeEventFilter) Delete() { - C.QAbstractNativeEventFilter_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractNativeEventFilter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstractnativeeventfilter.h b/qt6/gen_qabstractnativeeventfilter.h index 5dc23d76..444d3149 100644 --- a/qt6/gen_qabstractnativeeventfilter.h +++ b/qt6/gen_qabstractnativeeventfilter.h @@ -24,7 +24,7 @@ QAbstractNativeEventFilter* QAbstractNativeEventFilter_new(); bool QAbstractNativeEventFilter_NativeEventFilter(QAbstractNativeEventFilter* self, struct miqt_string eventType, void* message, intptr_t* result); void QAbstractNativeEventFilter_override_virtual_NativeEventFilter(void* self, intptr_t slot); bool QAbstractNativeEventFilter_virtualbase_NativeEventFilter(void* self, struct miqt_string eventType, void* message, intptr_t* result); -void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self, bool isSubclass); +void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstractproxymodel.cpp b/qt6/gen_qabstractproxymodel.cpp index ebe23d0a..70bd3234 100644 --- a/qt6/gen_qabstractproxymodel.cpp +++ b/qt6/gen_qabstractproxymodel.cpp @@ -67,13 +67,13 @@ void miqt_exec_callback_QAbstractProxyModel_ResetInternalData(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQAbstractProxyModel : public virtual QAbstractProxyModel { +class MiqtVirtualQAbstractProxyModel final : public QAbstractProxyModel { public: MiqtVirtualQAbstractProxyModel(): QAbstractProxyModel() {}; MiqtVirtualQAbstractProxyModel(QObject* parent): QAbstractProxyModel(parent) {}; - virtual ~MiqtVirtualQAbstractProxyModel() = default; + virtual ~MiqtVirtualQAbstractProxyModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetSourceModel = 0; @@ -1791,11 +1791,7 @@ void QAbstractProxyModel_virtualbase_ResetInternalData(void* self) { ( (MiqtVirtualQAbstractProxyModel*)(self) )->virtualbase_ResetInternalData(); } -void QAbstractProxyModel_Delete(QAbstractProxyModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractProxyModel_Delete(QAbstractProxyModel* self) { + delete self; } diff --git a/qt6/gen_qabstractproxymodel.go b/qt6/gen_qabstractproxymodel.go index 79d9fe26..217c47e0 100644 --- a/qt6/gen_qabstractproxymodel.go +++ b/qt6/gen_qabstractproxymodel.go @@ -1647,7 +1647,7 @@ func miqt_exec_callback_QAbstractProxyModel_ResetInternalData(self *C.QAbstractP // Delete this object from C++ memory. func (this *QAbstractProxyModel) Delete() { - C.QAbstractProxyModel_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractProxyModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstractproxymodel.h b/qt6/gen_qabstractproxymodel.h index a3b480bd..8efa7367 100644 --- a/qt6/gen_qabstractproxymodel.h +++ b/qt6/gen_qabstractproxymodel.h @@ -160,7 +160,7 @@ void QAbstractProxyModel_override_virtual_MultiData(void* self, intptr_t slot); void QAbstractProxyModel_virtualbase_MultiData(const void* self, QModelIndex* index, QModelRoleDataSpan* roleDataSpan); void QAbstractProxyModel_override_virtual_ResetInternalData(void* self, intptr_t slot); void QAbstractProxyModel_virtualbase_ResetInternalData(void* self); -void QAbstractProxyModel_Delete(QAbstractProxyModel* self, bool isSubclass); +void QAbstractProxyModel_Delete(QAbstractProxyModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstractscrollarea.cpp b/qt6/gen_qabstractscrollarea.cpp index c133fe93..c83c6547 100644 --- a/qt6/gen_qabstractscrollarea.cpp +++ b/qt6/gen_qabstractscrollarea.cpp @@ -56,13 +56,13 @@ void miqt_exec_callback_QAbstractScrollArea_InitStyleOption(void*, intptr_t, QSt } /* extern C */ #endif -class MiqtVirtualQAbstractScrollArea : public virtual QAbstractScrollArea { +class MiqtVirtualQAbstractScrollArea final : public QAbstractScrollArea { public: MiqtVirtualQAbstractScrollArea(QWidget* parent): QAbstractScrollArea(parent) {}; MiqtVirtualQAbstractScrollArea(): QAbstractScrollArea() {}; - virtual ~MiqtVirtualQAbstractScrollArea() = default; + virtual ~MiqtVirtualQAbstractScrollArea() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MinimumSizeHint = 0; @@ -940,11 +940,7 @@ void QAbstractScrollArea_virtualbase_InitStyleOption(const void* self, QStyleOpt ( (const MiqtVirtualQAbstractScrollArea*)(self) )->virtualbase_InitStyleOption(option); } -void QAbstractScrollArea_Delete(QAbstractScrollArea* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractScrollArea_Delete(QAbstractScrollArea* self) { + delete self; } diff --git a/qt6/gen_qabstractscrollarea.go b/qt6/gen_qabstractscrollarea.go index 3fdf6d71..a290bb3b 100644 --- a/qt6/gen_qabstractscrollarea.go +++ b/qt6/gen_qabstractscrollarea.go @@ -821,7 +821,7 @@ func miqt_exec_callback_QAbstractScrollArea_InitStyleOption(self *C.QAbstractScr // Delete this object from C++ memory. func (this *QAbstractScrollArea) Delete() { - C.QAbstractScrollArea_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractScrollArea_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstractscrollarea.h b/qt6/gen_qabstractscrollarea.h index 134e6a5c..fde894d3 100644 --- a/qt6/gen_qabstractscrollarea.h +++ b/qt6/gen_qabstractscrollarea.h @@ -150,7 +150,7 @@ void QAbstractScrollArea_override_virtual_ChangeEvent(void* self, intptr_t slot) void QAbstractScrollArea_virtualbase_ChangeEvent(void* self, QEvent* param1); void QAbstractScrollArea_override_virtual_InitStyleOption(void* self, intptr_t slot); void QAbstractScrollArea_virtualbase_InitStyleOption(const void* self, QStyleOptionFrame* option); -void QAbstractScrollArea_Delete(QAbstractScrollArea* self, bool isSubclass); +void QAbstractScrollArea_Delete(QAbstractScrollArea* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstractslider.cpp b/qt6/gen_qabstractslider.cpp index 11f7223f..47e871fd 100644 --- a/qt6/gen_qabstractslider.cpp +++ b/qt6/gen_qabstractslider.cpp @@ -93,13 +93,13 @@ bool miqt_exec_callback_QAbstractSlider_FocusNextPrevChild(void*, intptr_t, bool } /* extern C */ #endif -class MiqtVirtualQAbstractSlider : public virtual QAbstractSlider { +class MiqtVirtualQAbstractSlider final : public QAbstractSlider { public: MiqtVirtualQAbstractSlider(QWidget* parent): QAbstractSlider(parent) {}; MiqtVirtualQAbstractSlider(): QAbstractSlider() {}; - virtual ~MiqtVirtualQAbstractSlider() = default; + virtual ~MiqtVirtualQAbstractSlider() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1687,11 +1687,7 @@ bool QAbstractSlider_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQAbstractSlider*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QAbstractSlider_Delete(QAbstractSlider* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractSlider_Delete(QAbstractSlider* self) { + delete self; } diff --git a/qt6/gen_qabstractslider.go b/qt6/gen_qabstractslider.go index 85a2becf..91389abb 100644 --- a/qt6/gen_qabstractslider.go +++ b/qt6/gen_qabstractslider.go @@ -1485,7 +1485,7 @@ func miqt_exec_callback_QAbstractSlider_FocusNextPrevChild(self *C.QAbstractSlid // Delete this object from C++ memory. func (this *QAbstractSlider) Delete() { - C.QAbstractSlider_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractSlider_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstractslider.h b/qt6/gen_qabstractslider.h index 08cb4162..087adde9 100644 --- a/qt6/gen_qabstractslider.h +++ b/qt6/gen_qabstractslider.h @@ -216,7 +216,7 @@ void QAbstractSlider_override_virtual_InputMethodQuery(void* self, intptr_t slot QVariant* QAbstractSlider_virtualbase_InputMethodQuery(const void* self, int param1); void QAbstractSlider_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QAbstractSlider_virtualbase_FocusNextPrevChild(void* self, bool next); -void QAbstractSlider_Delete(QAbstractSlider* self, bool isSubclass); +void QAbstractSlider_Delete(QAbstractSlider* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstractspinbox.cpp b/qt6/gen_qabstractspinbox.cpp index db0182d2..9565c3b7 100644 --- a/qt6/gen_qabstractspinbox.cpp +++ b/qt6/gen_qabstractspinbox.cpp @@ -94,13 +94,13 @@ bool miqt_exec_callback_QAbstractSpinBox_FocusNextPrevChild(void*, intptr_t, boo } /* extern C */ #endif -class MiqtVirtualQAbstractSpinBox : public virtual QAbstractSpinBox { +class MiqtVirtualQAbstractSpinBox final : public QAbstractSpinBox { public: MiqtVirtualQAbstractSpinBox(QWidget* parent): QAbstractSpinBox(parent) {}; MiqtVirtualQAbstractSpinBox(): QAbstractSpinBox() {}; - virtual ~MiqtVirtualQAbstractSpinBox() = default; + virtual ~MiqtVirtualQAbstractSpinBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1867,11 +1867,7 @@ bool QAbstractSpinBox_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQAbstractSpinBox*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QAbstractSpinBox_Delete(QAbstractSpinBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractSpinBox_Delete(QAbstractSpinBox* self) { + delete self; } diff --git a/qt6/gen_qabstractspinbox.go b/qt6/gen_qabstractspinbox.go index 686e19b0..8f1d136c 100644 --- a/qt6/gen_qabstractspinbox.go +++ b/qt6/gen_qabstractspinbox.go @@ -1601,7 +1601,7 @@ func miqt_exec_callback_QAbstractSpinBox_FocusNextPrevChild(self *C.QAbstractSpi // Delete this object from C++ memory. func (this *QAbstractSpinBox) Delete() { - C.QAbstractSpinBox_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractSpinBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstractspinbox.h b/qt6/gen_qabstractspinbox.h index ec074d45..f7903642 100644 --- a/qt6/gen_qabstractspinbox.h +++ b/qt6/gen_qabstractspinbox.h @@ -240,7 +240,7 @@ void QAbstractSpinBox_override_virtual_InputMethodEvent(void* self, intptr_t slo void QAbstractSpinBox_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* param1); void QAbstractSpinBox_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QAbstractSpinBox_virtualbase_FocusNextPrevChild(void* self, bool next); -void QAbstractSpinBox_Delete(QAbstractSpinBox* self, bool isSubclass); +void QAbstractSpinBox_Delete(QAbstractSpinBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qabstracttextdocumentlayout.cpp b/qt6/gen_qabstracttextdocumentlayout.cpp index 64e11d68..81fdd086 100644 --- a/qt6/gen_qabstracttextdocumentlayout.cpp +++ b/qt6/gen_qabstracttextdocumentlayout.cpp @@ -54,12 +54,12 @@ void miqt_exec_callback_QAbstractTextDocumentLayout_DisconnectNotify(void*, intp } /* extern C */ #endif -class MiqtVirtualQAbstractTextDocumentLayout : public virtual QAbstractTextDocumentLayout { +class MiqtVirtualQAbstractTextDocumentLayout final : public QAbstractTextDocumentLayout { public: MiqtVirtualQAbstractTextDocumentLayout(QTextDocument* doc): QAbstractTextDocumentLayout(doc) {}; - virtual ~MiqtVirtualQAbstractTextDocumentLayout() = default; + virtual ~MiqtVirtualQAbstractTextDocumentLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Draw = 0; @@ -742,12 +742,8 @@ void QAbstractTextDocumentLayout_virtualbase_DisconnectNotify(void* self, QMetaM ( (MiqtVirtualQAbstractTextDocumentLayout*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAbstractTextDocumentLayout_Delete(QAbstractTextDocumentLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractTextDocumentLayout_Delete(QAbstractTextDocumentLayout* self) { + delete self; } QSizeF* QTextObjectInterface_IntrinsicSize(QTextObjectInterface* self, QTextDocument* doc, int posInDocument, QTextFormat* format) { @@ -762,12 +758,8 @@ void QTextObjectInterface_OperatorAssign(QTextObjectInterface* self, QTextObject self->operator=(*param1); } -void QTextObjectInterface_Delete(QTextObjectInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextObjectInterface_Delete(QTextObjectInterface* self) { + delete self; } QAbstractTextDocumentLayout__Selection* QAbstractTextDocumentLayout__Selection_new(QAbstractTextDocumentLayout__Selection* param1) { @@ -778,12 +770,8 @@ void QAbstractTextDocumentLayout__Selection_OperatorAssign(QAbstractTextDocument self->operator=(*param1); } -void QAbstractTextDocumentLayout__Selection_Delete(QAbstractTextDocumentLayout__Selection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractTextDocumentLayout__Selection_Delete(QAbstractTextDocumentLayout__Selection* self) { + delete self; } QAbstractTextDocumentLayout__PaintContext* QAbstractTextDocumentLayout__PaintContext_new() { @@ -798,11 +786,7 @@ void QAbstractTextDocumentLayout__PaintContext_OperatorAssign(QAbstractTextDocum self->operator=(*param1); } -void QAbstractTextDocumentLayout__PaintContext_Delete(QAbstractTextDocumentLayout__PaintContext* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractTextDocumentLayout__PaintContext_Delete(QAbstractTextDocumentLayout__PaintContext* self) { + delete self; } diff --git a/qt6/gen_qabstracttextdocumentlayout.go b/qt6/gen_qabstracttextdocumentlayout.go index 58ea3a40..40e83725 100644 --- a/qt6/gen_qabstracttextdocumentlayout.go +++ b/qt6/gen_qabstracttextdocumentlayout.go @@ -724,7 +724,7 @@ func miqt_exec_callback_QAbstractTextDocumentLayout_DisconnectNotify(self *C.QAb // Delete this object from C++ memory. func (this *QAbstractTextDocumentLayout) Delete() { - C.QAbstractTextDocumentLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractTextDocumentLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -785,7 +785,7 @@ func (this *QTextObjectInterface) OperatorAssign(param1 *QTextObjectInterface) { // Delete this object from C++ memory. func (this *QTextObjectInterface) Delete() { - C.QTextObjectInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QTextObjectInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -844,7 +844,7 @@ func (this *QAbstractTextDocumentLayout__Selection) OperatorAssign(param1 *QAbst // Delete this object from C++ memory. func (this *QAbstractTextDocumentLayout__Selection) Delete() { - C.QAbstractTextDocumentLayout__Selection_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractTextDocumentLayout__Selection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -911,7 +911,7 @@ func (this *QAbstractTextDocumentLayout__PaintContext) OperatorAssign(param1 *QA // Delete this object from C++ memory. func (this *QAbstractTextDocumentLayout__PaintContext) Delete() { - C.QAbstractTextDocumentLayout__PaintContext_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractTextDocumentLayout__PaintContext_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qabstracttextdocumentlayout.h b/qt6/gen_qabstracttextdocumentlayout.h index 5846e9ca..f2970e5f 100644 --- a/qt6/gen_qabstracttextdocumentlayout.h +++ b/qt6/gen_qabstracttextdocumentlayout.h @@ -138,21 +138,21 @@ void QAbstractTextDocumentLayout_override_virtual_ConnectNotify(void* self, intp void QAbstractTextDocumentLayout_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAbstractTextDocumentLayout_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAbstractTextDocumentLayout_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAbstractTextDocumentLayout_Delete(QAbstractTextDocumentLayout* self, bool isSubclass); +void QAbstractTextDocumentLayout_Delete(QAbstractTextDocumentLayout* self); QSizeF* QTextObjectInterface_IntrinsicSize(QTextObjectInterface* self, QTextDocument* doc, int posInDocument, QTextFormat* format); void QTextObjectInterface_DrawObject(QTextObjectInterface* self, QPainter* painter, QRectF* rect, QTextDocument* doc, int posInDocument, QTextFormat* format); void QTextObjectInterface_OperatorAssign(QTextObjectInterface* self, QTextObjectInterface* param1); -void QTextObjectInterface_Delete(QTextObjectInterface* self, bool isSubclass); +void QTextObjectInterface_Delete(QTextObjectInterface* self); QAbstractTextDocumentLayout__Selection* QAbstractTextDocumentLayout__Selection_new(QAbstractTextDocumentLayout__Selection* param1); void QAbstractTextDocumentLayout__Selection_OperatorAssign(QAbstractTextDocumentLayout__Selection* self, QAbstractTextDocumentLayout__Selection* param1); -void QAbstractTextDocumentLayout__Selection_Delete(QAbstractTextDocumentLayout__Selection* self, bool isSubclass); +void QAbstractTextDocumentLayout__Selection_Delete(QAbstractTextDocumentLayout__Selection* self); QAbstractTextDocumentLayout__PaintContext* QAbstractTextDocumentLayout__PaintContext_new(); QAbstractTextDocumentLayout__PaintContext* QAbstractTextDocumentLayout__PaintContext_new2(QAbstractTextDocumentLayout__PaintContext* param1); void QAbstractTextDocumentLayout__PaintContext_OperatorAssign(QAbstractTextDocumentLayout__PaintContext* self, QAbstractTextDocumentLayout__PaintContext* param1); -void QAbstractTextDocumentLayout__PaintContext_Delete(QAbstractTextDocumentLayout__PaintContext* self, bool isSubclass); +void QAbstractTextDocumentLayout__PaintContext_Delete(QAbstractTextDocumentLayout__PaintContext* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qaccessible.cpp b/qt6/gen_qaccessible.cpp index bf96867f..f1dd76e9 100644 --- a/qt6/gen_qaccessible.cpp +++ b/qt6/gen_qaccessible.cpp @@ -285,12 +285,8 @@ void QAccessibleTextInterface_OperatorAssign(QAccessibleTextInterface* self, QAc self->operator=(*param1); } -void QAccessibleTextInterface_Delete(QAccessibleTextInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextInterface_Delete(QAccessibleTextInterface* self) { + delete self; } void QAccessibleEditableTextInterface_DeleteText(QAccessibleEditableTextInterface* self, int startOffset, int endOffset) { @@ -311,12 +307,8 @@ void QAccessibleEditableTextInterface_OperatorAssign(QAccessibleEditableTextInte self->operator=(*param1); } -void QAccessibleEditableTextInterface_Delete(QAccessibleEditableTextInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleEditableTextInterface_Delete(QAccessibleEditableTextInterface* self) { + delete self; } QVariant* QAccessibleValueInterface_CurrentValue(const QAccessibleValueInterface* self) { @@ -343,12 +335,8 @@ void QAccessibleValueInterface_OperatorAssign(QAccessibleValueInterface* self, Q self->operator=(*param1); } -void QAccessibleValueInterface_Delete(QAccessibleValueInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleValueInterface_Delete(QAccessibleValueInterface* self) { + delete self; } bool QAccessibleTableCellInterface_IsSelected(const QAccessibleTableCellInterface* self) { @@ -405,12 +393,8 @@ void QAccessibleTableCellInterface_OperatorAssign(QAccessibleTableCellInterface* self->operator=(*param1); } -void QAccessibleTableCellInterface_Delete(QAccessibleTableCellInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTableCellInterface_Delete(QAccessibleTableCellInterface* self) { + delete self; } QAccessibleInterface* QAccessibleTableInterface_Caption(const QAccessibleTableInterface* self) { @@ -534,12 +518,8 @@ void QAccessibleTableInterface_ModelChange(QAccessibleTableInterface* self, QAcc self->modelChange(event); } -void QAccessibleTableInterface_Delete(QAccessibleTableInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTableInterface_Delete(QAccessibleTableInterface* self) { + delete self; } struct miqt_string QAccessibleActionInterface_Tr(const char* sourceText) { @@ -781,12 +761,8 @@ struct miqt_string QAccessibleActionInterface_Tr3(const char* sourceText, const return _ms; } -void QAccessibleActionInterface_Delete(QAccessibleActionInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleActionInterface_Delete(QAccessibleActionInterface* self) { + delete self; } struct miqt_string QAccessibleImageInterface_ImageDescription(const QAccessibleImageInterface* self) { @@ -812,12 +788,8 @@ void QAccessibleImageInterface_OperatorAssign(QAccessibleImageInterface* self, Q self->operator=(*param1); } -void QAccessibleImageInterface_Delete(QAccessibleImageInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleImageInterface_Delete(QAccessibleImageInterface* self) { + delete self; } struct miqt_string QAccessibleHyperlinkInterface_Anchor(const QAccessibleHyperlinkInterface* self) { @@ -858,21 +830,17 @@ void QAccessibleHyperlinkInterface_OperatorAssign(QAccessibleHyperlinkInterface* self->operator=(*param1); } -void QAccessibleHyperlinkInterface_Delete(QAccessibleHyperlinkInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleHyperlinkInterface_Delete(QAccessibleHyperlinkInterface* self) { + delete self; } -class MiqtVirtualQAccessibleEvent : public virtual QAccessibleEvent { +class MiqtVirtualQAccessibleEvent final : public QAccessibleEvent { public: MiqtVirtualQAccessibleEvent(QObject* obj, QAccessible::Event typ): QAccessibleEvent(obj, typ) {}; MiqtVirtualQAccessibleEvent(QAccessibleInterface* iface, QAccessible::Event typ): QAccessibleEvent(iface, typ) {}; - virtual ~MiqtVirtualQAccessibleEvent() = default; + virtual ~MiqtVirtualQAccessibleEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AccessibleInterface = 0; @@ -940,21 +908,17 @@ QAccessibleInterface* QAccessibleEvent_virtualbase_AccessibleInterface(const voi return ( (const MiqtVirtualQAccessibleEvent*)(self) )->virtualbase_AccessibleInterface(); } -void QAccessibleEvent_Delete(QAccessibleEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleEvent_Delete(QAccessibleEvent* self) { + delete self; } -class MiqtVirtualQAccessibleStateChangeEvent : public virtual QAccessibleStateChangeEvent { +class MiqtVirtualQAccessibleStateChangeEvent final : public QAccessibleStateChangeEvent { public: MiqtVirtualQAccessibleStateChangeEvent(QObject* obj, QAccessible::State state): QAccessibleStateChangeEvent(obj, state) {}; MiqtVirtualQAccessibleStateChangeEvent(QAccessibleInterface* iface, QAccessible::State state): QAccessibleStateChangeEvent(iface, state) {}; - virtual ~MiqtVirtualQAccessibleStateChangeEvent() = default; + virtual ~MiqtVirtualQAccessibleStateChangeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AccessibleInterface = 0; @@ -1004,21 +968,17 @@ QAccessibleInterface* QAccessibleStateChangeEvent_virtualbase_AccessibleInterfac return ( (const MiqtVirtualQAccessibleStateChangeEvent*)(self) )->virtualbase_AccessibleInterface(); } -void QAccessibleStateChangeEvent_Delete(QAccessibleStateChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleStateChangeEvent_Delete(QAccessibleStateChangeEvent* self) { + delete self; } -class MiqtVirtualQAccessibleTextCursorEvent : public virtual QAccessibleTextCursorEvent { +class MiqtVirtualQAccessibleTextCursorEvent final : public QAccessibleTextCursorEvent { public: MiqtVirtualQAccessibleTextCursorEvent(QObject* obj, int cursorPos): QAccessibleTextCursorEvent(obj, cursorPos) {}; MiqtVirtualQAccessibleTextCursorEvent(QAccessibleInterface* iface, int cursorPos): QAccessibleTextCursorEvent(iface, cursorPos) {}; - virtual ~MiqtVirtualQAccessibleTextCursorEvent() = default; + virtual ~MiqtVirtualQAccessibleTextCursorEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AccessibleInterface = 0; @@ -1072,12 +1032,8 @@ QAccessibleInterface* QAccessibleTextCursorEvent_virtualbase_AccessibleInterface return ( (const MiqtVirtualQAccessibleTextCursorEvent*)(self) )->virtualbase_AccessibleInterface(); } -void QAccessibleTextCursorEvent_Delete(QAccessibleTextCursorEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextCursorEvent_Delete(QAccessibleTextCursorEvent* self) { + delete self; } QAccessibleTextSelectionEvent* QAccessibleTextSelectionEvent_new(QObject* obj, int start, int end) { @@ -1104,12 +1060,8 @@ int QAccessibleTextSelectionEvent_SelectionEnd(const QAccessibleTextSelectionEve return self->selectionEnd(); } -void QAccessibleTextSelectionEvent_Delete(QAccessibleTextSelectionEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextSelectionEvent_Delete(QAccessibleTextSelectionEvent* self) { + delete self; } QAccessibleTextInsertEvent* QAccessibleTextInsertEvent_new(QObject* obj, int position, struct miqt_string text) { @@ -1141,12 +1093,8 @@ int QAccessibleTextInsertEvent_ChangePosition(const QAccessibleTextInsertEvent* return self->changePosition(); } -void QAccessibleTextInsertEvent_Delete(QAccessibleTextInsertEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextInsertEvent_Delete(QAccessibleTextInsertEvent* self) { + delete self; } QAccessibleTextRemoveEvent* QAccessibleTextRemoveEvent_new(QObject* obj, int position, struct miqt_string text) { @@ -1178,12 +1126,8 @@ int QAccessibleTextRemoveEvent_ChangePosition(const QAccessibleTextRemoveEvent* return self->changePosition(); } -void QAccessibleTextRemoveEvent_Delete(QAccessibleTextRemoveEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextRemoveEvent_Delete(QAccessibleTextRemoveEvent* self) { + delete self; } QAccessibleTextUpdateEvent* QAccessibleTextUpdateEvent_new(QObject* obj, int position, struct miqt_string oldText, struct miqt_string text) { @@ -1228,21 +1172,17 @@ int QAccessibleTextUpdateEvent_ChangePosition(const QAccessibleTextUpdateEvent* return self->changePosition(); } -void QAccessibleTextUpdateEvent_Delete(QAccessibleTextUpdateEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTextUpdateEvent_Delete(QAccessibleTextUpdateEvent* self) { + delete self; } -class MiqtVirtualQAccessibleValueChangeEvent : public virtual QAccessibleValueChangeEvent { +class MiqtVirtualQAccessibleValueChangeEvent final : public QAccessibleValueChangeEvent { public: MiqtVirtualQAccessibleValueChangeEvent(QObject* obj, const QVariant& val): QAccessibleValueChangeEvent(obj, val) {}; MiqtVirtualQAccessibleValueChangeEvent(QAccessibleInterface* iface, const QVariant& val): QAccessibleValueChangeEvent(iface, val) {}; - virtual ~MiqtVirtualQAccessibleValueChangeEvent() = default; + virtual ~MiqtVirtualQAccessibleValueChangeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AccessibleInterface = 0; @@ -1296,21 +1236,17 @@ QAccessibleInterface* QAccessibleValueChangeEvent_virtualbase_AccessibleInterfac return ( (const MiqtVirtualQAccessibleValueChangeEvent*)(self) )->virtualbase_AccessibleInterface(); } -void QAccessibleValueChangeEvent_Delete(QAccessibleValueChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleValueChangeEvent_Delete(QAccessibleValueChangeEvent* self) { + delete self; } -class MiqtVirtualQAccessibleTableModelChangeEvent : public virtual QAccessibleTableModelChangeEvent { +class MiqtVirtualQAccessibleTableModelChangeEvent final : public QAccessibleTableModelChangeEvent { public: MiqtVirtualQAccessibleTableModelChangeEvent(QObject* obj, QAccessibleTableModelChangeEvent::ModelChangeType changeType): QAccessibleTableModelChangeEvent(obj, changeType) {}; MiqtVirtualQAccessibleTableModelChangeEvent(QAccessibleInterface* iface, QAccessibleTableModelChangeEvent::ModelChangeType changeType): QAccessibleTableModelChangeEvent(iface, changeType) {}; - virtual ~MiqtVirtualQAccessibleTableModelChangeEvent() = default; + virtual ~MiqtVirtualQAccessibleTableModelChangeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AccessibleInterface = 0; @@ -1397,11 +1333,7 @@ QAccessibleInterface* QAccessibleTableModelChangeEvent_virtualbase_AccessibleInt return ( (const MiqtVirtualQAccessibleTableModelChangeEvent*)(self) )->virtualbase_AccessibleInterface(); } -void QAccessibleTableModelChangeEvent_Delete(QAccessibleTableModelChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleTableModelChangeEvent_Delete(QAccessibleTableModelChangeEvent* self) { + delete self; } diff --git a/qt6/gen_qaccessible.go b/qt6/gen_qaccessible.go index 04caee3e..422cd092 100644 --- a/qt6/gen_qaccessible.go +++ b/qt6/gen_qaccessible.go @@ -323,7 +323,7 @@ func (this *QAccessibleTextInterface) OperatorAssign(param1 *QAccessibleTextInte // Delete this object from C++ memory. func (this *QAccessibleTextInterface) Delete() { - C.QAccessibleTextInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -394,7 +394,7 @@ func (this *QAccessibleEditableTextInterface) OperatorAssign(param1 *QAccessible // Delete this object from C++ memory. func (this *QAccessibleEditableTextInterface) Delete() { - C.QAccessibleEditableTextInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleEditableTextInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -473,7 +473,7 @@ func (this *QAccessibleValueInterface) OperatorAssign(param1 *QAccessibleValueIn // Delete this object from C++ memory. func (this *QAccessibleValueInterface) Delete() { - C.QAccessibleValueInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleValueInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -568,7 +568,7 @@ func (this *QAccessibleTableCellInterface) OperatorAssign(param1 *QAccessibleTab // Delete this object from C++ memory. func (this *QAccessibleTableCellInterface) Delete() { - C.QAccessibleTableCellInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTableCellInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -719,7 +719,7 @@ func (this *QAccessibleTableInterface) ModelChange(event *QAccessibleTableModelC // Delete this object from C++ memory. func (this *QAccessibleTableInterface) Delete() { - C.QAccessibleTableInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTableInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -945,7 +945,7 @@ func QAccessibleActionInterface_Tr3(sourceText string, disambiguation string, n // Delete this object from C++ memory. func (this *QAccessibleActionInterface) Delete() { - C.QAccessibleActionInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleActionInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1015,7 +1015,7 @@ func (this *QAccessibleImageInterface) OperatorAssign(param1 *QAccessibleImageIn // Delete this object from C++ memory. func (this *QAccessibleImageInterface) Delete() { - C.QAccessibleImageInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleImageInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1092,7 +1092,7 @@ func (this *QAccessibleHyperlinkInterface) OperatorAssign(param1 *QAccessibleHyp // Delete this object from C++ memory. func (this *QAccessibleHyperlinkInterface) Delete() { - C.QAccessibleHyperlinkInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleHyperlinkInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1204,7 +1204,7 @@ func miqt_exec_callback_QAccessibleEvent_AccessibleInterface(self *C.QAccessible // Delete this object from C++ memory. func (this *QAccessibleEvent) Delete() { - C.QAccessibleEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1302,7 +1302,7 @@ func miqt_exec_callback_QAccessibleStateChangeEvent_AccessibleInterface(self *C. // Delete this object from C++ memory. func (this *QAccessibleStateChangeEvent) Delete() { - C.QAccessibleStateChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleStateChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1402,7 +1402,7 @@ func miqt_exec_callback_QAccessibleTextCursorEvent_AccessibleInterface(self *C.Q // Delete this object from C++ memory. func (this *QAccessibleTextCursorEvent) Delete() { - C.QAccessibleTextCursorEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextCursorEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1481,7 +1481,7 @@ func (this *QAccessibleTextSelectionEvent) SelectionEnd() int { // Delete this object from C++ memory. func (this *QAccessibleTextSelectionEvent) Delete() { - C.QAccessibleTextSelectionEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextSelectionEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1567,7 +1567,7 @@ func (this *QAccessibleTextInsertEvent) ChangePosition() int { // Delete this object from C++ memory. func (this *QAccessibleTextInsertEvent) Delete() { - C.QAccessibleTextInsertEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextInsertEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1653,7 +1653,7 @@ func (this *QAccessibleTextRemoveEvent) ChangePosition() int { // Delete this object from C++ memory. func (this *QAccessibleTextRemoveEvent) Delete() { - C.QAccessibleTextRemoveEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextRemoveEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1754,7 +1754,7 @@ func (this *QAccessibleTextUpdateEvent) ChangePosition() int { // Delete this object from C++ memory. func (this *QAccessibleTextUpdateEvent) Delete() { - C.QAccessibleTextUpdateEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTextUpdateEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1856,7 +1856,7 @@ func miqt_exec_callback_QAccessibleValueChangeEvent_AccessibleInterface(self *C. // Delete this object from C++ memory. func (this *QAccessibleValueChangeEvent) Delete() { - C.QAccessibleValueChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleValueChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1988,7 +1988,7 @@ func miqt_exec_callback_QAccessibleTableModelChangeEvent_AccessibleInterface(sel // Delete this object from C++ memory. func (this *QAccessibleTableModelChangeEvent) Delete() { - C.QAccessibleTableModelChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleTableModelChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qaccessible.h b/qt6/gen_qaccessible.h index 9cc31559..5df15533 100644 --- a/qt6/gen_qaccessible.h +++ b/qt6/gen_qaccessible.h @@ -119,13 +119,13 @@ int QAccessibleTextInterface_OffsetAtPoint(const QAccessibleTextInterface* self, void QAccessibleTextInterface_ScrollToSubstring(QAccessibleTextInterface* self, int startIndex, int endIndex); struct miqt_string QAccessibleTextInterface_Attributes(const QAccessibleTextInterface* self, int offset, int* startOffset, int* endOffset); void QAccessibleTextInterface_OperatorAssign(QAccessibleTextInterface* self, QAccessibleTextInterface* param1); -void QAccessibleTextInterface_Delete(QAccessibleTextInterface* self, bool isSubclass); +void QAccessibleTextInterface_Delete(QAccessibleTextInterface* self); void QAccessibleEditableTextInterface_DeleteText(QAccessibleEditableTextInterface* self, int startOffset, int endOffset); void QAccessibleEditableTextInterface_InsertText(QAccessibleEditableTextInterface* self, int offset, struct miqt_string text); void QAccessibleEditableTextInterface_ReplaceText(QAccessibleEditableTextInterface* self, int startOffset, int endOffset, struct miqt_string text); void QAccessibleEditableTextInterface_OperatorAssign(QAccessibleEditableTextInterface* self, QAccessibleEditableTextInterface* param1); -void QAccessibleEditableTextInterface_Delete(QAccessibleEditableTextInterface* self, bool isSubclass); +void QAccessibleEditableTextInterface_Delete(QAccessibleEditableTextInterface* self); QVariant* QAccessibleValueInterface_CurrentValue(const QAccessibleValueInterface* self); void QAccessibleValueInterface_SetCurrentValue(QAccessibleValueInterface* self, QVariant* value); @@ -133,7 +133,7 @@ QVariant* QAccessibleValueInterface_MaximumValue(const QAccessibleValueInterface QVariant* QAccessibleValueInterface_MinimumValue(const QAccessibleValueInterface* self); QVariant* QAccessibleValueInterface_MinimumStepSize(const QAccessibleValueInterface* self); void QAccessibleValueInterface_OperatorAssign(QAccessibleValueInterface* self, QAccessibleValueInterface* param1); -void QAccessibleValueInterface_Delete(QAccessibleValueInterface* self, bool isSubclass); +void QAccessibleValueInterface_Delete(QAccessibleValueInterface* self); bool QAccessibleTableCellInterface_IsSelected(const QAccessibleTableCellInterface* self); struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_ColumnHeaderCells(const QAccessibleTableCellInterface* self); @@ -144,7 +144,7 @@ int QAccessibleTableCellInterface_ColumnExtent(const QAccessibleTableCellInterfa int QAccessibleTableCellInterface_RowExtent(const QAccessibleTableCellInterface* self); QAccessibleInterface* QAccessibleTableCellInterface_Table(const QAccessibleTableCellInterface* self); void QAccessibleTableCellInterface_OperatorAssign(QAccessibleTableCellInterface* self, QAccessibleTableCellInterface* param1); -void QAccessibleTableCellInterface_Delete(QAccessibleTableCellInterface* self, bool isSubclass); +void QAccessibleTableCellInterface_Delete(QAccessibleTableCellInterface* self); QAccessibleInterface* QAccessibleTableInterface_Caption(const QAccessibleTableInterface* self); QAccessibleInterface* QAccessibleTableInterface_Summary(const QAccessibleTableInterface* self); @@ -166,7 +166,7 @@ bool QAccessibleTableInterface_SelectColumn(QAccessibleTableInterface* self, int bool QAccessibleTableInterface_UnselectRow(QAccessibleTableInterface* self, int row); bool QAccessibleTableInterface_UnselectColumn(QAccessibleTableInterface* self, int column); void QAccessibleTableInterface_ModelChange(QAccessibleTableInterface* self, QAccessibleTableModelChangeEvent* event); -void QAccessibleTableInterface_Delete(QAccessibleTableInterface* self, bool isSubclass); +void QAccessibleTableInterface_Delete(QAccessibleTableInterface* self); struct miqt_string QAccessibleActionInterface_Tr(const char* sourceText); struct miqt_array /* of struct miqt_string */ QAccessibleActionInterface_ActionNames(const QAccessibleActionInterface* self); @@ -189,13 +189,13 @@ struct miqt_string QAccessibleActionInterface_PreviousPageAction(); void QAccessibleActionInterface_OperatorAssign(QAccessibleActionInterface* self, QAccessibleActionInterface* param1); struct miqt_string QAccessibleActionInterface_Tr2(const char* sourceText, const char* disambiguation); struct miqt_string QAccessibleActionInterface_Tr3(const char* sourceText, const char* disambiguation, int n); -void QAccessibleActionInterface_Delete(QAccessibleActionInterface* self, bool isSubclass); +void QAccessibleActionInterface_Delete(QAccessibleActionInterface* self); struct miqt_string QAccessibleImageInterface_ImageDescription(const QAccessibleImageInterface* self); QSize* QAccessibleImageInterface_ImageSize(const QAccessibleImageInterface* self); QPoint* QAccessibleImageInterface_ImagePosition(const QAccessibleImageInterface* self); void QAccessibleImageInterface_OperatorAssign(QAccessibleImageInterface* self, QAccessibleImageInterface* param1); -void QAccessibleImageInterface_Delete(QAccessibleImageInterface* self, bool isSubclass); +void QAccessibleImageInterface_Delete(QAccessibleImageInterface* self); struct miqt_string QAccessibleHyperlinkInterface_Anchor(const QAccessibleHyperlinkInterface* self); struct miqt_string QAccessibleHyperlinkInterface_AnchorTarget(const QAccessibleHyperlinkInterface* self); @@ -203,7 +203,7 @@ int QAccessibleHyperlinkInterface_StartIndex(const QAccessibleHyperlinkInterface int QAccessibleHyperlinkInterface_EndIndex(const QAccessibleHyperlinkInterface* self); bool QAccessibleHyperlinkInterface_IsValid(const QAccessibleHyperlinkInterface* self); void QAccessibleHyperlinkInterface_OperatorAssign(QAccessibleHyperlinkInterface* self, QAccessibleHyperlinkInterface* param1); -void QAccessibleHyperlinkInterface_Delete(QAccessibleHyperlinkInterface* self, bool isSubclass); +void QAccessibleHyperlinkInterface_Delete(QAccessibleHyperlinkInterface* self); QAccessibleEvent* QAccessibleEvent_new(QObject* obj, int typ); QAccessibleEvent* QAccessibleEvent_new2(QAccessibleInterface* iface, int typ); @@ -215,7 +215,7 @@ int QAccessibleEvent_Child(const QAccessibleEvent* self); QAccessibleInterface* QAccessibleEvent_AccessibleInterface(const QAccessibleEvent* self); void QAccessibleEvent_override_virtual_AccessibleInterface(void* self, intptr_t slot); QAccessibleInterface* QAccessibleEvent_virtualbase_AccessibleInterface(const void* self); -void QAccessibleEvent_Delete(QAccessibleEvent* self, bool isSubclass); +void QAccessibleEvent_Delete(QAccessibleEvent* self); QAccessibleStateChangeEvent* QAccessibleStateChangeEvent_new(QObject* obj, QAccessible__State* state); QAccessibleStateChangeEvent* QAccessibleStateChangeEvent_new2(QAccessibleInterface* iface, QAccessible__State* state); @@ -223,7 +223,7 @@ void QAccessibleStateChangeEvent_virtbase(QAccessibleStateChangeEvent* src, QAcc QAccessible__State* QAccessibleStateChangeEvent_ChangedStates(const QAccessibleStateChangeEvent* self); void QAccessibleStateChangeEvent_override_virtual_AccessibleInterface(void* self, intptr_t slot); QAccessibleInterface* QAccessibleStateChangeEvent_virtualbase_AccessibleInterface(const void* self); -void QAccessibleStateChangeEvent_Delete(QAccessibleStateChangeEvent* self, bool isSubclass); +void QAccessibleStateChangeEvent_Delete(QAccessibleStateChangeEvent* self); QAccessibleTextCursorEvent* QAccessibleTextCursorEvent_new(QObject* obj, int cursorPos); QAccessibleTextCursorEvent* QAccessibleTextCursorEvent_new2(QAccessibleInterface* iface, int cursorPos); @@ -232,7 +232,7 @@ void QAccessibleTextCursorEvent_SetCursorPosition(QAccessibleTextCursorEvent* se int QAccessibleTextCursorEvent_CursorPosition(const QAccessibleTextCursorEvent* self); void QAccessibleTextCursorEvent_override_virtual_AccessibleInterface(void* self, intptr_t slot); QAccessibleInterface* QAccessibleTextCursorEvent_virtualbase_AccessibleInterface(const void* self); -void QAccessibleTextCursorEvent_Delete(QAccessibleTextCursorEvent* self, bool isSubclass); +void QAccessibleTextCursorEvent_Delete(QAccessibleTextCursorEvent* self); QAccessibleTextSelectionEvent* QAccessibleTextSelectionEvent_new(QObject* obj, int start, int end); QAccessibleTextSelectionEvent* QAccessibleTextSelectionEvent_new2(QAccessibleInterface* iface, int start, int end); @@ -240,21 +240,21 @@ void QAccessibleTextSelectionEvent_virtbase(QAccessibleTextSelectionEvent* src, void QAccessibleTextSelectionEvent_SetSelection(QAccessibleTextSelectionEvent* self, int start, int end); int QAccessibleTextSelectionEvent_SelectionStart(const QAccessibleTextSelectionEvent* self); int QAccessibleTextSelectionEvent_SelectionEnd(const QAccessibleTextSelectionEvent* self); -void QAccessibleTextSelectionEvent_Delete(QAccessibleTextSelectionEvent* self, bool isSubclass); +void QAccessibleTextSelectionEvent_Delete(QAccessibleTextSelectionEvent* self); QAccessibleTextInsertEvent* QAccessibleTextInsertEvent_new(QObject* obj, int position, struct miqt_string text); QAccessibleTextInsertEvent* QAccessibleTextInsertEvent_new2(QAccessibleInterface* iface, int position, struct miqt_string text); void QAccessibleTextInsertEvent_virtbase(QAccessibleTextInsertEvent* src, QAccessibleTextCursorEvent** outptr_QAccessibleTextCursorEvent); struct miqt_string QAccessibleTextInsertEvent_TextInserted(const QAccessibleTextInsertEvent* self); int QAccessibleTextInsertEvent_ChangePosition(const QAccessibleTextInsertEvent* self); -void QAccessibleTextInsertEvent_Delete(QAccessibleTextInsertEvent* self, bool isSubclass); +void QAccessibleTextInsertEvent_Delete(QAccessibleTextInsertEvent* self); QAccessibleTextRemoveEvent* QAccessibleTextRemoveEvent_new(QObject* obj, int position, struct miqt_string text); QAccessibleTextRemoveEvent* QAccessibleTextRemoveEvent_new2(QAccessibleInterface* iface, int position, struct miqt_string text); void QAccessibleTextRemoveEvent_virtbase(QAccessibleTextRemoveEvent* src, QAccessibleTextCursorEvent** outptr_QAccessibleTextCursorEvent); struct miqt_string QAccessibleTextRemoveEvent_TextRemoved(const QAccessibleTextRemoveEvent* self); int QAccessibleTextRemoveEvent_ChangePosition(const QAccessibleTextRemoveEvent* self); -void QAccessibleTextRemoveEvent_Delete(QAccessibleTextRemoveEvent* self, bool isSubclass); +void QAccessibleTextRemoveEvent_Delete(QAccessibleTextRemoveEvent* self); QAccessibleTextUpdateEvent* QAccessibleTextUpdateEvent_new(QObject* obj, int position, struct miqt_string oldText, struct miqt_string text); QAccessibleTextUpdateEvent* QAccessibleTextUpdateEvent_new2(QAccessibleInterface* iface, int position, struct miqt_string oldText, struct miqt_string text); @@ -262,7 +262,7 @@ void QAccessibleTextUpdateEvent_virtbase(QAccessibleTextUpdateEvent* src, QAcces struct miqt_string QAccessibleTextUpdateEvent_TextRemoved(const QAccessibleTextUpdateEvent* self); struct miqt_string QAccessibleTextUpdateEvent_TextInserted(const QAccessibleTextUpdateEvent* self); int QAccessibleTextUpdateEvent_ChangePosition(const QAccessibleTextUpdateEvent* self); -void QAccessibleTextUpdateEvent_Delete(QAccessibleTextUpdateEvent* self, bool isSubclass); +void QAccessibleTextUpdateEvent_Delete(QAccessibleTextUpdateEvent* self); QAccessibleValueChangeEvent* QAccessibleValueChangeEvent_new(QObject* obj, QVariant* val); QAccessibleValueChangeEvent* QAccessibleValueChangeEvent_new2(QAccessibleInterface* iface, QVariant* val); @@ -271,7 +271,7 @@ void QAccessibleValueChangeEvent_SetValue(QAccessibleValueChangeEvent* self, QVa QVariant* QAccessibleValueChangeEvent_Value(const QAccessibleValueChangeEvent* self); void QAccessibleValueChangeEvent_override_virtual_AccessibleInterface(void* self, intptr_t slot); QAccessibleInterface* QAccessibleValueChangeEvent_virtualbase_AccessibleInterface(const void* self); -void QAccessibleValueChangeEvent_Delete(QAccessibleValueChangeEvent* self, bool isSubclass); +void QAccessibleValueChangeEvent_Delete(QAccessibleValueChangeEvent* self); QAccessibleTableModelChangeEvent* QAccessibleTableModelChangeEvent_new(QObject* obj, int changeType); QAccessibleTableModelChangeEvent* QAccessibleTableModelChangeEvent_new2(QAccessibleInterface* iface, int changeType); @@ -288,7 +288,7 @@ int QAccessibleTableModelChangeEvent_LastRow(const QAccessibleTableModelChangeEv int QAccessibleTableModelChangeEvent_LastColumn(const QAccessibleTableModelChangeEvent* self); void QAccessibleTableModelChangeEvent_override_virtual_AccessibleInterface(void* self, intptr_t slot); QAccessibleInterface* QAccessibleTableModelChangeEvent_virtualbase_AccessibleInterface(const void* self); -void QAccessibleTableModelChangeEvent_Delete(QAccessibleTableModelChangeEvent* self, bool isSubclass); +void QAccessibleTableModelChangeEvent_Delete(QAccessibleTableModelChangeEvent* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qaccessible_base.cpp b/qt6/gen_qaccessible_base.cpp index 53a508f4..e6bbf4d5 100644 --- a/qt6/gen_qaccessible_base.cpp +++ b/qt6/gen_qaccessible_base.cpp @@ -81,24 +81,16 @@ struct miqt_map /* tuple of int and int */ QAccessible_QAccessibleTextBoundaryH return _out; } -void QAccessible_Delete(QAccessible* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessible_Delete(QAccessible* self) { + delete self; } QAccessible__State* QAccessible__State_new() { return new QAccessible::State(); } -void QAccessible__State_Delete(QAccessible__State* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessible__State_Delete(QAccessible__State* self) { + delete self; } void QAccessible__ActivationObserver_AccessibilityActiveChanged(QAccessible__ActivationObserver* self, bool active) { @@ -109,11 +101,7 @@ void QAccessible__ActivationObserver_OperatorAssign(QAccessible__ActivationObser self->operator=(*param1); } -void QAccessible__ActivationObserver_Delete(QAccessible__ActivationObserver* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessible__ActivationObserver_Delete(QAccessible__ActivationObserver* self) { + delete self; } diff --git a/qt6/gen_qaccessible_base.go b/qt6/gen_qaccessible_base.go index 2baa26da..86f4bac0 100644 --- a/qt6/gen_qaccessible_base.go +++ b/qt6/gen_qaccessible_base.go @@ -314,7 +314,7 @@ func QAccessible_QAccessibleTextBoundaryHelper(cursor *QTextCursor, boundaryType // Delete this object from C++ memory. func (this *QAccessible) Delete() { - C.QAccessible_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessible_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -369,7 +369,7 @@ func NewQAccessible__State() *QAccessible__State { // Delete this object from C++ memory. func (this *QAccessible__State) Delete() { - C.QAccessible__State_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessible__State_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -424,7 +424,7 @@ func (this *QAccessible__ActivationObserver) OperatorAssign(param1 *QAccessible_ // Delete this object from C++ memory. func (this *QAccessible__ActivationObserver) Delete() { - C.QAccessible__ActivationObserver_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessible__ActivationObserver_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qaccessible_base.h b/qt6/gen_qaccessible_base.h index 71a55e6e..c38a0962 100644 --- a/qt6/gen_qaccessible_base.h +++ b/qt6/gen_qaccessible_base.h @@ -53,14 +53,14 @@ void QAccessible_SetActive(bool active); void QAccessible_SetRootObject(QObject* object); void QAccessible_Cleanup(); struct miqt_map /* tuple of int and int */ QAccessible_QAccessibleTextBoundaryHelper(QTextCursor* cursor, int boundaryType); -void QAccessible_Delete(QAccessible* self, bool isSubclass); +void QAccessible_Delete(QAccessible* self); QAccessible__State* QAccessible__State_new(); -void QAccessible__State_Delete(QAccessible__State* self, bool isSubclass); +void QAccessible__State_Delete(QAccessible__State* self); void QAccessible__ActivationObserver_AccessibilityActiveChanged(QAccessible__ActivationObserver* self, bool active); void QAccessible__ActivationObserver_OperatorAssign(QAccessible__ActivationObserver* self, QAccessible__ActivationObserver* param1); -void QAccessible__ActivationObserver_Delete(QAccessible__ActivationObserver* self, bool isSubclass); +void QAccessible__ActivationObserver_Delete(QAccessible__ActivationObserver* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qaccessiblebridge.cpp b/qt6/gen_qaccessiblebridge.cpp index c6c297a2..2b97f0dc 100644 --- a/qt6/gen_qaccessiblebridge.cpp +++ b/qt6/gen_qaccessiblebridge.cpp @@ -42,21 +42,17 @@ void QAccessibleBridge_OperatorAssign(QAccessibleBridge* self, QAccessibleBridge self->operator=(*param1); } -void QAccessibleBridge_Delete(QAccessibleBridge* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleBridge_Delete(QAccessibleBridge* self) { + delete self; } -class MiqtVirtualQAccessibleBridgePlugin : public virtual QAccessibleBridgePlugin { +class MiqtVirtualQAccessibleBridgePlugin final : public QAccessibleBridgePlugin { public: MiqtVirtualQAccessibleBridgePlugin(): QAccessibleBridgePlugin() {}; MiqtVirtualQAccessibleBridgePlugin(QObject* parent): QAccessibleBridgePlugin(parent) {}; - virtual ~MiqtVirtualQAccessibleBridgePlugin() = default; + virtual ~MiqtVirtualQAccessibleBridgePlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -372,11 +368,7 @@ void QAccessibleBridgePlugin_virtualbase_DisconnectNotify(void* self, QMetaMetho ( (MiqtVirtualQAccessibleBridgePlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAccessibleBridgePlugin_Delete(QAccessibleBridgePlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleBridgePlugin_Delete(QAccessibleBridgePlugin* self) { + delete self; } diff --git a/qt6/gen_qaccessiblebridge.go b/qt6/gen_qaccessiblebridge.go index d1d50e76..58351559 100644 --- a/qt6/gen_qaccessiblebridge.go +++ b/qt6/gen_qaccessiblebridge.go @@ -61,7 +61,7 @@ func (this *QAccessibleBridge) OperatorAssign(param1 *QAccessibleBridge) { // Delete this object from C++ memory. func (this *QAccessibleBridge) Delete() { - C.QAccessibleBridge_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleBridge_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -390,7 +390,7 @@ func miqt_exec_callback_QAccessibleBridgePlugin_DisconnectNotify(self *C.QAccess // Delete this object from C++ memory. func (this *QAccessibleBridgePlugin) Delete() { - C.QAccessibleBridgePlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleBridgePlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qaccessiblebridge.h b/qt6/gen_qaccessiblebridge.h index 85819159..81e2e746 100644 --- a/qt6/gen_qaccessiblebridge.h +++ b/qt6/gen_qaccessiblebridge.h @@ -41,7 +41,7 @@ typedef struct QTimerEvent QTimerEvent; void QAccessibleBridge_SetRootObject(QAccessibleBridge* self, QAccessibleInterface* rootObject); void QAccessibleBridge_NotifyAccessibilityUpdate(QAccessibleBridge* self, QAccessibleEvent* event); void QAccessibleBridge_OperatorAssign(QAccessibleBridge* self, QAccessibleBridge* param1); -void QAccessibleBridge_Delete(QAccessibleBridge* self, bool isSubclass); +void QAccessibleBridge_Delete(QAccessibleBridge* self); QAccessibleBridgePlugin* QAccessibleBridgePlugin_new(); QAccessibleBridgePlugin* QAccessibleBridgePlugin_new2(QObject* parent); @@ -68,7 +68,7 @@ void QAccessibleBridgePlugin_override_virtual_ConnectNotify(void* self, intptr_t void QAccessibleBridgePlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAccessibleBridgePlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAccessibleBridgePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAccessibleBridgePlugin_Delete(QAccessibleBridgePlugin* self, bool isSubclass); +void QAccessibleBridgePlugin_Delete(QAccessibleBridgePlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qaccessibleobject.cpp b/qt6/gen_qaccessibleobject.cpp index 7161e54a..a14bbcb1 100644 --- a/qt6/gen_qaccessibleobject.cpp +++ b/qt6/gen_qaccessibleobject.cpp @@ -96,11 +96,7 @@ QAccessible__State* QAccessibleApplication_State(const QAccessibleApplication* s return new QAccessible::State(self->state()); } -void QAccessibleApplication_Delete(QAccessibleApplication* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessibleApplication_Delete(QAccessibleApplication* self) { + delete self; } diff --git a/qt6/gen_qaccessibleobject.go b/qt6/gen_qaccessibleobject.go index 3af3f7f6..c0b5e7e7 100644 --- a/qt6/gen_qaccessibleobject.go +++ b/qt6/gen_qaccessibleobject.go @@ -164,7 +164,7 @@ func (this *QAccessibleApplication) State() *QAccessible__State { // Delete this object from C++ memory. func (this *QAccessibleApplication) Delete() { - C.QAccessibleApplication_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessibleApplication_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qaccessibleobject.h b/qt6/gen_qaccessibleobject.h index 4ab6b258..51f6d20d 100644 --- a/qt6/gen_qaccessibleobject.h +++ b/qt6/gen_qaccessibleobject.h @@ -54,7 +54,7 @@ QAccessibleInterface* QAccessibleApplication_Child(const QAccessibleApplication* struct miqt_string QAccessibleApplication_Text(const QAccessibleApplication* self, int t); int QAccessibleApplication_Role(const QAccessibleApplication* self); QAccessible__State* QAccessibleApplication_State(const QAccessibleApplication* self); -void QAccessibleApplication_Delete(QAccessibleApplication* self, bool isSubclass); +void QAccessibleApplication_Delete(QAccessibleApplication* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qaccessibleplugin.cpp b/qt6/gen_qaccessibleplugin.cpp index 1414fe61..f175a8b3 100644 --- a/qt6/gen_qaccessibleplugin.cpp +++ b/qt6/gen_qaccessibleplugin.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QAccessiblePlugin_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQAccessiblePlugin : public virtual QAccessiblePlugin { +class MiqtVirtualQAccessiblePlugin final : public QAccessiblePlugin { public: MiqtVirtualQAccessiblePlugin(): QAccessiblePlugin() {}; MiqtVirtualQAccessiblePlugin(QObject* parent): QAccessiblePlugin(parent) {}; - virtual ~MiqtVirtualQAccessiblePlugin() = default; + virtual ~MiqtVirtualQAccessiblePlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -351,11 +351,7 @@ void QAccessiblePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQAccessiblePlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAccessiblePlugin_Delete(QAccessiblePlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAccessiblePlugin_Delete(QAccessiblePlugin* self) { + delete self; } diff --git a/qt6/gen_qaccessibleplugin.go b/qt6/gen_qaccessibleplugin.go index a4ad83d9..c3ef4506 100644 --- a/qt6/gen_qaccessibleplugin.go +++ b/qt6/gen_qaccessibleplugin.go @@ -332,7 +332,7 @@ func miqt_exec_callback_QAccessiblePlugin_DisconnectNotify(self *C.QAccessiblePl // Delete this object from C++ memory. func (this *QAccessiblePlugin) Delete() { - C.QAccessiblePlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QAccessiblePlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qaccessibleplugin.h b/qt6/gen_qaccessibleplugin.h index ad9c0e3a..0647ca5e 100644 --- a/qt6/gen_qaccessibleplugin.h +++ b/qt6/gen_qaccessibleplugin.h @@ -59,7 +59,7 @@ void QAccessiblePlugin_override_virtual_ConnectNotify(void* self, intptr_t slot) void QAccessiblePlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAccessiblePlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAccessiblePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAccessiblePlugin_Delete(QAccessiblePlugin* self, bool isSubclass); +void QAccessiblePlugin_Delete(QAccessiblePlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qaction.cpp b/qt6/gen_qaction.cpp index 6bd23e46..7f18179a 100644 --- a/qt6/gen_qaction.cpp +++ b/qt6/gen_qaction.cpp @@ -40,7 +40,7 @@ void miqt_exec_callback_QAction_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQAction : public virtual QAction { +class MiqtVirtualQAction final : public QAction { public: MiqtVirtualQAction(): QAction() {}; @@ -50,7 +50,7 @@ public: MiqtVirtualQAction(const QString& text, QObject* parent): QAction(text, parent) {}; MiqtVirtualQAction(const QIcon& icon, const QString& text, QObject* parent): QAction(icon, text, parent) {}; - virtual ~MiqtVirtualQAction() = default; + virtual ~MiqtVirtualQAction() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -721,11 +721,7 @@ void QAction_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQAction*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAction_Delete(QAction* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAction_Delete(QAction* self) { + delete self; } diff --git a/qt6/gen_qaction.go b/qt6/gen_qaction.go index 750d424d..05e57c1c 100644 --- a/qt6/gen_qaction.go +++ b/qt6/gen_qaction.go @@ -800,7 +800,7 @@ func miqt_exec_callback_QAction_DisconnectNotify(self *C.QAction, cb C.intptr_t, // Delete this object from C++ memory. func (this *QAction) Delete() { - C.QAction_Delete(this.h, C.bool(this.isSubclass)) + C.QAction_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qaction.h b/qt6/gen_qaction.h index 842fd951..2c27fb15 100644 --- a/qt6/gen_qaction.h +++ b/qt6/gen_qaction.h @@ -139,7 +139,7 @@ void QAction_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAction_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAction_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAction_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAction_Delete(QAction* self, bool isSubclass); +void QAction_Delete(QAction* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qactiongroup.cpp b/qt6/gen_qactiongroup.cpp index 25abfbe0..838db0a4 100644 --- a/qt6/gen_qactiongroup.cpp +++ b/qt6/gen_qactiongroup.cpp @@ -31,12 +31,12 @@ void miqt_exec_callback_QActionGroup_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQActionGroup : public virtual QActionGroup { +class MiqtVirtualQActionGroup final : public QActionGroup { public: MiqtVirtualQActionGroup(QObject* parent): QActionGroup(parent) {}; - virtual ~MiqtVirtualQActionGroup() = default; + virtual ~MiqtVirtualQActionGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -410,11 +410,7 @@ void QActionGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQActionGroup*)(self) )->virtualbase_DisconnectNotify(signal); } -void QActionGroup_Delete(QActionGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QActionGroup_Delete(QActionGroup* self) { + delete self; } diff --git a/qt6/gen_qactiongroup.go b/qt6/gen_qactiongroup.go index d73dbcb8..77dbc6b6 100644 --- a/qt6/gen_qactiongroup.go +++ b/qt6/gen_qactiongroup.go @@ -412,7 +412,7 @@ func miqt_exec_callback_QActionGroup_DisconnectNotify(self *C.QActionGroup, cb C // Delete this object from C++ memory. func (this *QActionGroup) Delete() { - C.QActionGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QActionGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qactiongroup.h b/qt6/gen_qactiongroup.h index 3f2f6534..1c0ee9a8 100644 --- a/qt6/gen_qactiongroup.h +++ b/qt6/gen_qactiongroup.h @@ -76,7 +76,7 @@ void QActionGroup_override_virtual_ConnectNotify(void* self, intptr_t slot); void QActionGroup_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QActionGroup_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QActionGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QActionGroup_Delete(QActionGroup* self, bool isSubclass); +void QActionGroup_Delete(QActionGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qanimationgroup.cpp b/qt6/gen_qanimationgroup.cpp index 68462518..e740f41a 100644 --- a/qt6/gen_qanimationgroup.cpp +++ b/qt6/gen_qanimationgroup.cpp @@ -22,13 +22,13 @@ void miqt_exec_callback_QAnimationGroup_UpdateDirection(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQAnimationGroup : public virtual QAnimationGroup { +class MiqtVirtualQAnimationGroup final : public QAnimationGroup { public: MiqtVirtualQAnimationGroup(): QAnimationGroup() {}; MiqtVirtualQAnimationGroup(QObject* parent): QAnimationGroup(parent) {}; - virtual ~MiqtVirtualQAnimationGroup() = default; + virtual ~MiqtVirtualQAnimationGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -255,11 +255,7 @@ void QAnimationGroup_virtualbase_UpdateDirection(void* self, int direction) { ( (MiqtVirtualQAnimationGroup*)(self) )->virtualbase_UpdateDirection(direction); } -void QAnimationGroup_Delete(QAnimationGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAnimationGroup_Delete(QAnimationGroup* self) { + delete self; } diff --git a/qt6/gen_qanimationgroup.go b/qt6/gen_qanimationgroup.go index 712f4eb6..a362f41b 100644 --- a/qt6/gen_qanimationgroup.go +++ b/qt6/gen_qanimationgroup.go @@ -263,7 +263,7 @@ func miqt_exec_callback_QAnimationGroup_UpdateDirection(self *C.QAnimationGroup, // Delete this object from C++ memory. func (this *QAnimationGroup) Delete() { - C.QAnimationGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QAnimationGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qanimationgroup.h b/qt6/gen_qanimationgroup.h index 3ec6c43b..106fa28b 100644 --- a/qt6/gen_qanimationgroup.h +++ b/qt6/gen_qanimationgroup.h @@ -55,7 +55,7 @@ void QAnimationGroup_override_virtual_UpdateState(void* self, intptr_t slot); void QAnimationGroup_virtualbase_UpdateState(void* self, int newState, int oldState); void QAnimationGroup_override_virtual_UpdateDirection(void* self, intptr_t slot); void QAnimationGroup_virtualbase_UpdateDirection(void* self, int direction); -void QAnimationGroup_Delete(QAnimationGroup* self, bool isSubclass); +void QAnimationGroup_Delete(QAnimationGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qanystringview.cpp b/qt6/gen_qanystringview.cpp index 8b19bed8..d71edb2a 100644 --- a/qt6/gen_qanystringview.cpp +++ b/qt6/gen_qanystringview.cpp @@ -99,11 +99,7 @@ int QAnyStringView_Compare3(QAnyStringView* lhs, QAnyStringView* rhs, int cs) { return QAnyStringView::compare(*lhs, *rhs, static_cast(cs)); } -void QAnyStringView_Delete(QAnyStringView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAnyStringView_Delete(QAnyStringView* self) { + delete self; } diff --git a/qt6/gen_qanystringview.go b/qt6/gen_qanystringview.go index 9501c873..2371486e 100644 --- a/qt6/gen_qanystringview.go +++ b/qt6/gen_qanystringview.go @@ -154,7 +154,7 @@ func QAnyStringView_Compare3(lhs QAnyStringView, rhs QAnyStringView, cs CaseSens // Delete this object from C++ memory. func (this *QAnyStringView) Delete() { - C.QAnyStringView_Delete(this.h, C.bool(this.isSubclass)) + C.QAnyStringView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qanystringview.h b/qt6/gen_qanystringview.h index 25b18629..3f8e3e3f 100644 --- a/qt6/gen_qanystringview.h +++ b/qt6/gen_qanystringview.h @@ -40,7 +40,7 @@ bool QAnyStringView_IsNull(const QAnyStringView* self); bool QAnyStringView_IsEmpty(const QAnyStringView* self); ptrdiff_t QAnyStringView_Length(const QAnyStringView* self); int QAnyStringView_Compare3(QAnyStringView* lhs, QAnyStringView* rhs, int cs); -void QAnyStringView_Delete(QAnyStringView* self, bool isSubclass); +void QAnyStringView_Delete(QAnyStringView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qapplication.cpp b/qt6/gen_qapplication.cpp index 1a1f9ca0..7464b02c 100644 --- a/qt6/gen_qapplication.cpp +++ b/qt6/gen_qapplication.cpp @@ -28,13 +28,13 @@ bool miqt_exec_callback_QApplication_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQApplication : public virtual QApplication { +class MiqtVirtualQApplication final : public QApplication { public: MiqtVirtualQApplication(int& argc, char** argv): QApplication(argc, argv) {}; MiqtVirtualQApplication(int& argc, char** argv, int param3): QApplication(argc, argv, param3) {}; - virtual ~MiqtVirtualQApplication() = default; + virtual ~MiqtVirtualQApplication() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Notify = 0; @@ -393,11 +393,7 @@ bool QApplication_virtualbase_Event(void* self, QEvent* param1) { return ( (MiqtVirtualQApplication*)(self) )->virtualbase_Event(param1); } -void QApplication_Delete(QApplication* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QApplication_Delete(QApplication* self) { + delete self; } diff --git a/qt6/gen_qapplication.go b/qt6/gen_qapplication.go index 62b0b1c1..f50d3b0a 100644 --- a/qt6/gen_qapplication.go +++ b/qt6/gen_qapplication.go @@ -451,7 +451,7 @@ func miqt_exec_callback_QApplication_Event(self *C.QApplication, cb C.intptr_t, // Delete this object from C++ memory. func (this *QApplication) Delete() { - C.QApplication_Delete(this.h, C.bool(this.isSubclass)) + C.QApplication_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qapplication.h b/qt6/gen_qapplication.h index bec68a7b..ae7c043a 100644 --- a/qt6/gen_qapplication.h +++ b/qt6/gen_qapplication.h @@ -107,7 +107,7 @@ void QApplication_override_virtual_Notify(void* self, intptr_t slot); bool QApplication_virtualbase_Notify(void* self, QObject* param1, QEvent* param2); void QApplication_override_virtual_Event(void* self, intptr_t slot); bool QApplication_virtualbase_Event(void* self, QEvent* param1); -void QApplication_Delete(QApplication* self, bool isSubclass); +void QApplication_Delete(QApplication* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qarraydata.cpp b/qt6/gen_qarraydata.cpp index 826cf3c9..c5585ffa 100644 --- a/qt6/gen_qarraydata.cpp +++ b/qt6/gen_qarraydata.cpp @@ -66,11 +66,7 @@ void QArrayData_Deallocate(QArrayData* data, ptrdiff_t objectSize, ptrdiff_t ali QArrayData::deallocate(data, (qsizetype)(objectSize), (qsizetype)(alignment)); } -void QArrayData_Delete(QArrayData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QArrayData_Delete(QArrayData* self) { + delete self; } diff --git a/qt6/gen_qarraydata.go b/qt6/gen_qarraydata.go index c603cce5..67c3b23c 100644 --- a/qt6/gen_qarraydata.go +++ b/qt6/gen_qarraydata.go @@ -127,7 +127,7 @@ func QArrayData_Deallocate(data *QArrayData, objectSize int64, alignment int64) // Delete this object from C++ memory. func (this *QArrayData) Delete() { - C.QArrayData_Delete(this.h, C.bool(this.isSubclass)) + C.QArrayData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qarraydata.h b/qt6/gen_qarraydata.h index 6e0a4788..7d5c3cb1 100644 --- a/qt6/gen_qarraydata.h +++ b/qt6/gen_qarraydata.h @@ -29,7 +29,7 @@ bool QArrayData_NeedsDetach(const QArrayData* self); ptrdiff_t QArrayData_DetachCapacity(const QArrayData* self, ptrdiff_t newSize); struct miqt_map /* tuple of QArrayData* and void* */ QArrayData_ReallocateUnaligned(QArrayData* data, void* dataPointer, ptrdiff_t objectSize, ptrdiff_t newCapacity, int option); void QArrayData_Deallocate(QArrayData* data, ptrdiff_t objectSize, ptrdiff_t alignment); -void QArrayData_Delete(QArrayData* self, bool isSubclass); +void QArrayData_Delete(QArrayData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qbackingstore.cpp b/qt6/gen_qbackingstore.cpp index cdf92ecc..275d1245 100644 --- a/qt6/gen_qbackingstore.cpp +++ b/qt6/gen_qbackingstore.cpp @@ -71,11 +71,7 @@ void QBackingStore_Flush3(QBackingStore* self, QRegion* region, QWindow* window, self->flush(*region, window, *offset); } -void QBackingStore_Delete(QBackingStore* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBackingStore_Delete(QBackingStore* self) { + delete self; } diff --git a/qt6/gen_qbackingstore.go b/qt6/gen_qbackingstore.go index 5ed0198a..47c21671 100644 --- a/qt6/gen_qbackingstore.go +++ b/qt6/gen_qbackingstore.go @@ -112,7 +112,7 @@ func (this *QBackingStore) Flush3(region *QRegion, window *QWindow, offset *QPoi // Delete this object from C++ memory. func (this *QBackingStore) Delete() { - C.QBackingStore_Delete(this.h, C.bool(this.isSubclass)) + C.QBackingStore_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qbackingstore.h b/qt6/gen_qbackingstore.h index d5c97910..0b649e07 100644 --- a/qt6/gen_qbackingstore.h +++ b/qt6/gen_qbackingstore.h @@ -44,7 +44,7 @@ QRegion* QBackingStore_StaticContents(const QBackingStore* self); bool QBackingStore_HasStaticContents(const QBackingStore* self); void QBackingStore_Flush2(QBackingStore* self, QRegion* region, QWindow* window); void QBackingStore_Flush3(QBackingStore* self, QRegion* region, QWindow* window, QPoint* offset); -void QBackingStore_Delete(QBackingStore* self, bool isSubclass); +void QBackingStore_Delete(QBackingStore* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qbasictimer.cpp b/qt6/gen_qbasictimer.cpp index 92543011..ff4c946e 100644 --- a/qt6/gen_qbasictimer.cpp +++ b/qt6/gen_qbasictimer.cpp @@ -39,11 +39,7 @@ void QBasicTimer_Stop(QBasicTimer* self) { self->stop(); } -void QBasicTimer_Delete(QBasicTimer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBasicTimer_Delete(QBasicTimer* self) { + delete self; } diff --git a/qt6/gen_qbasictimer.go b/qt6/gen_qbasictimer.go index 43f87d44..97ff2ee6 100644 --- a/qt6/gen_qbasictimer.go +++ b/qt6/gen_qbasictimer.go @@ -80,7 +80,7 @@ func (this *QBasicTimer) Stop() { // Delete this object from C++ memory. func (this *QBasicTimer) Delete() { - C.QBasicTimer_Delete(this.h, C.bool(this.isSubclass)) + C.QBasicTimer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qbasictimer.h b/qt6/gen_qbasictimer.h index 79082fbd..5c49a336 100644 --- a/qt6/gen_qbasictimer.h +++ b/qt6/gen_qbasictimer.h @@ -29,7 +29,7 @@ int QBasicTimer_TimerId(const QBasicTimer* self); void QBasicTimer_Start(QBasicTimer* self, int msec, QObject* obj); void QBasicTimer_Start2(QBasicTimer* self, int msec, int timerType, QObject* obj); void QBasicTimer_Stop(QBasicTimer* self); -void QBasicTimer_Delete(QBasicTimer* self, bool isSubclass); +void QBasicTimer_Delete(QBasicTimer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qbindingstorage.cpp b/qt6/gen_qbindingstorage.cpp index b68a9849..563a20cf 100644 --- a/qt6/gen_qbindingstorage.cpp +++ b/qt6/gen_qbindingstorage.cpp @@ -12,12 +12,8 @@ extern "C" { } /* extern C */ #endif -void QBindingStatus_Delete(QBindingStatus* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBindingStatus_Delete(QBindingStatus* self) { + delete self; } QBindingStorage* QBindingStorage_new() { @@ -36,11 +32,7 @@ void QBindingStorage_RegisterDependency(const QBindingStorage* self, QUntypedPro self->registerDependency(data); } -void QBindingStorage_Delete(QBindingStorage* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBindingStorage_Delete(QBindingStorage* self) { + delete self; } diff --git a/qt6/gen_qbindingstorage.go b/qt6/gen_qbindingstorage.go index 5b4e3f2a..ddeb0b0a 100644 --- a/qt6/gen_qbindingstorage.go +++ b/qt6/gen_qbindingstorage.go @@ -48,7 +48,7 @@ func UnsafeNewQBindingStatus(h unsafe.Pointer) *QBindingStatus { // Delete this object from C++ memory. func (this *QBindingStatus) Delete() { - C.QBindingStatus_Delete(this.h, C.bool(this.isSubclass)) + C.QBindingStatus_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -115,7 +115,7 @@ func (this *QBindingStorage) RegisterDependency(data *QUntypedPropertyData) { // Delete this object from C++ memory. func (this *QBindingStorage) Delete() { - C.QBindingStorage_Delete(this.h, C.bool(this.isSubclass)) + C.QBindingStorage_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qbindingstorage.h b/qt6/gen_qbindingstorage.h index aa2d068a..c1aa4903 100644 --- a/qt6/gen_qbindingstorage.h +++ b/qt6/gen_qbindingstorage.h @@ -24,13 +24,13 @@ typedef struct QBindingStorage QBindingStorage; typedef struct QUntypedPropertyData QUntypedPropertyData; #endif -void QBindingStatus_Delete(QBindingStatus* self, bool isSubclass); +void QBindingStatus_Delete(QBindingStatus* self); QBindingStorage* QBindingStorage_new(); bool QBindingStorage_IsEmpty(QBindingStorage* self); bool QBindingStorage_IsValid(const QBindingStorage* self); void QBindingStorage_RegisterDependency(const QBindingStorage* self, QUntypedPropertyData* data); -void QBindingStorage_Delete(QBindingStorage* self, bool isSubclass); +void QBindingStorage_Delete(QBindingStorage* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qbitarray.cpp b/qt6/gen_qbitarray.cpp index a90b4764..a1f44b2a 100644 --- a/qt6/gen_qbitarray.cpp +++ b/qt6/gen_qbitarray.cpp @@ -160,12 +160,8 @@ unsigned int QBitArray_ToUInt322(const QBitArray* self, int endianness, bool* ok return static_cast(_ret); } -void QBitArray_Delete(QBitArray* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBitArray_Delete(QBitArray* self) { + delete self; } QBitRef* QBitRef_new(QBitRef* param1) { @@ -188,11 +184,7 @@ void QBitRef_OperatorAssignWithVal(QBitRef* self, bool val) { self->operator=(val); } -void QBitRef_Delete(QBitRef* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBitRef_Delete(QBitRef* self) { + delete self; } diff --git a/qt6/gen_qbitarray.go b/qt6/gen_qbitarray.go index f51b6c95..29aadfae 100644 --- a/qt6/gen_qbitarray.go +++ b/qt6/gen_qbitarray.go @@ -215,7 +215,7 @@ func (this *QBitArray) ToUInt322(endianness QSysInfo__Endian, ok *bool) uint { // Delete this object from C++ memory. func (this *QBitArray) Delete() { - C.QBitArray_Delete(this.h, C.bool(this.isSubclass)) + C.QBitArray_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -286,7 +286,7 @@ func (this *QBitRef) OperatorAssignWithVal(val bool) { // Delete this object from C++ memory. func (this *QBitRef) Delete() { - C.QBitRef_Delete(this.h, C.bool(this.isSubclass)) + C.QBitRef_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qbitarray.h b/qt6/gen_qbitarray.h index 8fc28e2f..9f9d8779 100644 --- a/qt6/gen_qbitarray.h +++ b/qt6/gen_qbitarray.h @@ -58,14 +58,14 @@ QBitArray* QBitArray_FromBits(const char* data, ptrdiff_t lenVal); unsigned int QBitArray_ToUInt32(const QBitArray* self, int endianness); bool QBitArray_Fill22(QBitArray* self, bool val, ptrdiff_t size); unsigned int QBitArray_ToUInt322(const QBitArray* self, int endianness, bool* ok); -void QBitArray_Delete(QBitArray* self, bool isSubclass); +void QBitArray_Delete(QBitArray* self); QBitRef* QBitRef_new(QBitRef* param1); bool QBitRef_ToBool(const QBitRef* self); bool QBitRef_OperatorNot(const QBitRef* self); void QBitRef_OperatorAssign(QBitRef* self, QBitRef* val); void QBitRef_OperatorAssignWithVal(QBitRef* self, bool val); -void QBitRef_Delete(QBitRef* self, bool isSubclass); +void QBitRef_Delete(QBitRef* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qbitmap.cpp b/qt6/gen_qbitmap.cpp index 83b6df27..cacbdc4e 100644 --- a/qt6/gen_qbitmap.cpp +++ b/qt6/gen_qbitmap.cpp @@ -23,7 +23,7 @@ int miqt_exec_callback_QBitmap_Metric(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQBitmap : public virtual QBitmap { +class MiqtVirtualQBitmap final : public QBitmap { public: MiqtVirtualQBitmap(): QBitmap() {}; @@ -34,7 +34,7 @@ public: MiqtVirtualQBitmap(const QBitmap& param1): QBitmap(param1) {}; MiqtVirtualQBitmap(const QString& fileName, const char* format): QBitmap(fileName, format) {}; - virtual ~MiqtVirtualQBitmap() = default; + virtual ~MiqtVirtualQBitmap() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -208,11 +208,7 @@ int QBitmap_virtualbase_Metric(const void* self, int param1) { return ( (const MiqtVirtualQBitmap*)(self) )->virtualbase_Metric(param1); } -void QBitmap_Delete(QBitmap* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBitmap_Delete(QBitmap* self) { + delete self; } diff --git a/qt6/gen_qbitmap.go b/qt6/gen_qbitmap.go index 8a768c82..58b90d7c 100644 --- a/qt6/gen_qbitmap.go +++ b/qt6/gen_qbitmap.go @@ -255,7 +255,7 @@ func miqt_exec_callback_QBitmap_Metric(self *C.QBitmap, cb C.intptr_t, param1 C. // Delete this object from C++ memory. func (this *QBitmap) Delete() { - C.QBitmap_Delete(this.h, C.bool(this.isSubclass)) + C.QBitmap_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qbitmap.h b/qt6/gen_qbitmap.h index a44ec7ec..683e01b6 100644 --- a/qt6/gen_qbitmap.h +++ b/qt6/gen_qbitmap.h @@ -59,7 +59,7 @@ void QBitmap_override_virtual_PaintEngine(void* self, intptr_t slot); QPaintEngine* QBitmap_virtualbase_PaintEngine(const void* self); void QBitmap_override_virtual_Metric(void* self, intptr_t slot); int QBitmap_virtualbase_Metric(const void* self, int param1); -void QBitmap_Delete(QBitmap* self, bool isSubclass); +void QBitmap_Delete(QBitmap* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qboxlayout.cpp b/qt6/gen_qboxlayout.cpp index db043103..035fb98d 100644 --- a/qt6/gen_qboxlayout.cpp +++ b/qt6/gen_qboxlayout.cpp @@ -76,13 +76,13 @@ void miqt_exec_callback_QVBoxLayout_SetGeometry(void*, intptr_t, QRect*); } /* extern C */ #endif -class MiqtVirtualQBoxLayout : public virtual QBoxLayout { +class MiqtVirtualQBoxLayout final : public QBoxLayout { public: MiqtVirtualQBoxLayout(QBoxLayout::Direction param1): QBoxLayout(param1) {}; MiqtVirtualQBoxLayout(QBoxLayout::Direction param1, QWidget* parent): QBoxLayout(param1, parent) {}; - virtual ~MiqtVirtualQBoxLayout() = default; + virtual ~MiqtVirtualQBoxLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AddItem = 0; @@ -987,21 +987,17 @@ void QBoxLayout_virtualbase_ChildEvent(void* self, QChildEvent* e) { ( (MiqtVirtualQBoxLayout*)(self) )->virtualbase_ChildEvent(e); } -void QBoxLayout_Delete(QBoxLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBoxLayout_Delete(QBoxLayout* self) { + delete self; } -class MiqtVirtualQHBoxLayout : public virtual QHBoxLayout { +class MiqtVirtualQHBoxLayout final : public QHBoxLayout { public: MiqtVirtualQHBoxLayout(QWidget* parent): QHBoxLayout(parent) {}; MiqtVirtualQHBoxLayout(): QHBoxLayout() {}; - virtual ~MiqtVirtualQHBoxLayout() = default; + virtual ~MiqtVirtualQHBoxLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AddItem = 0; @@ -1522,21 +1518,17 @@ void QHBoxLayout_virtualbase_SetGeometry(void* self, QRect* geometry) { ( (MiqtVirtualQHBoxLayout*)(self) )->virtualbase_SetGeometry(geometry); } -void QHBoxLayout_Delete(QHBoxLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHBoxLayout_Delete(QHBoxLayout* self) { + delete self; } -class MiqtVirtualQVBoxLayout : public virtual QVBoxLayout { +class MiqtVirtualQVBoxLayout final : public QVBoxLayout { public: MiqtVirtualQVBoxLayout(QWidget* parent): QVBoxLayout(parent) {}; MiqtVirtualQVBoxLayout(): QVBoxLayout() {}; - virtual ~MiqtVirtualQVBoxLayout() = default; + virtual ~MiqtVirtualQVBoxLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__AddItem = 0; @@ -2057,11 +2049,7 @@ void QVBoxLayout_virtualbase_SetGeometry(void* self, QRect* geometry) { ( (MiqtVirtualQVBoxLayout*)(self) )->virtualbase_SetGeometry(geometry); } -void QVBoxLayout_Delete(QVBoxLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVBoxLayout_Delete(QVBoxLayout* self) { + delete self; } diff --git a/qt6/gen_qboxlayout.go b/qt6/gen_qboxlayout.go index 3365675b..c9c90a53 100644 --- a/qt6/gen_qboxlayout.go +++ b/qt6/gen_qboxlayout.go @@ -873,7 +873,7 @@ func miqt_exec_callback_QBoxLayout_ChildEvent(self *C.QBoxLayout, cb C.intptr_t, // Delete this object from C++ memory. func (this *QBoxLayout) Delete() { - C.QBoxLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QBoxLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1375,7 +1375,7 @@ func miqt_exec_callback_QHBoxLayout_SetGeometry(self *C.QHBoxLayout, cb C.intptr // Delete this object from C++ memory. func (this *QHBoxLayout) Delete() { - C.QHBoxLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QHBoxLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1877,7 +1877,7 @@ func miqt_exec_callback_QVBoxLayout_SetGeometry(self *C.QVBoxLayout, cb C.intptr // Delete this object from C++ memory. func (this *QVBoxLayout) Delete() { - C.QVBoxLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QVBoxLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qboxlayout.h b/qt6/gen_qboxlayout.h index 9f2f60af..890e42db 100644 --- a/qt6/gen_qboxlayout.h +++ b/qt6/gen_qboxlayout.h @@ -135,7 +135,7 @@ void QBoxLayout_override_virtual_Layout(void* self, intptr_t slot); QLayout* QBoxLayout_virtualbase_Layout(void* self); void QBoxLayout_override_virtual_ChildEvent(void* self, intptr_t slot); void QBoxLayout_virtualbase_ChildEvent(void* self, QChildEvent* e); -void QBoxLayout_Delete(QBoxLayout* self, bool isSubclass); +void QBoxLayout_Delete(QBoxLayout* self); QHBoxLayout* QHBoxLayout_new(QWidget* parent); QHBoxLayout* QHBoxLayout_new2(); @@ -175,7 +175,7 @@ void QHBoxLayout_override_virtual_Count(void* self, intptr_t slot); int QHBoxLayout_virtualbase_Count(const void* self); void QHBoxLayout_override_virtual_SetGeometry(void* self, intptr_t slot); void QHBoxLayout_virtualbase_SetGeometry(void* self, QRect* geometry); -void QHBoxLayout_Delete(QHBoxLayout* self, bool isSubclass); +void QHBoxLayout_Delete(QHBoxLayout* self); QVBoxLayout* QVBoxLayout_new(QWidget* parent); QVBoxLayout* QVBoxLayout_new2(); @@ -215,7 +215,7 @@ void QVBoxLayout_override_virtual_Count(void* self, intptr_t slot); int QVBoxLayout_virtualbase_Count(const void* self); void QVBoxLayout_override_virtual_SetGeometry(void* self, intptr_t slot); void QVBoxLayout_virtualbase_SetGeometry(void* self, QRect* geometry); -void QVBoxLayout_Delete(QVBoxLayout* self, bool isSubclass); +void QVBoxLayout_Delete(QVBoxLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qbrush.cpp b/qt6/gen_qbrush.cpp index 7a5c3d59..29ef8a45 100644 --- a/qt6/gen_qbrush.cpp +++ b/qt6/gen_qbrush.cpp @@ -151,12 +151,8 @@ bool QBrush_IsDetached(const QBrush* self) { return self->isDetached(); } -void QBrush_Delete(QBrush* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBrush_Delete(QBrush* self) { + delete self; } QBrushData* QBrushData_new(QBrushData* param1) { @@ -167,12 +163,8 @@ void QBrushData_OperatorAssign(QBrushData* self, QBrushData* param1) { self->operator=(*param1); } -void QBrushData_Delete(QBrushData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBrushData_Delete(QBrushData* self) { + delete self; } QGradient* QGradient_new() { @@ -269,12 +261,8 @@ bool QGradient_OperatorNotEqual(const QGradient* self, QGradient* other) { return (*self != *other); } -void QGradient_Delete(QGradient* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGradient_Delete(QGradient* self) { + delete self; } QLinearGradient* QLinearGradient_new() { @@ -321,12 +309,8 @@ void QLinearGradient_SetFinalStop2(QLinearGradient* self, double x, double y) { self->setFinalStop(static_cast(x), static_cast(y)); } -void QLinearGradient_Delete(QLinearGradient* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLinearGradient_Delete(QLinearGradient* self) { + delete self; } QRadialGradient* QRadialGradient_new() { @@ -416,12 +400,8 @@ void QRadialGradient_SetFocalRadius(QRadialGradient* self, double radius) { self->setFocalRadius(static_cast(radius)); } -void QRadialGradient_Delete(QRadialGradient* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRadialGradient_Delete(QRadialGradient* self) { + delete self; } QConicalGradient* QConicalGradient_new() { @@ -465,23 +445,15 @@ void QConicalGradient_SetAngle(QConicalGradient* self, double angle) { self->setAngle(static_cast(angle)); } -void QConicalGradient_Delete(QConicalGradient* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QConicalGradient_Delete(QConicalGradient* self) { + delete self; } QGradient__QGradientData* QGradient__QGradientData_new(QGradient__QGradientData* param1) { return new QGradient::QGradientData(*param1); } -void QGradient__QGradientData_Delete(QGradient__QGradientData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGradient__QGradientData_Delete(QGradient__QGradientData* self) { + delete self; } diff --git a/qt6/gen_qbrush.go b/qt6/gen_qbrush.go index b6ba75bc..2f4a5b45 100644 --- a/qt6/gen_qbrush.go +++ b/qt6/gen_qbrush.go @@ -435,7 +435,7 @@ func (this *QBrush) IsDetached() bool { // Delete this object from C++ memory. func (this *QBrush) Delete() { - C.QBrush_Delete(this.h, C.bool(this.isSubclass)) + C.QBrush_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -494,7 +494,7 @@ func (this *QBrushData) OperatorAssign(param1 *QBrushData) { // Delete this object from C++ memory. func (this *QBrushData) Delete() { - C.QBrushData_Delete(this.h, C.bool(this.isSubclass)) + C.QBrushData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -657,7 +657,7 @@ func (this *QGradient) OperatorNotEqual(other *QGradient) bool { // Delete this object from C++ memory. func (this *QGradient) Delete() { - C.QGradient_Delete(this.h, C.bool(this.isSubclass)) + C.QGradient_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -768,7 +768,7 @@ func (this *QLinearGradient) SetFinalStop2(x float64, y float64) { // Delete this object from C++ memory. func (this *QLinearGradient) Delete() { - C.QLinearGradient_Delete(this.h, C.bool(this.isSubclass)) + C.QLinearGradient_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -935,7 +935,7 @@ func (this *QRadialGradient) SetFocalRadius(radius float64) { // Delete this object from C++ memory. func (this *QRadialGradient) Delete() { - C.QRadialGradient_Delete(this.h, C.bool(this.isSubclass)) + C.QRadialGradient_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1040,7 +1040,7 @@ func (this *QConicalGradient) SetAngle(angle float64) { // Delete this object from C++ memory. func (this *QConicalGradient) Delete() { - C.QConicalGradient_Delete(this.h, C.bool(this.isSubclass)) + C.QConicalGradient_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1095,7 +1095,7 @@ func NewQGradient__QGradientData(param1 *QGradient__QGradientData) *QGradient__Q // Delete this object from C++ memory. func (this *QGradient__QGradientData) Delete() { - C.QGradient__QGradientData_Delete(this.h, C.bool(this.isSubclass)) + C.QGradient__QGradientData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qbrush.h b/qt6/gen_qbrush.h index d69156fb..f6b8d416 100644 --- a/qt6/gen_qbrush.h +++ b/qt6/gen_qbrush.h @@ -79,11 +79,11 @@ bool QBrush_IsOpaque(const QBrush* self); bool QBrush_OperatorEqual(const QBrush* self, QBrush* b); bool QBrush_OperatorNotEqual(const QBrush* self, QBrush* b); bool QBrush_IsDetached(const QBrush* self); -void QBrush_Delete(QBrush* self, bool isSubclass); +void QBrush_Delete(QBrush* self); QBrushData* QBrushData_new(QBrushData* param1); void QBrushData_OperatorAssign(QBrushData* self, QBrushData* param1); -void QBrushData_Delete(QBrushData* self, bool isSubclass); +void QBrushData_Delete(QBrushData* self); QGradient* QGradient_new(); QGradient* QGradient_new2(int param1); @@ -100,7 +100,7 @@ int QGradient_InterpolationMode(const QGradient* self); void QGradient_SetInterpolationMode(QGradient* self, int mode); bool QGradient_OperatorEqual(const QGradient* self, QGradient* gradient); bool QGradient_OperatorNotEqual(const QGradient* self, QGradient* other); -void QGradient_Delete(QGradient* self, bool isSubclass); +void QGradient_Delete(QGradient* self); QLinearGradient* QLinearGradient_new(); QLinearGradient* QLinearGradient_new2(QPointF* start, QPointF* finalStop); @@ -113,7 +113,7 @@ void QLinearGradient_SetStart2(QLinearGradient* self, double x, double y); QPointF* QLinearGradient_FinalStop(const QLinearGradient* self); void QLinearGradient_SetFinalStop(QLinearGradient* self, QPointF* stop); void QLinearGradient_SetFinalStop2(QLinearGradient* self, double x, double y); -void QLinearGradient_Delete(QLinearGradient* self, bool isSubclass); +void QLinearGradient_Delete(QLinearGradient* self); QRadialGradient* QRadialGradient_new(); QRadialGradient* QRadialGradient_new2(QPointF* center, double radius, QPointF* focalPoint); @@ -136,7 +136,7 @@ double QRadialGradient_CenterRadius(const QRadialGradient* self); void QRadialGradient_SetCenterRadius(QRadialGradient* self, double radius); double QRadialGradient_FocalRadius(const QRadialGradient* self); void QRadialGradient_SetFocalRadius(QRadialGradient* self, double radius); -void QRadialGradient_Delete(QRadialGradient* self, bool isSubclass); +void QRadialGradient_Delete(QRadialGradient* self); QConicalGradient* QConicalGradient_new(); QConicalGradient* QConicalGradient_new2(QPointF* center, double startAngle); @@ -148,10 +148,10 @@ void QConicalGradient_SetCenter(QConicalGradient* self, QPointF* center); void QConicalGradient_SetCenter2(QConicalGradient* self, double x, double y); double QConicalGradient_Angle(const QConicalGradient* self); void QConicalGradient_SetAngle(QConicalGradient* self, double angle); -void QConicalGradient_Delete(QConicalGradient* self, bool isSubclass); +void QConicalGradient_Delete(QConicalGradient* self); QGradient__QGradientData* QGradient__QGradientData_new(QGradient__QGradientData* param1); -void QGradient__QGradientData_Delete(QGradient__QGradientData* self, bool isSubclass); +void QGradient__QGradientData_Delete(QGradient__QGradientData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qbuffer.cpp b/qt6/gen_qbuffer.cpp index 863eada0..d273c2f4 100644 --- a/qt6/gen_qbuffer.cpp +++ b/qt6/gen_qbuffer.cpp @@ -38,13 +38,13 @@ long long miqt_exec_callback_QBuffer_SkipData(void*, intptr_t, long long); } /* extern C */ #endif -class MiqtVirtualQBuffer : public virtual QBuffer { +class MiqtVirtualQBuffer final : public QBuffer { public: MiqtVirtualQBuffer(): QBuffer() {}; MiqtVirtualQBuffer(QObject* parent): QBuffer(parent) {}; - virtual ~MiqtVirtualQBuffer() = default; + virtual ~MiqtVirtualQBuffer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Open = 0; @@ -771,11 +771,7 @@ long long QBuffer_virtualbase_SkipData(void* self, long long maxSize) { return ( (MiqtVirtualQBuffer*)(self) )->virtualbase_SkipData(maxSize); } -void QBuffer_Delete(QBuffer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBuffer_Delete(QBuffer* self) { + delete self; } diff --git a/qt6/gen_qbuffer.go b/qt6/gen_qbuffer.go index 9952364a..6b1023e2 100644 --- a/qt6/gen_qbuffer.go +++ b/qt6/gen_qbuffer.go @@ -686,7 +686,7 @@ func miqt_exec_callback_QBuffer_SkipData(self *C.QBuffer, cb C.intptr_t, maxSize // Delete this object from C++ memory. func (this *QBuffer) Delete() { - C.QBuffer_Delete(this.h, C.bool(this.isSubclass)) + C.QBuffer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qbuffer.h b/qt6/gen_qbuffer.h index c7e11044..ced5fd03 100644 --- a/qt6/gen_qbuffer.h +++ b/qt6/gen_qbuffer.h @@ -92,7 +92,7 @@ void QBuffer_override_virtual_ReadLineData(void* self, intptr_t slot); long long QBuffer_virtualbase_ReadLineData(void* self, char* data, long long maxlen); void QBuffer_override_virtual_SkipData(void* self, intptr_t slot); long long QBuffer_virtualbase_SkipData(void* self, long long maxSize); -void QBuffer_Delete(QBuffer* self, bool isSubclass); +void QBuffer_Delete(QBuffer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qbuttongroup.cpp b/qt6/gen_qbuttongroup.cpp index fc8fb05f..ddd0c095 100644 --- a/qt6/gen_qbuttongroup.cpp +++ b/qt6/gen_qbuttongroup.cpp @@ -36,13 +36,13 @@ void miqt_exec_callback_QButtonGroup_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQButtonGroup : public virtual QButtonGroup { +class MiqtVirtualQButtonGroup final : public QButtonGroup { public: MiqtVirtualQButtonGroup(): QButtonGroup() {}; MiqtVirtualQButtonGroup(QObject* parent): QButtonGroup(parent) {}; - virtual ~MiqtVirtualQButtonGroup() = default; + virtual ~MiqtVirtualQButtonGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -469,11 +469,7 @@ void QButtonGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQButtonGroup*)(self) )->virtualbase_DisconnectNotify(signal); } -void QButtonGroup_Delete(QButtonGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QButtonGroup_Delete(QButtonGroup* self) { + delete self; } diff --git a/qt6/gen_qbuttongroup.go b/qt6/gen_qbuttongroup.go index dd43b08d..9b3ecb33 100644 --- a/qt6/gen_qbuttongroup.go +++ b/qt6/gen_qbuttongroup.go @@ -512,7 +512,7 @@ func miqt_exec_callback_QButtonGroup_DisconnectNotify(self *C.QButtonGroup, cb C // Delete this object from C++ memory. func (this *QButtonGroup) Delete() { - C.QButtonGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QButtonGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qbuttongroup.h b/qt6/gen_qbuttongroup.h index 04c28b63..a9274078 100644 --- a/qt6/gen_qbuttongroup.h +++ b/qt6/gen_qbuttongroup.h @@ -83,7 +83,7 @@ void QButtonGroup_override_virtual_ConnectNotify(void* self, intptr_t slot); void QButtonGroup_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QButtonGroup_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QButtonGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QButtonGroup_Delete(QButtonGroup* self, bool isSubclass); +void QButtonGroup_Delete(QButtonGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qbytearraymatcher.cpp b/qt6/gen_qbytearraymatcher.cpp index 338a6cf1..a0c6edc2 100644 --- a/qt6/gen_qbytearraymatcher.cpp +++ b/qt6/gen_qbytearraymatcher.cpp @@ -76,11 +76,7 @@ ptrdiff_t QByteArrayMatcher_IndexIn2(const QByteArrayMatcher* self, QByteArrayVi return static_cast(_ret); } -void QByteArrayMatcher_Delete(QByteArrayMatcher* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QByteArrayMatcher_Delete(QByteArrayMatcher* self) { + delete self; } diff --git a/qt6/gen_qbytearraymatcher.go b/qt6/gen_qbytearraymatcher.go index ec0b4c88..5103394c 100644 --- a/qt6/gen_qbytearraymatcher.go +++ b/qt6/gen_qbytearraymatcher.go @@ -141,7 +141,7 @@ func (this *QByteArrayMatcher) IndexIn2(data QByteArrayView, from int64) int64 { // Delete this object from C++ memory. func (this *QByteArrayMatcher) Delete() { - C.QByteArrayMatcher_Delete(this.h, C.bool(this.isSubclass)) + C.QByteArrayMatcher_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qbytearraymatcher.h b/qt6/gen_qbytearraymatcher.h index de6fd546..6b8956c3 100644 --- a/qt6/gen_qbytearraymatcher.h +++ b/qt6/gen_qbytearraymatcher.h @@ -37,7 +37,7 @@ ptrdiff_t QByteArrayMatcher_IndexInWithData(const QByteArrayMatcher* self, QByte struct miqt_string QByteArrayMatcher_Pattern(const QByteArrayMatcher* self); ptrdiff_t QByteArrayMatcher_IndexIn3(const QByteArrayMatcher* self, const char* str, ptrdiff_t lenVal, ptrdiff_t from); ptrdiff_t QByteArrayMatcher_IndexIn2(const QByteArrayMatcher* self, QByteArrayView* data, ptrdiff_t from); -void QByteArrayMatcher_Delete(QByteArrayMatcher* self, bool isSubclass); +void QByteArrayMatcher_Delete(QByteArrayMatcher* self); #ifdef __cplusplus diff --git a/qt6/gen_qbytearrayview.cpp b/qt6/gen_qbytearrayview.cpp index 5f46e5dc..aa1ab324 100644 --- a/qt6/gen_qbytearrayview.cpp +++ b/qt6/gen_qbytearrayview.cpp @@ -349,11 +349,7 @@ int QByteArrayView_Compare2(const QByteArrayView* self, QByteArrayView* a, int c return self->compare(*a, static_cast(cs)); } -void QByteArrayView_Delete(QByteArrayView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QByteArrayView_Delete(QByteArrayView* self) { + delete self; } diff --git a/qt6/gen_qbytearrayview.go b/qt6/gen_qbytearrayview.go index 4ba31225..9e346640 100644 --- a/qt6/gen_qbytearrayview.go +++ b/qt6/gen_qbytearrayview.go @@ -377,7 +377,7 @@ func (this *QByteArrayView) Compare2(a QByteArrayView, cs CaseSensitivity) int { // Delete this object from C++ memory. func (this *QByteArrayView) Delete() { - C.QByteArrayView_Delete(this.h, C.bool(this.isSubclass)) + C.QByteArrayView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qbytearrayview.h b/qt6/gen_qbytearrayview.h index 0cb48033..c3aa7ca8 100644 --- a/qt6/gen_qbytearrayview.h +++ b/qt6/gen_qbytearrayview.h @@ -95,7 +95,7 @@ ptrdiff_t QByteArrayView_IndexOf2(const QByteArrayView* self, QByteArrayView* a, ptrdiff_t QByteArrayView_IndexOf22(const QByteArrayView* self, char ch, ptrdiff_t from); ptrdiff_t QByteArrayView_LastIndexOf22(const QByteArrayView* self, char ch, ptrdiff_t from); int QByteArrayView_Compare2(const QByteArrayView* self, QByteArrayView* a, int cs); -void QByteArrayView_Delete(QByteArrayView* self, bool isSubclass); +void QByteArrayView_Delete(QByteArrayView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcalendar.cpp b/qt6/gen_qcalendar.cpp index ceb05393..d8af4963 100644 --- a/qt6/gen_qcalendar.cpp +++ b/qt6/gen_qcalendar.cpp @@ -256,12 +256,8 @@ struct miqt_string QCalendar_StandaloneWeekDayName3(const QCalendar* self, QLoca return _ms; } -void QCalendar_Delete(QCalendar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCalendar_Delete(QCalendar* self) { + delete self; } QCalendar__YearMonthDay* QCalendar__YearMonthDay_new() { @@ -284,12 +280,8 @@ bool QCalendar__YearMonthDay_IsValid(const QCalendar__YearMonthDay* self) { return self->isValid(); } -void QCalendar__YearMonthDay_Delete(QCalendar__YearMonthDay* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCalendar__YearMonthDay_Delete(QCalendar__YearMonthDay* self) { + delete self; } QCalendar__SystemId* QCalendar__SystemId_new() { @@ -304,11 +296,7 @@ bool QCalendar__SystemId_IsValid(const QCalendar__SystemId* self) { return self->isValid(); } -void QCalendar__SystemId_Delete(QCalendar__SystemId* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCalendar__SystemId_Delete(QCalendar__SystemId* self) { + delete self; } diff --git a/qt6/gen_qcalendar.go b/qt6/gen_qcalendar.go index f7697e98..6e02ff12 100644 --- a/qt6/gen_qcalendar.go +++ b/qt6/gen_qcalendar.go @@ -274,7 +274,7 @@ func (this *QCalendar) StandaloneWeekDayName3(locale *QLocale, day int, format Q // Delete this object from C++ memory. func (this *QCalendar) Delete() { - C.QCalendar_Delete(this.h, C.bool(this.isSubclass)) + C.QCalendar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -357,7 +357,7 @@ func (this *QCalendar__YearMonthDay) IsValid() bool { // Delete this object from C++ memory. func (this *QCalendar__YearMonthDay) Delete() { - C.QCalendar__YearMonthDay_Delete(this.h, C.bool(this.isSubclass)) + C.QCalendar__YearMonthDay_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -420,7 +420,7 @@ func (this *QCalendar__SystemId) IsValid() bool { // Delete this object from C++ memory. func (this *QCalendar__SystemId) Delete() { - C.QCalendar__SystemId_Delete(this.h, C.bool(this.isSubclass)) + C.QCalendar__SystemId_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcalendar.h b/qt6/gen_qcalendar.h index bf39a883..ed30ce10 100644 --- a/qt6/gen_qcalendar.h +++ b/qt6/gen_qcalendar.h @@ -74,19 +74,19 @@ struct miqt_string QCalendar_StandaloneMonthName3(const QCalendar* self, QLocale struct miqt_string QCalendar_StandaloneMonthName4(const QCalendar* self, QLocale* locale, int month, int year, int format); struct miqt_string QCalendar_WeekDayName3(const QCalendar* self, QLocale* locale, int day, int format); struct miqt_string QCalendar_StandaloneWeekDayName3(const QCalendar* self, QLocale* locale, int day, int format); -void QCalendar_Delete(QCalendar* self, bool isSubclass); +void QCalendar_Delete(QCalendar* self); QCalendar__YearMonthDay* QCalendar__YearMonthDay_new(); QCalendar__YearMonthDay* QCalendar__YearMonthDay_new2(int y); QCalendar__YearMonthDay* QCalendar__YearMonthDay_new3(int y, int m); QCalendar__YearMonthDay* QCalendar__YearMonthDay_new4(int y, int m, int d); bool QCalendar__YearMonthDay_IsValid(const QCalendar__YearMonthDay* self); -void QCalendar__YearMonthDay_Delete(QCalendar__YearMonthDay* self, bool isSubclass); +void QCalendar__YearMonthDay_Delete(QCalendar__YearMonthDay* self); QCalendar__SystemId* QCalendar__SystemId_new(); size_t QCalendar__SystemId_Index(const QCalendar__SystemId* self); bool QCalendar__SystemId_IsValid(const QCalendar__SystemId* self); -void QCalendar__SystemId_Delete(QCalendar__SystemId* self, bool isSubclass); +void QCalendar__SystemId_Delete(QCalendar__SystemId* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcalendarwidget.cpp b/qt6/gen_qcalendarwidget.cpp index 50de90e0..96330bf4 100644 --- a/qt6/gen_qcalendarwidget.cpp +++ b/qt6/gen_qcalendarwidget.cpp @@ -95,13 +95,13 @@ bool miqt_exec_callback_QCalendarWidget_FocusNextPrevChild(void*, intptr_t, bool } /* extern C */ #endif -class MiqtVirtualQCalendarWidget : public virtual QCalendarWidget { +class MiqtVirtualQCalendarWidget final : public QCalendarWidget { public: MiqtVirtualQCalendarWidget(QWidget* parent): QCalendarWidget(parent) {}; MiqtVirtualQCalendarWidget(): QCalendarWidget() {}; - virtual ~MiqtVirtualQCalendarWidget() = default; + virtual ~MiqtVirtualQCalendarWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1764,11 +1764,7 @@ bool QCalendarWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQCalendarWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QCalendarWidget_Delete(QCalendarWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCalendarWidget_Delete(QCalendarWidget* self) { + delete self; } diff --git a/qt6/gen_qcalendarwidget.go b/qt6/gen_qcalendarwidget.go index f0e51897..13d66073 100644 --- a/qt6/gen_qcalendarwidget.go +++ b/qt6/gen_qcalendarwidget.go @@ -1572,7 +1572,7 @@ func miqt_exec_callback_QCalendarWidget_FocusNextPrevChild(self *C.QCalendarWidg // Delete this object from C++ memory. func (this *QCalendarWidget) Delete() { - C.QCalendarWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QCalendarWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcalendarwidget.h b/qt6/gen_qcalendarwidget.h index 284add3b..1078c16a 100644 --- a/qt6/gen_qcalendarwidget.h +++ b/qt6/gen_qcalendarwidget.h @@ -237,7 +237,7 @@ void QCalendarWidget_override_virtual_InputMethodQuery(void* self, intptr_t slot QVariant* QCalendarWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QCalendarWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QCalendarWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QCalendarWidget_Delete(QCalendarWidget* self, bool isSubclass); +void QCalendarWidget_Delete(QCalendarWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qchar.cpp b/qt6/gen_qchar.cpp index 80d8890f..ff1a6edc 100644 --- a/qt6/gen_qchar.cpp +++ b/qt6/gen_qchar.cpp @@ -26,12 +26,8 @@ char QLatin1Char_ToLatin1(const QLatin1Char* self) { return self->toLatin1(); } -void QLatin1Char_Delete(QLatin1Char* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLatin1Char_Delete(QLatin1Char* self) { + delete self; } QChar* QChar_new() { @@ -250,11 +246,7 @@ int QChar_CurrentUnicodeVersion() { return static_cast(_ret); } -void QChar_Delete(QChar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QChar_Delete(QChar* self) { + delete self; } diff --git a/qt6/gen_qchar.go b/qt6/gen_qchar.go index d6e876a2..6c510148 100644 --- a/qt6/gen_qchar.go +++ b/qt6/gen_qchar.go @@ -408,7 +408,7 @@ func (this *QLatin1Char) ToLatin1() int8 { // Delete this object from C++ memory. func (this *QLatin1Char) Delete() { - C.QLatin1Char_Delete(this.h, C.bool(this.isSubclass)) + C.QLatin1Char_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -714,7 +714,7 @@ func QChar_CurrentUnicodeVersion() QChar__UnicodeVersion { // Delete this object from C++ memory. func (this *QChar) Delete() { - C.QChar_Delete(this.h, C.bool(this.isSubclass)) + C.QChar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qchar.h b/qt6/gen_qchar.h index dc050c7b..bf927227 100644 --- a/qt6/gen_qchar.h +++ b/qt6/gen_qchar.h @@ -25,7 +25,7 @@ typedef struct QLatin1Char QLatin1Char; QLatin1Char* QLatin1Char_new(char c); QLatin1Char* QLatin1Char_new2(QLatin1Char* param1); char QLatin1Char_ToLatin1(const QLatin1Char* self); -void QLatin1Char_Delete(QLatin1Char* self, bool isSubclass); +void QLatin1Char_Delete(QLatin1Char* self); QChar* QChar_new(); QChar* QChar_new2(uint16_t rc); @@ -77,7 +77,7 @@ unsigned char QChar_Row(const QChar* self); void QChar_SetCell(QChar* self, unsigned char acell); void QChar_SetRow(QChar* self, unsigned char arow); int QChar_CurrentUnicodeVersion(); -void QChar_Delete(QChar* self, bool isSubclass); +void QChar_Delete(QChar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcheckbox.cpp b/qt6/gen_qcheckbox.cpp index 0696890b..9bf7d176 100644 --- a/qt6/gen_qcheckbox.cpp +++ b/qt6/gen_qcheckbox.cpp @@ -45,7 +45,7 @@ void miqt_exec_callback_QCheckBox_TimerEvent(void*, intptr_t, QTimerEvent*); } /* extern C */ #endif -class MiqtVirtualQCheckBox : public virtual QCheckBox { +class MiqtVirtualQCheckBox final : public QCheckBox { public: MiqtVirtualQCheckBox(QWidget* parent): QCheckBox(parent) {}; @@ -53,7 +53,7 @@ public: MiqtVirtualQCheckBox(const QString& text): QCheckBox(text) {}; MiqtVirtualQCheckBox(const QString& text, QWidget* parent): QCheckBox(text, parent) {}; - virtual ~MiqtVirtualQCheckBox() = default; + virtual ~MiqtVirtualQCheckBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -698,11 +698,7 @@ void QCheckBox_virtualbase_TimerEvent(void* self, QTimerEvent* e) { ( (MiqtVirtualQCheckBox*)(self) )->virtualbase_TimerEvent(e); } -void QCheckBox_Delete(QCheckBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCheckBox_Delete(QCheckBox* self) { + delete self; } diff --git a/qt6/gen_qcheckbox.go b/qt6/gen_qcheckbox.go index 7bb53322..e79d5f3c 100644 --- a/qt6/gen_qcheckbox.go +++ b/qt6/gen_qcheckbox.go @@ -628,7 +628,7 @@ func miqt_exec_callback_QCheckBox_TimerEvent(self *C.QCheckBox, cb C.intptr_t, e // Delete this object from C++ memory. func (this *QCheckBox) Delete() { - C.QCheckBox_Delete(this.h, C.bool(this.isSubclass)) + C.QCheckBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcheckbox.h b/qt6/gen_qcheckbox.h index 17fd5caa..106cd256 100644 --- a/qt6/gen_qcheckbox.h +++ b/qt6/gen_qcheckbox.h @@ -108,7 +108,7 @@ void QCheckBox_override_virtual_ChangeEvent(void* self, intptr_t slot); void QCheckBox_virtualbase_ChangeEvent(void* self, QEvent* e); void QCheckBox_override_virtual_TimerEvent(void* self, intptr_t slot); void QCheckBox_virtualbase_TimerEvent(void* self, QTimerEvent* e); -void QCheckBox_Delete(QCheckBox* self, bool isSubclass); +void QCheckBox_Delete(QCheckBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcollator.cpp b/qt6/gen_qcollator.cpp index 65877a6f..e17b8534 100644 --- a/qt6/gen_qcollator.cpp +++ b/qt6/gen_qcollator.cpp @@ -32,12 +32,8 @@ int QCollatorSortKey_Compare(const QCollatorSortKey* self, QCollatorSortKey* key return self->compare(*key); } -void QCollatorSortKey_Delete(QCollatorSortKey* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCollatorSortKey_Delete(QCollatorSortKey* self) { + delete self; } QCollator* QCollator_new() { @@ -114,11 +110,7 @@ QCollatorSortKey* QCollator_SortKey(const QCollator* self, struct miqt_string st return new QCollatorSortKey(self->sortKey(stringVal_QString)); } -void QCollator_Delete(QCollator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCollator_Delete(QCollator* self) { + delete self; } diff --git a/qt6/gen_qcollator.go b/qt6/gen_qcollator.go index 0b6fb31d..f44f7014 100644 --- a/qt6/gen_qcollator.go +++ b/qt6/gen_qcollator.go @@ -68,7 +68,7 @@ func (this *QCollatorSortKey) Compare(key *QCollatorSortKey) int { // Delete this object from C++ memory. func (this *QCollatorSortKey) Delete() { - C.QCollatorSortKey_Delete(this.h, C.bool(this.isSubclass)) + C.QCollatorSortKey_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -219,7 +219,7 @@ func (this *QCollator) SortKey(stringVal string) *QCollatorSortKey { // Delete this object from C++ memory. func (this *QCollator) Delete() { - C.QCollator_Delete(this.h, C.bool(this.isSubclass)) + C.QCollator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcollator.h b/qt6/gen_qcollator.h index e6cca84d..59806cbe 100644 --- a/qt6/gen_qcollator.h +++ b/qt6/gen_qcollator.h @@ -30,7 +30,7 @@ QCollatorSortKey* QCollatorSortKey_new(QCollatorSortKey* other); void QCollatorSortKey_OperatorAssign(QCollatorSortKey* self, QCollatorSortKey* other); void QCollatorSortKey_Swap(QCollatorSortKey* self, QCollatorSortKey* other); int QCollatorSortKey_Compare(const QCollatorSortKey* self, QCollatorSortKey* key); -void QCollatorSortKey_Delete(QCollatorSortKey* self, bool isSubclass); +void QCollatorSortKey_Delete(QCollatorSortKey* self); QCollator* QCollator_new(); QCollator* QCollator_new2(QLocale* locale); @@ -49,7 +49,7 @@ int QCollator_Compare(const QCollator* self, struct miqt_string s1, struct miqt_ int QCollator_Compare2(const QCollator* self, QChar* s1, ptrdiff_t len1, QChar* s2, ptrdiff_t len2); bool QCollator_OperatorCall(const QCollator* self, struct miqt_string s1, struct miqt_string s2); QCollatorSortKey* QCollator_SortKey(const QCollator* self, struct miqt_string stringVal); -void QCollator_Delete(QCollator* self, bool isSubclass); +void QCollator_Delete(QCollator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcolor.cpp b/qt6/gen_qcolor.cpp index fb2c1322..93367ae4 100644 --- a/qt6/gen_qcolor.cpp +++ b/qt6/gen_qcolor.cpp @@ -589,11 +589,7 @@ QColor* QColor_Darker1(const QColor* self, int f) { return new QColor(self->darker(static_cast(f))); } -void QColor_Delete(QColor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColor_Delete(QColor* self) { + delete self; } diff --git a/qt6/gen_qcolor.go b/qt6/gen_qcolor.go index 5b02e19d..f8b66394 100644 --- a/qt6/gen_qcolor.go +++ b/qt6/gen_qcolor.go @@ -747,7 +747,7 @@ func (this *QColor) Darker1(f int) *QColor { // Delete this object from C++ memory. func (this *QColor) Delete() { - C.QColor_Delete(this.h, C.bool(this.isSubclass)) + C.QColor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcolor.h b/qt6/gen_qcolor.h index 16e87873..4ee858aa 100644 --- a/qt6/gen_qcolor.h +++ b/qt6/gen_qcolor.h @@ -160,7 +160,7 @@ QColor* QColor_FromHsl4(int h, int s, int l, int a); QColor* QColor_FromHslF4(float h, float s, float l, float a); QColor* QColor_Lighter1(const QColor* self, int f); QColor* QColor_Darker1(const QColor* self, int f); -void QColor_Delete(QColor* self, bool isSubclass); +void QColor_Delete(QColor* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcolordialog.cpp b/qt6/gen_qcolordialog.cpp index bc53bbfc..c15c9e7b 100644 --- a/qt6/gen_qcolordialog.cpp +++ b/qt6/gen_qcolordialog.cpp @@ -43,7 +43,7 @@ bool miqt_exec_callback_QColorDialog_EventFilter(void*, intptr_t, QObject*, QEve } /* extern C */ #endif -class MiqtVirtualQColorDialog : public virtual QColorDialog { +class MiqtVirtualQColorDialog final : public QColorDialog { public: MiqtVirtualQColorDialog(QWidget* parent): QColorDialog(parent) {}; @@ -51,7 +51,7 @@ public: MiqtVirtualQColorDialog(const QColor& initial): QColorDialog(initial) {}; MiqtVirtualQColorDialog(const QColor& initial, QWidget* parent): QColorDialog(initial, parent) {}; - virtual ~MiqtVirtualQColorDialog() = default; + virtual ~MiqtVirtualQColorDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -692,11 +692,7 @@ bool QColorDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* p return ( (MiqtVirtualQColorDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QColorDialog_Delete(QColorDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColorDialog_Delete(QColorDialog* self) { + delete self; } diff --git a/qt6/gen_qcolordialog.go b/qt6/gen_qcolordialog.go index bdabdf16..8b192b58 100644 --- a/qt6/gen_qcolordialog.go +++ b/qt6/gen_qcolordialog.go @@ -662,7 +662,7 @@ func miqt_exec_callback_QColorDialog_EventFilter(self *C.QColorDialog, cb C.intp // Delete this object from C++ memory. func (this *QColorDialog) Delete() { - C.QColorDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QColorDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcolordialog.h b/qt6/gen_qcolordialog.h index db748cbd..525429cd 100644 --- a/qt6/gen_qcolordialog.h +++ b/qt6/gen_qcolordialog.h @@ -111,7 +111,7 @@ void QColorDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QColorDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QColorDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QColorDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QColorDialog_Delete(QColorDialog* self, bool isSubclass); +void QColorDialog_Delete(QColorDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcolormap.cpp b/qt6/gen_qcolormap.cpp index 16c24ec7..d9785e89 100644 --- a/qt6/gen_qcolormap.cpp +++ b/qt6/gen_qcolormap.cpp @@ -71,11 +71,7 @@ QColormap* QColormap_Instance1(int screen) { return new QColormap(QColormap::instance(static_cast(screen))); } -void QColormap_Delete(QColormap* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColormap_Delete(QColormap* self) { + delete self; } diff --git a/qt6/gen_qcolormap.go b/qt6/gen_qcolormap.go index e3cd18a0..3e55fbd0 100644 --- a/qt6/gen_qcolormap.go +++ b/qt6/gen_qcolormap.go @@ -122,7 +122,7 @@ func QColormap_Instance1(screen int) *QColormap { // Delete this object from C++ memory. func (this *QColormap) Delete() { - C.QColormap_Delete(this.h, C.bool(this.isSubclass)) + C.QColormap_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcolormap.h b/qt6/gen_qcolormap.h index 3fec7da2..4cebf57d 100644 --- a/qt6/gen_qcolormap.h +++ b/qt6/gen_qcolormap.h @@ -34,7 +34,7 @@ unsigned int QColormap_Pixel(const QColormap* self, QColor* color); QColor* QColormap_ColorAt(const QColormap* self, unsigned int pixel); struct miqt_array /* of QColor* */ QColormap_Colormap(const QColormap* self); QColormap* QColormap_Instance1(int screen); -void QColormap_Delete(QColormap* self, bool isSubclass); +void QColormap_Delete(QColormap* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcolorspace.cpp b/qt6/gen_qcolorspace.cpp index 85bad20e..829be6b2 100644 --- a/qt6/gen_qcolorspace.cpp +++ b/qt6/gen_qcolorspace.cpp @@ -248,11 +248,7 @@ QColorSpace* QColorSpace_WithTransferFunction2(const QColorSpace* self, int tran return new QColorSpace(self->withTransferFunction(static_cast(transferFunction), static_cast(gamma))); } -void QColorSpace_Delete(QColorSpace* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColorSpace_Delete(QColorSpace* self) { + delete self; } diff --git a/qt6/gen_qcolorspace.go b/qt6/gen_qcolorspace.go index 6bdfe510..030913a1 100644 --- a/qt6/gen_qcolorspace.go +++ b/qt6/gen_qcolorspace.go @@ -363,7 +363,7 @@ func (this *QColorSpace) WithTransferFunction2(transferFunction QColorSpace__Tra // Delete this object from C++ memory. func (this *QColorSpace) Delete() { - C.QColorSpace_Delete(this.h, C.bool(this.isSubclass)) + C.QColorSpace_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcolorspace.h b/qt6/gen_qcolorspace.h index 3c59e643..b4047b1b 100644 --- a/qt6/gen_qcolorspace.h +++ b/qt6/gen_qcolorspace.h @@ -60,7 +60,7 @@ QColorTransform* QColorSpace_TransformationToColorSpace(const QColorSpace* self, QVariant* QColorSpace_ToQVariant(const QColorSpace* self); void QColorSpace_SetTransferFunction2(QColorSpace* self, int transferFunction, float gamma); QColorSpace* QColorSpace_WithTransferFunction2(const QColorSpace* self, int transferFunction, float gamma); -void QColorSpace_Delete(QColorSpace* self, bool isSubclass); +void QColorSpace_Delete(QColorSpace* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcolortransform.cpp b/qt6/gen_qcolortransform.cpp index 211ce947..9b8f4aef 100644 --- a/qt6/gen_qcolortransform.cpp +++ b/qt6/gen_qcolortransform.cpp @@ -45,11 +45,7 @@ QColor* QColorTransform_MapWithColor(const QColorTransform* self, QColor* color) return new QColor(self->map(*color)); } -void QColorTransform_Delete(QColorTransform* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColorTransform_Delete(QColorTransform* self) { + delete self; } diff --git a/qt6/gen_qcolortransform.go b/qt6/gen_qcolortransform.go index c70be1eb..42a6b594 100644 --- a/qt6/gen_qcolortransform.go +++ b/qt6/gen_qcolortransform.go @@ -92,7 +92,7 @@ func (this *QColorTransform) MapWithColor(color *QColor) *QColor { // Delete this object from C++ memory. func (this *QColorTransform) Delete() { - C.QColorTransform_Delete(this.h, C.bool(this.isSubclass)) + C.QColorTransform_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcolortransform.h b/qt6/gen_qcolortransform.h index f6c17799..8c102bfe 100644 --- a/qt6/gen_qcolortransform.h +++ b/qt6/gen_qcolortransform.h @@ -32,7 +32,7 @@ bool QColorTransform_IsIdentity(const QColorTransform* self); unsigned int QColorTransform_Map(const QColorTransform* self, unsigned int argb); QRgba64* QColorTransform_MapWithRgba64(const QColorTransform* self, QRgba64* rgba64); QColor* QColorTransform_MapWithColor(const QColorTransform* self, QColor* color); -void QColorTransform_Delete(QColorTransform* self, bool isSubclass); +void QColorTransform_Delete(QColorTransform* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcolumnview.cpp b/qt6/gen_qcolumnview.cpp index b980828d..340de062 100644 --- a/qt6/gen_qcolumnview.cpp +++ b/qt6/gen_qcolumnview.cpp @@ -106,13 +106,13 @@ QSize* miqt_exec_callback_QColumnView_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQColumnView : public virtual QColumnView { +class MiqtVirtualQColumnView final : public QColumnView { public: MiqtVirtualQColumnView(QWidget* parent): QColumnView(parent) {}; MiqtVirtualQColumnView(): QColumnView() {}; - virtual ~MiqtVirtualQColumnView() = default; + virtual ~MiqtVirtualQColumnView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IndexAt = 0; @@ -2307,11 +2307,7 @@ QSize* QColumnView_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQColumnView*)(self) )->virtualbase_ViewportSizeHint(); } -void QColumnView_Delete(QColumnView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QColumnView_Delete(QColumnView* self) { + delete self; } diff --git a/qt6/gen_qcolumnview.go b/qt6/gen_qcolumnview.go index f47e1f14..d77b4dbc 100644 --- a/qt6/gen_qcolumnview.go +++ b/qt6/gen_qcolumnview.go @@ -1906,7 +1906,7 @@ func miqt_exec_callback_QColumnView_ViewportSizeHint(self *C.QColumnView, cb C.i // Delete this object from C++ memory. func (this *QColumnView) Delete() { - C.QColumnView_Delete(this.h, C.bool(this.isSubclass)) + C.QColumnView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcolumnview.h b/qt6/gen_qcolumnview.h index 92d2e763..2923b36d 100644 --- a/qt6/gen_qcolumnview.h +++ b/qt6/gen_qcolumnview.h @@ -237,7 +237,7 @@ void QColumnView_override_virtual_EventFilter(void* self, intptr_t slot); bool QColumnView_virtualbase_EventFilter(void* self, QObject* object, QEvent* event); void QColumnView_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QColumnView_virtualbase_ViewportSizeHint(const void* self); -void QColumnView_Delete(QColumnView* self, bool isSubclass); +void QColumnView_Delete(QColumnView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcombobox.cpp b/qt6/gen_qcombobox.cpp index ca629337..cd72d0b6 100644 --- a/qt6/gen_qcombobox.cpp +++ b/qt6/gen_qcombobox.cpp @@ -105,13 +105,13 @@ bool miqt_exec_callback_QComboBox_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQComboBox : public virtual QComboBox { +class MiqtVirtualQComboBox final : public QComboBox { public: MiqtVirtualQComboBox(QWidget* parent): QComboBox(parent) {}; MiqtVirtualQComboBox(): QComboBox() {}; - virtual ~MiqtVirtualQComboBox() = default; + virtual ~MiqtVirtualQComboBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetModel = 0; @@ -2070,11 +2070,7 @@ bool QComboBox_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQComboBox*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QComboBox_Delete(QComboBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QComboBox_Delete(QComboBox* self) { + delete self; } diff --git a/qt6/gen_qcombobox.go b/qt6/gen_qcombobox.go index 2fa1ef4a..6ca36d3d 100644 --- a/qt6/gen_qcombobox.go +++ b/qt6/gen_qcombobox.go @@ -1904,7 +1904,7 @@ func miqt_exec_callback_QComboBox_FocusNextPrevChild(self *C.QComboBox, cb C.int // Delete this object from C++ memory. func (this *QComboBox) Delete() { - C.QComboBox_Delete(this.h, C.bool(this.isSubclass)) + C.QComboBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcombobox.h b/qt6/gen_qcombobox.h index 16e9dfd2..f7f4dea2 100644 --- a/qt6/gen_qcombobox.h +++ b/qt6/gen_qcombobox.h @@ -301,7 +301,7 @@ void QComboBox_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QComboBox_virtualbase_SharedPainter(const void* self); void QComboBox_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QComboBox_virtualbase_FocusNextPrevChild(void* self, bool next); -void QComboBox_Delete(QComboBox* self, bool isSubclass); +void QComboBox_Delete(QComboBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcommandlineoption.cpp b/qt6/gen_qcommandlineoption.cpp index 9433fdb7..e333f063 100644 --- a/qt6/gen_qcommandlineoption.cpp +++ b/qt6/gen_qcommandlineoption.cpp @@ -199,11 +199,7 @@ void QCommandLineOption_SetFlags(QCommandLineOption* self, int aflags) { self->setFlags(static_cast(aflags)); } -void QCommandLineOption_Delete(QCommandLineOption* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCommandLineOption_Delete(QCommandLineOption* self) { + delete self; } diff --git a/qt6/gen_qcommandlineoption.go b/qt6/gen_qcommandlineoption.go index 7f1eb84f..5c0330e2 100644 --- a/qt6/gen_qcommandlineoption.go +++ b/qt6/gen_qcommandlineoption.go @@ -325,7 +325,7 @@ func (this *QCommandLineOption) SetFlags(aflags QCommandLineOption__Flag) { // Delete this object from C++ memory. func (this *QCommandLineOption) Delete() { - C.QCommandLineOption_Delete(this.h, C.bool(this.isSubclass)) + C.QCommandLineOption_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcommandlineoption.h b/qt6/gen_qcommandlineoption.h index 34efd684..d8457b78 100644 --- a/qt6/gen_qcommandlineoption.h +++ b/qt6/gen_qcommandlineoption.h @@ -41,7 +41,7 @@ void QCommandLineOption_SetDefaultValues(QCommandLineOption* self, struct miqt_a struct miqt_array /* of struct miqt_string */ QCommandLineOption_DefaultValues(const QCommandLineOption* self); int QCommandLineOption_Flags(const QCommandLineOption* self); void QCommandLineOption_SetFlags(QCommandLineOption* self, int aflags); -void QCommandLineOption_Delete(QCommandLineOption* self, bool isSubclass); +void QCommandLineOption_Delete(QCommandLineOption* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcommandlineparser.cpp b/qt6/gen_qcommandlineparser.cpp index dfc0e657..79f2daf8 100644 --- a/qt6/gen_qcommandlineparser.cpp +++ b/qt6/gen_qcommandlineparser.cpp @@ -309,11 +309,7 @@ void QCommandLineParser_ShowHelp1(QCommandLineParser* self, int exitCode) { self->showHelp(static_cast(exitCode)); } -void QCommandLineParser_Delete(QCommandLineParser* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCommandLineParser_Delete(QCommandLineParser* self) { + delete self; } diff --git a/qt6/gen_qcommandlineparser.go b/qt6/gen_qcommandlineparser.go index 3555c363..28851d1d 100644 --- a/qt6/gen_qcommandlineparser.go +++ b/qt6/gen_qcommandlineparser.go @@ -339,7 +339,7 @@ func (this *QCommandLineParser) ShowHelp1(exitCode int) { // Delete this object from C++ memory. func (this *QCommandLineParser) Delete() { - C.QCommandLineParser_Delete(this.h, C.bool(this.isSubclass)) + C.QCommandLineParser_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcommandlineparser.h b/qt6/gen_qcommandlineparser.h index f2c66ec3..3172a4ce 100644 --- a/qt6/gen_qcommandlineparser.h +++ b/qt6/gen_qcommandlineparser.h @@ -56,7 +56,7 @@ struct miqt_string QCommandLineParser_Tr2(const char* sourceText, const char* di struct miqt_string QCommandLineParser_Tr3(const char* sourceText, const char* disambiguation, int n); void QCommandLineParser_AddPositionalArgument3(QCommandLineParser* self, struct miqt_string name, struct miqt_string description, struct miqt_string syntax); void QCommandLineParser_ShowHelp1(QCommandLineParser* self, int exitCode); -void QCommandLineParser_Delete(QCommandLineParser* self, bool isSubclass); +void QCommandLineParser_Delete(QCommandLineParser* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcommandlinkbutton.cpp b/qt6/gen_qcommandlinkbutton.cpp index 5ef181d4..7e29253e 100644 --- a/qt6/gen_qcommandlinkbutton.cpp +++ b/qt6/gen_qcommandlinkbutton.cpp @@ -38,7 +38,7 @@ bool miqt_exec_callback_QCommandLinkButton_HitButton(void*, intptr_t, QPoint*); } /* extern C */ #endif -class MiqtVirtualQCommandLinkButton : public virtual QCommandLinkButton { +class MiqtVirtualQCommandLinkButton final : public QCommandLinkButton { public: MiqtVirtualQCommandLinkButton(QWidget* parent): QCommandLinkButton(parent) {}; @@ -48,7 +48,7 @@ public: MiqtVirtualQCommandLinkButton(const QString& text, QWidget* parent): QCommandLinkButton(text, parent) {}; MiqtVirtualQCommandLinkButton(const QString& text, const QString& description, QWidget* parent): QCommandLinkButton(text, description, parent) {}; - virtual ~MiqtVirtualQCommandLinkButton() = default; + virtual ~MiqtVirtualQCommandLinkButton() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -506,11 +506,7 @@ bool QCommandLinkButton_virtualbase_HitButton(const void* self, QPoint* pos) { return ( (const MiqtVirtualQCommandLinkButton*)(self) )->virtualbase_HitButton(pos); } -void QCommandLinkButton_Delete(QCommandLinkButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCommandLinkButton_Delete(QCommandLinkButton* self) { + delete self; } diff --git a/qt6/gen_qcommandlinkbutton.go b/qt6/gen_qcommandlinkbutton.go index d03553e3..b55e7f0b 100644 --- a/qt6/gen_qcommandlinkbutton.go +++ b/qt6/gen_qcommandlinkbutton.go @@ -495,7 +495,7 @@ func miqt_exec_callback_QCommandLinkButton_HitButton(self *C.QCommandLinkButton, // Delete this object from C++ memory. func (this *QCommandLinkButton) Delete() { - C.QCommandLinkButton_Delete(this.h, C.bool(this.isSubclass)) + C.QCommandLinkButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcommandlinkbutton.h b/qt6/gen_qcommandlinkbutton.h index 499c0da6..7a9ea3a2 100644 --- a/qt6/gen_qcommandlinkbutton.h +++ b/qt6/gen_qcommandlinkbutton.h @@ -90,7 +90,7 @@ void QCommandLinkButton_override_virtual_MouseMoveEvent(void* self, intptr_t slo void QCommandLinkButton_virtualbase_MouseMoveEvent(void* self, QMouseEvent* param1); void QCommandLinkButton_override_virtual_HitButton(void* self, intptr_t slot); bool QCommandLinkButton_virtualbase_HitButton(const void* self, QPoint* pos); -void QCommandLinkButton_Delete(QCommandLinkButton* self, bool isSubclass); +void QCommandLinkButton_Delete(QCommandLinkButton* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcommonstyle.cpp b/qt6/gen_qcommonstyle.cpp index 21184a22..6c262e26 100644 --- a/qt6/gen_qcommonstyle.cpp +++ b/qt6/gen_qcommonstyle.cpp @@ -52,12 +52,12 @@ QPalette* miqt_exec_callback_QCommonStyle_StandardPalette(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQCommonStyle : public virtual QCommonStyle { +class MiqtVirtualQCommonStyle final : public QCommonStyle { public: MiqtVirtualQCommonStyle(): QCommonStyle() {}; - virtual ~MiqtVirtualQCommonStyle() = default; + virtual ~MiqtVirtualQCommonStyle() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DrawPrimitive = 0; @@ -1013,11 +1013,7 @@ QPalette* QCommonStyle_virtualbase_StandardPalette(const void* self) { return ( (const MiqtVirtualQCommonStyle*)(self) )->virtualbase_StandardPalette(); } -void QCommonStyle_Delete(QCommonStyle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCommonStyle_Delete(QCommonStyle* self) { + delete self; } diff --git a/qt6/gen_qcommonstyle.go b/qt6/gen_qcommonstyle.go index df43acf8..b838e607 100644 --- a/qt6/gen_qcommonstyle.go +++ b/qt6/gen_qcommonstyle.go @@ -938,7 +938,7 @@ func miqt_exec_callback_QCommonStyle_StandardPalette(self *C.QCommonStyle, cb C. // Delete this object from C++ memory. func (this *QCommonStyle) Delete() { - C.QCommonStyle_Delete(this.h, C.bool(this.isSubclass)) + C.QCommonStyle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcommonstyle.h b/qt6/gen_qcommonstyle.h index dd73d282..abbbb411 100644 --- a/qt6/gen_qcommonstyle.h +++ b/qt6/gen_qcommonstyle.h @@ -123,7 +123,7 @@ void QCommonStyle_override_virtual_DrawItemPixmap(void* self, intptr_t slot); void QCommonStyle_virtualbase_DrawItemPixmap(const void* self, QPainter* painter, QRect* rect, int alignment, QPixmap* pixmap); void QCommonStyle_override_virtual_StandardPalette(void* self, intptr_t slot); QPalette* QCommonStyle_virtualbase_StandardPalette(const void* self); -void QCommonStyle_Delete(QCommonStyle* self, bool isSubclass); +void QCommonStyle_Delete(QCommonStyle* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcompare.cpp b/qt6/gen_qcompare.cpp index 8dd61473..e65bc407 100644 --- a/qt6/gen_qcompare.cpp +++ b/qt6/gen_qcompare.cpp @@ -14,11 +14,7 @@ QPartialOrdering* QPartialOrdering_new(QPartialOrdering* param1) { return new QPartialOrdering(*param1); } -void QPartialOrdering_Delete(QPartialOrdering* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPartialOrdering_Delete(QPartialOrdering* self) { + delete self; } diff --git a/qt6/gen_qcompare.go b/qt6/gen_qcompare.go index 12bfccc3..5e9ec11a 100644 --- a/qt6/gen_qcompare.go +++ b/qt6/gen_qcompare.go @@ -71,7 +71,7 @@ func NewQPartialOrdering(param1 *QPartialOrdering) *QPartialOrdering { // Delete this object from C++ memory. func (this *QPartialOrdering) Delete() { - C.QPartialOrdering_Delete(this.h, C.bool(this.isSubclass)) + C.QPartialOrdering_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcompare.h b/qt6/gen_qcompare.h index d1d2a74f..f37cd77d 100644 --- a/qt6/gen_qcompare.h +++ b/qt6/gen_qcompare.h @@ -21,7 +21,7 @@ typedef struct QPartialOrdering QPartialOrdering; #endif QPartialOrdering* QPartialOrdering_new(QPartialOrdering* param1); -void QPartialOrdering_Delete(QPartialOrdering* self, bool isSubclass); +void QPartialOrdering_Delete(QPartialOrdering* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcompleter.cpp b/qt6/gen_qcompleter.cpp index e050d69b..15bd3a18 100644 --- a/qt6/gen_qcompleter.cpp +++ b/qt6/gen_qcompleter.cpp @@ -38,7 +38,7 @@ void miqt_exec_callback_QCompleter_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQCompleter : public virtual QCompleter { +class MiqtVirtualQCompleter final : public QCompleter { public: MiqtVirtualQCompleter(): QCompleter() {}; @@ -48,7 +48,7 @@ public: MiqtVirtualQCompleter(QAbstractItemModel* model, QObject* parent): QCompleter(model, parent) {}; MiqtVirtualQCompleter(const QStringList& completions, QObject* parent): QCompleter(completions, parent) {}; - virtual ~MiqtVirtualQCompleter() = default; + virtual ~MiqtVirtualQCompleter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__PathFromIndex = 0; @@ -708,11 +708,7 @@ void QCompleter_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQCompleter*)(self) )->virtualbase_DisconnectNotify(signal); } -void QCompleter_Delete(QCompleter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCompleter_Delete(QCompleter* self) { + delete self; } diff --git a/qt6/gen_qcompleter.go b/qt6/gen_qcompleter.go index ddcd4075..828d3e92 100644 --- a/qt6/gen_qcompleter.go +++ b/qt6/gen_qcompleter.go @@ -712,7 +712,7 @@ func miqt_exec_callback_QCompleter_DisconnectNotify(self *C.QCompleter, cb C.int // Delete this object from C++ memory. func (this *QCompleter) Delete() { - C.QCompleter_Delete(this.h, C.bool(this.isSubclass)) + C.QCompleter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcompleter.h b/qt6/gen_qcompleter.h index 9dc50d96..01523e59 100644 --- a/qt6/gen_qcompleter.h +++ b/qt6/gen_qcompleter.h @@ -116,7 +116,7 @@ void QCompleter_override_virtual_ConnectNotify(void* self, intptr_t slot); void QCompleter_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QCompleter_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QCompleter_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QCompleter_Delete(QCompleter* self, bool isSubclass); +void QCompleter_Delete(QCompleter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qconcatenatetablesproxymodel.cpp b/qt6/gen_qconcatenatetablesproxymodel.cpp index 57bf1c1e..e8ddd913 100644 --- a/qt6/gen_qconcatenatetablesproxymodel.cpp +++ b/qt6/gen_qconcatenatetablesproxymodel.cpp @@ -61,13 +61,13 @@ void miqt_exec_callback_QConcatenateTablesProxyModel_ResetInternalData(void*, in } /* extern C */ #endif -class MiqtVirtualQConcatenateTablesProxyModel : public virtual QConcatenateTablesProxyModel { +class MiqtVirtualQConcatenateTablesProxyModel final : public QConcatenateTablesProxyModel { public: MiqtVirtualQConcatenateTablesProxyModel(): QConcatenateTablesProxyModel() {}; MiqtVirtualQConcatenateTablesProxyModel(QObject* parent): QConcatenateTablesProxyModel(parent) {}; - virtual ~MiqtVirtualQConcatenateTablesProxyModel() = default; + virtual ~MiqtVirtualQConcatenateTablesProxyModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Data = 0; @@ -1635,11 +1635,7 @@ void QConcatenateTablesProxyModel_virtualbase_ResetInternalData(void* self) { ( (MiqtVirtualQConcatenateTablesProxyModel*)(self) )->virtualbase_ResetInternalData(); } -void QConcatenateTablesProxyModel_Delete(QConcatenateTablesProxyModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QConcatenateTablesProxyModel_Delete(QConcatenateTablesProxyModel* self) { + delete self; } diff --git a/qt6/gen_qconcatenatetablesproxymodel.go b/qt6/gen_qconcatenatetablesproxymodel.go index a7d76b44..5f8619bf 100644 --- a/qt6/gen_qconcatenatetablesproxymodel.go +++ b/qt6/gen_qconcatenatetablesproxymodel.go @@ -1494,7 +1494,7 @@ func miqt_exec_callback_QConcatenateTablesProxyModel_ResetInternalData(self *C.Q // Delete this object from C++ memory. func (this *QConcatenateTablesProxyModel) Delete() { - C.QConcatenateTablesProxyModel_Delete(this.h, C.bool(this.isSubclass)) + C.QConcatenateTablesProxyModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qconcatenatetablesproxymodel.h b/qt6/gen_qconcatenatetablesproxymodel.h index 4728a8da..96175bab 100644 --- a/qt6/gen_qconcatenatetablesproxymodel.h +++ b/qt6/gen_qconcatenatetablesproxymodel.h @@ -138,7 +138,7 @@ void QConcatenateTablesProxyModel_override_virtual_Revert(void* self, intptr_t s void QConcatenateTablesProxyModel_virtualbase_Revert(void* self); void QConcatenateTablesProxyModel_override_virtual_ResetInternalData(void* self, intptr_t slot); void QConcatenateTablesProxyModel_virtualbase_ResetInternalData(void* self); -void QConcatenateTablesProxyModel_Delete(QConcatenateTablesProxyModel* self, bool isSubclass); +void QConcatenateTablesProxyModel_Delete(QConcatenateTablesProxyModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcontiguouscache.cpp b/qt6/gen_qcontiguouscache.cpp index 1854cdd0..24ab4571 100644 --- a/qt6/gen_qcontiguouscache.cpp +++ b/qt6/gen_qcontiguouscache.cpp @@ -18,11 +18,7 @@ void QContiguousCacheData_FreeData(QContiguousCacheData* data) { QContiguousCacheData::freeData(data); } -void QContiguousCacheData_Delete(QContiguousCacheData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QContiguousCacheData_Delete(QContiguousCacheData* self) { + delete self; } diff --git a/qt6/gen_qcontiguouscache.go b/qt6/gen_qcontiguouscache.go index 5f52634e..94d1724f 100644 --- a/qt6/gen_qcontiguouscache.go +++ b/qt6/gen_qcontiguouscache.go @@ -56,7 +56,7 @@ func QContiguousCacheData_FreeData(data *QContiguousCacheData) { // Delete this object from C++ memory. func (this *QContiguousCacheData) Delete() { - C.QContiguousCacheData_Delete(this.h, C.bool(this.isSubclass)) + C.QContiguousCacheData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcontiguouscache.h b/qt6/gen_qcontiguouscache.h index a62b9ce5..5464e5f7 100644 --- a/qt6/gen_qcontiguouscache.h +++ b/qt6/gen_qcontiguouscache.h @@ -22,7 +22,7 @@ typedef struct QContiguousCacheData QContiguousCacheData; QContiguousCacheData* QContiguousCacheData_AllocateData(ptrdiff_t size, ptrdiff_t alignment); void QContiguousCacheData_FreeData(QContiguousCacheData* data); -void QContiguousCacheData_Delete(QContiguousCacheData* self, bool isSubclass); +void QContiguousCacheData_Delete(QContiguousCacheData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcoreapplication.cpp b/qt6/gen_qcoreapplication.cpp index 6197b078..befbbeae 100644 --- a/qt6/gen_qcoreapplication.cpp +++ b/qt6/gen_qcoreapplication.cpp @@ -37,13 +37,13 @@ void miqt_exec_callback_QCoreApplication_DisconnectNotify(void*, intptr_t, QMeta } /* extern C */ #endif -class MiqtVirtualQCoreApplication : public virtual QCoreApplication { +class MiqtVirtualQCoreApplication final : public QCoreApplication { public: MiqtVirtualQCoreApplication(int& argc, char** argv): QCoreApplication(argc, argv) {}; MiqtVirtualQCoreApplication(int& argc, char** argv, int param3): QCoreApplication(argc, argv, param3) {}; - virtual ~MiqtVirtualQCoreApplication() = default; + virtual ~MiqtVirtualQCoreApplication() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Notify = 0; @@ -726,11 +726,7 @@ void QCoreApplication_virtualbase_DisconnectNotify(void* self, QMetaMethod* sign ( (MiqtVirtualQCoreApplication*)(self) )->virtualbase_DisconnectNotify(signal); } -void QCoreApplication_Delete(QCoreApplication* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCoreApplication_Delete(QCoreApplication* self) { + delete self; } diff --git a/qt6/gen_qcoreapplication.go b/qt6/gen_qcoreapplication.go index c16c747d..b668e405 100644 --- a/qt6/gen_qcoreapplication.go +++ b/qt6/gen_qcoreapplication.go @@ -751,7 +751,7 @@ func miqt_exec_callback_QCoreApplication_DisconnectNotify(self *C.QCoreApplicati // Delete this object from C++ memory. func (this *QCoreApplication) Delete() { - C.QCoreApplication_Delete(this.h, C.bool(this.isSubclass)) + C.QCoreApplication_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcoreapplication.h b/qt6/gen_qcoreapplication.h index 6cbf2d0e..60268915 100644 --- a/qt6/gen_qcoreapplication.h +++ b/qt6/gen_qcoreapplication.h @@ -124,7 +124,7 @@ void QCoreApplication_override_virtual_ConnectNotify(void* self, intptr_t slot); void QCoreApplication_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QCoreApplication_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QCoreApplication_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QCoreApplication_Delete(QCoreApplication* self, bool isSubclass); +void QCoreApplication_Delete(QCoreApplication* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcoreevent.cpp b/qt6/gen_qcoreevent.cpp index fcf9d759..035fc06e 100644 --- a/qt6/gen_qcoreevent.cpp +++ b/qt6/gen_qcoreevent.cpp @@ -23,12 +23,12 @@ void miqt_exec_callback_QDynamicPropertyChangeEvent_SetAccepted(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQEvent : public virtual QEvent { +class MiqtVirtualQEvent final : public QEvent { public: MiqtVirtualQEvent(QEvent::Type typeVal): QEvent(typeVal) {}; - virtual ~MiqtVirtualQEvent() = default; + virtual ~MiqtVirtualQEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetAccepted = 0; @@ -147,20 +147,16 @@ QEvent* QEvent_virtualbase_Clone(const void* self) { return ( (const MiqtVirtualQEvent*)(self) )->virtualbase_Clone(); } -void QEvent_Delete(QEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEvent_Delete(QEvent* self) { + delete self; } -class MiqtVirtualQTimerEvent : public virtual QTimerEvent { +class MiqtVirtualQTimerEvent final : public QTimerEvent { public: MiqtVirtualQTimerEvent(int timerId): QTimerEvent(timerId) {}; - virtual ~MiqtVirtualQTimerEvent() = default; + virtual ~MiqtVirtualQTimerEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -242,20 +238,16 @@ void QTimerEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQTimerEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QTimerEvent_Delete(QTimerEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimerEvent_Delete(QTimerEvent* self) { + delete self; } -class MiqtVirtualQChildEvent : public virtual QChildEvent { +class MiqtVirtualQChildEvent final : public QChildEvent { public: MiqtVirtualQChildEvent(QEvent::Type typeVal, QObject* child): QChildEvent(typeVal, child) {}; - virtual ~MiqtVirtualQChildEvent() = default; + virtual ~MiqtVirtualQChildEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -349,20 +341,16 @@ void QChildEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQChildEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QChildEvent_Delete(QChildEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QChildEvent_Delete(QChildEvent* self) { + delete self; } -class MiqtVirtualQDynamicPropertyChangeEvent : public virtual QDynamicPropertyChangeEvent { +class MiqtVirtualQDynamicPropertyChangeEvent final : public QDynamicPropertyChangeEvent { public: MiqtVirtualQDynamicPropertyChangeEvent(const QByteArray& name): QDynamicPropertyChangeEvent(name) {}; - virtual ~MiqtVirtualQDynamicPropertyChangeEvent() = default; + virtual ~MiqtVirtualQDynamicPropertyChangeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -450,11 +438,7 @@ void QDynamicPropertyChangeEvent_virtualbase_SetAccepted(void* self, bool accept ( (MiqtVirtualQDynamicPropertyChangeEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self) { + delete self; } diff --git a/qt6/gen_qcoreevent.go b/qt6/gen_qcoreevent.go index f0371e29..299f4eee 100644 --- a/qt6/gen_qcoreevent.go +++ b/qt6/gen_qcoreevent.go @@ -334,7 +334,7 @@ func miqt_exec_callback_QEvent_Clone(self *C.QEvent, cb C.intptr_t) *C.QEvent { // Delete this object from C++ memory. func (this *QEvent) Delete() { - C.QEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -452,7 +452,7 @@ func miqt_exec_callback_QTimerEvent_SetAccepted(self *C.QTimerEvent, cb C.intptr // Delete this object from C++ memory. func (this *QTimerEvent) Delete() { - C.QTimerEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QTimerEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -582,7 +582,7 @@ func miqt_exec_callback_QChildEvent_SetAccepted(self *C.QChildEvent, cb C.intptr // Delete this object from C++ memory. func (this *QChildEvent) Delete() { - C.QChildEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QChildEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -706,7 +706,7 @@ func miqt_exec_callback_QDynamicPropertyChangeEvent_SetAccepted(self *C.QDynamic // Delete this object from C++ memory. func (this *QDynamicPropertyChangeEvent) Delete() { - C.QDynamicPropertyChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QDynamicPropertyChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcoreevent.h b/qt6/gen_qcoreevent.h index aac37e65..9a28a640 100644 --- a/qt6/gen_qcoreevent.h +++ b/qt6/gen_qcoreevent.h @@ -45,7 +45,7 @@ void QEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QEvent_virtualbase_SetAccepted(void* self, bool accepted); void QEvent_override_virtual_Clone(void* self, intptr_t slot); QEvent* QEvent_virtualbase_Clone(const void* self); -void QEvent_Delete(QEvent* self, bool isSubclass); +void QEvent_Delete(QEvent* self); QTimerEvent* QTimerEvent_new(int timerId); void QTimerEvent_virtbase(QTimerEvent* src, QEvent** outptr_QEvent); @@ -55,7 +55,7 @@ void QTimerEvent_override_virtual_Clone(void* self, intptr_t slot); QTimerEvent* QTimerEvent_virtualbase_Clone(const void* self); void QTimerEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QTimerEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QTimerEvent_Delete(QTimerEvent* self, bool isSubclass); +void QTimerEvent_Delete(QTimerEvent* self); QChildEvent* QChildEvent_new(int typeVal, QObject* child); void QChildEvent_virtbase(QChildEvent* src, QEvent** outptr_QEvent); @@ -68,7 +68,7 @@ void QChildEvent_override_virtual_Clone(void* self, intptr_t slot); QChildEvent* QChildEvent_virtualbase_Clone(const void* self); void QChildEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QChildEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QChildEvent_Delete(QChildEvent* self, bool isSubclass); +void QChildEvent_Delete(QChildEvent* self); QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_new(struct miqt_string name); void QDynamicPropertyChangeEvent_virtbase(QDynamicPropertyChangeEvent* src, QEvent** outptr_QEvent); @@ -78,7 +78,7 @@ void QDynamicPropertyChangeEvent_override_virtual_Clone(void* self, intptr_t slo QDynamicPropertyChangeEvent* QDynamicPropertyChangeEvent_virtualbase_Clone(const void* self); void QDynamicPropertyChangeEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QDynamicPropertyChangeEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self, bool isSubclass); +void QDynamicPropertyChangeEvent_Delete(QDynamicPropertyChangeEvent* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcryptographichash.cpp b/qt6/gen_qcryptographichash.cpp index 056716ee..35e17d27 100644 --- a/qt6/gen_qcryptographichash.cpp +++ b/qt6/gen_qcryptographichash.cpp @@ -59,11 +59,7 @@ int QCryptographicHash_HashLength(int method) { return QCryptographicHash::hashLength(static_cast(method)); } -void QCryptographicHash_Delete(QCryptographicHash* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCryptographicHash_Delete(QCryptographicHash* self) { + delete self; } diff --git a/qt6/gen_qcryptographichash.go b/qt6/gen_qcryptographichash.go index e0b5a4f9..801ed924 100644 --- a/qt6/gen_qcryptographichash.go +++ b/qt6/gen_qcryptographichash.go @@ -130,7 +130,7 @@ func QCryptographicHash_HashLength(method QCryptographicHash__Algorithm) int { // Delete this object from C++ memory. func (this *QCryptographicHash) Delete() { - C.QCryptographicHash_Delete(this.h, C.bool(this.isSubclass)) + C.QCryptographicHash_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcryptographichash.h b/qt6/gen_qcryptographichash.h index 333d4fdd..4c75624e 100644 --- a/qt6/gen_qcryptographichash.h +++ b/qt6/gen_qcryptographichash.h @@ -33,7 +33,7 @@ struct miqt_string QCryptographicHash_Result(const QCryptographicHash* self); QByteArrayView* QCryptographicHash_ResultView(const QCryptographicHash* self); struct miqt_string QCryptographicHash_Hash(QByteArrayView* data, int method); int QCryptographicHash_HashLength(int method); -void QCryptographicHash_Delete(QCryptographicHash* self, bool isSubclass); +void QCryptographicHash_Delete(QCryptographicHash* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qcursor.cpp b/qt6/gen_qcursor.cpp index fb87f7df..3bcb892f 100644 --- a/qt6/gen_qcursor.cpp +++ b/qt6/gen_qcursor.cpp @@ -120,11 +120,7 @@ void QCursor_SetPos3(QScreen* screen, QPoint* p) { QCursor::setPos(screen, *p); } -void QCursor_Delete(QCursor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCursor_Delete(QCursor* self) { + delete self; } diff --git a/qt6/gen_qcursor.go b/qt6/gen_qcursor.go index 4f41beab..8feab0d0 100644 --- a/qt6/gen_qcursor.go +++ b/qt6/gen_qcursor.go @@ -206,7 +206,7 @@ func QCursor_SetPos3(screen *QScreen, p *QPoint) { // Delete this object from C++ memory. func (this *QCursor) Delete() { - C.QCursor_Delete(this.h, C.bool(this.isSubclass)) + C.QCursor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qcursor.h b/qt6/gen_qcursor.h index bc6cef21..ef5fc162 100644 --- a/qt6/gen_qcursor.h +++ b/qt6/gen_qcursor.h @@ -56,7 +56,7 @@ void QCursor_SetPos(int x, int y); void QCursor_SetPos2(QScreen* screen, int x, int y); void QCursor_SetPosWithQPoint(QPoint* p); void QCursor_SetPos3(QScreen* screen, QPoint* p); -void QCursor_Delete(QCursor* self, bool isSubclass); +void QCursor_Delete(QCursor* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdatastream.cpp b/qt6/gen_qdatastream.cpp index 9bf35b27..dc534a8b 100644 --- a/qt6/gen_qdatastream.cpp +++ b/qt6/gen_qdatastream.cpp @@ -227,11 +227,7 @@ bool QDataStream_IsDeviceTransactionStarted(const QDataStream* self) { return self->isDeviceTransactionStarted(); } -void QDataStream_Delete(QDataStream* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDataStream_Delete(QDataStream* self) { + delete self; } diff --git a/qt6/gen_qdatastream.go b/qt6/gen_qdatastream.go index 3b4d1e55..56030ddf 100644 --- a/qt6/gen_qdatastream.go +++ b/qt6/gen_qdatastream.go @@ -349,7 +349,7 @@ func (this *QDataStream) IsDeviceTransactionStarted() bool { // Delete this object from C++ memory. func (this *QDataStream) Delete() { - C.QDataStream_Delete(this.h, C.bool(this.isSubclass)) + C.QDataStream_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdatastream.h b/qt6/gen_qdatastream.h index e612bdf3..307e618c 100644 --- a/qt6/gen_qdatastream.h +++ b/qt6/gen_qdatastream.h @@ -76,7 +76,7 @@ bool QDataStream_CommitTransaction(QDataStream* self); void QDataStream_RollbackTransaction(QDataStream* self); void QDataStream_AbortTransaction(QDataStream* self); bool QDataStream_IsDeviceTransactionStarted(const QDataStream* self); -void QDataStream_Delete(QDataStream* self, bool isSubclass); +void QDataStream_Delete(QDataStream* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdatawidgetmapper.cpp b/qt6/gen_qdatawidgetmapper.cpp index 0f8c8c1f..1694aac7 100644 --- a/qt6/gen_qdatawidgetmapper.cpp +++ b/qt6/gen_qdatawidgetmapper.cpp @@ -33,13 +33,13 @@ void miqt_exec_callback_QDataWidgetMapper_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQDataWidgetMapper : public virtual QDataWidgetMapper { +class MiqtVirtualQDataWidgetMapper final : public QDataWidgetMapper { public: MiqtVirtualQDataWidgetMapper(): QDataWidgetMapper() {}; MiqtVirtualQDataWidgetMapper(QObject* parent): QDataWidgetMapper(parent) {}; - virtual ~MiqtVirtualQDataWidgetMapper() = default; + virtual ~MiqtVirtualQDataWidgetMapper() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetCurrentIndex = 0; @@ -478,11 +478,7 @@ void QDataWidgetMapper_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQDataWidgetMapper*)(self) )->virtualbase_DisconnectNotify(signal); } -void QDataWidgetMapper_Delete(QDataWidgetMapper* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDataWidgetMapper_Delete(QDataWidgetMapper* self) { + delete self; } diff --git a/qt6/gen_qdatawidgetmapper.go b/qt6/gen_qdatawidgetmapper.go index 09cc23ca..aeded300 100644 --- a/qt6/gen_qdatawidgetmapper.go +++ b/qt6/gen_qdatawidgetmapper.go @@ -463,7 +463,7 @@ func miqt_exec_callback_QDataWidgetMapper_DisconnectNotify(self *C.QDataWidgetMa // Delete this object from C++ memory. func (this *QDataWidgetMapper) Delete() { - C.QDataWidgetMapper_Delete(this.h, C.bool(this.isSubclass)) + C.QDataWidgetMapper_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdatawidgetmapper.h b/qt6/gen_qdatawidgetmapper.h index 6d8ef35f..98667be4 100644 --- a/qt6/gen_qdatawidgetmapper.h +++ b/qt6/gen_qdatawidgetmapper.h @@ -92,7 +92,7 @@ void QDataWidgetMapper_override_virtual_ConnectNotify(void* self, intptr_t slot) void QDataWidgetMapper_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QDataWidgetMapper_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QDataWidgetMapper_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QDataWidgetMapper_Delete(QDataWidgetMapper* self, bool isSubclass); +void QDataWidgetMapper_Delete(QDataWidgetMapper* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdatetime.cpp b/qt6/gen_qdatetime.cpp index df2e291e..80acfd80 100644 --- a/qt6/gen_qdatetime.cpp +++ b/qt6/gen_qdatetime.cpp @@ -263,12 +263,8 @@ QDate* QDate_FromString34(struct miqt_string stringVal, struct miqt_string forma return new QDate(QDate::fromString(stringVal_QString, format_QString, *cal)); } -void QDate_Delete(QDate* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDate_Delete(QDate* self) { + delete self; } QTime* QTime_new() { @@ -409,12 +405,8 @@ bool QTime_IsValid4(int h, int m, int s, int ms) { return QTime::isValid(static_cast(h), static_cast(m), static_cast(s), static_cast(ms)); } -void QTime_Delete(QTime* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTime_Delete(QTime* self) { + delete self; } QDateTime* QDateTime_new() { @@ -704,11 +696,7 @@ QDateTime* QDateTime_FromSecsSinceEpoch3(long long secs, int spec, int offsetFro return new QDateTime(QDateTime::fromSecsSinceEpoch(static_cast(secs), static_cast(spec), static_cast(offsetFromUtc))); } -void QDateTime_Delete(QDateTime* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDateTime_Delete(QDateTime* self) { + delete self; } diff --git a/qt6/gen_qdatetime.go b/qt6/gen_qdatetime.go index 275cc089..86594a48 100644 --- a/qt6/gen_qdatetime.go +++ b/qt6/gen_qdatetime.go @@ -361,7 +361,7 @@ func QDate_FromString34(stringVal string, format string, cal QCalendar) *QDate { // Delete this object from C++ memory. func (this *QDate) Delete() { - C.QDate_Delete(this.h, C.bool(this.isSubclass)) + C.QDate_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -583,7 +583,7 @@ func QTime_IsValid4(h int, m int, s int, ms int) bool { // Delete this object from C++ memory. func (this *QTime) Delete() { - C.QTime_Delete(this.h, C.bool(this.isSubclass)) + C.QTime_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -991,7 +991,7 @@ func QDateTime_FromSecsSinceEpoch3(secs int64, spec TimeSpec, offsetFromUtc int) // Delete this object from C++ memory. func (this *QDateTime) Delete() { - C.QDateTime_Delete(this.h, C.bool(this.isSubclass)) + C.QDateTime_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdatetime.h b/qt6/gen_qdatetime.h index d4f426d9..d97a9821 100644 --- a/qt6/gen_qdatetime.h +++ b/qt6/gen_qdatetime.h @@ -80,7 +80,7 @@ struct miqt_string QDate_ToString1(const QDate* self, int format); struct miqt_string QDate_ToString22(const QDate* self, struct miqt_string format, QCalendar* cal); QDate* QDate_FromString23(struct miqt_string stringVal, int format); QDate* QDate_FromString34(struct miqt_string stringVal, struct miqt_string format, QCalendar* cal); -void QDate_Delete(QDate* self, bool isSubclass); +void QDate_Delete(QDate* self); QTime* QTime_new(); QTime* QTime_new2(int h, int m); @@ -110,7 +110,7 @@ struct miqt_string QTime_ToString1(const QTime* self, int f); bool QTime_SetHMS4(QTime* self, int h, int m, int s, int ms); QTime* QTime_FromString23(struct miqt_string stringVal, int format); bool QTime_IsValid4(int h, int m, int s, int ms); -void QTime_Delete(QTime* self, bool isSubclass); +void QTime_Delete(QTime* self); QDateTime* QDateTime_new(); QDateTime* QDateTime_new2(QDate* date, QTime* time); @@ -171,7 +171,7 @@ QDateTime* QDateTime_FromMSecsSinceEpoch22(long long msecs, int spec); QDateTime* QDateTime_FromMSecsSinceEpoch3(long long msecs, int spec, int offsetFromUtc); QDateTime* QDateTime_FromSecsSinceEpoch22(long long secs, int spec); QDateTime* QDateTime_FromSecsSinceEpoch3(long long secs, int spec, int offsetFromUtc); -void QDateTime_Delete(QDateTime* self, bool isSubclass); +void QDateTime_Delete(QDateTime* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdatetimeedit.cpp b/qt6/gen_qdatetimeedit.cpp index 0f41afed..205d61fa 100644 --- a/qt6/gen_qdatetimeedit.cpp +++ b/qt6/gen_qdatetimeedit.cpp @@ -106,7 +106,7 @@ void miqt_exec_callback_QDateEdit_InitStyleOption(void*, intptr_t, QStyleOptionS } /* extern C */ #endif -class MiqtVirtualQDateTimeEdit : public virtual QDateTimeEdit { +class MiqtVirtualQDateTimeEdit final : public QDateTimeEdit { public: MiqtVirtualQDateTimeEdit(QWidget* parent): QDateTimeEdit(parent) {}; @@ -118,7 +118,7 @@ public: MiqtVirtualQDateTimeEdit(QDate d, QWidget* parent): QDateTimeEdit(d, parent) {}; MiqtVirtualQDateTimeEdit(QTime t, QWidget* parent): QDateTimeEdit(t, parent) {}; - virtual ~MiqtVirtualQDateTimeEdit() = default; + virtual ~MiqtVirtualQDateTimeEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1406,15 +1406,11 @@ void QDateTimeEdit_virtualbase_ShowEvent(void* self, QShowEvent* event) { ( (MiqtVirtualQDateTimeEdit*)(self) )->virtualbase_ShowEvent(event); } -void QDateTimeEdit_Delete(QDateTimeEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDateTimeEdit_Delete(QDateTimeEdit* self) { + delete self; } -class MiqtVirtualQTimeEdit : public virtual QTimeEdit { +class MiqtVirtualQTimeEdit final : public QTimeEdit { public: MiqtVirtualQTimeEdit(QWidget* parent): QTimeEdit(parent) {}; @@ -1422,7 +1418,7 @@ public: MiqtVirtualQTimeEdit(QTime time): QTimeEdit(time) {}; MiqtVirtualQTimeEdit(QTime time, QWidget* parent): QTimeEdit(time, parent) {}; - virtual ~MiqtVirtualQTimeEdit() = default; + virtual ~MiqtVirtualQTimeEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -2037,15 +2033,11 @@ void QTimeEdit_virtualbase_InitStyleOption(const void* self, QStyleOptionSpinBox ( (const MiqtVirtualQTimeEdit*)(self) )->virtualbase_InitStyleOption(option); } -void QTimeEdit_Delete(QTimeEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimeEdit_Delete(QTimeEdit* self) { + delete self; } -class MiqtVirtualQDateEdit : public virtual QDateEdit { +class MiqtVirtualQDateEdit final : public QDateEdit { public: MiqtVirtualQDateEdit(QWidget* parent): QDateEdit(parent) {}; @@ -2053,7 +2045,7 @@ public: MiqtVirtualQDateEdit(QDate date): QDateEdit(date) {}; MiqtVirtualQDateEdit(QDate date, QWidget* parent): QDateEdit(date, parent) {}; - virtual ~MiqtVirtualQDateEdit() = default; + virtual ~MiqtVirtualQDateEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -2668,11 +2660,7 @@ void QDateEdit_virtualbase_InitStyleOption(const void* self, QStyleOptionSpinBox ( (const MiqtVirtualQDateEdit*)(self) )->virtualbase_InitStyleOption(option); } -void QDateEdit_Delete(QDateEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDateEdit_Delete(QDateEdit* self) { + delete self; } diff --git a/qt6/gen_qdatetimeedit.go b/qt6/gen_qdatetimeedit.go index 4667c80f..234f8178 100644 --- a/qt6/gen_qdatetimeedit.go +++ b/qt6/gen_qdatetimeedit.go @@ -1266,7 +1266,7 @@ func miqt_exec_callback_QDateTimeEdit_ShowEvent(self *C.QDateTimeEdit, cb C.intp // Delete this object from C++ memory. func (this *QDateTimeEdit) Delete() { - C.QDateTimeEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QDateTimeEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1865,7 +1865,7 @@ func miqt_exec_callback_QTimeEdit_InitStyleOption(self *C.QTimeEdit, cb C.intptr // Delete this object from C++ memory. func (this *QTimeEdit) Delete() { - C.QTimeEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QTimeEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2464,7 +2464,7 @@ func miqt_exec_callback_QDateEdit_InitStyleOption(self *C.QDateEdit, cb C.intptr // Delete this object from C++ memory. func (this *QDateEdit) Delete() { - C.QDateEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QDateEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdatetimeedit.h b/qt6/gen_qdatetimeedit.h index e2d62ed3..73097ec3 100644 --- a/qt6/gen_qdatetimeedit.h +++ b/qt6/gen_qdatetimeedit.h @@ -214,7 +214,7 @@ void QDateTimeEdit_override_virtual_TimerEvent(void* self, intptr_t slot); void QDateTimeEdit_virtualbase_TimerEvent(void* self, QTimerEvent* event); void QDateTimeEdit_override_virtual_ShowEvent(void* self, intptr_t slot); void QDateTimeEdit_virtualbase_ShowEvent(void* self, QShowEvent* event); -void QDateTimeEdit_Delete(QDateTimeEdit* self, bool isSubclass); +void QDateTimeEdit_Delete(QDateTimeEdit* self); QTimeEdit* QTimeEdit_new(QWidget* parent); QTimeEdit* QTimeEdit_new2(); @@ -260,7 +260,7 @@ void QTimeEdit_override_virtual_PaintEvent(void* self, intptr_t slot); void QTimeEdit_virtualbase_PaintEvent(void* self, QPaintEvent* event); void QTimeEdit_override_virtual_InitStyleOption(void* self, intptr_t slot); void QTimeEdit_virtualbase_InitStyleOption(const void* self, QStyleOptionSpinBox* option); -void QTimeEdit_Delete(QTimeEdit* self, bool isSubclass); +void QTimeEdit_Delete(QTimeEdit* self); QDateEdit* QDateEdit_new(QWidget* parent); QDateEdit* QDateEdit_new2(); @@ -306,7 +306,7 @@ void QDateEdit_override_virtual_PaintEvent(void* self, intptr_t slot); void QDateEdit_virtualbase_PaintEvent(void* self, QPaintEvent* event); void QDateEdit_override_virtual_InitStyleOption(void* self, intptr_t slot); void QDateEdit_virtualbase_InitStyleOption(const void* self, QStyleOptionSpinBox* option); -void QDateEdit_Delete(QDateEdit* self, bool isSubclass); +void QDateEdit_Delete(QDateEdit* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdeadlinetimer.cpp b/qt6/gen_qdeadlinetimer.cpp index 99f291eb..28ca69a9 100644 --- a/qt6/gen_qdeadlinetimer.cpp +++ b/qt6/gen_qdeadlinetimer.cpp @@ -147,11 +147,7 @@ QDeadlineTimer* QDeadlineTimer_Current1(int timerType) { return new QDeadlineTimer(QDeadlineTimer::current(static_cast(timerType))); } -void QDeadlineTimer_Delete(QDeadlineTimer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDeadlineTimer_Delete(QDeadlineTimer* self) { + delete self; } diff --git a/qt6/gen_qdeadlinetimer.go b/qt6/gen_qdeadlinetimer.go index a65e604d..48f9403d 100644 --- a/qt6/gen_qdeadlinetimer.go +++ b/qt6/gen_qdeadlinetimer.go @@ -216,7 +216,7 @@ func QDeadlineTimer_Current1(timerType TimerType) *QDeadlineTimer { // Delete this object from C++ memory. func (this *QDeadlineTimer) Delete() { - C.QDeadlineTimer_Delete(this.h, C.bool(this.isSubclass)) + C.QDeadlineTimer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdeadlinetimer.h b/qt6/gen_qdeadlinetimer.h index 8178c4fc..ae4f8759 100644 --- a/qt6/gen_qdeadlinetimer.h +++ b/qt6/gen_qdeadlinetimer.h @@ -52,7 +52,7 @@ void QDeadlineTimer_SetDeadline2(QDeadlineTimer* self, long long msecs, int time void QDeadlineTimer_SetPreciseDeadline2(QDeadlineTimer* self, long long secs, long long nsecs); void QDeadlineTimer_SetPreciseDeadline3(QDeadlineTimer* self, long long secs, long long nsecs, int typeVal); QDeadlineTimer* QDeadlineTimer_Current1(int timerType); -void QDeadlineTimer_Delete(QDeadlineTimer* self, bool isSubclass); +void QDeadlineTimer_Delete(QDeadlineTimer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdebug.cpp b/qt6/gen_qdebug.cpp index e391aeae..48e2ef2b 100644 --- a/qt6/gen_qdebug.cpp +++ b/qt6/gen_qdebug.cpp @@ -220,24 +220,16 @@ QDebug* QDebug_MaybeQuote1(QDebug* self, char c) { return &_ret; } -void QDebug_Delete(QDebug* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDebug_Delete(QDebug* self) { + delete self; } QDebugStateSaver* QDebugStateSaver_new(QDebug* dbg) { return new QDebugStateSaver(*dbg); } -void QDebugStateSaver_Delete(QDebugStateSaver* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDebugStateSaver_Delete(QDebugStateSaver* self) { + delete self; } QNoDebug* QNoDebug_Space(QNoDebug* self) { @@ -288,11 +280,7 @@ QNoDebug* QNoDebug_MaybeQuote1(QNoDebug* self, const char param1) { return &_ret; } -void QNoDebug_Delete(QNoDebug* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNoDebug_Delete(QNoDebug* self) { + delete self; } diff --git a/qt6/gen_qdebug.go b/qt6/gen_qdebug.go index 8f08cdd4..413d5dce 100644 --- a/qt6/gen_qdebug.go +++ b/qt6/gen_qdebug.go @@ -217,7 +217,7 @@ func (this *QDebug) MaybeQuote1(c int8) *QDebug { // Delete this object from C++ memory. func (this *QDebug) Delete() { - C.QDebug_Delete(this.h, C.bool(this.isSubclass)) + C.QDebug_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -272,7 +272,7 @@ func NewQDebugStateSaver(dbg *QDebug) *QDebugStateSaver { // Delete this object from C++ memory. func (this *QDebugStateSaver) Delete() { - C.QDebugStateSaver_Delete(this.h, C.bool(this.isSubclass)) + C.QDebugStateSaver_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -351,7 +351,7 @@ func (this *QNoDebug) MaybeQuote1(param1 int8) *QNoDebug { // Delete this object from C++ memory. func (this *QNoDebug) Delete() { - C.QNoDebug_Delete(this.h, C.bool(this.isSubclass)) + C.QNoDebug_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdebug.h b/qt6/gen_qdebug.h index 2947ab57..23d59ac9 100644 --- a/qt6/gen_qdebug.h +++ b/qt6/gen_qdebug.h @@ -68,10 +68,10 @@ QDebug* QDebug_OperatorShiftLeftWithQByteArray(QDebug* self, struct miqt_string QDebug* QDebug_OperatorShiftLeftWithQByteArrayView(QDebug* self, QByteArrayView* t); QDebug* QDebug_OperatorShiftLeftWithVoid(QDebug* self, const void* t); QDebug* QDebug_MaybeQuote1(QDebug* self, char c); -void QDebug_Delete(QDebug* self, bool isSubclass); +void QDebug_Delete(QDebug* self); QDebugStateSaver* QDebugStateSaver_new(QDebug* dbg); -void QDebugStateSaver_Delete(QDebugStateSaver* self, bool isSubclass); +void QDebugStateSaver_Delete(QDebugStateSaver* self); QNoDebug* QNoDebug_Space(QNoDebug* self); QNoDebug* QNoDebug_Nospace(QNoDebug* self); @@ -81,7 +81,7 @@ QNoDebug* QNoDebug_Noquote(QNoDebug* self); QNoDebug* QNoDebug_MaybeQuote(QNoDebug* self); QNoDebug* QNoDebug_Verbosity(QNoDebug* self, int param1); QNoDebug* QNoDebug_MaybeQuote1(QNoDebug* self, const char param1); -void QNoDebug_Delete(QNoDebug* self, bool isSubclass); +void QNoDebug_Delete(QNoDebug* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdesktopservices.cpp b/qt6/gen_qdesktopservices.cpp index fd2d46f5..e27a5a3c 100644 --- a/qt6/gen_qdesktopservices.cpp +++ b/qt6/gen_qdesktopservices.cpp @@ -29,11 +29,7 @@ void QDesktopServices_UnsetUrlHandler(struct miqt_string scheme) { QDesktopServices::unsetUrlHandler(scheme_QString); } -void QDesktopServices_Delete(QDesktopServices* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDesktopServices_Delete(QDesktopServices* self) { + delete self; } diff --git a/qt6/gen_qdesktopservices.go b/qt6/gen_qdesktopservices.go index df8276c6..858f4abb 100644 --- a/qt6/gen_qdesktopservices.go +++ b/qt6/gen_qdesktopservices.go @@ -70,7 +70,7 @@ func QDesktopServices_UnsetUrlHandler(scheme string) { // Delete this object from C++ memory. func (this *QDesktopServices) Delete() { - C.QDesktopServices_Delete(this.h, C.bool(this.isSubclass)) + C.QDesktopServices_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdesktopservices.h b/qt6/gen_qdesktopservices.h index 96ad11de..837afd13 100644 --- a/qt6/gen_qdesktopservices.h +++ b/qt6/gen_qdesktopservices.h @@ -27,7 +27,7 @@ typedef struct QUrl QUrl; bool QDesktopServices_OpenUrl(QUrl* url); void QDesktopServices_SetUrlHandler(struct miqt_string scheme, QObject* receiver, const char* method); void QDesktopServices_UnsetUrlHandler(struct miqt_string scheme); -void QDesktopServices_Delete(QDesktopServices* self, bool isSubclass); +void QDesktopServices_Delete(QDesktopServices* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdial.cpp b/qt6/gen_qdial.cpp index b1dc06a4..087aef30 100644 --- a/qt6/gen_qdial.cpp +++ b/qt6/gen_qdial.cpp @@ -41,13 +41,13 @@ void miqt_exec_callback_QDial_ChangeEvent(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQDial : public virtual QDial { +class MiqtVirtualQDial final : public QDial { public: MiqtVirtualQDial(QWidget* parent): QDial(parent) {}; MiqtVirtualQDial(): QDial() {}; - virtual ~MiqtVirtualQDial() = default; + virtual ~MiqtVirtualQDial() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -585,11 +585,7 @@ void QDial_virtualbase_ChangeEvent(void* self, QEvent* e) { ( (MiqtVirtualQDial*)(self) )->virtualbase_ChangeEvent(e); } -void QDial_Delete(QDial* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDial_Delete(QDial* self) { + delete self; } diff --git a/qt6/gen_qdial.go b/qt6/gen_qdial.go index e5d723f5..b034b914 100644 --- a/qt6/gen_qdial.go +++ b/qt6/gen_qdial.go @@ -518,7 +518,7 @@ func miqt_exec_callback_QDial_ChangeEvent(self *C.QDial, cb C.intptr_t, e *C.QEv // Delete this object from C++ memory. func (this *QDial) Delete() { - C.QDial_Delete(this.h, C.bool(this.isSubclass)) + C.QDial_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdial.h b/qt6/gen_qdial.h index a2fc98c2..c974fec2 100644 --- a/qt6/gen_qdial.h +++ b/qt6/gen_qdial.h @@ -101,7 +101,7 @@ void QDial_override_virtual_WheelEvent(void* self, intptr_t slot); void QDial_virtualbase_WheelEvent(void* self, QWheelEvent* e); void QDial_override_virtual_ChangeEvent(void* self, intptr_t slot); void QDial_virtualbase_ChangeEvent(void* self, QEvent* e); -void QDial_Delete(QDial* self, bool isSubclass); +void QDial_Delete(QDial* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdialog.cpp b/qt6/gen_qdialog.cpp index 4f1fee21..54b63f14 100644 --- a/qt6/gen_qdialog.cpp +++ b/qt6/gen_qdialog.cpp @@ -93,14 +93,14 @@ bool miqt_exec_callback_QDialog_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQDialog : public virtual QDialog { +class MiqtVirtualQDialog final : public QDialog { public: MiqtVirtualQDialog(QWidget* parent): QDialog(parent) {}; MiqtVirtualQDialog(): QDialog() {}; MiqtVirtualQDialog(QWidget* parent, Qt::WindowFlags f): QDialog(parent, f) {}; - virtual ~MiqtVirtualQDialog() = default; + virtual ~MiqtVirtualQDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -1735,11 +1735,7 @@ bool QDialog_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQDialog*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QDialog_Delete(QDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDialog_Delete(QDialog* self) { + delete self; } diff --git a/qt6/gen_qdialog.go b/qt6/gen_qdialog.go index cda343e8..6da5b9f7 100644 --- a/qt6/gen_qdialog.go +++ b/qt6/gen_qdialog.go @@ -1474,7 +1474,7 @@ func miqt_exec_callback_QDialog_FocusNextPrevChild(self *C.QDialog, cb C.intptr_ // Delete this object from C++ memory. func (this *QDialog) Delete() { - C.QDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdialog.h b/qt6/gen_qdialog.h index 4446b57a..c3600cb6 100644 --- a/qt6/gen_qdialog.h +++ b/qt6/gen_qdialog.h @@ -206,7 +206,7 @@ void QDialog_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QDialog_virtualbase_InputMethodQuery(const void* self, int param1); void QDialog_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QDialog_virtualbase_FocusNextPrevChild(void* self, bool next); -void QDialog_Delete(QDialog* self, bool isSubclass); +void QDialog_Delete(QDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdialogbuttonbox.cpp b/qt6/gen_qdialogbuttonbox.cpp index b5626baa..a947bf09 100644 --- a/qt6/gen_qdialogbuttonbox.cpp +++ b/qt6/gen_qdialogbuttonbox.cpp @@ -91,7 +91,7 @@ bool miqt_exec_callback_QDialogButtonBox_FocusNextPrevChild(void*, intptr_t, boo } /* extern C */ #endif -class MiqtVirtualQDialogButtonBox : public virtual QDialogButtonBox { +class MiqtVirtualQDialogButtonBox final : public QDialogButtonBox { public: MiqtVirtualQDialogButtonBox(QWidget* parent): QDialogButtonBox(parent) {}; @@ -103,7 +103,7 @@ public: MiqtVirtualQDialogButtonBox(QDialogButtonBox::StandardButtons buttons, QWidget* parent): QDialogButtonBox(buttons, parent) {}; MiqtVirtualQDialogButtonBox(QDialogButtonBox::StandardButtons buttons, Qt::Orientation orientation, QWidget* parent): QDialogButtonBox(buttons, orientation, parent) {}; - virtual ~MiqtVirtualQDialogButtonBox() = default; + virtual ~MiqtVirtualQDialogButtonBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ChangeEvent = 0; @@ -1603,11 +1603,7 @@ bool QDialogButtonBox_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQDialogButtonBox*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QDialogButtonBox_Delete(QDialogButtonBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDialogButtonBox_Delete(QDialogButtonBox* self) { + delete self; } diff --git a/qt6/gen_qdialogbuttonbox.go b/qt6/gen_qdialogbuttonbox.go index a24758f9..f18e99c7 100644 --- a/qt6/gen_qdialogbuttonbox.go +++ b/qt6/gen_qdialogbuttonbox.go @@ -1440,7 +1440,7 @@ func miqt_exec_callback_QDialogButtonBox_FocusNextPrevChild(self *C.QDialogButto // Delete this object from C++ memory. func (this *QDialogButtonBox) Delete() { - C.QDialogButtonBox_Delete(this.h, C.bool(this.isSubclass)) + C.QDialogButtonBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdialogbuttonbox.h b/qt6/gen_qdialogbuttonbox.h index 18e9ed0a..abcfbc56 100644 --- a/qt6/gen_qdialogbuttonbox.h +++ b/qt6/gen_qdialogbuttonbox.h @@ -203,7 +203,7 @@ void QDialogButtonBox_override_virtual_InputMethodQuery(void* self, intptr_t slo QVariant* QDialogButtonBox_virtualbase_InputMethodQuery(const void* self, int param1); void QDialogButtonBox_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QDialogButtonBox_virtualbase_FocusNextPrevChild(void* self, bool next); -void QDialogButtonBox_Delete(QDialogButtonBox* self, bool isSubclass); +void QDialogButtonBox_Delete(QDialogButtonBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdir.cpp b/qt6/gen_qdir.cpp index c3900513..3d367716 100644 --- a/qt6/gen_qdir.cpp +++ b/qt6/gen_qdir.cpp @@ -753,11 +753,7 @@ struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList3(const QDir* self, str return _out; } -void QDir_Delete(QDir* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDir_Delete(QDir* self) { + delete self; } diff --git a/qt6/gen_qdir.go b/qt6/gen_qdir.go index 9f7fe522..ca864132 100644 --- a/qt6/gen_qdir.go +++ b/qt6/gen_qdir.go @@ -862,7 +862,7 @@ func (this *QDir) EntryInfoList3(nameFilters []string, filters QDir__Filter, sor // Delete this object from C++ memory. func (this *QDir) Delete() { - C.QDir_Delete(this.h, C.bool(this.isSubclass)) + C.QDir_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdir.h b/qt6/gen_qdir.h index 3f4b988d..d80c8498 100644 --- a/qt6/gen_qdir.h +++ b/qt6/gen_qdir.h @@ -105,7 +105,7 @@ struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList1(const QDir* self, int struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList2(const QDir* self, int filters, int sort); struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList22(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters); struct miqt_array /* of QFileInfo* */ QDir_EntryInfoList3(const QDir* self, struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort); -void QDir_Delete(QDir* self, bool isSubclass); +void QDir_Delete(QDir* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdiriterator.cpp b/qt6/gen_qdiriterator.cpp index c305bdb9..34cdc571 100644 --- a/qt6/gen_qdiriterator.cpp +++ b/qt6/gen_qdiriterator.cpp @@ -136,11 +136,7 @@ struct miqt_string QDirIterator_Path(const QDirIterator* self) { return _ms; } -void QDirIterator_Delete(QDirIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDirIterator_Delete(QDirIterator* self) { + delete self; } diff --git a/qt6/gen_qdiriterator.go b/qt6/gen_qdiriterator.go index 5c667d9d..d7685ec0 100644 --- a/qt6/gen_qdiriterator.go +++ b/qt6/gen_qdiriterator.go @@ -230,7 +230,7 @@ func (this *QDirIterator) Path() string { // Delete this object from C++ memory. func (this *QDirIterator) Delete() { - C.QDirIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QDirIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdiriterator.h b/qt6/gen_qdiriterator.h index 46399d2d..d045826c 100644 --- a/qt6/gen_qdiriterator.h +++ b/qt6/gen_qdiriterator.h @@ -40,7 +40,7 @@ struct miqt_string QDirIterator_FileName(const QDirIterator* self); struct miqt_string QDirIterator_FilePath(const QDirIterator* self); QFileInfo* QDirIterator_FileInfo(const QDirIterator* self); struct miqt_string QDirIterator_Path(const QDirIterator* self); -void QDirIterator_Delete(QDirIterator* self, bool isSubclass); +void QDirIterator_Delete(QDirIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdockwidget.cpp b/qt6/gen_qdockwidget.cpp index d34c966c..cfe45be2 100644 --- a/qt6/gen_qdockwidget.cpp +++ b/qt6/gen_qdockwidget.cpp @@ -92,7 +92,7 @@ bool miqt_exec_callback_QDockWidget_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQDockWidget : public virtual QDockWidget { +class MiqtVirtualQDockWidget final : public QDockWidget { public: MiqtVirtualQDockWidget(QWidget* parent): QDockWidget(parent) {}; @@ -102,7 +102,7 @@ public: MiqtVirtualQDockWidget(const QString& title, QWidget* parent, Qt::WindowFlags flags): QDockWidget(title, parent, flags) {}; MiqtVirtualQDockWidget(QWidget* parent, Qt::WindowFlags flags): QDockWidget(parent, flags) {}; - virtual ~MiqtVirtualQDockWidget() = default; + virtual ~MiqtVirtualQDockWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ChangeEvent = 0; @@ -1622,11 +1622,7 @@ bool QDockWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQDockWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QDockWidget_Delete(QDockWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDockWidget_Delete(QDockWidget* self) { + delete self; } diff --git a/qt6/gen_qdockwidget.go b/qt6/gen_qdockwidget.go index 9384555b..72586d6f 100644 --- a/qt6/gen_qdockwidget.go +++ b/qt6/gen_qdockwidget.go @@ -1429,7 +1429,7 @@ func miqt_exec_callback_QDockWidget_FocusNextPrevChild(self *C.QDockWidget, cb C // Delete this object from C++ memory. func (this *QDockWidget) Delete() { - C.QDockWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QDockWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdockwidget.h b/qt6/gen_qdockwidget.h index 15b19057..a82371f3 100644 --- a/qt6/gen_qdockwidget.h +++ b/qt6/gen_qdockwidget.h @@ -205,7 +205,7 @@ void QDockWidget_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QDockWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QDockWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QDockWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QDockWidget_Delete(QDockWidget* self, bool isSubclass); +void QDockWidget_Delete(QDockWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdrag.cpp b/qt6/gen_qdrag.cpp index 88fa302a..ff2d5828 100644 --- a/qt6/gen_qdrag.cpp +++ b/qt6/gen_qdrag.cpp @@ -31,12 +31,12 @@ void miqt_exec_callback_QDrag_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQDrag : public virtual QDrag { +class MiqtVirtualQDrag final : public QDrag { public: MiqtVirtualQDrag(QObject* dragSource): QDrag(dragSource) {}; - virtual ~MiqtVirtualQDrag() = default; + virtual ~MiqtVirtualQDrag() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -408,11 +408,7 @@ void QDrag_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQDrag*)(self) )->virtualbase_DisconnectNotify(signal); } -void QDrag_Delete(QDrag* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDrag_Delete(QDrag* self) { + delete self; } diff --git a/qt6/gen_qdrag.go b/qt6/gen_qdrag.go index 62508c2e..6cd3cb74 100644 --- a/qt6/gen_qdrag.go +++ b/qt6/gen_qdrag.go @@ -400,7 +400,7 @@ func miqt_exec_callback_QDrag_DisconnectNotify(self *C.QDrag, cb C.intptr_t, sig // Delete this object from C++ memory. func (this *QDrag) Delete() { - C.QDrag_Delete(this.h, C.bool(this.isSubclass)) + C.QDrag_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdrag.h b/qt6/gen_qdrag.h index 0e775cac..6e3193ef 100644 --- a/qt6/gen_qdrag.h +++ b/qt6/gen_qdrag.h @@ -79,7 +79,7 @@ void QDrag_override_virtual_ConnectNotify(void* self, intptr_t slot); void QDrag_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QDrag_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QDrag_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QDrag_Delete(QDrag* self, bool isSubclass); +void QDrag_Delete(QDrag* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qdrawutil.cpp b/qt6/gen_qdrawutil.cpp index a4c6a62f..35c83287 100644 --- a/qt6/gen_qdrawutil.cpp +++ b/qt6/gen_qdrawutil.cpp @@ -26,11 +26,7 @@ QTileRules* QTileRules_new4(int rule) { return new QTileRules(static_cast(rule)); } -void QTileRules_Delete(QTileRules* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTileRules_Delete(QTileRules* self) { + delete self; } diff --git a/qt6/gen_qdrawutil.go b/qt6/gen_qdrawutil.go index db0e1e3f..bd754d41 100644 --- a/qt6/gen_qdrawutil.go +++ b/qt6/gen_qdrawutil.go @@ -98,7 +98,7 @@ func NewQTileRules4(rule TileRule) *QTileRules { // Delete this object from C++ memory. func (this *QTileRules) Delete() { - C.QTileRules_Delete(this.h, C.bool(this.isSubclass)) + C.QTileRules_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qdrawutil.h b/qt6/gen_qdrawutil.h index 0ff49da5..062edf80 100644 --- a/qt6/gen_qdrawutil.h +++ b/qt6/gen_qdrawutil.h @@ -24,7 +24,7 @@ QTileRules* QTileRules_new(int horizontalRule, int verticalRule); QTileRules* QTileRules_new2(); QTileRules* QTileRules_new3(QTileRules* param1); QTileRules* QTileRules_new4(int rule); -void QTileRules_Delete(QTileRules* self, bool isSubclass); +void QTileRules_Delete(QTileRules* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qeasingcurve.cpp b/qt6/gen_qeasingcurve.cpp index f767a942..2f738806 100644 --- a/qt6/gen_qeasingcurve.cpp +++ b/qt6/gen_qeasingcurve.cpp @@ -102,11 +102,7 @@ double QEasingCurve_ValueForProgress(const QEasingCurve* self, double progress) return static_cast(_ret); } -void QEasingCurve_Delete(QEasingCurve* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEasingCurve_Delete(QEasingCurve* self) { + delete self; } diff --git a/qt6/gen_qeasingcurve.go b/qt6/gen_qeasingcurve.go index 2c770706..ae300006 100644 --- a/qt6/gen_qeasingcurve.go +++ b/qt6/gen_qeasingcurve.go @@ -198,7 +198,7 @@ func (this *QEasingCurve) ValueForProgress(progress float64) float64 { // Delete this object from C++ memory. func (this *QEasingCurve) Delete() { - C.QEasingCurve_Delete(this.h, C.bool(this.isSubclass)) + C.QEasingCurve_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qeasingcurve.h b/qt6/gen_qeasingcurve.h index bea9efa6..01eb631b 100644 --- a/qt6/gen_qeasingcurve.h +++ b/qt6/gen_qeasingcurve.h @@ -41,7 +41,7 @@ struct miqt_array /* of QPointF* */ QEasingCurve_ToCubicSpline(const QEasingCur int QEasingCurve_Type(const QEasingCurve* self); void QEasingCurve_SetType(QEasingCurve* self, int typeVal); double QEasingCurve_ValueForProgress(const QEasingCurve* self, double progress); -void QEasingCurve_Delete(QEasingCurve* self, bool isSubclass); +void QEasingCurve_Delete(QEasingCurve* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qelapsedtimer.cpp b/qt6/gen_qelapsedtimer.cpp index 3eba6453..0aa54d90 100644 --- a/qt6/gen_qelapsedtimer.cpp +++ b/qt6/gen_qelapsedtimer.cpp @@ -69,11 +69,7 @@ long long QElapsedTimer_SecsTo(const QElapsedTimer* self, QElapsedTimer* other) return static_cast(_ret); } -void QElapsedTimer_Delete(QElapsedTimer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QElapsedTimer_Delete(QElapsedTimer* self) { + delete self; } diff --git a/qt6/gen_qelapsedtimer.go b/qt6/gen_qelapsedtimer.go index 31ac480f..c7bf5a20 100644 --- a/qt6/gen_qelapsedtimer.go +++ b/qt6/gen_qelapsedtimer.go @@ -113,7 +113,7 @@ func (this *QElapsedTimer) SecsTo(other *QElapsedTimer) int64 { // Delete this object from C++ memory. func (this *QElapsedTimer) Delete() { - C.QElapsedTimer_Delete(this.h, C.bool(this.isSubclass)) + C.QElapsedTimer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qelapsedtimer.h b/qt6/gen_qelapsedtimer.h index 8577b212..fdbff2d2 100644 --- a/qt6/gen_qelapsedtimer.h +++ b/qt6/gen_qelapsedtimer.h @@ -33,7 +33,7 @@ bool QElapsedTimer_HasExpired(const QElapsedTimer* self, long long timeout); long long QElapsedTimer_MsecsSinceReference(const QElapsedTimer* self); long long QElapsedTimer_MsecsTo(const QElapsedTimer* self, QElapsedTimer* other); long long QElapsedTimer_SecsTo(const QElapsedTimer* self, QElapsedTimer* other); -void QElapsedTimer_Delete(QElapsedTimer* self, bool isSubclass); +void QElapsedTimer_Delete(QElapsedTimer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qerrormessage.cpp b/qt6/gen_qerrormessage.cpp index f08a548c..31e8d154 100644 --- a/qt6/gen_qerrormessage.cpp +++ b/qt6/gen_qerrormessage.cpp @@ -40,13 +40,13 @@ bool miqt_exec_callback_QErrorMessage_EventFilter(void*, intptr_t, QObject*, QEv } /* extern C */ #endif -class MiqtVirtualQErrorMessage : public virtual QErrorMessage { +class MiqtVirtualQErrorMessage final : public QErrorMessage { public: MiqtVirtualQErrorMessage(QWidget* parent): QErrorMessage(parent) {}; MiqtVirtualQErrorMessage(): QErrorMessage() {}; - virtual ~MiqtVirtualQErrorMessage() = default; + virtual ~MiqtVirtualQErrorMessage() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Done = 0; @@ -589,11 +589,7 @@ bool QErrorMessage_virtualbase_EventFilter(void* self, QObject* param1, QEvent* return ( (MiqtVirtualQErrorMessage*)(self) )->virtualbase_EventFilter(param1, param2); } -void QErrorMessage_Delete(QErrorMessage* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QErrorMessage_Delete(QErrorMessage* self) { + delete self; } diff --git a/qt6/gen_qerrormessage.go b/qt6/gen_qerrormessage.go index 0c74fbbb..8ea16e34 100644 --- a/qt6/gen_qerrormessage.go +++ b/qt6/gen_qerrormessage.go @@ -520,7 +520,7 @@ func miqt_exec_callback_QErrorMessage_EventFilter(self *C.QErrorMessage, cb C.in // Delete this object from C++ memory. func (this *QErrorMessage) Delete() { - C.QErrorMessage_Delete(this.h, C.bool(this.isSubclass)) + C.QErrorMessage_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qerrormessage.h b/qt6/gen_qerrormessage.h index 93c48f71..65fe081d 100644 --- a/qt6/gen_qerrormessage.h +++ b/qt6/gen_qerrormessage.h @@ -87,7 +87,7 @@ void QErrorMessage_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QErrorMessage_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QErrorMessage_override_virtual_EventFilter(void* self, intptr_t slot); bool QErrorMessage_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QErrorMessage_Delete(QErrorMessage* self, bool isSubclass); +void QErrorMessage_Delete(QErrorMessage* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qevent.cpp b/qt6/gen_qevent.cpp index eeb343dc..aa3fb26d 100644 --- a/qt6/gen_qevent.cpp +++ b/qt6/gen_qevent.cpp @@ -170,13 +170,13 @@ void miqt_exec_callback_QApplicationStateChangeEvent_SetAccepted(void*, intptr_t } /* extern C */ #endif -class MiqtVirtualQInputEvent : public virtual QInputEvent { +class MiqtVirtualQInputEvent final : public QInputEvent { public: MiqtVirtualQInputEvent(QEvent::Type typeVal, const QInputDevice* m_dev): QInputEvent(typeVal, m_dev) {}; MiqtVirtualQInputEvent(QEvent::Type typeVal, const QInputDevice* m_dev, Qt::KeyboardModifiers modifiers): QInputEvent(typeVal, m_dev, modifiers) {}; - virtual ~MiqtVirtualQInputEvent() = default; + virtual ~MiqtVirtualQInputEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -318,22 +318,18 @@ void QInputEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQInputEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QInputEvent_Delete(QInputEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInputEvent_Delete(QInputEvent* self) { + delete self; } -class MiqtVirtualQPointerEvent : public virtual QPointerEvent { +class MiqtVirtualQPointerEvent final : public QPointerEvent { public: MiqtVirtualQPointerEvent(QEvent::Type typeVal, const QPointingDevice* dev): QPointerEvent(typeVal, dev) {}; MiqtVirtualQPointerEvent(QEvent::Type typeVal, const QPointingDevice* dev, Qt::KeyboardModifiers modifiers): QPointerEvent(typeVal, dev, modifiers) {}; MiqtVirtualQPointerEvent(QEvent::Type typeVal, const QPointingDevice* dev, Qt::KeyboardModifiers modifiers, const QList& points): QPointerEvent(typeVal, dev, modifiers, points) {}; - virtual ~MiqtVirtualQPointerEvent() = default; + virtual ~MiqtVirtualQPointerEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -633,12 +629,8 @@ void QPointerEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQPointerEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QPointerEvent_Delete(QPointerEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPointerEvent_Delete(QPointerEvent* self) { + delete self; } void QSinglePointEvent_virtbase(QSinglePointEvent* src, QPointerEvent** outptr_QPointerEvent) { @@ -691,21 +683,17 @@ void QSinglePointEvent_SetExclusivePointGrabber(QSinglePointEvent* self, QObject self->setExclusivePointGrabber(exclusiveGrabber); } -void QSinglePointEvent_Delete(QSinglePointEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSinglePointEvent_Delete(QSinglePointEvent* self) { + delete self; } -class MiqtVirtualQEnterEvent : public virtual QEnterEvent { +class MiqtVirtualQEnterEvent final : public QEnterEvent { public: MiqtVirtualQEnterEvent(const QPointF& localPos, const QPointF& scenePos, const QPointF& globalPos): QEnterEvent(localPos, scenePos, globalPos) {}; MiqtVirtualQEnterEvent(const QPointF& localPos, const QPointF& scenePos, const QPointF& globalPos, const QPointingDevice* device): QEnterEvent(localPos, scenePos, globalPos, device) {}; - virtual ~MiqtVirtualQEnterEvent() = default; + virtual ~MiqtVirtualQEnterEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -881,15 +869,11 @@ bool QEnterEvent_virtualbase_IsEndEvent(const void* self) { return ( (const MiqtVirtualQEnterEvent*)(self) )->virtualbase_IsEndEvent(); } -void QEnterEvent_Delete(QEnterEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEnterEvent_Delete(QEnterEvent* self) { + delete self; } -class MiqtVirtualQMouseEvent : public virtual QMouseEvent { +class MiqtVirtualQMouseEvent final : public QMouseEvent { public: MiqtVirtualQMouseEvent(QEvent::Type typeVal, const QPointF& localPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers): QMouseEvent(typeVal, localPos, button, buttons, modifiers) {}; @@ -901,7 +885,7 @@ public: MiqtVirtualQMouseEvent(QEvent::Type typeVal, const QPointF& localPos, const QPointF& scenePos, const QPointF& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, const QPointingDevice* device): QMouseEvent(typeVal, localPos, scenePos, globalPos, button, buttons, modifiers, device) {}; MiqtVirtualQMouseEvent(QEvent::Type typeVal, const QPointF& localPos, const QPointF& scenePos, const QPointF& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::MouseEventSource source, const QPointingDevice* device): QMouseEvent(typeVal, localPos, scenePos, globalPos, button, buttons, modifiers, source, device) {}; - virtual ~MiqtVirtualQMouseEvent() = default; + virtual ~MiqtVirtualQMouseEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -1111,15 +1095,11 @@ bool QMouseEvent_virtualbase_IsEndEvent(const void* self) { return ( (const MiqtVirtualQMouseEvent*)(self) )->virtualbase_IsEndEvent(); } -void QMouseEvent_Delete(QMouseEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMouseEvent_Delete(QMouseEvent* self) { + delete self; } -class MiqtVirtualQHoverEvent : public virtual QHoverEvent { +class MiqtVirtualQHoverEvent final : public QHoverEvent { public: MiqtVirtualQHoverEvent(QEvent::Type typeVal, const QPointF& scenePos, const QPointF& globalPos, const QPointF& oldPos): QHoverEvent(typeVal, scenePos, globalPos, oldPos) {}; @@ -1129,7 +1109,7 @@ public: MiqtVirtualQHoverEvent(QEvent::Type typeVal, const QPointF& pos, const QPointF& oldPos, Qt::KeyboardModifiers modifiers): QHoverEvent(typeVal, pos, oldPos, modifiers) {}; MiqtVirtualQHoverEvent(QEvent::Type typeVal, const QPointF& pos, const QPointF& oldPos, Qt::KeyboardModifiers modifiers, const QPointingDevice* device): QHoverEvent(typeVal, pos, oldPos, modifiers, device) {}; - virtual ~MiqtVirtualQHoverEvent() = default; + virtual ~MiqtVirtualQHoverEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -1305,22 +1285,18 @@ bool QHoverEvent_virtualbase_IsEndEvent(const void* self) { return ( (const MiqtVirtualQHoverEvent*)(self) )->virtualbase_IsEndEvent(); } -void QHoverEvent_Delete(QHoverEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHoverEvent_Delete(QHoverEvent* self) { + delete self; } -class MiqtVirtualQWheelEvent : public virtual QWheelEvent { +class MiqtVirtualQWheelEvent final : public QWheelEvent { public: MiqtVirtualQWheelEvent(const QPointF& pos, const QPointF& globalPos, QPoint pixelDelta, QPoint angleDelta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::ScrollPhase phase, bool inverted): QWheelEvent(pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted) {}; MiqtVirtualQWheelEvent(const QPointF& pos, const QPointF& globalPos, QPoint pixelDelta, QPoint angleDelta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::ScrollPhase phase, bool inverted, Qt::MouseEventSource source): QWheelEvent(pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, source) {}; MiqtVirtualQWheelEvent(const QPointF& pos, const QPointF& globalPos, QPoint pixelDelta, QPoint angleDelta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::ScrollPhase phase, bool inverted, Qt::MouseEventSource source, const QPointingDevice* device): QWheelEvent(pos, globalPos, pixelDelta, angleDelta, buttons, modifiers, phase, inverted, source, device) {}; - virtual ~MiqtVirtualQWheelEvent() = default; + virtual ~MiqtVirtualQWheelEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -1506,20 +1482,16 @@ bool QWheelEvent_virtualbase_IsEndEvent(const void* self) { return ( (const MiqtVirtualQWheelEvent*)(self) )->virtualbase_IsEndEvent(); } -void QWheelEvent_Delete(QWheelEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWheelEvent_Delete(QWheelEvent* self) { + delete self; } -class MiqtVirtualQTabletEvent : public virtual QTabletEvent { +class MiqtVirtualQTabletEvent final : public QTabletEvent { public: MiqtVirtualQTabletEvent(QEvent::Type t, const QPointingDevice* device, const QPointF& pos, const QPointF& globalPos, qreal pressure, float xTilt, float yTilt, float tangentialPressure, qreal rotation, float z, Qt::KeyboardModifiers keyState, Qt::MouseButton button, Qt::MouseButtons buttons): QTabletEvent(t, device, pos, globalPos, pressure, xTilt, yTilt, tangentialPressure, rotation, z, keyState, button, buttons) {}; - virtual ~MiqtVirtualQTabletEvent() = default; + virtual ~MiqtVirtualQTabletEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -1732,22 +1704,18 @@ bool QTabletEvent_virtualbase_IsEndEvent(const void* self) { return ( (const MiqtVirtualQTabletEvent*)(self) )->virtualbase_IsEndEvent(); } -void QTabletEvent_Delete(QTabletEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTabletEvent_Delete(QTabletEvent* self) { + delete self; } -class MiqtVirtualQNativeGestureEvent : public virtual QNativeGestureEvent { +class MiqtVirtualQNativeGestureEvent final : public QNativeGestureEvent { public: MiqtVirtualQNativeGestureEvent(Qt::NativeGestureType typeVal, const QPointingDevice* dev, const QPointF& localPos, const QPointF& scenePos, const QPointF& globalPos, qreal value, quint64 sequenceId, quint64 intArgument): QNativeGestureEvent(typeVal, dev, localPos, scenePos, globalPos, value, sequenceId, intArgument) {}; MiqtVirtualQNativeGestureEvent(Qt::NativeGestureType typeVal, const QPointingDevice* dev, int fingerCount, const QPointF& localPos, const QPointF& scenePos, const QPointF& globalPos, qreal value, const QPointF& delta): QNativeGestureEvent(typeVal, dev, fingerCount, localPos, scenePos, globalPos, value, delta) {}; MiqtVirtualQNativeGestureEvent(Qt::NativeGestureType typeVal, const QPointingDevice* dev, int fingerCount, const QPointF& localPos, const QPointF& scenePos, const QPointF& globalPos, qreal value, const QPointF& delta, quint64 sequenceId): QNativeGestureEvent(typeVal, dev, fingerCount, localPos, scenePos, globalPos, value, delta, sequenceId) {}; - virtual ~MiqtVirtualQNativeGestureEvent() = default; + virtual ~MiqtVirtualQNativeGestureEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -1929,15 +1897,11 @@ bool QNativeGestureEvent_virtualbase_IsEndEvent(const void* self) { return ( (const MiqtVirtualQNativeGestureEvent*)(self) )->virtualbase_IsEndEvent(); } -void QNativeGestureEvent_Delete(QNativeGestureEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNativeGestureEvent_Delete(QNativeGestureEvent* self) { + delete self; } -class MiqtVirtualQKeyEvent : public virtual QKeyEvent { +class MiqtVirtualQKeyEvent final : public QKeyEvent { public: MiqtVirtualQKeyEvent(QEvent::Type typeVal, int key, Qt::KeyboardModifiers modifiers): QKeyEvent(typeVal, key, modifiers) {}; @@ -1950,7 +1914,7 @@ public: MiqtVirtualQKeyEvent(QEvent::Type typeVal, int key, Qt::KeyboardModifiers modifiers, quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers, const QString& text, bool autorep, quint16 count): QKeyEvent(typeVal, key, modifiers, nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorep, count) {}; MiqtVirtualQKeyEvent(QEvent::Type typeVal, int key, Qt::KeyboardModifiers modifiers, quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers, const QString& text, bool autorep, quint16 count, const QInputDevice* device): QKeyEvent(typeVal, key, modifiers, nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorep, count, device) {}; - virtual ~MiqtVirtualQKeyEvent() = default; + virtual ~MiqtVirtualQKeyEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -2119,21 +2083,17 @@ void QKeyEvent_virtualbase_SetTimestamp(void* self, unsigned long long timestamp ( (MiqtVirtualQKeyEvent*)(self) )->virtualbase_SetTimestamp(timestamp); } -void QKeyEvent_Delete(QKeyEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QKeyEvent_Delete(QKeyEvent* self) { + delete self; } -class MiqtVirtualQFocusEvent : public virtual QFocusEvent { +class MiqtVirtualQFocusEvent final : public QFocusEvent { public: MiqtVirtualQFocusEvent(QEvent::Type typeVal): QFocusEvent(typeVal) {}; MiqtVirtualQFocusEvent(QEvent::Type typeVal, Qt::FocusReason reason): QFocusEvent(typeVal, reason) {}; - virtual ~MiqtVirtualQFocusEvent() = default; + virtual ~MiqtVirtualQFocusEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -2228,21 +2188,17 @@ void QFocusEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQFocusEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QFocusEvent_Delete(QFocusEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFocusEvent_Delete(QFocusEvent* self) { + delete self; } -class MiqtVirtualQPaintEvent : public virtual QPaintEvent { +class MiqtVirtualQPaintEvent final : public QPaintEvent { public: MiqtVirtualQPaintEvent(const QRegion& paintRegion): QPaintEvent(paintRegion) {}; MiqtVirtualQPaintEvent(const QRect& paintRect): QPaintEvent(paintRect) {}; - virtual ~MiqtVirtualQPaintEvent() = default; + virtual ~MiqtVirtualQPaintEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -2336,20 +2292,16 @@ void QPaintEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQPaintEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QPaintEvent_Delete(QPaintEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPaintEvent_Delete(QPaintEvent* self) { + delete self; } -class MiqtVirtualQMoveEvent : public virtual QMoveEvent { +class MiqtVirtualQMoveEvent final : public QMoveEvent { public: MiqtVirtualQMoveEvent(const QPoint& pos, const QPoint& oldPos): QMoveEvent(pos, oldPos) {}; - virtual ~MiqtVirtualQMoveEvent() = default; + virtual ~MiqtVirtualQMoveEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -2439,20 +2391,16 @@ void QMoveEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQMoveEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QMoveEvent_Delete(QMoveEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMoveEvent_Delete(QMoveEvent* self) { + delete self; } -class MiqtVirtualQExposeEvent : public virtual QExposeEvent { +class MiqtVirtualQExposeEvent final : public QExposeEvent { public: MiqtVirtualQExposeEvent(const QRegion& m_region): QExposeEvent(m_region) {}; - virtual ~MiqtVirtualQExposeEvent() = default; + virtual ~MiqtVirtualQExposeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -2536,20 +2484,16 @@ void QExposeEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQExposeEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QExposeEvent_Delete(QExposeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QExposeEvent_Delete(QExposeEvent* self) { + delete self; } -class MiqtVirtualQPlatformSurfaceEvent : public virtual QPlatformSurfaceEvent { +class MiqtVirtualQPlatformSurfaceEvent final : public QPlatformSurfaceEvent { public: MiqtVirtualQPlatformSurfaceEvent(QPlatformSurfaceEvent::SurfaceEventType surfaceEventType): QPlatformSurfaceEvent(surfaceEventType) {}; - virtual ~MiqtVirtualQPlatformSurfaceEvent() = default; + virtual ~MiqtVirtualQPlatformSurfaceEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -2632,20 +2576,16 @@ void QPlatformSurfaceEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQPlatformSurfaceEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QPlatformSurfaceEvent_Delete(QPlatformSurfaceEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPlatformSurfaceEvent_Delete(QPlatformSurfaceEvent* self) { + delete self; } -class MiqtVirtualQResizeEvent : public virtual QResizeEvent { +class MiqtVirtualQResizeEvent final : public QResizeEvent { public: MiqtVirtualQResizeEvent(const QSize& size, const QSize& oldSize): QResizeEvent(size, oldSize) {}; - virtual ~MiqtVirtualQResizeEvent() = default; + virtual ~MiqtVirtualQResizeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -2735,20 +2675,16 @@ void QResizeEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQResizeEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QResizeEvent_Delete(QResizeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QResizeEvent_Delete(QResizeEvent* self) { + delete self; } -class MiqtVirtualQCloseEvent : public virtual QCloseEvent { +class MiqtVirtualQCloseEvent final : public QCloseEvent { public: MiqtVirtualQCloseEvent(): QCloseEvent() {}; - virtual ~MiqtVirtualQCloseEvent() = default; + virtual ~MiqtVirtualQCloseEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -2826,20 +2762,16 @@ void QCloseEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQCloseEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QCloseEvent_Delete(QCloseEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCloseEvent_Delete(QCloseEvent* self) { + delete self; } -class MiqtVirtualQIconDragEvent : public virtual QIconDragEvent { +class MiqtVirtualQIconDragEvent final : public QIconDragEvent { public: MiqtVirtualQIconDragEvent(): QIconDragEvent() {}; - virtual ~MiqtVirtualQIconDragEvent() = default; + virtual ~MiqtVirtualQIconDragEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -2917,20 +2849,16 @@ void QIconDragEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQIconDragEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QIconDragEvent_Delete(QIconDragEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIconDragEvent_Delete(QIconDragEvent* self) { + delete self; } -class MiqtVirtualQShowEvent : public virtual QShowEvent { +class MiqtVirtualQShowEvent final : public QShowEvent { public: MiqtVirtualQShowEvent(): QShowEvent() {}; - virtual ~MiqtVirtualQShowEvent() = default; + virtual ~MiqtVirtualQShowEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -3008,20 +2936,16 @@ void QShowEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQShowEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QShowEvent_Delete(QShowEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QShowEvent_Delete(QShowEvent* self) { + delete self; } -class MiqtVirtualQHideEvent : public virtual QHideEvent { +class MiqtVirtualQHideEvent final : public QHideEvent { public: MiqtVirtualQHideEvent(): QHideEvent() {}; - virtual ~MiqtVirtualQHideEvent() = default; + virtual ~MiqtVirtualQHideEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -3099,22 +3023,18 @@ void QHideEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQHideEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QHideEvent_Delete(QHideEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHideEvent_Delete(QHideEvent* self) { + delete self; } -class MiqtVirtualQContextMenuEvent : public virtual QContextMenuEvent { +class MiqtVirtualQContextMenuEvent final : public QContextMenuEvent { public: MiqtVirtualQContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos): QContextMenuEvent(reason, pos, globalPos) {}; MiqtVirtualQContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos): QContextMenuEvent(reason, pos) {}; MiqtVirtualQContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos, Qt::KeyboardModifiers modifiers): QContextMenuEvent(reason, pos, globalPos, modifiers) {}; - virtual ~MiqtVirtualQContextMenuEvent() = default; + virtual ~MiqtVirtualQContextMenuEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -3234,21 +3154,17 @@ void QContextMenuEvent_virtualbase_SetTimestamp(void* self, unsigned long long t ( (MiqtVirtualQContextMenuEvent*)(self) )->virtualbase_SetTimestamp(timestamp); } -void QContextMenuEvent_Delete(QContextMenuEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QContextMenuEvent_Delete(QContextMenuEvent* self) { + delete self; } -class MiqtVirtualQInputMethodEvent : public virtual QInputMethodEvent { +class MiqtVirtualQInputMethodEvent final : public QInputMethodEvent { public: MiqtVirtualQInputMethodEvent(): QInputMethodEvent() {}; MiqtVirtualQInputMethodEvent(const QString& preeditText, const QList& attributes): QInputMethodEvent(preeditText, attributes) {}; - virtual ~MiqtVirtualQInputMethodEvent() = default; + virtual ~MiqtVirtualQInputMethodEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -3395,20 +3311,16 @@ void QInputMethodEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQInputMethodEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QInputMethodEvent_Delete(QInputMethodEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInputMethodEvent_Delete(QInputMethodEvent* self) { + delete self; } -class MiqtVirtualQInputMethodQueryEvent : public virtual QInputMethodQueryEvent { +class MiqtVirtualQInputMethodQueryEvent final : public QInputMethodQueryEvent { public: MiqtVirtualQInputMethodQueryEvent(Qt::InputMethodQueries queries): QInputMethodQueryEvent(queries) {}; - virtual ~MiqtVirtualQInputMethodQueryEvent() = default; + virtual ~MiqtVirtualQInputMethodQueryEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -3499,21 +3411,17 @@ void QInputMethodQueryEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQInputMethodQueryEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QInputMethodQueryEvent_Delete(QInputMethodQueryEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInputMethodQueryEvent_Delete(QInputMethodQueryEvent* self) { + delete self; } -class MiqtVirtualQDropEvent : public virtual QDropEvent { +class MiqtVirtualQDropEvent final : public QDropEvent { public: MiqtVirtualQDropEvent(const QPointF& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers): QDropEvent(pos, actions, data, buttons, modifiers) {}; MiqtVirtualQDropEvent(const QPointF& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type typeVal): QDropEvent(pos, actions, data, buttons, modifiers, typeVal) {}; - virtual ~MiqtVirtualQDropEvent() = default; + virtual ~MiqtVirtualQDropEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -3658,21 +3566,17 @@ void QDropEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQDropEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QDropEvent_Delete(QDropEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDropEvent_Delete(QDropEvent* self) { + delete self; } -class MiqtVirtualQDragMoveEvent : public virtual QDragMoveEvent { +class MiqtVirtualQDragMoveEvent final : public QDragMoveEvent { public: MiqtVirtualQDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers): QDragMoveEvent(pos, actions, data, buttons, modifiers) {}; MiqtVirtualQDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type typeVal): QDragMoveEvent(pos, actions, data, buttons, modifiers, typeVal) {}; - virtual ~MiqtVirtualQDragMoveEvent() = default; + virtual ~MiqtVirtualQDragMoveEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -3742,20 +3646,16 @@ QDragMoveEvent* QDragMoveEvent_virtualbase_Clone(const void* self) { return ( (const MiqtVirtualQDragMoveEvent*)(self) )->virtualbase_Clone(); } -void QDragMoveEvent_Delete(QDragMoveEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDragMoveEvent_Delete(QDragMoveEvent* self) { + delete self; } -class MiqtVirtualQDragEnterEvent : public virtual QDragEnterEvent { +class MiqtVirtualQDragEnterEvent final : public QDragEnterEvent { public: MiqtVirtualQDragEnterEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers): QDragEnterEvent(pos, actions, data, buttons, modifiers) {}; - virtual ~MiqtVirtualQDragEnterEvent() = default; + virtual ~MiqtVirtualQDragEnterEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -3801,20 +3701,16 @@ QDragEnterEvent* QDragEnterEvent_virtualbase_Clone(const void* self) { return ( (const MiqtVirtualQDragEnterEvent*)(self) )->virtualbase_Clone(); } -void QDragEnterEvent_Delete(QDragEnterEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDragEnterEvent_Delete(QDragEnterEvent* self) { + delete self; } -class MiqtVirtualQDragLeaveEvent : public virtual QDragLeaveEvent { +class MiqtVirtualQDragLeaveEvent final : public QDragLeaveEvent { public: MiqtVirtualQDragLeaveEvent(): QDragLeaveEvent() {}; - virtual ~MiqtVirtualQDragLeaveEvent() = default; + virtual ~MiqtVirtualQDragLeaveEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -3892,20 +3788,16 @@ void QDragLeaveEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQDragLeaveEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QDragLeaveEvent_Delete(QDragLeaveEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDragLeaveEvent_Delete(QDragLeaveEvent* self) { + delete self; } -class MiqtVirtualQHelpEvent : public virtual QHelpEvent { +class MiqtVirtualQHelpEvent final : public QHelpEvent { public: MiqtVirtualQHelpEvent(QEvent::Type typeVal, const QPoint& pos, const QPoint& globalPos): QHelpEvent(typeVal, pos, globalPos) {}; - virtual ~MiqtVirtualQHelpEvent() = default; + virtual ~MiqtVirtualQHelpEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -4011,20 +3903,16 @@ void QHelpEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQHelpEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QHelpEvent_Delete(QHelpEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHelpEvent_Delete(QHelpEvent* self) { + delete self; } -class MiqtVirtualQStatusTipEvent : public virtual QStatusTipEvent { +class MiqtVirtualQStatusTipEvent final : public QStatusTipEvent { public: MiqtVirtualQStatusTipEvent(const QString& tip): QStatusTipEvent(tip) {}; - virtual ~MiqtVirtualQStatusTipEvent() = default; + virtual ~MiqtVirtualQStatusTipEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -4114,20 +4002,16 @@ void QStatusTipEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQStatusTipEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QStatusTipEvent_Delete(QStatusTipEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStatusTipEvent_Delete(QStatusTipEvent* self) { + delete self; } -class MiqtVirtualQWhatsThisClickedEvent : public virtual QWhatsThisClickedEvent { +class MiqtVirtualQWhatsThisClickedEvent final : public QWhatsThisClickedEvent { public: MiqtVirtualQWhatsThisClickedEvent(const QString& href): QWhatsThisClickedEvent(href) {}; - virtual ~MiqtVirtualQWhatsThisClickedEvent() = default; + virtual ~MiqtVirtualQWhatsThisClickedEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -4217,21 +4101,17 @@ void QWhatsThisClickedEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQWhatsThisClickedEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QWhatsThisClickedEvent_Delete(QWhatsThisClickedEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWhatsThisClickedEvent_Delete(QWhatsThisClickedEvent* self) { + delete self; } -class MiqtVirtualQActionEvent : public virtual QActionEvent { +class MiqtVirtualQActionEvent final : public QActionEvent { public: MiqtVirtualQActionEvent(int typeVal, QAction* action): QActionEvent(typeVal, action) {}; MiqtVirtualQActionEvent(int typeVal, QAction* action, QAction* before): QActionEvent(typeVal, action, before) {}; - virtual ~MiqtVirtualQActionEvent() = default; + virtual ~MiqtVirtualQActionEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -4321,21 +4201,17 @@ void QActionEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQActionEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QActionEvent_Delete(QActionEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QActionEvent_Delete(QActionEvent* self) { + delete self; } -class MiqtVirtualQFileOpenEvent : public virtual QFileOpenEvent { +class MiqtVirtualQFileOpenEvent final : public QFileOpenEvent { public: MiqtVirtualQFileOpenEvent(const QString& file): QFileOpenEvent(file) {}; MiqtVirtualQFileOpenEvent(const QUrl& url): QFileOpenEvent(url) {}; - virtual ~MiqtVirtualQFileOpenEvent() = default; + virtual ~MiqtVirtualQFileOpenEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -4437,20 +4313,16 @@ void QFileOpenEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQFileOpenEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QFileOpenEvent_Delete(QFileOpenEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileOpenEvent_Delete(QFileOpenEvent* self) { + delete self; } -class MiqtVirtualQToolBarChangeEvent : public virtual QToolBarChangeEvent { +class MiqtVirtualQToolBarChangeEvent final : public QToolBarChangeEvent { public: MiqtVirtualQToolBarChangeEvent(bool t): QToolBarChangeEvent(t) {}; - virtual ~MiqtVirtualQToolBarChangeEvent() = default; + virtual ~MiqtVirtualQToolBarChangeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -4532,21 +4404,17 @@ void QToolBarChangeEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQToolBarChangeEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QToolBarChangeEvent_Delete(QToolBarChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QToolBarChangeEvent_Delete(QToolBarChangeEvent* self) { + delete self; } -class MiqtVirtualQShortcutEvent : public virtual QShortcutEvent { +class MiqtVirtualQShortcutEvent final : public QShortcutEvent { public: MiqtVirtualQShortcutEvent(const QKeySequence& key, int id): QShortcutEvent(key, id) {}; MiqtVirtualQShortcutEvent(const QKeySequence& key, int id, bool ambiguous): QShortcutEvent(key, id, ambiguous) {}; - virtual ~MiqtVirtualQShortcutEvent() = default; + virtual ~MiqtVirtualQShortcutEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -4642,21 +4510,17 @@ void QShortcutEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQShortcutEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QShortcutEvent_Delete(QShortcutEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QShortcutEvent_Delete(QShortcutEvent* self) { + delete self; } -class MiqtVirtualQWindowStateChangeEvent : public virtual QWindowStateChangeEvent { +class MiqtVirtualQWindowStateChangeEvent final : public QWindowStateChangeEvent { public: MiqtVirtualQWindowStateChangeEvent(Qt::WindowStates oldState): QWindowStateChangeEvent(oldState) {}; MiqtVirtualQWindowStateChangeEvent(Qt::WindowStates oldState, bool isOverride): QWindowStateChangeEvent(oldState, isOverride) {}; - virtual ~MiqtVirtualQWindowStateChangeEvent() = default; + virtual ~MiqtVirtualQWindowStateChangeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -4747,15 +4611,11 @@ void QWindowStateChangeEvent_virtualbase_SetAccepted(void* self, bool accepted) ( (MiqtVirtualQWindowStateChangeEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QWindowStateChangeEvent_Delete(QWindowStateChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWindowStateChangeEvent_Delete(QWindowStateChangeEvent* self) { + delete self; } -class MiqtVirtualQTouchEvent : public virtual QTouchEvent { +class MiqtVirtualQTouchEvent final : public QTouchEvent { public: MiqtVirtualQTouchEvent(QEvent::Type eventType): QTouchEvent(eventType) {}; @@ -4765,7 +4625,7 @@ public: MiqtVirtualQTouchEvent(QEvent::Type eventType, const QPointingDevice* device, Qt::KeyboardModifiers modifiers, const QList& touchPoints): QTouchEvent(eventType, device, modifiers, touchPoints) {}; MiqtVirtualQTouchEvent(QEvent::Type eventType, const QPointingDevice* device, Qt::KeyboardModifiers modifiers, QEventPoint::States touchPointStates, const QList& touchPoints): QTouchEvent(eventType, device, modifiers, touchPointStates, touchPoints) {}; - virtual ~MiqtVirtualQTouchEvent() = default; + virtual ~MiqtVirtualQTouchEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -5032,20 +4892,16 @@ void QTouchEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQTouchEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QTouchEvent_Delete(QTouchEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTouchEvent_Delete(QTouchEvent* self) { + delete self; } -class MiqtVirtualQScrollPrepareEvent : public virtual QScrollPrepareEvent { +class MiqtVirtualQScrollPrepareEvent final : public QScrollPrepareEvent { public: MiqtVirtualQScrollPrepareEvent(const QPointF& startPos): QScrollPrepareEvent(startPos) {}; - virtual ~MiqtVirtualQScrollPrepareEvent() = default; + virtual ~MiqtVirtualQScrollPrepareEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -5151,20 +5007,16 @@ void QScrollPrepareEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQScrollPrepareEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QScrollPrepareEvent_Delete(QScrollPrepareEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScrollPrepareEvent_Delete(QScrollPrepareEvent* self) { + delete self; } -class MiqtVirtualQScrollEvent : public virtual QScrollEvent { +class MiqtVirtualQScrollEvent final : public QScrollEvent { public: MiqtVirtualQScrollEvent(const QPointF& contentPos, const QPointF& overshoot, QScrollEvent::ScrollState scrollState): QScrollEvent(contentPos, overshoot, scrollState) {}; - virtual ~MiqtVirtualQScrollEvent() = default; + virtual ~MiqtVirtualQScrollEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -5255,20 +5107,16 @@ void QScrollEvent_virtualbase_SetAccepted(void* self, bool accepted) { ( (MiqtVirtualQScrollEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QScrollEvent_Delete(QScrollEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScrollEvent_Delete(QScrollEvent* self) { + delete self; } -class MiqtVirtualQScreenOrientationChangeEvent : public virtual QScreenOrientationChangeEvent { +class MiqtVirtualQScreenOrientationChangeEvent final : public QScreenOrientationChangeEvent { public: MiqtVirtualQScreenOrientationChangeEvent(QScreen* screen, Qt::ScreenOrientation orientation): QScreenOrientationChangeEvent(screen, orientation) {}; - virtual ~MiqtVirtualQScreenOrientationChangeEvent() = default; + virtual ~MiqtVirtualQScreenOrientationChangeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -5355,20 +5203,16 @@ void QScreenOrientationChangeEvent_virtualbase_SetAccepted(void* self, bool acce ( (MiqtVirtualQScreenOrientationChangeEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QScreenOrientationChangeEvent_Delete(QScreenOrientationChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScreenOrientationChangeEvent_Delete(QScreenOrientationChangeEvent* self) { + delete self; } -class MiqtVirtualQApplicationStateChangeEvent : public virtual QApplicationStateChangeEvent { +class MiqtVirtualQApplicationStateChangeEvent final : public QApplicationStateChangeEvent { public: MiqtVirtualQApplicationStateChangeEvent(Qt::ApplicationState state): QApplicationStateChangeEvent(state) {}; - virtual ~MiqtVirtualQApplicationStateChangeEvent() = default; + virtual ~MiqtVirtualQApplicationStateChangeEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -5451,12 +5295,8 @@ void QApplicationStateChangeEvent_virtualbase_SetAccepted(void* self, bool accep ( (MiqtVirtualQApplicationStateChangeEvent*)(self) )->virtualbase_SetAccepted(accepted); } -void QApplicationStateChangeEvent_Delete(QApplicationStateChangeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QApplicationStateChangeEvent_Delete(QApplicationStateChangeEvent* self) { + delete self; } QInputMethodEvent__Attribute* QInputMethodEvent__Attribute_new(int typ, int s, int l, QVariant* val) { @@ -5475,11 +5315,7 @@ void QInputMethodEvent__Attribute_OperatorAssign(QInputMethodEvent__Attribute* s self->operator=(*param1); } -void QInputMethodEvent__Attribute_Delete(QInputMethodEvent__Attribute* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInputMethodEvent__Attribute_Delete(QInputMethodEvent__Attribute* self) { + delete self; } diff --git a/qt6/gen_qevent.go b/qt6/gen_qevent.go index 186a07ea..fa236fcc 100644 --- a/qt6/gen_qevent.go +++ b/qt6/gen_qevent.go @@ -213,7 +213,7 @@ func miqt_exec_callback_QInputEvent_SetAccepted(self *C.QInputEvent, cb C.intptr // Delete this object from C++ memory. func (this *QInputEvent) Delete() { - C.QInputEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QInputEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -530,7 +530,7 @@ func miqt_exec_callback_QPointerEvent_SetAccepted(self *C.QPointerEvent, cb C.in // Delete this object from C++ memory. func (this *QPointerEvent) Delete() { - C.QPointerEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QPointerEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -631,7 +631,7 @@ func (this *QSinglePointEvent) SetExclusivePointGrabber(exclusiveGrabber *QObjec // Delete this object from C++ memory. func (this *QSinglePointEvent) Delete() { - C.QSinglePointEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QSinglePointEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -848,7 +848,7 @@ func miqt_exec_callback_QEnterEvent_IsEndEvent(self *C.QEnterEvent, cb C.intptr_ // Delete this object from C++ memory. func (this *QEnterEvent) Delete() { - C.QEnterEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QEnterEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1121,7 +1121,7 @@ func miqt_exec_callback_QMouseEvent_IsEndEvent(self *C.QMouseEvent, cb C.intptr_ // Delete this object from C++ memory. func (this *QMouseEvent) Delete() { - C.QMouseEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QMouseEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1352,7 +1352,7 @@ func miqt_exec_callback_QHoverEvent_IsEndEvent(self *C.QHoverEvent, cb C.intptr_ // Delete this object from C++ memory. func (this *QHoverEvent) Delete() { - C.QHoverEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QHoverEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1575,7 +1575,7 @@ func miqt_exec_callback_QWheelEvent_IsEndEvent(self *C.QWheelEvent, cb C.intptr_ // Delete this object from C++ memory. func (this *QWheelEvent) Delete() { - C.QWheelEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QWheelEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1814,7 +1814,7 @@ func miqt_exec_callback_QTabletEvent_IsEndEvent(self *C.QTabletEvent, cb C.intpt // Delete this object from C++ memory. func (this *QTabletEvent) Delete() { - C.QTabletEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QTabletEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2041,7 +2041,7 @@ func miqt_exec_callback_QNativeGestureEvent_IsEndEvent(self *C.QNativeGestureEve // Delete this object from C++ memory. func (this *QNativeGestureEvent) Delete() { - C.QNativeGestureEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QNativeGestureEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2292,7 +2292,7 @@ func miqt_exec_callback_QKeyEvent_SetTimestamp(self *C.QKeyEvent, cb C.intptr_t, // Delete this object from C++ memory. func (this *QKeyEvent) Delete() { - C.QKeyEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QKeyEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2426,7 +2426,7 @@ func miqt_exec_callback_QFocusEvent_SetAccepted(self *C.QFocusEvent, cb C.intptr // Delete this object from C++ memory. func (this *QFocusEvent) Delete() { - C.QFocusEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QFocusEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2556,7 +2556,7 @@ func miqt_exec_callback_QPaintEvent_SetAccepted(self *C.QPaintEvent, cb C.intptr // Delete this object from C++ memory. func (this *QPaintEvent) Delete() { - C.QPaintEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QPaintEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2678,7 +2678,7 @@ func miqt_exec_callback_QMoveEvent_SetAccepted(self *C.QMoveEvent, cb C.intptr_t // Delete this object from C++ memory. func (this *QMoveEvent) Delete() { - C.QMoveEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QMoveEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2796,7 +2796,7 @@ func miqt_exec_callback_QExposeEvent_SetAccepted(self *C.QExposeEvent, cb C.intp // Delete this object from C++ memory. func (this *QExposeEvent) Delete() { - C.QExposeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QExposeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2914,7 +2914,7 @@ func miqt_exec_callback_QPlatformSurfaceEvent_SetAccepted(self *C.QPlatformSurfa // Delete this object from C++ memory. func (this *QPlatformSurfaceEvent) Delete() { - C.QPlatformSurfaceEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QPlatformSurfaceEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3036,7 +3036,7 @@ func miqt_exec_callback_QResizeEvent_SetAccepted(self *C.QResizeEvent, cb C.intp // Delete this object from C++ memory. func (this *QResizeEvent) Delete() { - C.QResizeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QResizeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3150,7 +3150,7 @@ func miqt_exec_callback_QCloseEvent_SetAccepted(self *C.QCloseEvent, cb C.intptr // Delete this object from C++ memory. func (this *QCloseEvent) Delete() { - C.QCloseEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QCloseEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3264,7 +3264,7 @@ func miqt_exec_callback_QIconDragEvent_SetAccepted(self *C.QIconDragEvent, cb C. // Delete this object from C++ memory. func (this *QIconDragEvent) Delete() { - C.QIconDragEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QIconDragEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3378,7 +3378,7 @@ func miqt_exec_callback_QShowEvent_SetAccepted(self *C.QShowEvent, cb C.intptr_t // Delete this object from C++ memory. func (this *QShowEvent) Delete() { - C.QShowEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QShowEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3492,7 +3492,7 @@ func miqt_exec_callback_QHideEvent_SetAccepted(self *C.QHideEvent, cb C.intptr_t // Delete this object from C++ memory. func (this *QHideEvent) Delete() { - C.QHideEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QHideEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3650,7 +3650,7 @@ func miqt_exec_callback_QContextMenuEvent_SetTimestamp(self *C.QContextMenuEvent // Delete this object from C++ memory. func (this *QContextMenuEvent) Delete() { - C.QContextMenuEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QContextMenuEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3840,7 +3840,7 @@ func miqt_exec_callback_QInputMethodEvent_SetAccepted(self *C.QInputMethodEvent, // Delete this object from C++ memory. func (this *QInputMethodEvent) Delete() { - C.QInputMethodEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QInputMethodEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3968,7 +3968,7 @@ func miqt_exec_callback_QInputMethodQueryEvent_SetAccepted(self *C.QInputMethodQ // Delete this object from C++ memory. func (this *QInputMethodQueryEvent) Delete() { - C.QInputMethodQueryEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QInputMethodQueryEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4152,7 +4152,7 @@ func miqt_exec_callback_QDropEvent_SetAccepted(self *C.QDropEvent, cb C.intptr_t // Delete this object from C++ memory. func (this *QDropEvent) Delete() { - C.QDropEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QDropEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4270,7 +4270,7 @@ func miqt_exec_callback_QDragMoveEvent_Clone(self *C.QDragMoveEvent, cb C.intptr // Delete this object from C++ memory. func (this *QDragMoveEvent) Delete() { - C.QDragMoveEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QDragMoveEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4358,7 +4358,7 @@ func miqt_exec_callback_QDragEnterEvent_Clone(self *C.QDragEnterEvent, cb C.intp // Delete this object from C++ memory. func (this *QDragEnterEvent) Delete() { - C.QDragEnterEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QDragEnterEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4472,7 +4472,7 @@ func miqt_exec_callback_QDragLeaveEvent_SetAccepted(self *C.QDragLeaveEvent, cb // Delete this object from C++ memory. func (this *QDragLeaveEvent) Delete() { - C.QDragLeaveEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QDragLeaveEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4610,7 +4610,7 @@ func miqt_exec_callback_QHelpEvent_SetAccepted(self *C.QHelpEvent, cb C.intptr_t // Delete this object from C++ memory. func (this *QHelpEvent) Delete() { - C.QHelpEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QHelpEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4735,7 +4735,7 @@ func miqt_exec_callback_QStatusTipEvent_SetAccepted(self *C.QStatusTipEvent, cb // Delete this object from C++ memory. func (this *QStatusTipEvent) Delete() { - C.QStatusTipEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QStatusTipEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4860,7 +4860,7 @@ func miqt_exec_callback_QWhatsThisClickedEvent_SetAccepted(self *C.QWhatsThisCli // Delete this object from C++ memory. func (this *QWhatsThisClickedEvent) Delete() { - C.QWhatsThisClickedEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QWhatsThisClickedEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4990,7 +4990,7 @@ func miqt_exec_callback_QActionEvent_SetAccepted(self *C.QActionEvent, cb C.intp // Delete this object from C++ memory. func (this *QActionEvent) Delete() { - C.QActionEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QActionEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5133,7 +5133,7 @@ func miqt_exec_callback_QFileOpenEvent_SetAccepted(self *C.QFileOpenEvent, cb C. // Delete this object from C++ memory. func (this *QFileOpenEvent) Delete() { - C.QFileOpenEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QFileOpenEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5251,7 +5251,7 @@ func miqt_exec_callback_QToolBarChangeEvent_SetAccepted(self *C.QToolBarChangeEv // Delete this object from C++ memory. func (this *QToolBarChangeEvent) Delete() { - C.QToolBarChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QToolBarChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5385,7 +5385,7 @@ func miqt_exec_callback_QShortcutEvent_SetAccepted(self *C.QShortcutEvent, cb C. // Delete this object from C++ memory. func (this *QShortcutEvent) Delete() { - C.QShortcutEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QShortcutEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5515,7 +5515,7 @@ func miqt_exec_callback_QWindowStateChangeEvent_SetAccepted(self *C.QWindowState // Delete this object from C++ memory. func (this *QWindowStateChangeEvent) Delete() { - C.QWindowStateChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QWindowStateChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5814,7 +5814,7 @@ func miqt_exec_callback_QTouchEvent_SetAccepted(self *C.QTouchEvent, cb C.intptr // Delete this object from C++ memory. func (this *QTouchEvent) Delete() { - C.QTouchEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QTouchEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5964,7 +5964,7 @@ func miqt_exec_callback_QScrollPrepareEvent_SetAccepted(self *C.QScrollPrepareEv // Delete this object from C++ memory. func (this *QScrollPrepareEvent) Delete() { - C.QScrollPrepareEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QScrollPrepareEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -6094,7 +6094,7 @@ func miqt_exec_callback_QScrollEvent_SetAccepted(self *C.QScrollEvent, cb C.intp // Delete this object from C++ memory. func (this *QScrollEvent) Delete() { - C.QScrollEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QScrollEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -6216,7 +6216,7 @@ func miqt_exec_callback_QScreenOrientationChangeEvent_SetAccepted(self *C.QScree // Delete this object from C++ memory. func (this *QScreenOrientationChangeEvent) Delete() { - C.QScreenOrientationChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QScreenOrientationChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -6334,7 +6334,7 @@ func miqt_exec_callback_QApplicationStateChangeEvent_SetAccepted(self *C.QApplic // Delete this object from C++ memory. func (this *QApplicationStateChangeEvent) Delete() { - C.QApplicationStateChangeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QApplicationStateChangeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -6409,7 +6409,7 @@ func (this *QInputMethodEvent__Attribute) OperatorAssign(param1 *QInputMethodEve // Delete this object from C++ memory. func (this *QInputMethodEvent__Attribute) Delete() { - C.QInputMethodEvent__Attribute_Delete(this.h, C.bool(this.isSubclass)) + C.QInputMethodEvent__Attribute_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qevent.h b/qt6/gen_qevent.h index b0522fea..af9abcdc 100644 --- a/qt6/gen_qevent.h +++ b/qt6/gen_qevent.h @@ -160,7 +160,7 @@ void QInputEvent_override_virtual_SetTimestamp(void* self, intptr_t slot); void QInputEvent_virtualbase_SetTimestamp(void* self, unsigned long long timestamp); void QInputEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QInputEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QInputEvent_Delete(QInputEvent* self, bool isSubclass); +void QInputEvent_Delete(QInputEvent* self); QPointerEvent* QPointerEvent_new(int typeVal, QPointingDevice* dev); QPointerEvent* QPointerEvent_new2(int typeVal, QPointingDevice* dev, int modifiers); @@ -197,7 +197,7 @@ void QPointerEvent_override_virtual_IsEndEvent(void* self, intptr_t slot); bool QPointerEvent_virtualbase_IsEndEvent(const void* self); void QPointerEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QPointerEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QPointerEvent_Delete(QPointerEvent* self, bool isSubclass); +void QPointerEvent_Delete(QPointerEvent* self); void QSinglePointEvent_virtbase(QSinglePointEvent* src, QPointerEvent** outptr_QPointerEvent); QSinglePointEvent* QSinglePointEvent_Clone(const QSinglePointEvent* self); @@ -211,7 +211,7 @@ bool QSinglePointEvent_IsUpdateEvent(const QSinglePointEvent* self); bool QSinglePointEvent_IsEndEvent(const QSinglePointEvent* self); QObject* QSinglePointEvent_ExclusivePointGrabber(const QSinglePointEvent* self); void QSinglePointEvent_SetExclusivePointGrabber(QSinglePointEvent* self, QObject* exclusiveGrabber); -void QSinglePointEvent_Delete(QSinglePointEvent* self, bool isSubclass); +void QSinglePointEvent_Delete(QSinglePointEvent* self); QEnterEvent* QEnterEvent_new(QPointF* localPos, QPointF* scenePos, QPointF* globalPos); QEnterEvent* QEnterEvent_new2(QPointF* localPos, QPointF* scenePos, QPointF* globalPos, QPointingDevice* device); @@ -234,7 +234,7 @@ void QEnterEvent_override_virtual_IsUpdateEvent(void* self, intptr_t slot); bool QEnterEvent_virtualbase_IsUpdateEvent(const void* self); void QEnterEvent_override_virtual_IsEndEvent(void* self, intptr_t slot); bool QEnterEvent_virtualbase_IsEndEvent(const void* self); -void QEnterEvent_Delete(QEnterEvent* self, bool isSubclass); +void QEnterEvent_Delete(QEnterEvent* self); QMouseEvent* QMouseEvent_new(int typeVal, QPointF* localPos, int button, int buttons, int modifiers); QMouseEvent* QMouseEvent_new2(int typeVal, QPointF* localPos, QPointF* globalPos, int button, int buttons, int modifiers); @@ -265,7 +265,7 @@ void QMouseEvent_override_virtual_IsUpdateEvent(void* self, intptr_t slot); bool QMouseEvent_virtualbase_IsUpdateEvent(const void* self); void QMouseEvent_override_virtual_IsEndEvent(void* self, intptr_t slot); bool QMouseEvent_virtualbase_IsEndEvent(const void* self); -void QMouseEvent_Delete(QMouseEvent* self, bool isSubclass); +void QMouseEvent_Delete(QMouseEvent* self); QHoverEvent* QHoverEvent_new(int typeVal, QPointF* scenePos, QPointF* globalPos, QPointF* oldPos); QHoverEvent* QHoverEvent_new2(int typeVal, QPointF* pos, QPointF* oldPos); @@ -288,7 +288,7 @@ void QHoverEvent_override_virtual_IsBeginEvent(void* self, intptr_t slot); bool QHoverEvent_virtualbase_IsBeginEvent(const void* self); void QHoverEvent_override_virtual_IsEndEvent(void* self, intptr_t slot); bool QHoverEvent_virtualbase_IsEndEvent(const void* self); -void QHoverEvent_Delete(QHoverEvent* self, bool isSubclass); +void QHoverEvent_Delete(QHoverEvent* self); QWheelEvent* QWheelEvent_new(QPointF* pos, QPointF* globalPos, QPoint* pixelDelta, QPoint* angleDelta, int buttons, int modifiers, int phase, bool inverted); QWheelEvent* QWheelEvent_new2(QPointF* pos, QPointF* globalPos, QPoint* pixelDelta, QPoint* angleDelta, int buttons, int modifiers, int phase, bool inverted, int source); @@ -313,7 +313,7 @@ void QWheelEvent_override_virtual_IsUpdateEvent(void* self, intptr_t slot); bool QWheelEvent_virtualbase_IsUpdateEvent(const void* self); void QWheelEvent_override_virtual_IsEndEvent(void* self, intptr_t slot); bool QWheelEvent_virtualbase_IsEndEvent(const void* self); -void QWheelEvent_Delete(QWheelEvent* self, bool isSubclass); +void QWheelEvent_Delete(QWheelEvent* self); QTabletEvent* QTabletEvent_new(int t, QPointingDevice* device, QPointF* pos, QPointF* globalPos, double pressure, float xTilt, float yTilt, float tangentialPressure, double rotation, float z, int keyState, int button, int buttons); void QTabletEvent_virtbase(QTabletEvent* src, QSinglePointEvent** outptr_QSinglePointEvent); @@ -343,7 +343,7 @@ void QTabletEvent_override_virtual_IsUpdateEvent(void* self, intptr_t slot); bool QTabletEvent_virtualbase_IsUpdateEvent(const void* self); void QTabletEvent_override_virtual_IsEndEvent(void* self, intptr_t slot); bool QTabletEvent_virtualbase_IsEndEvent(const void* self); -void QTabletEvent_Delete(QTabletEvent* self, bool isSubclass); +void QTabletEvent_Delete(QTabletEvent* self); QNativeGestureEvent* QNativeGestureEvent_new(int typeVal, QPointingDevice* dev, QPointF* localPos, QPointF* scenePos, QPointF* globalPos, double value, unsigned long long sequenceId, unsigned long long intArgument); QNativeGestureEvent* QNativeGestureEvent_new2(int typeVal, QPointingDevice* dev, int fingerCount, QPointF* localPos, QPointF* scenePos, QPointF* globalPos, double value, QPointF* delta); @@ -367,7 +367,7 @@ void QNativeGestureEvent_override_virtual_IsUpdateEvent(void* self, intptr_t slo bool QNativeGestureEvent_virtualbase_IsUpdateEvent(const void* self); void QNativeGestureEvent_override_virtual_IsEndEvent(void* self, intptr_t slot); bool QNativeGestureEvent_virtualbase_IsEndEvent(const void* self); -void QNativeGestureEvent_Delete(QNativeGestureEvent* self, bool isSubclass); +void QNativeGestureEvent_Delete(QNativeGestureEvent* self); QKeyEvent* QKeyEvent_new(int typeVal, int key, int modifiers); QKeyEvent* QKeyEvent_new2(int typeVal, int key, int modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers); @@ -394,7 +394,7 @@ void QKeyEvent_override_virtual_Clone(void* self, intptr_t slot); QKeyEvent* QKeyEvent_virtualbase_Clone(const void* self); void QKeyEvent_override_virtual_SetTimestamp(void* self, intptr_t slot); void QKeyEvent_virtualbase_SetTimestamp(void* self, unsigned long long timestamp); -void QKeyEvent_Delete(QKeyEvent* self, bool isSubclass); +void QKeyEvent_Delete(QKeyEvent* self); QFocusEvent* QFocusEvent_new(int typeVal); QFocusEvent* QFocusEvent_new2(int typeVal, int reason); @@ -407,7 +407,7 @@ void QFocusEvent_override_virtual_Clone(void* self, intptr_t slot); QFocusEvent* QFocusEvent_virtualbase_Clone(const void* self); void QFocusEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QFocusEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QFocusEvent_Delete(QFocusEvent* self, bool isSubclass); +void QFocusEvent_Delete(QFocusEvent* self); QPaintEvent* QPaintEvent_new(QRegion* paintRegion); QPaintEvent* QPaintEvent_new2(QRect* paintRect); @@ -419,7 +419,7 @@ void QPaintEvent_override_virtual_Clone(void* self, intptr_t slot); QPaintEvent* QPaintEvent_virtualbase_Clone(const void* self); void QPaintEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QPaintEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QPaintEvent_Delete(QPaintEvent* self, bool isSubclass); +void QPaintEvent_Delete(QPaintEvent* self); QMoveEvent* QMoveEvent_new(QPoint* pos, QPoint* oldPos); void QMoveEvent_virtbase(QMoveEvent* src, QEvent** outptr_QEvent); @@ -430,7 +430,7 @@ void QMoveEvent_override_virtual_Clone(void* self, intptr_t slot); QMoveEvent* QMoveEvent_virtualbase_Clone(const void* self); void QMoveEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QMoveEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QMoveEvent_Delete(QMoveEvent* self, bool isSubclass); +void QMoveEvent_Delete(QMoveEvent* self); QExposeEvent* QExposeEvent_new(QRegion* m_region); void QExposeEvent_virtbase(QExposeEvent* src, QEvent** outptr_QEvent); @@ -440,7 +440,7 @@ void QExposeEvent_override_virtual_Clone(void* self, intptr_t slot); QExposeEvent* QExposeEvent_virtualbase_Clone(const void* self); void QExposeEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QExposeEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QExposeEvent_Delete(QExposeEvent* self, bool isSubclass); +void QExposeEvent_Delete(QExposeEvent* self); QPlatformSurfaceEvent* QPlatformSurfaceEvent_new(int surfaceEventType); void QPlatformSurfaceEvent_virtbase(QPlatformSurfaceEvent* src, QEvent** outptr_QEvent); @@ -450,7 +450,7 @@ void QPlatformSurfaceEvent_override_virtual_Clone(void* self, intptr_t slot); QPlatformSurfaceEvent* QPlatformSurfaceEvent_virtualbase_Clone(const void* self); void QPlatformSurfaceEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QPlatformSurfaceEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QPlatformSurfaceEvent_Delete(QPlatformSurfaceEvent* self, bool isSubclass); +void QPlatformSurfaceEvent_Delete(QPlatformSurfaceEvent* self); QResizeEvent* QResizeEvent_new(QSize* size, QSize* oldSize); void QResizeEvent_virtbase(QResizeEvent* src, QEvent** outptr_QEvent); @@ -461,7 +461,7 @@ void QResizeEvent_override_virtual_Clone(void* self, intptr_t slot); QResizeEvent* QResizeEvent_virtualbase_Clone(const void* self); void QResizeEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QResizeEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QResizeEvent_Delete(QResizeEvent* self, bool isSubclass); +void QResizeEvent_Delete(QResizeEvent* self); QCloseEvent* QCloseEvent_new(); void QCloseEvent_virtbase(QCloseEvent* src, QEvent** outptr_QEvent); @@ -470,7 +470,7 @@ void QCloseEvent_override_virtual_Clone(void* self, intptr_t slot); QCloseEvent* QCloseEvent_virtualbase_Clone(const void* self); void QCloseEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QCloseEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QCloseEvent_Delete(QCloseEvent* self, bool isSubclass); +void QCloseEvent_Delete(QCloseEvent* self); QIconDragEvent* QIconDragEvent_new(); void QIconDragEvent_virtbase(QIconDragEvent* src, QEvent** outptr_QEvent); @@ -479,7 +479,7 @@ void QIconDragEvent_override_virtual_Clone(void* self, intptr_t slot); QIconDragEvent* QIconDragEvent_virtualbase_Clone(const void* self); void QIconDragEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QIconDragEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QIconDragEvent_Delete(QIconDragEvent* self, bool isSubclass); +void QIconDragEvent_Delete(QIconDragEvent* self); QShowEvent* QShowEvent_new(); void QShowEvent_virtbase(QShowEvent* src, QEvent** outptr_QEvent); @@ -488,7 +488,7 @@ void QShowEvent_override_virtual_Clone(void* self, intptr_t slot); QShowEvent* QShowEvent_virtualbase_Clone(const void* self); void QShowEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QShowEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QShowEvent_Delete(QShowEvent* self, bool isSubclass); +void QShowEvent_Delete(QShowEvent* self); QHideEvent* QHideEvent_new(); void QHideEvent_virtbase(QHideEvent* src, QEvent** outptr_QEvent); @@ -497,7 +497,7 @@ void QHideEvent_override_virtual_Clone(void* self, intptr_t slot); QHideEvent* QHideEvent_virtualbase_Clone(const void* self); void QHideEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QHideEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QHideEvent_Delete(QHideEvent* self, bool isSubclass); +void QHideEvent_Delete(QHideEvent* self); QContextMenuEvent* QContextMenuEvent_new(int reason, QPoint* pos, QPoint* globalPos); QContextMenuEvent* QContextMenuEvent_new2(int reason, QPoint* pos); @@ -515,7 +515,7 @@ void QContextMenuEvent_override_virtual_Clone(void* self, intptr_t slot); QContextMenuEvent* QContextMenuEvent_virtualbase_Clone(const void* self); void QContextMenuEvent_override_virtual_SetTimestamp(void* self, intptr_t slot); void QContextMenuEvent_virtualbase_SetTimestamp(void* self, unsigned long long timestamp); -void QContextMenuEvent_Delete(QContextMenuEvent* self, bool isSubclass); +void QContextMenuEvent_Delete(QContextMenuEvent* self); QInputMethodEvent* QInputMethodEvent_new(); QInputMethodEvent* QInputMethodEvent_new2(struct miqt_string preeditText, struct miqt_array /* of QInputMethodEvent__Attribute* */ attributes); @@ -533,7 +533,7 @@ void QInputMethodEvent_override_virtual_Clone(void* self, intptr_t slot); QInputMethodEvent* QInputMethodEvent_virtualbase_Clone(const void* self); void QInputMethodEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QInputMethodEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QInputMethodEvent_Delete(QInputMethodEvent* self, bool isSubclass); +void QInputMethodEvent_Delete(QInputMethodEvent* self); QInputMethodQueryEvent* QInputMethodQueryEvent_new(int queries); void QInputMethodQueryEvent_virtbase(QInputMethodQueryEvent* src, QEvent** outptr_QEvent); @@ -545,7 +545,7 @@ void QInputMethodQueryEvent_override_virtual_Clone(void* self, intptr_t slot); QInputMethodQueryEvent* QInputMethodQueryEvent_virtualbase_Clone(const void* self); void QInputMethodQueryEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QInputMethodQueryEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QInputMethodQueryEvent_Delete(QInputMethodQueryEvent* self, bool isSubclass); +void QInputMethodQueryEvent_Delete(QInputMethodQueryEvent* self); QDropEvent* QDropEvent_new(QPointF* pos, int actions, QMimeData* data, int buttons, int modifiers); QDropEvent* QDropEvent_new2(QPointF* pos, int actions, QMimeData* data, int buttons, int modifiers, int typeVal); @@ -569,7 +569,7 @@ void QDropEvent_override_virtual_Clone(void* self, intptr_t slot); QDropEvent* QDropEvent_virtualbase_Clone(const void* self); void QDropEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QDropEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QDropEvent_Delete(QDropEvent* self, bool isSubclass); +void QDropEvent_Delete(QDropEvent* self); QDragMoveEvent* QDragMoveEvent_new(QPoint* pos, int actions, QMimeData* data, int buttons, int modifiers); QDragMoveEvent* QDragMoveEvent_new2(QPoint* pos, int actions, QMimeData* data, int buttons, int modifiers, int typeVal); @@ -582,14 +582,14 @@ void QDragMoveEvent_AcceptWithQRect(QDragMoveEvent* self, QRect* r); void QDragMoveEvent_IgnoreWithQRect(QDragMoveEvent* self, QRect* r); void QDragMoveEvent_override_virtual_Clone(void* self, intptr_t slot); QDragMoveEvent* QDragMoveEvent_virtualbase_Clone(const void* self); -void QDragMoveEvent_Delete(QDragMoveEvent* self, bool isSubclass); +void QDragMoveEvent_Delete(QDragMoveEvent* self); QDragEnterEvent* QDragEnterEvent_new(QPoint* pos, int actions, QMimeData* data, int buttons, int modifiers); void QDragEnterEvent_virtbase(QDragEnterEvent* src, QDragMoveEvent** outptr_QDragMoveEvent); QDragEnterEvent* QDragEnterEvent_Clone(const QDragEnterEvent* self); void QDragEnterEvent_override_virtual_Clone(void* self, intptr_t slot); QDragEnterEvent* QDragEnterEvent_virtualbase_Clone(const void* self); -void QDragEnterEvent_Delete(QDragEnterEvent* self, bool isSubclass); +void QDragEnterEvent_Delete(QDragEnterEvent* self); QDragLeaveEvent* QDragLeaveEvent_new(); void QDragLeaveEvent_virtbase(QDragLeaveEvent* src, QEvent** outptr_QEvent); @@ -598,7 +598,7 @@ void QDragLeaveEvent_override_virtual_Clone(void* self, intptr_t slot); QDragLeaveEvent* QDragLeaveEvent_virtualbase_Clone(const void* self); void QDragLeaveEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QDragLeaveEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QDragLeaveEvent_Delete(QDragLeaveEvent* self, bool isSubclass); +void QDragLeaveEvent_Delete(QDragLeaveEvent* self); QHelpEvent* QHelpEvent_new(int typeVal, QPoint* pos, QPoint* globalPos); void QHelpEvent_virtbase(QHelpEvent* src, QEvent** outptr_QEvent); @@ -613,7 +613,7 @@ void QHelpEvent_override_virtual_Clone(void* self, intptr_t slot); QHelpEvent* QHelpEvent_virtualbase_Clone(const void* self); void QHelpEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QHelpEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QHelpEvent_Delete(QHelpEvent* self, bool isSubclass); +void QHelpEvent_Delete(QHelpEvent* self); QStatusTipEvent* QStatusTipEvent_new(struct miqt_string tip); void QStatusTipEvent_virtbase(QStatusTipEvent* src, QEvent** outptr_QEvent); @@ -623,7 +623,7 @@ void QStatusTipEvent_override_virtual_Clone(void* self, intptr_t slot); QStatusTipEvent* QStatusTipEvent_virtualbase_Clone(const void* self); void QStatusTipEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QStatusTipEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QStatusTipEvent_Delete(QStatusTipEvent* self, bool isSubclass); +void QStatusTipEvent_Delete(QStatusTipEvent* self); QWhatsThisClickedEvent* QWhatsThisClickedEvent_new(struct miqt_string href); void QWhatsThisClickedEvent_virtbase(QWhatsThisClickedEvent* src, QEvent** outptr_QEvent); @@ -633,7 +633,7 @@ void QWhatsThisClickedEvent_override_virtual_Clone(void* self, intptr_t slot); QWhatsThisClickedEvent* QWhatsThisClickedEvent_virtualbase_Clone(const void* self); void QWhatsThisClickedEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QWhatsThisClickedEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QWhatsThisClickedEvent_Delete(QWhatsThisClickedEvent* self, bool isSubclass); +void QWhatsThisClickedEvent_Delete(QWhatsThisClickedEvent* self); QActionEvent* QActionEvent_new(int typeVal, QAction* action); QActionEvent* QActionEvent_new2(int typeVal, QAction* action, QAction* before); @@ -645,7 +645,7 @@ void QActionEvent_override_virtual_Clone(void* self, intptr_t slot); QActionEvent* QActionEvent_virtualbase_Clone(const void* self); void QActionEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QActionEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QActionEvent_Delete(QActionEvent* self, bool isSubclass); +void QActionEvent_Delete(QActionEvent* self); QFileOpenEvent* QFileOpenEvent_new(struct miqt_string file); QFileOpenEvent* QFileOpenEvent_new2(QUrl* url); @@ -658,7 +658,7 @@ void QFileOpenEvent_override_virtual_Clone(void* self, intptr_t slot); QFileOpenEvent* QFileOpenEvent_virtualbase_Clone(const void* self); void QFileOpenEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QFileOpenEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QFileOpenEvent_Delete(QFileOpenEvent* self, bool isSubclass); +void QFileOpenEvent_Delete(QFileOpenEvent* self); QToolBarChangeEvent* QToolBarChangeEvent_new(bool t); void QToolBarChangeEvent_virtbase(QToolBarChangeEvent* src, QEvent** outptr_QEvent); @@ -668,7 +668,7 @@ void QToolBarChangeEvent_override_virtual_Clone(void* self, intptr_t slot); QToolBarChangeEvent* QToolBarChangeEvent_virtualbase_Clone(const void* self); void QToolBarChangeEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QToolBarChangeEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QToolBarChangeEvent_Delete(QToolBarChangeEvent* self, bool isSubclass); +void QToolBarChangeEvent_Delete(QToolBarChangeEvent* self); QShortcutEvent* QShortcutEvent_new(QKeySequence* key, int id); QShortcutEvent* QShortcutEvent_new2(QKeySequence* key, int id, bool ambiguous); @@ -681,7 +681,7 @@ void QShortcutEvent_override_virtual_Clone(void* self, intptr_t slot); QShortcutEvent* QShortcutEvent_virtualbase_Clone(const void* self); void QShortcutEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QShortcutEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QShortcutEvent_Delete(QShortcutEvent* self, bool isSubclass); +void QShortcutEvent_Delete(QShortcutEvent* self); QWindowStateChangeEvent* QWindowStateChangeEvent_new(int oldState); QWindowStateChangeEvent* QWindowStateChangeEvent_new2(int oldState, bool isOverride); @@ -693,7 +693,7 @@ void QWindowStateChangeEvent_override_virtual_Clone(void* self, intptr_t slot); QWindowStateChangeEvent* QWindowStateChangeEvent_virtualbase_Clone(const void* self); void QWindowStateChangeEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QWindowStateChangeEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QWindowStateChangeEvent_Delete(QWindowStateChangeEvent* self, bool isSubclass); +void QWindowStateChangeEvent_Delete(QWindowStateChangeEvent* self); QTouchEvent* QTouchEvent_new(int eventType); QTouchEvent* QTouchEvent_new2(int eventType, QPointingDevice* device, int modifiers, uint8_t touchPointStates); @@ -721,7 +721,7 @@ void QTouchEvent_override_virtual_SetTimestamp(void* self, intptr_t slot); void QTouchEvent_virtualbase_SetTimestamp(void* self, unsigned long long timestamp); void QTouchEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QTouchEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QTouchEvent_Delete(QTouchEvent* self, bool isSubclass); +void QTouchEvent_Delete(QTouchEvent* self); QScrollPrepareEvent* QScrollPrepareEvent_new(QPointF* startPos); void QScrollPrepareEvent_virtbase(QScrollPrepareEvent* src, QEvent** outptr_QEvent); @@ -737,7 +737,7 @@ void QScrollPrepareEvent_override_virtual_Clone(void* self, intptr_t slot); QScrollPrepareEvent* QScrollPrepareEvent_virtualbase_Clone(const void* self); void QScrollPrepareEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QScrollPrepareEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QScrollPrepareEvent_Delete(QScrollPrepareEvent* self, bool isSubclass); +void QScrollPrepareEvent_Delete(QScrollPrepareEvent* self); QScrollEvent* QScrollEvent_new(QPointF* contentPos, QPointF* overshoot, int scrollState); void QScrollEvent_virtbase(QScrollEvent* src, QEvent** outptr_QEvent); @@ -749,7 +749,7 @@ void QScrollEvent_override_virtual_Clone(void* self, intptr_t slot); QScrollEvent* QScrollEvent_virtualbase_Clone(const void* self); void QScrollEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QScrollEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QScrollEvent_Delete(QScrollEvent* self, bool isSubclass); +void QScrollEvent_Delete(QScrollEvent* self); QScreenOrientationChangeEvent* QScreenOrientationChangeEvent_new(QScreen* screen, int orientation); void QScreenOrientationChangeEvent_virtbase(QScreenOrientationChangeEvent* src, QEvent** outptr_QEvent); @@ -760,7 +760,7 @@ void QScreenOrientationChangeEvent_override_virtual_Clone(void* self, intptr_t s QScreenOrientationChangeEvent* QScreenOrientationChangeEvent_virtualbase_Clone(const void* self); void QScreenOrientationChangeEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QScreenOrientationChangeEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QScreenOrientationChangeEvent_Delete(QScreenOrientationChangeEvent* self, bool isSubclass); +void QScreenOrientationChangeEvent_Delete(QScreenOrientationChangeEvent* self); QApplicationStateChangeEvent* QApplicationStateChangeEvent_new(int state); void QApplicationStateChangeEvent_virtbase(QApplicationStateChangeEvent* src, QEvent** outptr_QEvent); @@ -770,13 +770,13 @@ void QApplicationStateChangeEvent_override_virtual_Clone(void* self, intptr_t sl QApplicationStateChangeEvent* QApplicationStateChangeEvent_virtualbase_Clone(const void* self); void QApplicationStateChangeEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QApplicationStateChangeEvent_virtualbase_SetAccepted(void* self, bool accepted); -void QApplicationStateChangeEvent_Delete(QApplicationStateChangeEvent* self, bool isSubclass); +void QApplicationStateChangeEvent_Delete(QApplicationStateChangeEvent* self); QInputMethodEvent__Attribute* QInputMethodEvent__Attribute_new(int typ, int s, int l, QVariant* val); QInputMethodEvent__Attribute* QInputMethodEvent__Attribute_new2(int typ, int s, int l); QInputMethodEvent__Attribute* QInputMethodEvent__Attribute_new3(QInputMethodEvent__Attribute* param1); void QInputMethodEvent__Attribute_OperatorAssign(QInputMethodEvent__Attribute* self, QInputMethodEvent__Attribute* param1); -void QInputMethodEvent__Attribute_Delete(QInputMethodEvent__Attribute* self, bool isSubclass); +void QInputMethodEvent__Attribute_Delete(QInputMethodEvent__Attribute* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qeventloop.cpp b/qt6/gen_qeventloop.cpp index 4c13c936..dd7486f5 100644 --- a/qt6/gen_qeventloop.cpp +++ b/qt6/gen_qeventloop.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QEventLoop_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQEventLoop : public virtual QEventLoop { +class MiqtVirtualQEventLoop final : public QEventLoop { public: MiqtVirtualQEventLoop(): QEventLoop() {}; MiqtVirtualQEventLoop(QObject* parent): QEventLoop(parent) {}; - virtual ~MiqtVirtualQEventLoop() = default; + virtual ~MiqtVirtualQEventLoop() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -362,12 +362,8 @@ void QEventLoop_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQEventLoop*)(self) )->virtualbase_DisconnectNotify(signal); } -void QEventLoop_Delete(QEventLoop* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEventLoop_Delete(QEventLoop* self) { + delete self; } QEventLoopLocker* QEventLoopLocker_new() { @@ -382,11 +378,7 @@ QEventLoopLocker* QEventLoopLocker_new3(QThread* thread) { return new QEventLoopLocker(thread); } -void QEventLoopLocker_Delete(QEventLoopLocker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEventLoopLocker_Delete(QEventLoopLocker* self) { + delete self; } diff --git a/qt6/gen_qeventloop.go b/qt6/gen_qeventloop.go index da01de5e..d6de4292 100644 --- a/qt6/gen_qeventloop.go +++ b/qt6/gen_qeventloop.go @@ -355,7 +355,7 @@ func miqt_exec_callback_QEventLoop_DisconnectNotify(self *C.QEventLoop, cb C.int // Delete this object from C++ memory. func (this *QEventLoop) Delete() { - C.QEventLoop_Delete(this.h, C.bool(this.isSubclass)) + C.QEventLoop_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -426,7 +426,7 @@ func NewQEventLoopLocker3(thread *QThread) *QEventLoopLocker { // Delete this object from C++ memory. func (this *QEventLoopLocker) Delete() { - C.QEventLoopLocker_Delete(this.h, C.bool(this.isSubclass)) + C.QEventLoopLocker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qeventloop.h b/qt6/gen_qeventloop.h index de0d2f32..c0aeacca 100644 --- a/qt6/gen_qeventloop.h +++ b/qt6/gen_qeventloop.h @@ -69,12 +69,12 @@ void QEventLoop_override_virtual_ConnectNotify(void* self, intptr_t slot); void QEventLoop_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QEventLoop_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QEventLoop_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QEventLoop_Delete(QEventLoop* self, bool isSubclass); +void QEventLoop_Delete(QEventLoop* self); QEventLoopLocker* QEventLoopLocker_new(); QEventLoopLocker* QEventLoopLocker_new2(QEventLoop* loop); QEventLoopLocker* QEventLoopLocker_new3(QThread* thread); -void QEventLoopLocker_Delete(QEventLoopLocker* self, bool isSubclass); +void QEventLoopLocker_Delete(QEventLoopLocker* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qeventpoint.cpp b/qt6/gen_qeventpoint.cpp index 643148ba..888e5e98 100644 --- a/qt6/gen_qeventpoint.cpp +++ b/qt6/gen_qeventpoint.cpp @@ -218,11 +218,7 @@ void QEventPoint_SetAccepted1(QEventPoint* self, bool accepted) { self->setAccepted(accepted); } -void QEventPoint_Delete(QEventPoint* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QEventPoint_Delete(QEventPoint* self) { + delete self; } diff --git a/qt6/gen_qeventpoint.go b/qt6/gen_qeventpoint.go index e8a2c6d7..561ae973 100644 --- a/qt6/gen_qeventpoint.go +++ b/qt6/gen_qeventpoint.go @@ -330,7 +330,7 @@ func (this *QEventPoint) SetAccepted1(accepted bool) { // Delete this object from C++ memory. func (this *QEventPoint) Delete() { - C.QEventPoint_Delete(this.h, C.bool(this.isSubclass)) + C.QEventPoint_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qeventpoint.h b/qt6/gen_qeventpoint.h index aa5291bb..daf2e35a 100644 --- a/qt6/gen_qeventpoint.h +++ b/qt6/gen_qeventpoint.h @@ -79,7 +79,7 @@ QSizeF* QEventPoint_EllipseDiameters(const QEventPoint* self); bool QEventPoint_IsAccepted(const QEventPoint* self); void QEventPoint_SetAccepted(QEventPoint* self); void QEventPoint_SetAccepted1(QEventPoint* self, bool accepted); -void QEventPoint_Delete(QEventPoint* self, bool isSubclass); +void QEventPoint_Delete(QEventPoint* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfactoryinterface.cpp b/qt6/gen_qfactoryinterface.cpp index a64a4cd3..a1a861d0 100644 --- a/qt6/gen_qfactoryinterface.cpp +++ b/qt6/gen_qfactoryinterface.cpp @@ -34,11 +34,7 @@ struct miqt_array /* of struct miqt_string */ QFactoryInterface_Keys(const QFac return _out; } -void QFactoryInterface_Delete(QFactoryInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFactoryInterface_Delete(QFactoryInterface* self) { + delete self; } diff --git a/qt6/gen_qfactoryinterface.go b/qt6/gen_qfactoryinterface.go index 587896d8..41e8c944 100644 --- a/qt6/gen_qfactoryinterface.go +++ b/qt6/gen_qfactoryinterface.go @@ -61,7 +61,7 @@ func (this *QFactoryInterface) Keys() []string { // Delete this object from C++ memory. func (this *QFactoryInterface) Delete() { - C.QFactoryInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QFactoryInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfactoryinterface.h b/qt6/gen_qfactoryinterface.h index a68b8732..3e6e302b 100644 --- a/qt6/gen_qfactoryinterface.h +++ b/qt6/gen_qfactoryinterface.h @@ -21,7 +21,7 @@ typedef struct QFactoryInterface QFactoryInterface; #endif struct miqt_array /* of struct miqt_string */ QFactoryInterface_Keys(const QFactoryInterface* self); -void QFactoryInterface_Delete(QFactoryInterface* self, bool isSubclass); +void QFactoryInterface_Delete(QFactoryInterface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfile.cpp b/qt6/gen_qfile.cpp index 5c8f5693..5cc4663e 100644 --- a/qt6/gen_qfile.cpp +++ b/qt6/gen_qfile.cpp @@ -33,7 +33,7 @@ long long miqt_exec_callback_QFile_ReadLineData(void*, intptr_t, char*, long lon } /* extern C */ #endif -class MiqtVirtualQFile : public virtual QFile { +class MiqtVirtualQFile final : public QFile { public: MiqtVirtualQFile(): QFile() {}; @@ -41,7 +41,7 @@ public: MiqtVirtualQFile(QObject* parent): QFile(parent) {}; MiqtVirtualQFile(const QString& name, QObject* parent): QFile(name, parent) {}; - virtual ~MiqtVirtualQFile() = default; + virtual ~MiqtVirtualQFile() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__FileName = 0; @@ -742,11 +742,7 @@ long long QFile_virtualbase_ReadLineData(void* self, char* data, long long maxle return ( (MiqtVirtualQFile*)(self) )->virtualbase_ReadLineData(data, maxlen); } -void QFile_Delete(QFile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFile_Delete(QFile* self) { + delete self; } diff --git a/qt6/gen_qfile.go b/qt6/gen_qfile.go index 728a3e5d..be631506 100644 --- a/qt6/gen_qfile.go +++ b/qt6/gen_qfile.go @@ -739,7 +739,7 @@ func miqt_exec_callback_QFile_ReadLineData(self *C.QFile, cb C.intptr_t, data *C // Delete this object from C++ memory. func (this *QFile) Delete() { - C.QFile_Delete(this.h, C.bool(this.isSubclass)) + C.QFile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfile.h b/qt6/gen_qfile.h index d3aa1c3f..e13511b8 100644 --- a/qt6/gen_qfile.h +++ b/qt6/gen_qfile.h @@ -98,7 +98,7 @@ void QFile_override_virtual_WriteData(void* self, intptr_t slot); long long QFile_virtualbase_WriteData(void* self, const char* data, long long lenVal); void QFile_override_virtual_ReadLineData(void* self, intptr_t slot); long long QFile_virtualbase_ReadLineData(void* self, char* data, long long maxlen); -void QFile_Delete(QFile* self, bool isSubclass); +void QFile_Delete(QFile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfiledevice.cpp b/qt6/gen_qfiledevice.cpp index 60c80508..91e063fa 100644 --- a/qt6/gen_qfiledevice.cpp +++ b/qt6/gen_qfiledevice.cpp @@ -152,11 +152,7 @@ unsigned char* QFileDevice_Map3(QFileDevice* self, long long offset, long long s return static_cast(_ret); } -void QFileDevice_Delete(QFileDevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileDevice_Delete(QFileDevice* self) { + delete self; } diff --git a/qt6/gen_qfiledevice.go b/qt6/gen_qfiledevice.go index c13c00c3..12c1126b 100644 --- a/qt6/gen_qfiledevice.go +++ b/qt6/gen_qfiledevice.go @@ -234,7 +234,7 @@ func (this *QFileDevice) Map3(offset int64, size int64, flags QFileDevice__Memor // Delete this object from C++ memory. func (this *QFileDevice) Delete() { - C.QFileDevice_Delete(this.h, C.bool(this.isSubclass)) + C.QFileDevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfiledevice.h b/qt6/gen_qfiledevice.h index b9f67a87..93e24b8f 100644 --- a/qt6/gen_qfiledevice.h +++ b/qt6/gen_qfiledevice.h @@ -58,7 +58,7 @@ long long QFileDevice_ReadLineData(QFileDevice* self, char* data, long long maxl struct miqt_string QFileDevice_Tr2(const char* s, const char* c); struct miqt_string QFileDevice_Tr3(const char* s, const char* c, int n); unsigned char* QFileDevice_Map3(QFileDevice* self, long long offset, long long size, int flags); -void QFileDevice_Delete(QFileDevice* self, bool isSubclass); +void QFileDevice_Delete(QFileDevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfiledialog.cpp b/qt6/gen_qfiledialog.cpp index 4a777bc7..4e0a7da6 100644 --- a/qt6/gen_qfiledialog.cpp +++ b/qt6/gen_qfiledialog.cpp @@ -56,7 +56,7 @@ bool miqt_exec_callback_QFileDialog_EventFilter(void*, intptr_t, QObject*, QEven } /* extern C */ #endif -class MiqtVirtualQFileDialog : public virtual QFileDialog { +class MiqtVirtualQFileDialog final : public QFileDialog { public: MiqtVirtualQFileDialog(QWidget* parent): QFileDialog(parent) {}; @@ -66,7 +66,7 @@ public: MiqtVirtualQFileDialog(QWidget* parent, const QString& caption, const QString& directory): QFileDialog(parent, caption, directory) {}; MiqtVirtualQFileDialog(QWidget* parent, const QString& caption, const QString& directory, const QString& filter): QFileDialog(parent, caption, directory, filter) {}; - virtual ~MiqtVirtualQFileDialog() = default; + virtual ~MiqtVirtualQFileDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -1615,11 +1615,7 @@ bool QFileDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* pa return ( (MiqtVirtualQFileDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QFileDialog_Delete(QFileDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileDialog_Delete(QFileDialog* self) { + delete self; } diff --git a/qt6/gen_qfiledialog.go b/qt6/gen_qfiledialog.go index 6be3afa3..216854a9 100644 --- a/qt6/gen_qfiledialog.go +++ b/qt6/gen_qfiledialog.go @@ -1698,7 +1698,7 @@ func miqt_exec_callback_QFileDialog_EventFilter(self *C.QFileDialog, cb C.intptr // Delete this object from C++ memory. func (this *QFileDialog) Delete() { - C.QFileDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QFileDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfiledialog.h b/qt6/gen_qfiledialog.h index 5b0724cd..39d03232 100644 --- a/qt6/gen_qfiledialog.h +++ b/qt6/gen_qfiledialog.h @@ -209,7 +209,7 @@ void QFileDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QFileDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QFileDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QFileDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QFileDialog_Delete(QFileDialog* self, bool isSubclass); +void QFileDialog_Delete(QFileDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfileiconprovider.cpp b/qt6/gen_qfileiconprovider.cpp index 203d294d..11f200de 100644 --- a/qt6/gen_qfileiconprovider.cpp +++ b/qt6/gen_qfileiconprovider.cpp @@ -21,12 +21,12 @@ int miqt_exec_callback_QFileIconProvider_Options(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQFileIconProvider : public virtual QFileIconProvider { +class MiqtVirtualQFileIconProvider final : public QFileIconProvider { public: MiqtVirtualQFileIconProvider(): QFileIconProvider() {}; - virtual ~MiqtVirtualQFileIconProvider() = default; + virtual ~MiqtVirtualQFileIconProvider() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Icon = 0; @@ -216,11 +216,7 @@ int QFileIconProvider_virtualbase_Options(const void* self) { return ( (const MiqtVirtualQFileIconProvider*)(self) )->virtualbase_Options(); } -void QFileIconProvider_Delete(QFileIconProvider* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileIconProvider_Delete(QFileIconProvider* self) { + delete self; } diff --git a/qt6/gen_qfileiconprovider.go b/qt6/gen_qfileiconprovider.go index 6b9bc21c..0790f6ba 100644 --- a/qt6/gen_qfileiconprovider.go +++ b/qt6/gen_qfileiconprovider.go @@ -218,7 +218,7 @@ func miqt_exec_callback_QFileIconProvider_Options(self *C.QFileIconProvider, cb // Delete this object from C++ memory. func (this *QFileIconProvider) Delete() { - C.QFileIconProvider_Delete(this.h, C.bool(this.isSubclass)) + C.QFileIconProvider_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfileiconprovider.h b/qt6/gen_qfileiconprovider.h index da3c4458..d0bcca7f 100644 --- a/qt6/gen_qfileiconprovider.h +++ b/qt6/gen_qfileiconprovider.h @@ -40,7 +40,7 @@ void QFileIconProvider_override_virtual_SetOptions(void* self, intptr_t slot); void QFileIconProvider_virtualbase_SetOptions(void* self, int options); void QFileIconProvider_override_virtual_Options(void* self, intptr_t slot); int QFileIconProvider_virtualbase_Options(const void* self); -void QFileIconProvider_Delete(QFileIconProvider* self, bool isSubclass); +void QFileIconProvider_Delete(QFileIconProvider* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfileinfo.cpp b/qt6/gen_qfileinfo.cpp index 9550af64..7894a679 100644 --- a/qt6/gen_qfileinfo.cpp +++ b/qt6/gen_qfileinfo.cpp @@ -389,11 +389,7 @@ void QFileInfo_Stat(QFileInfo* self) { self->stat(); } -void QFileInfo_Delete(QFileInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileInfo_Delete(QFileInfo* self) { + delete self; } diff --git a/qt6/gen_qfileinfo.go b/qt6/gen_qfileinfo.go index 33fd5d54..2feff3ee 100644 --- a/qt6/gen_qfileinfo.go +++ b/qt6/gen_qfileinfo.go @@ -402,7 +402,7 @@ func (this *QFileInfo) Stat() { // Delete this object from C++ memory. func (this *QFileInfo) Delete() { - C.QFileInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QFileInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfileinfo.h b/qt6/gen_qfileinfo.h index c942978c..0e50d896 100644 --- a/qt6/gen_qfileinfo.h +++ b/qt6/gen_qfileinfo.h @@ -89,7 +89,7 @@ QDateTime* QFileInfo_FileTime(const QFileInfo* self, int time); bool QFileInfo_Caching(const QFileInfo* self); void QFileInfo_SetCaching(QFileInfo* self, bool on); void QFileInfo_Stat(QFileInfo* self); -void QFileInfo_Delete(QFileInfo* self, bool isSubclass); +void QFileInfo_Delete(QFileInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfileselector.cpp b/qt6/gen_qfileselector.cpp index 684fc699..fb80255b 100644 --- a/qt6/gen_qfileselector.cpp +++ b/qt6/gen_qfileselector.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QFileSelector_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQFileSelector : public virtual QFileSelector { +class MiqtVirtualQFileSelector final : public QFileSelector { public: MiqtVirtualQFileSelector(): QFileSelector() {}; MiqtVirtualQFileSelector(QObject* parent): QFileSelector(parent) {}; - virtual ~MiqtVirtualQFileSelector() = default; + virtual ~MiqtVirtualQFileSelector() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -385,11 +385,7 @@ void QFileSelector_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQFileSelector*)(self) )->virtualbase_DisconnectNotify(signal); } -void QFileSelector_Delete(QFileSelector* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileSelector_Delete(QFileSelector* self) { + delete self; } diff --git a/qt6/gen_qfileselector.go b/qt6/gen_qfileselector.go index 2b5977d3..6d41075b 100644 --- a/qt6/gen_qfileselector.go +++ b/qt6/gen_qfileselector.go @@ -355,7 +355,7 @@ func miqt_exec_callback_QFileSelector_DisconnectNotify(self *C.QFileSelector, cb // Delete this object from C++ memory. func (this *QFileSelector) Delete() { - C.QFileSelector_Delete(this.h, C.bool(this.isSubclass)) + C.QFileSelector_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfileselector.h b/qt6/gen_qfileselector.h index 2efc5983..22e9a414 100644 --- a/qt6/gen_qfileselector.h +++ b/qt6/gen_qfileselector.h @@ -61,7 +61,7 @@ void QFileSelector_override_virtual_ConnectNotify(void* self, intptr_t slot); void QFileSelector_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QFileSelector_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QFileSelector_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QFileSelector_Delete(QFileSelector* self, bool isSubclass); +void QFileSelector_Delete(QFileSelector* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfilesystemmodel.cpp b/qt6/gen_qfilesystemmodel.cpp index 53513d01..64a9a222 100644 --- a/qt6/gen_qfilesystemmodel.cpp +++ b/qt6/gen_qfilesystemmodel.cpp @@ -73,13 +73,13 @@ void miqt_exec_callback_QFileSystemModel_ResetInternalData(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQFileSystemModel : public virtual QFileSystemModel { +class MiqtVirtualQFileSystemModel final : public QFileSystemModel { public: MiqtVirtualQFileSystemModel(): QFileSystemModel() {}; MiqtVirtualQFileSystemModel(QObject* parent): QFileSystemModel(parent) {}; - virtual ~MiqtVirtualQFileSystemModel() = default; + virtual ~MiqtVirtualQFileSystemModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Index = 0; @@ -1971,11 +1971,7 @@ void QFileSystemModel_virtualbase_ResetInternalData(void* self) { ( (MiqtVirtualQFileSystemModel*)(self) )->virtualbase_ResetInternalData(); } -void QFileSystemModel_Delete(QFileSystemModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileSystemModel_Delete(QFileSystemModel* self) { + delete self; } diff --git a/qt6/gen_qfilesystemmodel.go b/qt6/gen_qfilesystemmodel.go index 2dc794ea..a4ec25d0 100644 --- a/qt6/gen_qfilesystemmodel.go +++ b/qt6/gen_qfilesystemmodel.go @@ -1840,7 +1840,7 @@ func miqt_exec_callback_QFileSystemModel_ResetInternalData(self *C.QFileSystemMo // Delete this object from C++ memory. func (this *QFileSystemModel) Delete() { - C.QFileSystemModel_Delete(this.h, C.bool(this.isSubclass)) + C.QFileSystemModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfilesystemmodel.h b/qt6/gen_qfilesystemmodel.h index e515f5c4..549cd06f 100644 --- a/qt6/gen_qfilesystemmodel.h +++ b/qt6/gen_qfilesystemmodel.h @@ -198,7 +198,7 @@ void QFileSystemModel_override_virtual_Revert(void* self, intptr_t slot); void QFileSystemModel_virtualbase_Revert(void* self); void QFileSystemModel_override_virtual_ResetInternalData(void* self, intptr_t slot); void QFileSystemModel_virtualbase_ResetInternalData(void* self); -void QFileSystemModel_Delete(QFileSystemModel* self, bool isSubclass); +void QFileSystemModel_Delete(QFileSystemModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfilesystemwatcher.cpp b/qt6/gen_qfilesystemwatcher.cpp index 648177c5..0b950317 100644 --- a/qt6/gen_qfilesystemwatcher.cpp +++ b/qt6/gen_qfilesystemwatcher.cpp @@ -27,7 +27,7 @@ void miqt_exec_callback_QFileSystemWatcher_DisconnectNotify(void*, intptr_t, QMe } /* extern C */ #endif -class MiqtVirtualQFileSystemWatcher : public virtual QFileSystemWatcher { +class MiqtVirtualQFileSystemWatcher final : public QFileSystemWatcher { public: MiqtVirtualQFileSystemWatcher(): QFileSystemWatcher() {}; @@ -35,7 +35,7 @@ public: MiqtVirtualQFileSystemWatcher(QObject* parent): QFileSystemWatcher(parent) {}; MiqtVirtualQFileSystemWatcher(const QStringList& paths, QObject* parent): QFileSystemWatcher(paths, parent) {}; - virtual ~MiqtVirtualQFileSystemWatcher() = default; + virtual ~MiqtVirtualQFileSystemWatcher() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -445,11 +445,7 @@ void QFileSystemWatcher_virtualbase_DisconnectNotify(void* self, QMetaMethod* si ( (MiqtVirtualQFileSystemWatcher*)(self) )->virtualbase_DisconnectNotify(signal); } -void QFileSystemWatcher_Delete(QFileSystemWatcher* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFileSystemWatcher_Delete(QFileSystemWatcher* self) { + delete self; } diff --git a/qt6/gen_qfilesystemwatcher.go b/qt6/gen_qfilesystemwatcher.go index 9d641d1e..65eed895 100644 --- a/qt6/gen_qfilesystemwatcher.go +++ b/qt6/gen_qfilesystemwatcher.go @@ -422,7 +422,7 @@ func miqt_exec_callback_QFileSystemWatcher_DisconnectNotify(self *C.QFileSystemW // Delete this object from C++ memory. func (this *QFileSystemWatcher) Delete() { - C.QFileSystemWatcher_Delete(this.h, C.bool(this.isSubclass)) + C.QFileSystemWatcher_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfilesystemwatcher.h b/qt6/gen_qfilesystemwatcher.h index 9e9b7193..44647108 100644 --- a/qt6/gen_qfilesystemwatcher.h +++ b/qt6/gen_qfilesystemwatcher.h @@ -62,7 +62,7 @@ void QFileSystemWatcher_override_virtual_ConnectNotify(void* self, intptr_t slot void QFileSystemWatcher_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QFileSystemWatcher_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QFileSystemWatcher_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QFileSystemWatcher_Delete(QFileSystemWatcher* self, bool isSubclass); +void QFileSystemWatcher_Delete(QFileSystemWatcher* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfloat16.cpp b/qt6/gen_qfloat16.cpp index 2ae05f3d..32721bfd 100644 --- a/qt6/gen_qfloat16.cpp +++ b/qt6/gen_qfloat16.cpp @@ -41,11 +41,7 @@ bool qfloat16_IsNormal(const qfloat16* self) { return self->isNormal(); } -void qfloat16_Delete(qfloat16* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void qfloat16_Delete(qfloat16* self) { + delete self; } diff --git a/qt6/gen_qfloat16.go b/qt6/gen_qfloat16.go index 3b93060a..8b2102d6 100644 --- a/qt6/gen_qfloat16.go +++ b/qt6/gen_qfloat16.go @@ -92,7 +92,7 @@ func (this *qfloat16) IsNormal() bool { // Delete this object from C++ memory. func (this *qfloat16) Delete() { - C.qfloat16_Delete(this.h, C.bool(this.isSubclass)) + C.qfloat16_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfloat16.h b/qt6/gen_qfloat16.h index 270a6749..d9da7ce1 100644 --- a/qt6/gen_qfloat16.h +++ b/qt6/gen_qfloat16.h @@ -28,7 +28,7 @@ bool qfloat16_IsNaN(const qfloat16* self); bool qfloat16_IsFinite(const qfloat16* self); int qfloat16_FpClassify(const qfloat16* self); bool qfloat16_IsNormal(const qfloat16* self); -void qfloat16_Delete(qfloat16* self, bool isSubclass); +void qfloat16_Delete(qfloat16* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfocusframe.cpp b/qt6/gen_qfocusframe.cpp index 0284ca0f..d3dec163 100644 --- a/qt6/gen_qfocusframe.cpp +++ b/qt6/gen_qfocusframe.cpp @@ -87,13 +87,13 @@ bool miqt_exec_callback_QFocusFrame_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQFocusFrame : public virtual QFocusFrame { +class MiqtVirtualQFocusFrame final : public QFocusFrame { public: MiqtVirtualQFocusFrame(QWidget* parent): QFocusFrame(parent) {}; MiqtVirtualQFocusFrame(): QFocusFrame() {}; - virtual ~MiqtVirtualQFocusFrame() = default; + virtual ~MiqtVirtualQFocusFrame() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1526,11 +1526,7 @@ bool QFocusFrame_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQFocusFrame*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QFocusFrame_Delete(QFocusFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFocusFrame_Delete(QFocusFrame* self) { + delete self; } diff --git a/qt6/gen_qfocusframe.go b/qt6/gen_qfocusframe.go index e1b96310..55f5f354 100644 --- a/qt6/gen_qfocusframe.go +++ b/qt6/gen_qfocusframe.go @@ -1263,7 +1263,7 @@ func miqt_exec_callback_QFocusFrame_FocusNextPrevChild(self *C.QFocusFrame, cb C // Delete this object from C++ memory. func (this *QFocusFrame) Delete() { - C.QFocusFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QFocusFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfocusframe.h b/qt6/gen_qfocusframe.h index d52898e3..3d83ad4d 100644 --- a/qt6/gen_qfocusframe.h +++ b/qt6/gen_qfocusframe.h @@ -180,7 +180,7 @@ void QFocusFrame_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QFocusFrame_virtualbase_InputMethodQuery(const void* self, int param1); void QFocusFrame_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QFocusFrame_virtualbase_FocusNextPrevChild(void* self, bool next); -void QFocusFrame_Delete(QFocusFrame* self, bool isSubclass); +void QFocusFrame_Delete(QFocusFrame* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfont.cpp b/qt6/gen_qfont.cpp index 3c4ac35b..90490c60 100644 --- a/qt6/gen_qfont.cpp +++ b/qt6/gen_qfont.cpp @@ -504,11 +504,7 @@ void QFont_SetStyleHint2(QFont* self, int param1, int param2) { self->setStyleHint(static_cast(param1), static_cast(param2)); } -void QFont_Delete(QFont* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFont_Delete(QFont* self) { + delete self; } diff --git a/qt6/gen_qfont.go b/qt6/gen_qfont.go index 51b784ec..656d6cae 100644 --- a/qt6/gen_qfont.go +++ b/qt6/gen_qfont.go @@ -708,7 +708,7 @@ func (this *QFont) SetStyleHint2(param1 QFont__StyleHint, param2 QFont__StyleStr // Delete this object from C++ memory. func (this *QFont) Delete() { - C.QFont_Delete(this.h, C.bool(this.isSubclass)) + C.QFont_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfont.h b/qt6/gen_qfont.h index 892abec9..a107b609 100644 --- a/qt6/gen_qfont.h +++ b/qt6/gen_qfont.h @@ -107,7 +107,7 @@ void QFont_SetResolveMask(QFont* self, unsigned int mask); void QFont_SetLegacyWeight(QFont* self, int legacyWeight); int QFont_LegacyWeight(const QFont* self); void QFont_SetStyleHint2(QFont* self, int param1, int param2); -void QFont_Delete(QFont* self, bool isSubclass); +void QFont_Delete(QFont* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfontcombobox.cpp b/qt6/gen_qfontcombobox.cpp index 7778d71f..459b40dd 100644 --- a/qt6/gen_qfontcombobox.cpp +++ b/qt6/gen_qfontcombobox.cpp @@ -57,13 +57,13 @@ void miqt_exec_callback_QFontComboBox_InitStyleOption(void*, intptr_t, QStyleOpt } /* extern C */ #endif -class MiqtVirtualQFontComboBox : public virtual QFontComboBox { +class MiqtVirtualQFontComboBox final : public QFontComboBox { public: MiqtVirtualQFontComboBox(QWidget* parent): QFontComboBox(parent) {}; MiqtVirtualQFontComboBox(): QFontComboBox() {}; - virtual ~MiqtVirtualQFontComboBox() = default; + virtual ~MiqtVirtualQFontComboBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -899,11 +899,7 @@ void QFontComboBox_virtualbase_InitStyleOption(const void* self, QStyleOptionCom ( (const MiqtVirtualQFontComboBox*)(self) )->virtualbase_InitStyleOption(option); } -void QFontComboBox_Delete(QFontComboBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontComboBox_Delete(QFontComboBox* self) { + delete self; } diff --git a/qt6/gen_qfontcombobox.go b/qt6/gen_qfontcombobox.go index 816ab13b..5c0508d7 100644 --- a/qt6/gen_qfontcombobox.go +++ b/qt6/gen_qfontcombobox.go @@ -792,7 +792,7 @@ func miqt_exec_callback_QFontComboBox_InitStyleOption(self *C.QFontComboBox, cb // Delete this object from C++ memory. func (this *QFontComboBox) Delete() { - C.QFontComboBox_Delete(this.h, C.bool(this.isSubclass)) + C.QFontComboBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfontcombobox.h b/qt6/gen_qfontcombobox.h index ff45f8ea..0a2d6380 100644 --- a/qt6/gen_qfontcombobox.h +++ b/qt6/gen_qfontcombobox.h @@ -129,7 +129,7 @@ void QFontComboBox_override_virtual_InputMethodEvent(void* self, intptr_t slot); void QFontComboBox_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* param1); void QFontComboBox_override_virtual_InitStyleOption(void* self, intptr_t slot); void QFontComboBox_virtualbase_InitStyleOption(const void* self, QStyleOptionComboBox* option); -void QFontComboBox_Delete(QFontComboBox* self, bool isSubclass); +void QFontComboBox_Delete(QFontComboBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfontdatabase.cpp b/qt6/gen_qfontdatabase.cpp index 9a6cb05e..66be35f1 100644 --- a/qt6/gen_qfontdatabase.cpp +++ b/qt6/gen_qfontdatabase.cpp @@ -332,11 +332,7 @@ bool QFontDatabase_IsFixedPitch2(struct miqt_string family, struct miqt_string s return QFontDatabase::isFixedPitch(family_QString, style_QString); } -void QFontDatabase_Delete(QFontDatabase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontDatabase_Delete(QFontDatabase* self) { + delete self; } diff --git a/qt6/gen_qfontdatabase.go b/qt6/gen_qfontdatabase.go index 2d2bc064..b2515f2b 100644 --- a/qt6/gen_qfontdatabase.go +++ b/qt6/gen_qfontdatabase.go @@ -449,7 +449,7 @@ func QFontDatabase_IsFixedPitch2(family string, style string) bool { // Delete this object from C++ memory. func (this *QFontDatabase) Delete() { - C.QFontDatabase_Delete(this.h, C.bool(this.isSubclass)) + C.QFontDatabase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfontdatabase.h b/qt6/gen_qfontdatabase.h index 3875ef15..923434c9 100644 --- a/qt6/gen_qfontdatabase.h +++ b/qt6/gen_qfontdatabase.h @@ -58,7 +58,7 @@ bool QFontDatabase_IsBitmapScalable2(struct miqt_string family, struct miqt_stri bool QFontDatabase_IsSmoothlyScalable2(struct miqt_string family, struct miqt_string style); bool QFontDatabase_IsScalable2(struct miqt_string family, struct miqt_string style); bool QFontDatabase_IsFixedPitch2(struct miqt_string family, struct miqt_string style); -void QFontDatabase_Delete(QFontDatabase* self, bool isSubclass); +void QFontDatabase_Delete(QFontDatabase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfontdialog.cpp b/qt6/gen_qfontdialog.cpp index 63112eed..13c77d14 100644 --- a/qt6/gen_qfontdialog.cpp +++ b/qt6/gen_qfontdialog.cpp @@ -43,7 +43,7 @@ void miqt_exec_callback_QFontDialog_ContextMenuEvent(void*, intptr_t, QContextMe } /* extern C */ #endif -class MiqtVirtualQFontDialog : public virtual QFontDialog { +class MiqtVirtualQFontDialog final : public QFontDialog { public: MiqtVirtualQFontDialog(QWidget* parent): QFontDialog(parent) {}; @@ -51,7 +51,7 @@ public: MiqtVirtualQFontDialog(const QFont& initial): QFontDialog(initial) {}; MiqtVirtualQFontDialog(const QFont& initial, QWidget* parent): QFontDialog(initial, parent) {}; - virtual ~MiqtVirtualQFontDialog() = default; + virtual ~MiqtVirtualQFontDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -676,11 +676,7 @@ void QFontDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* par ( (MiqtVirtualQFontDialog*)(self) )->virtualbase_ContextMenuEvent(param1); } -void QFontDialog_Delete(QFontDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontDialog_Delete(QFontDialog* self) { + delete self; } diff --git a/qt6/gen_qfontdialog.go b/qt6/gen_qfontdialog.go index bd0be8fb..7d19c944 100644 --- a/qt6/gen_qfontdialog.go +++ b/qt6/gen_qfontdialog.go @@ -647,7 +647,7 @@ func miqt_exec_callback_QFontDialog_ContextMenuEvent(self *C.QFontDialog, cb C.i // Delete this object from C++ memory. func (this *QFontDialog) Delete() { - C.QFontDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QFontDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfontdialog.h b/qt6/gen_qfontdialog.h index 0cc09aa0..b9f2bc52 100644 --- a/qt6/gen_qfontdialog.h +++ b/qt6/gen_qfontdialog.h @@ -108,7 +108,7 @@ void QFontDialog_override_virtual_ResizeEvent(void* self, intptr_t slot); void QFontDialog_virtualbase_ResizeEvent(void* self, QResizeEvent* param1); void QFontDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QFontDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); -void QFontDialog_Delete(QFontDialog* self, bool isSubclass); +void QFontDialog_Delete(QFontDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfontinfo.cpp b/qt6/gen_qfontinfo.cpp index 1189a1ae..61c5bb0c 100644 --- a/qt6/gen_qfontinfo.cpp +++ b/qt6/gen_qfontinfo.cpp @@ -111,11 +111,7 @@ bool QFontInfo_ExactMatch(const QFontInfo* self) { return self->exactMatch(); } -void QFontInfo_Delete(QFontInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontInfo_Delete(QFontInfo* self) { + delete self; } diff --git a/qt6/gen_qfontinfo.go b/qt6/gen_qfontinfo.go index 4c7abd3d..e66f0456 100644 --- a/qt6/gen_qfontinfo.go +++ b/qt6/gen_qfontinfo.go @@ -142,7 +142,7 @@ func (this *QFontInfo) ExactMatch() bool { // Delete this object from C++ memory. func (this *QFontInfo) Delete() { - C.QFontInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QFontInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfontinfo.h b/qt6/gen_qfontinfo.h index 4ff3fb5f..0bf8e133 100644 --- a/qt6/gen_qfontinfo.h +++ b/qt6/gen_qfontinfo.h @@ -42,7 +42,7 @@ bool QFontInfo_FixedPitch(const QFontInfo* self); int QFontInfo_StyleHint(const QFontInfo* self); int QFontInfo_LegacyWeight(const QFontInfo* self); bool QFontInfo_ExactMatch(const QFontInfo* self); -void QFontInfo_Delete(QFontInfo* self, bool isSubclass); +void QFontInfo_Delete(QFontInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfontmetrics.cpp b/qt6/gen_qfontmetrics.cpp index d863ea81..85d530e7 100644 --- a/qt6/gen_qfontmetrics.cpp +++ b/qt6/gen_qfontmetrics.cpp @@ -243,12 +243,8 @@ struct miqt_string QFontMetrics_ElidedText4(const QFontMetrics* self, struct miq return _ms; } -void QFontMetrics_Delete(QFontMetrics* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontMetrics_Delete(QFontMetrics* self) { + delete self; } QFontMetricsF* QFontMetricsF_new(QFont* font) { @@ -486,11 +482,7 @@ struct miqt_string QFontMetricsF_ElidedText4(const QFontMetricsF* self, struct m return _ms; } -void QFontMetricsF_Delete(QFontMetricsF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFontMetricsF_Delete(QFontMetricsF* self) { + delete self; } diff --git a/qt6/gen_qfontmetrics.go b/qt6/gen_qfontmetrics.go index ac03096a..3050eba2 100644 --- a/qt6/gen_qfontmetrics.go +++ b/qt6/gen_qfontmetrics.go @@ -354,7 +354,7 @@ func (this *QFontMetrics) ElidedText4(text string, mode TextElideMode, width int // Delete this object from C++ memory. func (this *QFontMetrics) Delete() { - C.QFontMetrics_Delete(this.h, C.bool(this.isSubclass)) + C.QFontMetrics_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -689,7 +689,7 @@ func (this *QFontMetricsF) ElidedText4(text string, mode TextElideMode, width fl // Delete this object from C++ memory. func (this *QFontMetricsF) Delete() { - C.QFontMetricsF_Delete(this.h, C.bool(this.isSubclass)) + C.QFontMetricsF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfontmetrics.h b/qt6/gen_qfontmetrics.h index d0034f16..edca46a8 100644 --- a/qt6/gen_qfontmetrics.h +++ b/qt6/gen_qfontmetrics.h @@ -85,7 +85,7 @@ QRect* QFontMetrics_BoundingRect8(const QFontMetrics* self, int x, int y, int w, QSize* QFontMetrics_Size3(const QFontMetrics* self, int flags, struct miqt_string str, int tabstops); QSize* QFontMetrics_Size4(const QFontMetrics* self, int flags, struct miqt_string str, int tabstops, int* tabarray); struct miqt_string QFontMetrics_ElidedText4(const QFontMetrics* self, struct miqt_string text, int mode, int width, int flags); -void QFontMetrics_Delete(QFontMetrics* self, bool isSubclass); +void QFontMetrics_Delete(QFontMetrics* self); QFontMetricsF* QFontMetricsF_new(QFont* font); QFontMetricsF* QFontMetricsF_new2(QFont* font, QPaintDevice* pd); @@ -133,7 +133,7 @@ QRectF* QFontMetricsF_BoundingRect5(const QFontMetricsF* self, QRectF* r, int fl QSizeF* QFontMetricsF_Size3(const QFontMetricsF* self, int flags, struct miqt_string str, int tabstops); QSizeF* QFontMetricsF_Size4(const QFontMetricsF* self, int flags, struct miqt_string str, int tabstops, int* tabarray); struct miqt_string QFontMetricsF_ElidedText4(const QFontMetricsF* self, struct miqt_string text, int mode, double width, int flags); -void QFontMetricsF_Delete(QFontMetricsF* self, bool isSubclass); +void QFontMetricsF_Delete(QFontMetricsF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qformlayout.cpp b/qt6/gen_qformlayout.cpp index 27c2ce6a..efc770bf 100644 --- a/qt6/gen_qformlayout.cpp +++ b/qt6/gen_qformlayout.cpp @@ -43,13 +43,13 @@ void miqt_exec_callback_QFormLayout_ChildEvent(void*, intptr_t, QChildEvent*); } /* extern C */ #endif -class MiqtVirtualQFormLayout : public virtual QFormLayout { +class MiqtVirtualQFormLayout final : public QFormLayout { public: MiqtVirtualQFormLayout(QWidget* parent): QFormLayout(parent) {}; MiqtVirtualQFormLayout(): QFormLayout() {}; - virtual ~MiqtVirtualQFormLayout() = default; + virtual ~MiqtVirtualQFormLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Spacing = 0; @@ -990,19 +990,11 @@ void QFormLayout_virtualbase_ChildEvent(void* self, QChildEvent* e) { ( (MiqtVirtualQFormLayout*)(self) )->virtualbase_ChildEvent(e); } -void QFormLayout_Delete(QFormLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFormLayout_Delete(QFormLayout* self) { + delete self; } -void QFormLayout__TakeRowResult_Delete(QFormLayout__TakeRowResult* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFormLayout__TakeRowResult_Delete(QFormLayout__TakeRowResult* self) { + delete self; } diff --git a/qt6/gen_qformlayout.go b/qt6/gen_qformlayout.go index c0286142..9f9dde82 100644 --- a/qt6/gen_qformlayout.go +++ b/qt6/gen_qformlayout.go @@ -938,7 +938,7 @@ func miqt_exec_callback_QFormLayout_ChildEvent(self *C.QFormLayout, cb C.intptr_ // Delete this object from C++ memory. func (this *QFormLayout) Delete() { - C.QFormLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QFormLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -985,7 +985,7 @@ func UnsafeNewQFormLayout__TakeRowResult(h unsafe.Pointer) *QFormLayout__TakeRow // Delete this object from C++ memory. func (this *QFormLayout__TakeRowResult) Delete() { - C.QFormLayout__TakeRowResult_Delete(this.h, C.bool(this.isSubclass)) + C.QFormLayout__TakeRowResult_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qformlayout.h b/qt6/gen_qformlayout.h index 6bfdbc85..19b5752d 100644 --- a/qt6/gen_qformlayout.h +++ b/qt6/gen_qformlayout.h @@ -148,9 +148,9 @@ void QFormLayout_override_virtual_Layout(void* self, intptr_t slot); QLayout* QFormLayout_virtualbase_Layout(void* self); void QFormLayout_override_virtual_ChildEvent(void* self, intptr_t slot); void QFormLayout_virtualbase_ChildEvent(void* self, QChildEvent* e); -void QFormLayout_Delete(QFormLayout* self, bool isSubclass); +void QFormLayout_Delete(QFormLayout* self); -void QFormLayout__TakeRowResult_Delete(QFormLayout__TakeRowResult* self, bool isSubclass); +void QFormLayout__TakeRowResult_Delete(QFormLayout__TakeRowResult* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qframe.cpp b/qt6/gen_qframe.cpp index d2275f96..783a4318 100644 --- a/qt6/gen_qframe.cpp +++ b/qt6/gen_qframe.cpp @@ -87,14 +87,14 @@ bool miqt_exec_callback_QFrame_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQFrame : public virtual QFrame { +class MiqtVirtualQFrame final : public QFrame { public: MiqtVirtualQFrame(QWidget* parent): QFrame(parent) {}; MiqtVirtualQFrame(): QFrame() {}; MiqtVirtualQFrame(QWidget* parent, Qt::WindowFlags f): QFrame(parent, f) {}; - virtual ~MiqtVirtualQFrame() = default; + virtual ~MiqtVirtualQFrame() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1549,11 +1549,7 @@ bool QFrame_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQFrame*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QFrame_Delete(QFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFrame_Delete(QFrame* self) { + delete self; } diff --git a/qt6/gen_qframe.go b/qt6/gen_qframe.go index 7daa1b06..b07d9874 100644 --- a/qt6/gen_qframe.go +++ b/qt6/gen_qframe.go @@ -1320,7 +1320,7 @@ func miqt_exec_callback_QFrame_FocusNextPrevChild(self *C.QFrame, cb C.intptr_t, // Delete this object from C++ memory. func (this *QFrame) Delete() { - C.QFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qframe.h b/qt6/gen_qframe.h index 198d4777..f1c1aa53 100644 --- a/qt6/gen_qframe.h +++ b/qt6/gen_qframe.h @@ -193,7 +193,7 @@ void QFrame_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QFrame_virtualbase_InputMethodQuery(const void* self, int param1); void QFrame_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QFrame_virtualbase_FocusNextPrevChild(void* self, bool next); -void QFrame_Delete(QFrame* self, bool isSubclass); +void QFrame_Delete(QFrame* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfutureinterface.cpp b/qt6/gen_qfutureinterface.cpp index 180888de..b5d171c1 100644 --- a/qt6/gen_qfutureinterface.cpp +++ b/qt6/gen_qfutureinterface.cpp @@ -242,11 +242,7 @@ bool QFutureInterfaceBase_IsChainCanceled(const QFutureInterfaceBase* self) { return self->isChainCanceled(); } -void QFutureInterfaceBase_Delete(QFutureInterfaceBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFutureInterfaceBase_Delete(QFutureInterfaceBase* self) { + delete self; } diff --git a/qt6/gen_qfutureinterface.go b/qt6/gen_qfutureinterface.go index 38e517d3..c60a81f3 100644 --- a/qt6/gen_qfutureinterface.go +++ b/qt6/gen_qfutureinterface.go @@ -304,7 +304,7 @@ func (this *QFutureInterfaceBase) IsChainCanceled() bool { // Delete this object from C++ memory. func (this *QFutureInterfaceBase) Delete() { - C.QFutureInterfaceBase_Delete(this.h, C.bool(this.isSubclass)) + C.QFutureInterfaceBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfutureinterface.h b/qt6/gen_qfutureinterface.h index dd3c3062..aef73658 100644 --- a/qt6/gen_qfutureinterface.h +++ b/qt6/gen_qfutureinterface.h @@ -80,7 +80,7 @@ bool QFutureInterfaceBase_OperatorEqual(const QFutureInterfaceBase* self, QFutur bool QFutureInterfaceBase_OperatorNotEqual(const QFutureInterfaceBase* self, QFutureInterfaceBase* other); void QFutureInterfaceBase_Swap(QFutureInterfaceBase* self, QFutureInterfaceBase* other); bool QFutureInterfaceBase_IsChainCanceled(const QFutureInterfaceBase* self); -void QFutureInterfaceBase_Delete(QFutureInterfaceBase* self, bool isSubclass); +void QFutureInterfaceBase_Delete(QFutureInterfaceBase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qfuturewatcher.cpp b/qt6/gen_qfuturewatcher.cpp index b4c3e346..4c2ce861 100644 --- a/qt6/gen_qfuturewatcher.cpp +++ b/qt6/gen_qfuturewatcher.cpp @@ -304,11 +304,7 @@ struct miqt_string QFutureWatcherBase_Tr3(const char* s, const char* c, int n) { return _ms; } -void QFutureWatcherBase_Delete(QFutureWatcherBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QFutureWatcherBase_Delete(QFutureWatcherBase* self) { + delete self; } diff --git a/qt6/gen_qfuturewatcher.go b/qt6/gen_qfuturewatcher.go index 326a8862..363f06dd 100644 --- a/qt6/gen_qfuturewatcher.go +++ b/qt6/gen_qfuturewatcher.go @@ -415,7 +415,7 @@ func QFutureWatcherBase_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QFutureWatcherBase) Delete() { - C.QFutureWatcherBase_Delete(this.h, C.bool(this.isSubclass)) + C.QFutureWatcherBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qfuturewatcher.h b/qt6/gen_qfuturewatcher.h index 0d3890ed..54fe3bfc 100644 --- a/qt6/gen_qfuturewatcher.h +++ b/qt6/gen_qfuturewatcher.h @@ -82,7 +82,7 @@ void QFutureWatcherBase_ConnectNotify(QFutureWatcherBase* self, QMetaMethod* sig void QFutureWatcherBase_DisconnectNotify(QFutureWatcherBase* self, QMetaMethod* signal); struct miqt_string QFutureWatcherBase_Tr2(const char* s, const char* c); struct miqt_string QFutureWatcherBase_Tr3(const char* s, const char* c, int n); -void QFutureWatcherBase_Delete(QFutureWatcherBase* self, bool isSubclass); +void QFutureWatcherBase_Delete(QFutureWatcherBase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgenericplugin.cpp b/qt6/gen_qgenericplugin.cpp index dba48166..39a0a777 100644 --- a/qt6/gen_qgenericplugin.cpp +++ b/qt6/gen_qgenericplugin.cpp @@ -27,13 +27,13 @@ void miqt_exec_callback_QGenericPlugin_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQGenericPlugin : public virtual QGenericPlugin { +class MiqtVirtualQGenericPlugin final : public QGenericPlugin { public: MiqtVirtualQGenericPlugin(): QGenericPlugin() {}; MiqtVirtualQGenericPlugin(QObject* parent): QGenericPlugin(parent) {}; - virtual ~MiqtVirtualQGenericPlugin() = default; + virtual ~MiqtVirtualQGenericPlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -358,11 +358,7 @@ void QGenericPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQGenericPlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGenericPlugin_Delete(QGenericPlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGenericPlugin_Delete(QGenericPlugin* self) { + delete self; } diff --git a/qt6/gen_qgenericplugin.go b/qt6/gen_qgenericplugin.go index e42abdb7..f8f18164 100644 --- a/qt6/gen_qgenericplugin.go +++ b/qt6/gen_qgenericplugin.go @@ -339,7 +339,7 @@ func miqt_exec_callback_QGenericPlugin_DisconnectNotify(self *C.QGenericPlugin, // Delete this object from C++ memory. func (this *QGenericPlugin) Delete() { - C.QGenericPlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QGenericPlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgenericplugin.h b/qt6/gen_qgenericplugin.h index 18ec3afe..1638f7ba 100644 --- a/qt6/gen_qgenericplugin.h +++ b/qt6/gen_qgenericplugin.h @@ -57,7 +57,7 @@ void QGenericPlugin_override_virtual_ConnectNotify(void* self, intptr_t slot); void QGenericPlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGenericPlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGenericPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGenericPlugin_Delete(QGenericPlugin* self, bool isSubclass); +void QGenericPlugin_Delete(QGenericPlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgenericpluginfactory.cpp b/qt6/gen_qgenericpluginfactory.cpp index b4f6fd64..3ebbf63c 100644 --- a/qt6/gen_qgenericpluginfactory.cpp +++ b/qt6/gen_qgenericpluginfactory.cpp @@ -41,11 +41,7 @@ QObject* QGenericPluginFactory_Create(struct miqt_string param1, struct miqt_str return QGenericPluginFactory::create(param1_QString, param2_QString); } -void QGenericPluginFactory_Delete(QGenericPluginFactory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGenericPluginFactory_Delete(QGenericPluginFactory* self) { + delete self; } diff --git a/qt6/gen_qgenericpluginfactory.go b/qt6/gen_qgenericpluginfactory.go index 9e57ca44..7c08eca6 100644 --- a/qt6/gen_qgenericpluginfactory.go +++ b/qt6/gen_qgenericpluginfactory.go @@ -73,7 +73,7 @@ func QGenericPluginFactory_Create(param1 string, param2 string) *QObject { // Delete this object from C++ memory. func (this *QGenericPluginFactory) Delete() { - C.QGenericPluginFactory_Delete(this.h, C.bool(this.isSubclass)) + C.QGenericPluginFactory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgenericpluginfactory.h b/qt6/gen_qgenericpluginfactory.h index d6363be5..a0924b90 100644 --- a/qt6/gen_qgenericpluginfactory.h +++ b/qt6/gen_qgenericpluginfactory.h @@ -24,7 +24,7 @@ typedef struct QObject QObject; struct miqt_array /* of struct miqt_string */ QGenericPluginFactory_Keys(); QObject* QGenericPluginFactory_Create(struct miqt_string param1, struct miqt_string param2); -void QGenericPluginFactory_Delete(QGenericPluginFactory* self, bool isSubclass); +void QGenericPluginFactory_Delete(QGenericPluginFactory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgesture.cpp b/qt6/gen_qgesture.cpp index b3e455d7..e1eeaa70 100644 --- a/qt6/gen_qgesture.cpp +++ b/qt6/gen_qgesture.cpp @@ -37,13 +37,13 @@ QEvent* miqt_exec_callback_QGestureEvent_Clone(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQGesture : public virtual QGesture { +class MiqtVirtualQGesture final : public QGesture { public: MiqtVirtualQGesture(): QGesture() {}; MiqtVirtualQGesture(QObject* parent): QGesture(parent) {}; - virtual ~MiqtVirtualQGesture() = default; + virtual ~MiqtVirtualQGesture() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -362,12 +362,8 @@ void QGesture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQGesture*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGesture_Delete(QGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGesture_Delete(QGesture* self) { + delete self; } QPanGesture* QPanGesture_new() { @@ -452,12 +448,8 @@ struct miqt_string QPanGesture_Tr3(const char* s, const char* c, int n) { return _ms; } -void QPanGesture_Delete(QPanGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPanGesture_Delete(QPanGesture* self) { + delete self; } QPinchGesture* QPinchGesture_new() { @@ -609,12 +601,8 @@ struct miqt_string QPinchGesture_Tr3(const char* s, const char* c, int n) { return _ms; } -void QPinchGesture_Delete(QPinchGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPinchGesture_Delete(QPinchGesture* self) { + delete self; } QSwipeGesture* QSwipeGesture_new() { @@ -689,12 +677,8 @@ struct miqt_string QSwipeGesture_Tr3(const char* s, const char* c, int n) { return _ms; } -void QSwipeGesture_Delete(QSwipeGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSwipeGesture_Delete(QSwipeGesture* self) { + delete self; } QTapGesture* QTapGesture_new() { @@ -758,12 +742,8 @@ struct miqt_string QTapGesture_Tr3(const char* s, const char* c, int n) { return _ms; } -void QTapGesture_Delete(QTapGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTapGesture_Delete(QTapGesture* self) { + delete self; } QTapAndHoldGesture* QTapAndHoldGesture_new() { @@ -835,21 +815,17 @@ struct miqt_string QTapAndHoldGesture_Tr3(const char* s, const char* c, int n) { return _ms; } -void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self) { + delete self; } -class MiqtVirtualQGestureEvent : public virtual QGestureEvent { +class MiqtVirtualQGestureEvent final : public QGestureEvent { public: MiqtVirtualQGestureEvent(const QList& gestures): QGestureEvent(gestures) {}; MiqtVirtualQGestureEvent(const QGestureEvent& param1): QGestureEvent(param1) {}; - virtual ~MiqtVirtualQGestureEvent() = default; + virtual ~MiqtVirtualQGestureEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetAccepted = 0; @@ -1020,11 +996,7 @@ QEvent* QGestureEvent_virtualbase_Clone(const void* self) { return ( (const MiqtVirtualQGestureEvent*)(self) )->virtualbase_Clone(); } -void QGestureEvent_Delete(QGestureEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGestureEvent_Delete(QGestureEvent* self) { + delete self; } diff --git a/qt6/gen_qgesture.go b/qt6/gen_qgesture.go index 7e4ee941..9ae02813 100644 --- a/qt6/gen_qgesture.go +++ b/qt6/gen_qgesture.go @@ -357,7 +357,7 @@ func miqt_exec_callback_QGesture_DisconnectNotify(self *C.QGesture, cb C.intptr_ // Delete this object from C++ memory. func (this *QGesture) Delete() { - C.QGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -499,7 +499,7 @@ func QPanGesture_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QPanGesture) Delete() { - C.QPanGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QPanGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -701,7 +701,7 @@ func QPinchGesture_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QPinchGesture) Delete() { - C.QPinchGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QPinchGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -825,7 +825,7 @@ func QSwipeGesture_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QSwipeGesture) Delete() { - C.QSwipeGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QSwipeGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -943,7 +943,7 @@ func QTapGesture_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QTapGesture) Delete() { - C.QTapGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QTapGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1069,7 +1069,7 @@ func QTapAndHoldGesture_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QTapAndHoldGesture) Delete() { - C.QTapAndHoldGesture_Delete(this.h, C.bool(this.isSubclass)) + C.QTapAndHoldGesture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1273,7 +1273,7 @@ func miqt_exec_callback_QGestureEvent_Clone(self *C.QGestureEvent, cb C.intptr_t // Delete this object from C++ memory. func (this *QGestureEvent) Delete() { - C.QGestureEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGestureEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgesture.h b/qt6/gen_qgesture.h index f00067c9..1b918009 100644 --- a/qt6/gen_qgesture.h +++ b/qt6/gen_qgesture.h @@ -78,7 +78,7 @@ void QGesture_override_virtual_ConnectNotify(void* self, intptr_t slot); void QGesture_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGesture_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGesture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGesture_Delete(QGesture* self, bool isSubclass); +void QGesture_Delete(QGesture* self); QPanGesture* QPanGesture_new(); QPanGesture* QPanGesture_new2(QObject* parent); @@ -95,7 +95,7 @@ void QPanGesture_SetOffset(QPanGesture* self, QPointF* value); void QPanGesture_SetAcceleration(QPanGesture* self, double value); struct miqt_string QPanGesture_Tr2(const char* s, const char* c); struct miqt_string QPanGesture_Tr3(const char* s, const char* c, int n); -void QPanGesture_Delete(QPanGesture* self, bool isSubclass); +void QPanGesture_Delete(QPanGesture* self); QPinchGesture* QPinchGesture_new(); QPinchGesture* QPinchGesture_new2(QObject* parent); @@ -127,7 +127,7 @@ void QPinchGesture_SetLastRotationAngle(QPinchGesture* self, double value); void QPinchGesture_SetRotationAngle(QPinchGesture* self, double value); struct miqt_string QPinchGesture_Tr2(const char* s, const char* c); struct miqt_string QPinchGesture_Tr3(const char* s, const char* c, int n); -void QPinchGesture_Delete(QPinchGesture* self, bool isSubclass); +void QPinchGesture_Delete(QPinchGesture* self); QSwipeGesture* QSwipeGesture_new(); QSwipeGesture* QSwipeGesture_new2(QObject* parent); @@ -141,7 +141,7 @@ double QSwipeGesture_SwipeAngle(const QSwipeGesture* self); void QSwipeGesture_SetSwipeAngle(QSwipeGesture* self, double value); struct miqt_string QSwipeGesture_Tr2(const char* s, const char* c); struct miqt_string QSwipeGesture_Tr3(const char* s, const char* c, int n); -void QSwipeGesture_Delete(QSwipeGesture* self, bool isSubclass); +void QSwipeGesture_Delete(QSwipeGesture* self); QTapGesture* QTapGesture_new(); QTapGesture* QTapGesture_new2(QObject* parent); @@ -153,7 +153,7 @@ QPointF* QTapGesture_Position(const QTapGesture* self); void QTapGesture_SetPosition(QTapGesture* self, QPointF* pos); struct miqt_string QTapGesture_Tr2(const char* s, const char* c); struct miqt_string QTapGesture_Tr3(const char* s, const char* c, int n); -void QTapGesture_Delete(QTapGesture* self, bool isSubclass); +void QTapGesture_Delete(QTapGesture* self); QTapAndHoldGesture* QTapAndHoldGesture_new(); QTapAndHoldGesture* QTapAndHoldGesture_new2(QObject* parent); @@ -167,7 +167,7 @@ void QTapAndHoldGesture_SetTimeout(int msecs); int QTapAndHoldGesture_Timeout(); struct miqt_string QTapAndHoldGesture_Tr2(const char* s, const char* c); struct miqt_string QTapAndHoldGesture_Tr3(const char* s, const char* c, int n); -void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self, bool isSubclass); +void QTapAndHoldGesture_Delete(QTapAndHoldGesture* self); QGestureEvent* QGestureEvent_new(struct miqt_array /* of QGesture* */ gestures); QGestureEvent* QGestureEvent_new2(QGestureEvent* param1); @@ -191,7 +191,7 @@ void QGestureEvent_override_virtual_SetAccepted(void* self, intptr_t slot); void QGestureEvent_virtualbase_SetAccepted(void* self, bool accepted); void QGestureEvent_override_virtual_Clone(void* self, intptr_t slot); QEvent* QGestureEvent_virtualbase_Clone(const void* self); -void QGestureEvent_Delete(QGestureEvent* self, bool isSubclass); +void QGestureEvent_Delete(QGestureEvent* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgesturerecognizer.cpp b/qt6/gen_qgesturerecognizer.cpp index fff91da3..8bee34d8 100644 --- a/qt6/gen_qgesturerecognizer.cpp +++ b/qt6/gen_qgesturerecognizer.cpp @@ -16,12 +16,12 @@ void miqt_exec_callback_QGestureRecognizer_Reset(void*, intptr_t, QGesture*); } /* extern C */ #endif -class MiqtVirtualQGestureRecognizer : public virtual QGestureRecognizer { +class MiqtVirtualQGestureRecognizer final : public QGestureRecognizer { public: MiqtVirtualQGestureRecognizer(): QGestureRecognizer() {}; - virtual ~MiqtVirtualQGestureRecognizer() = default; + virtual ~MiqtVirtualQGestureRecognizer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -140,11 +140,7 @@ void QGestureRecognizer_virtualbase_Reset(void* self, QGesture* state) { ( (MiqtVirtualQGestureRecognizer*)(self) )->virtualbase_Reset(state); } -void QGestureRecognizer_Delete(QGestureRecognizer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGestureRecognizer_Delete(QGestureRecognizer* self) { + delete self; } diff --git a/qt6/gen_qgesturerecognizer.go b/qt6/gen_qgesturerecognizer.go index 76709bcd..4a98eee5 100644 --- a/qt6/gen_qgesturerecognizer.go +++ b/qt6/gen_qgesturerecognizer.go @@ -174,7 +174,7 @@ func miqt_exec_callback_QGestureRecognizer_Reset(self *C.QGestureRecognizer, cb // Delete this object from C++ memory. func (this *QGestureRecognizer) Delete() { - C.QGestureRecognizer_Delete(this.h, C.bool(this.isSubclass)) + C.QGestureRecognizer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgesturerecognizer.h b/qt6/gen_qgesturerecognizer.h index c21bd234..56dde2f6 100644 --- a/qt6/gen_qgesturerecognizer.h +++ b/qt6/gen_qgesturerecognizer.h @@ -39,7 +39,7 @@ void QGestureRecognizer_override_virtual_Recognize(void* self, intptr_t slot); int QGestureRecognizer_virtualbase_Recognize(void* self, QGesture* state, QObject* watched, QEvent* event); void QGestureRecognizer_override_virtual_Reset(void* self, intptr_t slot); void QGestureRecognizer_virtualbase_Reset(void* self, QGesture* state); -void QGestureRecognizer_Delete(QGestureRecognizer* self, bool isSubclass); +void QGestureRecognizer_Delete(QGestureRecognizer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qglyphrun.cpp b/qt6/gen_qglyphrun.cpp index bef9f492..22f86950 100644 --- a/qt6/gen_qglyphrun.cpp +++ b/qt6/gen_qglyphrun.cpp @@ -161,11 +161,7 @@ void QGlyphRun_SetFlag2(QGlyphRun* self, int flag, bool enabled) { self->setFlag(static_cast(flag), enabled); } -void QGlyphRun_Delete(QGlyphRun* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGlyphRun_Delete(QGlyphRun* self) { + delete self; } diff --git a/qt6/gen_qglyphrun.go b/qt6/gen_qglyphrun.go index 1bc5e273..db63e970 100644 --- a/qt6/gen_qglyphrun.go +++ b/qt6/gen_qglyphrun.go @@ -212,7 +212,7 @@ func (this *QGlyphRun) SetFlag2(flag QGlyphRun__GlyphRunFlag, enabled bool) { // Delete this object from C++ memory. func (this *QGlyphRun) Delete() { - C.QGlyphRun_Delete(this.h, C.bool(this.isSubclass)) + C.QGlyphRun_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qglyphrun.h b/qt6/gen_qglyphrun.h index ee098a9d..0dd17409 100644 --- a/qt6/gen_qglyphrun.h +++ b/qt6/gen_qglyphrun.h @@ -55,7 +55,7 @@ void QGlyphRun_SetBoundingRect(QGlyphRun* self, QRectF* boundingRect); QRectF* QGlyphRun_BoundingRect(const QGlyphRun* self); bool QGlyphRun_IsEmpty(const QGlyphRun* self); void QGlyphRun_SetFlag2(QGlyphRun* self, int flag, bool enabled); -void QGlyphRun_Delete(QGlyphRun* self, bool isSubclass); +void QGlyphRun_Delete(QGlyphRun* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicsanchorlayout.cpp b/qt6/gen_qgraphicsanchorlayout.cpp index 15e1d51e..aab35476 100644 --- a/qt6/gen_qgraphicsanchorlayout.cpp +++ b/qt6/gen_qgraphicsanchorlayout.cpp @@ -97,21 +97,17 @@ struct miqt_string QGraphicsAnchor_Tr3(const char* s, const char* c, int n) { return _ms; } -void QGraphicsAnchor_Delete(QGraphicsAnchor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsAnchor_Delete(QGraphicsAnchor* self) { + delete self; } -class MiqtVirtualQGraphicsAnchorLayout : public virtual QGraphicsAnchorLayout { +class MiqtVirtualQGraphicsAnchorLayout final : public QGraphicsAnchorLayout { public: MiqtVirtualQGraphicsAnchorLayout(): QGraphicsAnchorLayout() {}; MiqtVirtualQGraphicsAnchorLayout(QGraphicsLayoutItem* parent): QGraphicsAnchorLayout(parent) {}; - virtual ~MiqtVirtualQGraphicsAnchorLayout() = default; + virtual ~MiqtVirtualQGraphicsAnchorLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__RemoveAt = 0; @@ -484,11 +480,7 @@ void QGraphicsAnchorLayout_virtualbase_WidgetEvent(void* self, QEvent* e) { ( (MiqtVirtualQGraphicsAnchorLayout*)(self) )->virtualbase_WidgetEvent(e); } -void QGraphicsAnchorLayout_Delete(QGraphicsAnchorLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsAnchorLayout_Delete(QGraphicsAnchorLayout* self) { + delete self; } diff --git a/qt6/gen_qgraphicsanchorlayout.go b/qt6/gen_qgraphicsanchorlayout.go index 11c62774..5880adc2 100644 --- a/qt6/gen_qgraphicsanchorlayout.go +++ b/qt6/gen_qgraphicsanchorlayout.go @@ -114,7 +114,7 @@ func QGraphicsAnchor_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QGraphicsAnchor) Delete() { - C.QGraphicsAnchor_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsAnchor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -482,7 +482,7 @@ func miqt_exec_callback_QGraphicsAnchorLayout_WidgetEvent(self *C.QGraphicsAncho // Delete this object from C++ memory. func (this *QGraphicsAnchorLayout) Delete() { - C.QGraphicsAnchorLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsAnchorLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicsanchorlayout.h b/qt6/gen_qgraphicsanchorlayout.h index ff224b04..b1bbac8a 100644 --- a/qt6/gen_qgraphicsanchorlayout.h +++ b/qt6/gen_qgraphicsanchorlayout.h @@ -47,7 +47,7 @@ void QGraphicsAnchor_SetSizePolicy(QGraphicsAnchor* self, int policy); int QGraphicsAnchor_SizePolicy(const QGraphicsAnchor* self); struct miqt_string QGraphicsAnchor_Tr2(const char* s, const char* c); struct miqt_string QGraphicsAnchor_Tr3(const char* s, const char* c, int n); -void QGraphicsAnchor_Delete(QGraphicsAnchor* self, bool isSubclass); +void QGraphicsAnchor_Delete(QGraphicsAnchor* self); QGraphicsAnchorLayout* QGraphicsAnchorLayout_new(); QGraphicsAnchorLayout* QGraphicsAnchorLayout_new2(QGraphicsLayoutItem* parent); @@ -86,7 +86,7 @@ void QGraphicsAnchorLayout_override_virtual_UpdateGeometry(void* self, intptr_t void QGraphicsAnchorLayout_virtualbase_UpdateGeometry(void* self); void QGraphicsAnchorLayout_override_virtual_WidgetEvent(void* self, intptr_t slot); void QGraphicsAnchorLayout_virtualbase_WidgetEvent(void* self, QEvent* e); -void QGraphicsAnchorLayout_Delete(QGraphicsAnchorLayout* self, bool isSubclass); +void QGraphicsAnchorLayout_Delete(QGraphicsAnchorLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicseffect.cpp b/qt6/gen_qgraphicseffect.cpp index 2eddc7d3..7a253998 100644 --- a/qt6/gen_qgraphicseffect.cpp +++ b/qt6/gen_qgraphicseffect.cpp @@ -60,13 +60,13 @@ void miqt_exec_callback_QGraphicsOpacityEffect_SourceChanged(void*, intptr_t, in } /* extern C */ #endif -class MiqtVirtualQGraphicsEffect : public virtual QGraphicsEffect { +class MiqtVirtualQGraphicsEffect final : public QGraphicsEffect { public: MiqtVirtualQGraphicsEffect(): QGraphicsEffect() {}; MiqtVirtualQGraphicsEffect(QObject* parent): QGraphicsEffect(parent) {}; - virtual ~MiqtVirtualQGraphicsEffect() = default; + virtual ~MiqtVirtualQGraphicsEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRectFor = 0; @@ -467,21 +467,17 @@ void QGraphicsEffect_virtualbase_DisconnectNotify(void* self, QMetaMethod* signa ( (MiqtVirtualQGraphicsEffect*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGraphicsEffect_Delete(QGraphicsEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsEffect_Delete(QGraphicsEffect* self) { + delete self; } -class MiqtVirtualQGraphicsColorizeEffect : public virtual QGraphicsColorizeEffect { +class MiqtVirtualQGraphicsColorizeEffect final : public QGraphicsColorizeEffect { public: MiqtVirtualQGraphicsColorizeEffect(): QGraphicsColorizeEffect() {}; MiqtVirtualQGraphicsColorizeEffect(QObject* parent): QGraphicsColorizeEffect(parent) {}; - virtual ~MiqtVirtualQGraphicsColorizeEffect() = default; + virtual ~MiqtVirtualQGraphicsColorizeEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Draw = 0; @@ -678,21 +674,17 @@ void QGraphicsColorizeEffect_virtualbase_SourceChanged(void* self, int flags) { ( (MiqtVirtualQGraphicsColorizeEffect*)(self) )->virtualbase_SourceChanged(flags); } -void QGraphicsColorizeEffect_Delete(QGraphicsColorizeEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsColorizeEffect_Delete(QGraphicsColorizeEffect* self) { + delete self; } -class MiqtVirtualQGraphicsBlurEffect : public virtual QGraphicsBlurEffect { +class MiqtVirtualQGraphicsBlurEffect final : public QGraphicsBlurEffect { public: MiqtVirtualQGraphicsBlurEffect(): QGraphicsBlurEffect() {}; MiqtVirtualQGraphicsBlurEffect(QObject* parent): QGraphicsBlurEffect(parent) {}; - virtual ~MiqtVirtualQGraphicsBlurEffect() = default; + virtual ~MiqtVirtualQGraphicsBlurEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRectFor = 0; @@ -893,21 +885,17 @@ void QGraphicsBlurEffect_virtualbase_SourceChanged(void* self, int flags) { ( (MiqtVirtualQGraphicsBlurEffect*)(self) )->virtualbase_SourceChanged(flags); } -void QGraphicsBlurEffect_Delete(QGraphicsBlurEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsBlurEffect_Delete(QGraphicsBlurEffect* self) { + delete self; } -class MiqtVirtualQGraphicsDropShadowEffect : public virtual QGraphicsDropShadowEffect { +class MiqtVirtualQGraphicsDropShadowEffect final : public QGraphicsDropShadowEffect { public: MiqtVirtualQGraphicsDropShadowEffect(): QGraphicsDropShadowEffect() {}; MiqtVirtualQGraphicsDropShadowEffect(QObject* parent): QGraphicsDropShadowEffect(parent) {}; - virtual ~MiqtVirtualQGraphicsDropShadowEffect() = default; + virtual ~MiqtVirtualQGraphicsDropShadowEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRectFor = 0; @@ -1155,21 +1143,17 @@ void QGraphicsDropShadowEffect_virtualbase_SourceChanged(void* self, int flags) ( (MiqtVirtualQGraphicsDropShadowEffect*)(self) )->virtualbase_SourceChanged(flags); } -void QGraphicsDropShadowEffect_Delete(QGraphicsDropShadowEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsDropShadowEffect_Delete(QGraphicsDropShadowEffect* self) { + delete self; } -class MiqtVirtualQGraphicsOpacityEffect : public virtual QGraphicsOpacityEffect { +class MiqtVirtualQGraphicsOpacityEffect final : public QGraphicsOpacityEffect { public: MiqtVirtualQGraphicsOpacityEffect(): QGraphicsOpacityEffect() {}; MiqtVirtualQGraphicsOpacityEffect(QObject* parent): QGraphicsOpacityEffect(parent) {}; - virtual ~MiqtVirtualQGraphicsOpacityEffect() = default; + virtual ~MiqtVirtualQGraphicsOpacityEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Draw = 0; @@ -1366,11 +1350,7 @@ void QGraphicsOpacityEffect_virtualbase_SourceChanged(void* self, int flags) { ( (MiqtVirtualQGraphicsOpacityEffect*)(self) )->virtualbase_SourceChanged(flags); } -void QGraphicsOpacityEffect_Delete(QGraphicsOpacityEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsOpacityEffect_Delete(QGraphicsOpacityEffect* self) { + delete self; } diff --git a/qt6/gen_qgraphicseffect.go b/qt6/gen_qgraphicseffect.go index f4940342..8e5f7bfe 100644 --- a/qt6/gen_qgraphicseffect.go +++ b/qt6/gen_qgraphicseffect.go @@ -443,7 +443,7 @@ func miqt_exec_callback_QGraphicsEffect_DisconnectNotify(self *C.QGraphicsEffect // Delete this object from C++ memory. func (this *QGraphicsEffect) Delete() { - C.QGraphicsEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -691,7 +691,7 @@ func miqt_exec_callback_QGraphicsColorizeEffect_SourceChanged(self *C.QGraphicsC // Delete this object from C++ memory. func (this *QGraphicsColorizeEffect) Delete() { - C.QGraphicsColorizeEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsColorizeEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -943,7 +943,7 @@ func miqt_exec_callback_QGraphicsBlurEffect_SourceChanged(self *C.QGraphicsBlurE // Delete this object from C++ memory. func (this *QGraphicsBlurEffect) Delete() { - C.QGraphicsBlurEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsBlurEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1251,7 +1251,7 @@ func miqt_exec_callback_QGraphicsDropShadowEffect_SourceChanged(self *C.QGraphic // Delete this object from C++ memory. func (this *QGraphicsDropShadowEffect) Delete() { - C.QGraphicsDropShadowEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsDropShadowEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1499,7 +1499,7 @@ func miqt_exec_callback_QGraphicsOpacityEffect_SourceChanged(self *C.QGraphicsOp // Delete this object from C++ memory. func (this *QGraphicsOpacityEffect) Delete() { - C.QGraphicsOpacityEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsOpacityEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicseffect.h b/qt6/gen_qgraphicseffect.h index 257b5f88..2adf3dbe 100644 --- a/qt6/gen_qgraphicseffect.h +++ b/qt6/gen_qgraphicseffect.h @@ -87,7 +87,7 @@ void QGraphicsEffect_override_virtual_ConnectNotify(void* self, intptr_t slot); void QGraphicsEffect_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGraphicsEffect_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGraphicsEffect_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGraphicsEffect_Delete(QGraphicsEffect* self, bool isSubclass); +void QGraphicsEffect_Delete(QGraphicsEffect* self); QGraphicsColorizeEffect* QGraphicsColorizeEffect_new(); QGraphicsColorizeEffect* QGraphicsColorizeEffect_new2(QObject* parent); @@ -112,7 +112,7 @@ void QGraphicsColorizeEffect_override_virtual_BoundingRectFor(void* self, intptr QRectF* QGraphicsColorizeEffect_virtualbase_BoundingRectFor(const void* self, QRectF* sourceRect); void QGraphicsColorizeEffect_override_virtual_SourceChanged(void* self, intptr_t slot); void QGraphicsColorizeEffect_virtualbase_SourceChanged(void* self, int flags); -void QGraphicsColorizeEffect_Delete(QGraphicsColorizeEffect* self, bool isSubclass); +void QGraphicsColorizeEffect_Delete(QGraphicsColorizeEffect* self); QGraphicsBlurEffect* QGraphicsBlurEffect_new(); QGraphicsBlurEffect* QGraphicsBlurEffect_new2(QObject* parent); @@ -138,7 +138,7 @@ void QGraphicsBlurEffect_override_virtual_Draw(void* self, intptr_t slot); void QGraphicsBlurEffect_virtualbase_Draw(void* self, QPainter* painter); void QGraphicsBlurEffect_override_virtual_SourceChanged(void* self, intptr_t slot); void QGraphicsBlurEffect_virtualbase_SourceChanged(void* self, int flags); -void QGraphicsBlurEffect_Delete(QGraphicsBlurEffect* self, bool isSubclass); +void QGraphicsBlurEffect_Delete(QGraphicsBlurEffect* self); QGraphicsDropShadowEffect* QGraphicsDropShadowEffect_new(); QGraphicsDropShadowEffect* QGraphicsDropShadowEffect_new2(QObject* parent); @@ -174,7 +174,7 @@ void QGraphicsDropShadowEffect_override_virtual_Draw(void* self, intptr_t slot); void QGraphicsDropShadowEffect_virtualbase_Draw(void* self, QPainter* painter); void QGraphicsDropShadowEffect_override_virtual_SourceChanged(void* self, intptr_t slot); void QGraphicsDropShadowEffect_virtualbase_SourceChanged(void* self, int flags); -void QGraphicsDropShadowEffect_Delete(QGraphicsDropShadowEffect* self, bool isSubclass); +void QGraphicsDropShadowEffect_Delete(QGraphicsDropShadowEffect* self); QGraphicsOpacityEffect* QGraphicsOpacityEffect_new(); QGraphicsOpacityEffect* QGraphicsOpacityEffect_new2(QObject* parent); @@ -199,7 +199,7 @@ void QGraphicsOpacityEffect_override_virtual_BoundingRectFor(void* self, intptr_ QRectF* QGraphicsOpacityEffect_virtualbase_BoundingRectFor(const void* self, QRectF* sourceRect); void QGraphicsOpacityEffect_override_virtual_SourceChanged(void* self, intptr_t slot); void QGraphicsOpacityEffect_virtualbase_SourceChanged(void* self, int flags); -void QGraphicsOpacityEffect_Delete(QGraphicsOpacityEffect* self, bool isSubclass); +void QGraphicsOpacityEffect_Delete(QGraphicsOpacityEffect* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicsgridlayout.cpp b/qt6/gen_qgraphicsgridlayout.cpp index 7498121f..6a1eda3b 100644 --- a/qt6/gen_qgraphicsgridlayout.cpp +++ b/qt6/gen_qgraphicsgridlayout.cpp @@ -24,13 +24,13 @@ void miqt_exec_callback_QGraphicsGridLayout_WidgetEvent(void*, intptr_t, QEvent* } /* extern C */ #endif -class MiqtVirtualQGraphicsGridLayout : public virtual QGraphicsGridLayout { +class MiqtVirtualQGraphicsGridLayout final : public QGraphicsGridLayout { public: MiqtVirtualQGraphicsGridLayout(): QGraphicsGridLayout() {}; MiqtVirtualQGraphicsGridLayout(QGraphicsLayoutItem* parent): QGraphicsGridLayout(parent) {}; - virtual ~MiqtVirtualQGraphicsGridLayout() = default; + virtual ~MiqtVirtualQGraphicsGridLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Count = 0; @@ -542,11 +542,7 @@ void QGraphicsGridLayout_virtualbase_WidgetEvent(void* self, QEvent* e) { ( (MiqtVirtualQGraphicsGridLayout*)(self) )->virtualbase_WidgetEvent(e); } -void QGraphicsGridLayout_Delete(QGraphicsGridLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsGridLayout_Delete(QGraphicsGridLayout* self) { + delete self; } diff --git a/qt6/gen_qgraphicsgridlayout.go b/qt6/gen_qgraphicsgridlayout.go index 570f25c0..683fa79b 100644 --- a/qt6/gen_qgraphicsgridlayout.go +++ b/qt6/gen_qgraphicsgridlayout.go @@ -500,7 +500,7 @@ func miqt_exec_callback_QGraphicsGridLayout_WidgetEvent(self *C.QGraphicsGridLay // Delete this object from C++ memory. func (this *QGraphicsGridLayout) Delete() { - C.QGraphicsGridLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsGridLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicsgridlayout.h b/qt6/gen_qgraphicsgridlayout.h index 10d2de3f..7c5f3a08 100644 --- a/qt6/gen_qgraphicsgridlayout.h +++ b/qt6/gen_qgraphicsgridlayout.h @@ -98,7 +98,7 @@ void QGraphicsGridLayout_override_virtual_UpdateGeometry(void* self, intptr_t sl void QGraphicsGridLayout_virtualbase_UpdateGeometry(void* self); void QGraphicsGridLayout_override_virtual_WidgetEvent(void* self, intptr_t slot); void QGraphicsGridLayout_virtualbase_WidgetEvent(void* self, QEvent* e); -void QGraphicsGridLayout_Delete(QGraphicsGridLayout* self, bool isSubclass); +void QGraphicsGridLayout_Delete(QGraphicsGridLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicsitem.cpp b/qt6/gen_qgraphicsitem.cpp index 3ecdfdc2..d42857be 100644 --- a/qt6/gen_qgraphicsitem.cpp +++ b/qt6/gen_qgraphicsitem.cpp @@ -373,13 +373,13 @@ QVariant* miqt_exec_callback_QGraphicsItemGroup_Extension(void*, intptr_t, QVari } /* extern C */ #endif -class MiqtVirtualQGraphicsItem : public virtual QGraphicsItem { +class MiqtVirtualQGraphicsItem final : public QGraphicsItem { public: MiqtVirtualQGraphicsItem(): QGraphicsItem() {}; MiqtVirtualQGraphicsItem(QGraphicsItem* parent): QGraphicsItem(parent) {}; - virtual ~MiqtVirtualQGraphicsItem() = default; + virtual ~MiqtVirtualQGraphicsItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Advance = 0; @@ -2256,21 +2256,17 @@ QVariant* QGraphicsItem_virtualbase_Extension(const void* self, QVariant* varian return ( (const MiqtVirtualQGraphicsItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsItem_Delete(QGraphicsItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsItem_Delete(QGraphicsItem* self) { + delete self; } -class MiqtVirtualQGraphicsObject : public virtual QGraphicsObject { +class MiqtVirtualQGraphicsObject final : public QGraphicsObject { public: MiqtVirtualQGraphicsObject(): QGraphicsObject() {}; MiqtVirtualQGraphicsObject(QGraphicsItem* parent): QGraphicsObject(parent) {}; - virtual ~MiqtVirtualQGraphicsObject() = default; + virtual ~MiqtVirtualQGraphicsObject() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -3789,21 +3785,17 @@ QVariant* QGraphicsObject_virtualbase_Extension(const void* self, QVariant* vari return ( (const MiqtVirtualQGraphicsObject*)(self) )->virtualbase_Extension(variant); } -void QGraphicsObject_Delete(QGraphicsObject* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsObject_Delete(QGraphicsObject* self) { + delete self; } -class MiqtVirtualQAbstractGraphicsShapeItem : public virtual QAbstractGraphicsShapeItem { +class MiqtVirtualQAbstractGraphicsShapeItem final : public QAbstractGraphicsShapeItem { public: MiqtVirtualQAbstractGraphicsShapeItem(): QAbstractGraphicsShapeItem() {}; MiqtVirtualQAbstractGraphicsShapeItem(QGraphicsItem* parent): QAbstractGraphicsShapeItem(parent) {}; - virtual ~MiqtVirtualQAbstractGraphicsShapeItem() = default; + virtual ~MiqtVirtualQAbstractGraphicsShapeItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IsObscuredBy = 0; @@ -4945,15 +4937,11 @@ QVariant* QAbstractGraphicsShapeItem_virtualbase_Extension(const void* self, QVa return ( (const MiqtVirtualQAbstractGraphicsShapeItem*)(self) )->virtualbase_Extension(variant); } -void QAbstractGraphicsShapeItem_Delete(QAbstractGraphicsShapeItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractGraphicsShapeItem_Delete(QAbstractGraphicsShapeItem* self) { + delete self; } -class MiqtVirtualQGraphicsPathItem : public virtual QGraphicsPathItem { +class MiqtVirtualQGraphicsPathItem final : public QGraphicsPathItem { public: MiqtVirtualQGraphicsPathItem(): QGraphicsPathItem() {}; @@ -4961,7 +4949,7 @@ public: MiqtVirtualQGraphicsPathItem(QGraphicsItem* parent): QGraphicsPathItem(parent) {}; MiqtVirtualQGraphicsPathItem(const QPainterPath& path, QGraphicsItem* parent): QGraphicsPathItem(path, parent) {}; - virtual ~MiqtVirtualQGraphicsPathItem() = default; + virtual ~MiqtVirtualQGraphicsPathItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -5340,15 +5328,11 @@ QVariant* QGraphicsPathItem_virtualbase_Extension(const void* self, QVariant* va return ( (const MiqtVirtualQGraphicsPathItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsPathItem_Delete(QGraphicsPathItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsPathItem_Delete(QGraphicsPathItem* self) { + delete self; } -class MiqtVirtualQGraphicsRectItem : public virtual QGraphicsRectItem { +class MiqtVirtualQGraphicsRectItem final : public QGraphicsRectItem { public: MiqtVirtualQGraphicsRectItem(): QGraphicsRectItem() {}; @@ -5358,7 +5342,7 @@ public: MiqtVirtualQGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent): QGraphicsRectItem(rect, parent) {}; MiqtVirtualQGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent): QGraphicsRectItem(x, y, w, h, parent) {}; - virtual ~MiqtVirtualQGraphicsRectItem() = default; + virtual ~MiqtVirtualQGraphicsRectItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -5749,15 +5733,11 @@ QVariant* QGraphicsRectItem_virtualbase_Extension(const void* self, QVariant* va return ( (const MiqtVirtualQGraphicsRectItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsRectItem_Delete(QGraphicsRectItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsRectItem_Delete(QGraphicsRectItem* self) { + delete self; } -class MiqtVirtualQGraphicsEllipseItem : public virtual QGraphicsEllipseItem { +class MiqtVirtualQGraphicsEllipseItem final : public QGraphicsEllipseItem { public: MiqtVirtualQGraphicsEllipseItem(): QGraphicsEllipseItem() {}; @@ -5767,7 +5747,7 @@ public: MiqtVirtualQGraphicsEllipseItem(const QRectF& rect, QGraphicsItem* parent): QGraphicsEllipseItem(rect, parent) {}; MiqtVirtualQGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent): QGraphicsEllipseItem(x, y, w, h, parent) {}; - virtual ~MiqtVirtualQGraphicsEllipseItem() = default; + virtual ~MiqtVirtualQGraphicsEllipseItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -6174,21 +6154,17 @@ QVariant* QGraphicsEllipseItem_virtualbase_Extension(const void* self, QVariant* return ( (const MiqtVirtualQGraphicsEllipseItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsEllipseItem_Delete(QGraphicsEllipseItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsEllipseItem_Delete(QGraphicsEllipseItem* self) { + delete self; } -class MiqtVirtualQGraphicsPolygonItem : public virtual QGraphicsPolygonItem { +class MiqtVirtualQGraphicsPolygonItem final : public QGraphicsPolygonItem { public: MiqtVirtualQGraphicsPolygonItem(): QGraphicsPolygonItem() {}; MiqtVirtualQGraphicsPolygonItem(QGraphicsItem* parent): QGraphicsPolygonItem(parent) {}; - virtual ~MiqtVirtualQGraphicsPolygonItem() = default; + virtual ~MiqtVirtualQGraphicsPolygonItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -6560,15 +6536,11 @@ QVariant* QGraphicsPolygonItem_virtualbase_Extension(const void* self, QVariant* return ( (const MiqtVirtualQGraphicsPolygonItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsPolygonItem_Delete(QGraphicsPolygonItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsPolygonItem_Delete(QGraphicsPolygonItem* self) { + delete self; } -class MiqtVirtualQGraphicsLineItem : public virtual QGraphicsLineItem { +class MiqtVirtualQGraphicsLineItem final : public QGraphicsLineItem { public: MiqtVirtualQGraphicsLineItem(): QGraphicsLineItem() {}; @@ -6578,7 +6550,7 @@ public: MiqtVirtualQGraphicsLineItem(const QLineF& line, QGraphicsItem* parent): QGraphicsLineItem(line, parent) {}; MiqtVirtualQGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2, QGraphicsItem* parent): QGraphicsLineItem(x1, y1, x2, y2, parent) {}; - virtual ~MiqtVirtualQGraphicsLineItem() = default; + virtual ~MiqtVirtualQGraphicsLineItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -7783,15 +7755,11 @@ QVariant* QGraphicsLineItem_virtualbase_ItemChange(void* self, int change, QVari return ( (MiqtVirtualQGraphicsLineItem*)(self) )->virtualbase_ItemChange(change, value); } -void QGraphicsLineItem_Delete(QGraphicsLineItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsLineItem_Delete(QGraphicsLineItem* self) { + delete self; } -class MiqtVirtualQGraphicsPixmapItem : public virtual QGraphicsPixmapItem { +class MiqtVirtualQGraphicsPixmapItem final : public QGraphicsPixmapItem { public: MiqtVirtualQGraphicsPixmapItem(): QGraphicsPixmapItem() {}; @@ -7799,7 +7767,7 @@ public: MiqtVirtualQGraphicsPixmapItem(QGraphicsItem* parent): QGraphicsPixmapItem(parent) {}; MiqtVirtualQGraphicsPixmapItem(const QPixmap& pixmap, QGraphicsItem* parent): QGraphicsPixmapItem(pixmap, parent) {}; - virtual ~MiqtVirtualQGraphicsPixmapItem() = default; + virtual ~MiqtVirtualQGraphicsPixmapItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -9014,15 +8982,11 @@ QVariant* QGraphicsPixmapItem_virtualbase_ItemChange(void* self, int change, QVa return ( (MiqtVirtualQGraphicsPixmapItem*)(self) )->virtualbase_ItemChange(change, value); } -void QGraphicsPixmapItem_Delete(QGraphicsPixmapItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsPixmapItem_Delete(QGraphicsPixmapItem* self) { + delete self; } -class MiqtVirtualQGraphicsTextItem : public virtual QGraphicsTextItem { +class MiqtVirtualQGraphicsTextItem final : public QGraphicsTextItem { public: MiqtVirtualQGraphicsTextItem(): QGraphicsTextItem() {}; @@ -9030,7 +8994,7 @@ public: MiqtVirtualQGraphicsTextItem(QGraphicsItem* parent): QGraphicsTextItem(parent) {}; MiqtVirtualQGraphicsTextItem(const QString& text, QGraphicsItem* parent): QGraphicsTextItem(text, parent) {}; - virtual ~MiqtVirtualQGraphicsTextItem() = default; + virtual ~MiqtVirtualQGraphicsTextItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -10222,15 +10186,11 @@ bool QGraphicsTextItem_virtualbase_Event(void* self, QEvent* ev) { return ( (MiqtVirtualQGraphicsTextItem*)(self) )->virtualbase_Event(ev); } -void QGraphicsTextItem_Delete(QGraphicsTextItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsTextItem_Delete(QGraphicsTextItem* self) { + delete self; } -class MiqtVirtualQGraphicsSimpleTextItem : public virtual QGraphicsSimpleTextItem { +class MiqtVirtualQGraphicsSimpleTextItem final : public QGraphicsSimpleTextItem { public: MiqtVirtualQGraphicsSimpleTextItem(): QGraphicsSimpleTextItem() {}; @@ -10238,7 +10198,7 @@ public: MiqtVirtualQGraphicsSimpleTextItem(QGraphicsItem* parent): QGraphicsSimpleTextItem(parent) {}; MiqtVirtualQGraphicsSimpleTextItem(const QString& text, QGraphicsItem* parent): QGraphicsSimpleTextItem(text, parent) {}; - virtual ~MiqtVirtualQGraphicsSimpleTextItem() = default; + virtual ~MiqtVirtualQGraphicsSimpleTextItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -10635,21 +10595,17 @@ QVariant* QGraphicsSimpleTextItem_virtualbase_Extension(const void* self, QVaria return ( (const MiqtVirtualQGraphicsSimpleTextItem*)(self) )->virtualbase_Extension(variant); } -void QGraphicsSimpleTextItem_Delete(QGraphicsSimpleTextItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSimpleTextItem_Delete(QGraphicsSimpleTextItem* self) { + delete self; } -class MiqtVirtualQGraphicsItemGroup : public virtual QGraphicsItemGroup { +class MiqtVirtualQGraphicsItemGroup final : public QGraphicsItemGroup { public: MiqtVirtualQGraphicsItemGroup(): QGraphicsItemGroup() {}; MiqtVirtualQGraphicsItemGroup(QGraphicsItem* parent): QGraphicsItemGroup(parent) {}; - virtual ~MiqtVirtualQGraphicsItemGroup() = default; + virtual ~MiqtVirtualQGraphicsItemGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -11818,11 +11774,7 @@ QVariant* QGraphicsItemGroup_virtualbase_Extension(const void* self, QVariant* v return ( (const MiqtVirtualQGraphicsItemGroup*)(self) )->virtualbase_Extension(variant); } -void QGraphicsItemGroup_Delete(QGraphicsItemGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsItemGroup_Delete(QGraphicsItemGroup* self) { + delete self; } diff --git a/qt6/gen_qgraphicsitem.go b/qt6/gen_qgraphicsitem.go index eecb382d..83ae5792 100644 --- a/qt6/gen_qgraphicsitem.go +++ b/qt6/gen_qgraphicsitem.go @@ -1984,7 +1984,7 @@ func miqt_exec_callback_QGraphicsItem_Extension(self *C.QGraphicsItem, cb C.intp // Delete this object from C++ memory. func (this *QGraphicsItem) Delete() { - C.QGraphicsItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -3437,7 +3437,7 @@ func miqt_exec_callback_QGraphicsObject_Extension(self *C.QGraphicsObject, cb C. // Delete this object from C++ memory. func (this *QGraphicsObject) Delete() { - C.QGraphicsObject_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsObject_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4472,7 +4472,7 @@ func miqt_exec_callback_QAbstractGraphicsShapeItem_Extension(self *C.QAbstractGr // Delete this object from C++ memory. func (this *QAbstractGraphicsShapeItem) Delete() { - C.QAbstractGraphicsShapeItem_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractGraphicsShapeItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -4877,7 +4877,7 @@ func miqt_exec_callback_QGraphicsPathItem_Extension(self *C.QGraphicsPathItem, c // Delete this object from C++ memory. func (this *QGraphicsPathItem) Delete() { - C.QGraphicsPathItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsPathItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5302,7 +5302,7 @@ func miqt_exec_callback_QGraphicsRectItem_Extension(self *C.QGraphicsRectItem, c // Delete this object from C++ memory. func (this *QGraphicsRectItem) Delete() { - C.QGraphicsRectItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsRectItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -5743,7 +5743,7 @@ func miqt_exec_callback_QGraphicsEllipseItem_Extension(self *C.QGraphicsEllipseI // Delete this object from C++ memory. func (this *QGraphicsEllipseItem) Delete() { - C.QGraphicsEllipseItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsEllipseItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -6130,7 +6130,7 @@ func miqt_exec_callback_QGraphicsPolygonItem_Extension(self *C.QGraphicsPolygonI // Delete this object from C++ memory. func (this *QGraphicsPolygonItem) Delete() { - C.QGraphicsPolygonItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsPolygonItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -7239,7 +7239,7 @@ func miqt_exec_callback_QGraphicsLineItem_ItemChange(self *C.QGraphicsLineItem, // Delete this object from C++ memory. func (this *QGraphicsLineItem) Delete() { - C.QGraphicsLineItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsLineItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -8348,7 +8348,7 @@ func miqt_exec_callback_QGraphicsPixmapItem_ItemChange(self *C.QGraphicsPixmapIt // Delete this object from C++ memory. func (this *QGraphicsPixmapItem) Delete() { - C.QGraphicsPixmapItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsPixmapItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -9478,7 +9478,7 @@ func miqt_exec_callback_QGraphicsTextItem_Event(self *C.QGraphicsTextItem, cb C. // Delete this object from C++ memory. func (this *QGraphicsTextItem) Delete() { - C.QGraphicsTextItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsTextItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -9906,7 +9906,7 @@ func miqt_exec_callback_QGraphicsSimpleTextItem_Extension(self *C.QGraphicsSimpl // Delete this object from C++ memory. func (this *QGraphicsSimpleTextItem) Delete() { - C.QGraphicsSimpleTextItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSimpleTextItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -10957,7 +10957,7 @@ func miqt_exec_callback_QGraphicsItemGroup_Extension(self *C.QGraphicsItemGroup, // Delete this object from C++ memory. func (this *QGraphicsItemGroup) Delete() { - C.QGraphicsItemGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsItemGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicsitem.h b/qt6/gen_qgraphicsitem.h index b348c8ac..59db9e47 100644 --- a/qt6/gen_qgraphicsitem.h +++ b/qt6/gen_qgraphicsitem.h @@ -388,7 +388,7 @@ void QGraphicsItem_override_virtual_SetExtension(void* self, intptr_t slot); void QGraphicsItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsItem_Delete(QGraphicsItem* self, bool isSubclass); +void QGraphicsItem_Delete(QGraphicsItem* self); QGraphicsObject* QGraphicsObject_new(); QGraphicsObject* QGraphicsObject_new2(QGraphicsItem* parent); @@ -510,7 +510,7 @@ void QGraphicsObject_override_virtual_SetExtension(void* self, intptr_t slot); void QGraphicsObject_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsObject_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsObject_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsObject_Delete(QGraphicsObject* self, bool isSubclass); +void QGraphicsObject_Delete(QGraphicsObject* self); QAbstractGraphicsShapeItem* QAbstractGraphicsShapeItem_new(); QAbstractGraphicsShapeItem* QAbstractGraphicsShapeItem_new2(QGraphicsItem* parent); @@ -591,7 +591,7 @@ void QAbstractGraphicsShapeItem_override_virtual_SetExtension(void* self, intptr void QAbstractGraphicsShapeItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QAbstractGraphicsShapeItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QAbstractGraphicsShapeItem_virtualbase_Extension(const void* self, QVariant* variant); -void QAbstractGraphicsShapeItem_Delete(QAbstractGraphicsShapeItem* self, bool isSubclass); +void QAbstractGraphicsShapeItem_Delete(QAbstractGraphicsShapeItem* self); QGraphicsPathItem* QGraphicsPathItem_new(); QGraphicsPathItem* QGraphicsPathItem_new2(QPainterPath* path); @@ -630,7 +630,7 @@ void QGraphicsPathItem_override_virtual_SetExtension(void* self, intptr_t slot); void QGraphicsPathItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsPathItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsPathItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsPathItem_Delete(QGraphicsPathItem* self, bool isSubclass); +void QGraphicsPathItem_Delete(QGraphicsPathItem* self); QGraphicsRectItem* QGraphicsRectItem_new(); QGraphicsRectItem* QGraphicsRectItem_new2(QRectF* rect); @@ -672,7 +672,7 @@ void QGraphicsRectItem_override_virtual_SetExtension(void* self, intptr_t slot); void QGraphicsRectItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsRectItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsRectItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsRectItem_Delete(QGraphicsRectItem* self, bool isSubclass); +void QGraphicsRectItem_Delete(QGraphicsRectItem* self); QGraphicsEllipseItem* QGraphicsEllipseItem_new(); QGraphicsEllipseItem* QGraphicsEllipseItem_new2(QRectF* rect); @@ -718,7 +718,7 @@ void QGraphicsEllipseItem_override_virtual_SetExtension(void* self, intptr_t slo void QGraphicsEllipseItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsEllipseItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsEllipseItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsEllipseItem_Delete(QGraphicsEllipseItem* self, bool isSubclass); +void QGraphicsEllipseItem_Delete(QGraphicsEllipseItem* self); QGraphicsPolygonItem* QGraphicsPolygonItem_new(); QGraphicsPolygonItem* QGraphicsPolygonItem_new2(QGraphicsItem* parent); @@ -755,7 +755,7 @@ void QGraphicsPolygonItem_override_virtual_SetExtension(void* self, intptr_t slo void QGraphicsPolygonItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsPolygonItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsPolygonItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsPolygonItem_Delete(QGraphicsPolygonItem* self, bool isSubclass); +void QGraphicsPolygonItem_Delete(QGraphicsPolygonItem* self); QGraphicsLineItem* QGraphicsLineItem_new(); QGraphicsLineItem* QGraphicsLineItem_new2(QLineF* line); @@ -849,7 +849,7 @@ void QGraphicsLineItem_override_virtual_InputMethodQuery(void* self, intptr_t sl QVariant* QGraphicsLineItem_virtualbase_InputMethodQuery(const void* self, int query); void QGraphicsLineItem_override_virtual_ItemChange(void* self, intptr_t slot); QVariant* QGraphicsLineItem_virtualbase_ItemChange(void* self, int change, QVariant* value); -void QGraphicsLineItem_Delete(QGraphicsLineItem* self, bool isSubclass); +void QGraphicsLineItem_Delete(QGraphicsLineItem* self); QGraphicsPixmapItem* QGraphicsPixmapItem_new(); QGraphicsPixmapItem* QGraphicsPixmapItem_new2(QPixmap* pixmap); @@ -945,7 +945,7 @@ void QGraphicsPixmapItem_override_virtual_InputMethodQuery(void* self, intptr_t QVariant* QGraphicsPixmapItem_virtualbase_InputMethodQuery(const void* self, int query); void QGraphicsPixmapItem_override_virtual_ItemChange(void* self, intptr_t slot); QVariant* QGraphicsPixmapItem_virtualbase_ItemChange(void* self, int change, QVariant* value); -void QGraphicsPixmapItem_Delete(QGraphicsPixmapItem* self, bool isSubclass); +void QGraphicsPixmapItem_Delete(QGraphicsPixmapItem* self); QGraphicsTextItem* QGraphicsTextItem_new(); QGraphicsTextItem* QGraphicsTextItem_new2(struct miqt_string text); @@ -1071,7 +1071,7 @@ void QGraphicsTextItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsTextItem_virtualbase_Extension(const void* self, QVariant* variant); void QGraphicsTextItem_override_virtual_Event(void* self, intptr_t slot); bool QGraphicsTextItem_virtualbase_Event(void* self, QEvent* ev); -void QGraphicsTextItem_Delete(QGraphicsTextItem* self, bool isSubclass); +void QGraphicsTextItem_Delete(QGraphicsTextItem* self); QGraphicsSimpleTextItem* QGraphicsSimpleTextItem_new(); QGraphicsSimpleTextItem* QGraphicsSimpleTextItem_new2(struct miqt_string text); @@ -1112,7 +1112,7 @@ void QGraphicsSimpleTextItem_override_virtual_SetExtension(void* self, intptr_t void QGraphicsSimpleTextItem_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsSimpleTextItem_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsSimpleTextItem_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsSimpleTextItem_Delete(QGraphicsSimpleTextItem* self, bool isSubclass); +void QGraphicsSimpleTextItem_Delete(QGraphicsSimpleTextItem* self); QGraphicsItemGroup* QGraphicsItemGroup_new(); QGraphicsItemGroup* QGraphicsItemGroup_new2(QGraphicsItem* parent); @@ -1194,7 +1194,7 @@ void QGraphicsItemGroup_override_virtual_SetExtension(void* self, intptr_t slot) void QGraphicsItemGroup_virtualbase_SetExtension(void* self, int extension, QVariant* variant); void QGraphicsItemGroup_override_virtual_Extension(void* self, intptr_t slot); QVariant* QGraphicsItemGroup_virtualbase_Extension(const void* self, QVariant* variant); -void QGraphicsItemGroup_Delete(QGraphicsItemGroup* self, bool isSubclass); +void QGraphicsItemGroup_Delete(QGraphicsItemGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicsitemanimation.cpp b/qt6/gen_qgraphicsitemanimation.cpp index b0dc0c63..83c58265 100644 --- a/qt6/gen_qgraphicsitemanimation.cpp +++ b/qt6/gen_qgraphicsitemanimation.cpp @@ -34,13 +34,13 @@ void miqt_exec_callback_QGraphicsItemAnimation_DisconnectNotify(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQGraphicsItemAnimation : public virtual QGraphicsItemAnimation { +class MiqtVirtualQGraphicsItemAnimation final : public QGraphicsItemAnimation { public: MiqtVirtualQGraphicsItemAnimation(): QGraphicsItemAnimation() {}; MiqtVirtualQGraphicsItemAnimation(QObject* parent): QGraphicsItemAnimation(parent) {}; - virtual ~MiqtVirtualQGraphicsItemAnimation() = default; + virtual ~MiqtVirtualQGraphicsItemAnimation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BeforeAnimationStep = 0; @@ -592,11 +592,7 @@ void QGraphicsItemAnimation_virtualbase_DisconnectNotify(void* self, QMetaMethod ( (MiqtVirtualQGraphicsItemAnimation*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGraphicsItemAnimation_Delete(QGraphicsItemAnimation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsItemAnimation_Delete(QGraphicsItemAnimation* self) { + delete self; } diff --git a/qt6/gen_qgraphicsitemanimation.go b/qt6/gen_qgraphicsitemanimation.go index b52abb29..85cccd25 100644 --- a/qt6/gen_qgraphicsitemanimation.go +++ b/qt6/gen_qgraphicsitemanimation.go @@ -572,7 +572,7 @@ func miqt_exec_callback_QGraphicsItemAnimation_DisconnectNotify(self *C.QGraphic // Delete this object from C++ memory. func (this *QGraphicsItemAnimation) Delete() { - C.QGraphicsItemAnimation_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsItemAnimation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicsitemanimation.h b/qt6/gen_qgraphicsitemanimation.h index 246e7cf6..888d4cac 100644 --- a/qt6/gen_qgraphicsitemanimation.h +++ b/qt6/gen_qgraphicsitemanimation.h @@ -93,7 +93,7 @@ void QGraphicsItemAnimation_override_virtual_ConnectNotify(void* self, intptr_t void QGraphicsItemAnimation_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGraphicsItemAnimation_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGraphicsItemAnimation_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGraphicsItemAnimation_Delete(QGraphicsItemAnimation* self, bool isSubclass); +void QGraphicsItemAnimation_Delete(QGraphicsItemAnimation* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicslayout.cpp b/qt6/gen_qgraphicslayout.cpp index 616f9f01..3f2221e6 100644 --- a/qt6/gen_qgraphicslayout.cpp +++ b/qt6/gen_qgraphicslayout.cpp @@ -24,13 +24,13 @@ QSizeF* miqt_exec_callback_QGraphicsLayout_SizeHint(void*, intptr_t, int, QSizeF } /* extern C */ #endif -class MiqtVirtualQGraphicsLayout : public virtual QGraphicsLayout { +class MiqtVirtualQGraphicsLayout final : public QGraphicsLayout { public: MiqtVirtualQGraphicsLayout(): QGraphicsLayout() {}; MiqtVirtualQGraphicsLayout(QGraphicsLayoutItem* parent): QGraphicsLayout(parent) {}; - virtual ~MiqtVirtualQGraphicsLayout() = default; + virtual ~MiqtVirtualQGraphicsLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__GetContentsMargins = 0; @@ -374,11 +374,7 @@ void QGraphicsLayout_override_virtual_SizeHint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLayout*)(self) )->handle__SizeHint = slot; } -void QGraphicsLayout_Delete(QGraphicsLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsLayout_Delete(QGraphicsLayout* self) { + delete self; } diff --git a/qt6/gen_qgraphicslayout.go b/qt6/gen_qgraphicslayout.go index 9feecc43..f92347ed 100644 --- a/qt6/gen_qgraphicslayout.go +++ b/qt6/gen_qgraphicslayout.go @@ -357,7 +357,7 @@ func miqt_exec_callback_QGraphicsLayout_SizeHint(self *C.QGraphicsLayout, cb C.i // Delete this object from C++ memory. func (this *QGraphicsLayout) Delete() { - C.QGraphicsLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicslayout.h b/qt6/gen_qgraphicslayout.h index e03b3c88..fefa63e9 100644 --- a/qt6/gen_qgraphicslayout.h +++ b/qt6/gen_qgraphicslayout.h @@ -63,7 +63,7 @@ void QGraphicsLayout_override_virtual_IsEmpty(void* self, intptr_t slot); bool QGraphicsLayout_virtualbase_IsEmpty(const void* self); void QGraphicsLayout_override_virtual_SizeHint(void* self, intptr_t slot); QSizeF* QGraphicsLayout_virtualbase_SizeHint(const void* self, int which, QSizeF* constraint); -void QGraphicsLayout_Delete(QGraphicsLayout* self, bool isSubclass); +void QGraphicsLayout_Delete(QGraphicsLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicslayoutitem.cpp b/qt6/gen_qgraphicslayoutitem.cpp index 81c1d01f..03545c19 100644 --- a/qt6/gen_qgraphicslayoutitem.cpp +++ b/qt6/gen_qgraphicslayoutitem.cpp @@ -19,14 +19,14 @@ QSizeF* miqt_exec_callback_QGraphicsLayoutItem_SizeHint(void*, intptr_t, int, QS } /* extern C */ #endif -class MiqtVirtualQGraphicsLayoutItem : public virtual QGraphicsLayoutItem { +class MiqtVirtualQGraphicsLayoutItem final : public QGraphicsLayoutItem { public: MiqtVirtualQGraphicsLayoutItem(): QGraphicsLayoutItem() {}; MiqtVirtualQGraphicsLayoutItem(QGraphicsLayoutItem* parent): QGraphicsLayoutItem(parent) {}; MiqtVirtualQGraphicsLayoutItem(QGraphicsLayoutItem* parent, bool isLayout): QGraphicsLayoutItem(parent, isLayout) {}; - virtual ~MiqtVirtualQGraphicsLayoutItem() = default; + virtual ~MiqtVirtualQGraphicsLayoutItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetGeometry = 0; @@ -358,11 +358,7 @@ void QGraphicsLayoutItem_override_virtual_SizeHint(void* self, intptr_t slot) { dynamic_cast( (QGraphicsLayoutItem*)(self) )->handle__SizeHint = slot; } -void QGraphicsLayoutItem_Delete(QGraphicsLayoutItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsLayoutItem_Delete(QGraphicsLayoutItem* self) { + delete self; } diff --git a/qt6/gen_qgraphicslayoutitem.go b/qt6/gen_qgraphicslayoutitem.go index f2756d6b..59a059dc 100644 --- a/qt6/gen_qgraphicslayoutitem.go +++ b/qt6/gen_qgraphicslayoutitem.go @@ -371,7 +371,7 @@ func miqt_exec_callback_QGraphicsLayoutItem_SizeHint(self *C.QGraphicsLayoutItem // Delete this object from C++ memory. func (this *QGraphicsLayoutItem) Delete() { - C.QGraphicsLayoutItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsLayoutItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicslayoutitem.h b/qt6/gen_qgraphicslayoutitem.h index 9f548c50..10fbfcbc 100644 --- a/qt6/gen_qgraphicslayoutitem.h +++ b/qt6/gen_qgraphicslayoutitem.h @@ -80,7 +80,7 @@ void QGraphicsLayoutItem_override_virtual_IsEmpty(void* self, intptr_t slot); bool QGraphicsLayoutItem_virtualbase_IsEmpty(const void* self); void QGraphicsLayoutItem_override_virtual_SizeHint(void* self, intptr_t slot); QSizeF* QGraphicsLayoutItem_virtualbase_SizeHint(const void* self, int which, QSizeF* constraint); -void QGraphicsLayoutItem_Delete(QGraphicsLayoutItem* self, bool isSubclass); +void QGraphicsLayoutItem_Delete(QGraphicsLayoutItem* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicslinearlayout.cpp b/qt6/gen_qgraphicslinearlayout.cpp index db2aab10..06ccb00a 100644 --- a/qt6/gen_qgraphicslinearlayout.cpp +++ b/qt6/gen_qgraphicslinearlayout.cpp @@ -24,7 +24,7 @@ void miqt_exec_callback_QGraphicsLinearLayout_WidgetEvent(void*, intptr_t, QEven } /* extern C */ #endif -class MiqtVirtualQGraphicsLinearLayout : public virtual QGraphicsLinearLayout { +class MiqtVirtualQGraphicsLinearLayout final : public QGraphicsLinearLayout { public: MiqtVirtualQGraphicsLinearLayout(): QGraphicsLinearLayout() {}; @@ -32,7 +32,7 @@ public: MiqtVirtualQGraphicsLinearLayout(QGraphicsLayoutItem* parent): QGraphicsLinearLayout(parent) {}; MiqtVirtualQGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem* parent): QGraphicsLinearLayout(orientation, parent) {}; - virtual ~MiqtVirtualQGraphicsLinearLayout() = default; + virtual ~MiqtVirtualQGraphicsLinearLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__RemoveAt = 0; @@ -455,11 +455,7 @@ void QGraphicsLinearLayout_virtualbase_WidgetEvent(void* self, QEvent* e) { ( (MiqtVirtualQGraphicsLinearLayout*)(self) )->virtualbase_WidgetEvent(e); } -void QGraphicsLinearLayout_Delete(QGraphicsLinearLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsLinearLayout_Delete(QGraphicsLinearLayout* self) { + delete self; } diff --git a/qt6/gen_qgraphicslinearlayout.go b/qt6/gen_qgraphicslinearlayout.go index f43ccc59..361ca0c6 100644 --- a/qt6/gen_qgraphicslinearlayout.go +++ b/qt6/gen_qgraphicslinearlayout.go @@ -428,7 +428,7 @@ func miqt_exec_callback_QGraphicsLinearLayout_WidgetEvent(self *C.QGraphicsLinea // Delete this object from C++ memory. func (this *QGraphicsLinearLayout) Delete() { - C.QGraphicsLinearLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsLinearLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicslinearlayout.h b/qt6/gen_qgraphicslinearlayout.h index f0f6695c..454274eb 100644 --- a/qt6/gen_qgraphicslinearlayout.h +++ b/qt6/gen_qgraphicslinearlayout.h @@ -78,7 +78,7 @@ void QGraphicsLinearLayout_override_virtual_UpdateGeometry(void* self, intptr_t void QGraphicsLinearLayout_virtualbase_UpdateGeometry(void* self); void QGraphicsLinearLayout_override_virtual_WidgetEvent(void* self, intptr_t slot); void QGraphicsLinearLayout_virtualbase_WidgetEvent(void* self, QEvent* e); -void QGraphicsLinearLayout_Delete(QGraphicsLinearLayout* self, bool isSubclass); +void QGraphicsLinearLayout_Delete(QGraphicsLinearLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicsproxywidget.cpp b/qt6/gen_qgraphicsproxywidget.cpp index 279cc1f7..d73f600c 100644 --- a/qt6/gen_qgraphicsproxywidget.cpp +++ b/qt6/gen_qgraphicsproxywidget.cpp @@ -90,14 +90,14 @@ void miqt_exec_callback_QGraphicsProxyWidget_UngrabKeyboardEvent(void*, intptr_t } /* extern C */ #endif -class MiqtVirtualQGraphicsProxyWidget : public virtual QGraphicsProxyWidget { +class MiqtVirtualQGraphicsProxyWidget final : public QGraphicsProxyWidget { public: MiqtVirtualQGraphicsProxyWidget(): QGraphicsProxyWidget() {}; MiqtVirtualQGraphicsProxyWidget(QGraphicsItem* parent): QGraphicsProxyWidget(parent) {}; MiqtVirtualQGraphicsProxyWidget(QGraphicsItem* parent, Qt::WindowFlags wFlags): QGraphicsProxyWidget(parent, wFlags) {}; - virtual ~MiqtVirtualQGraphicsProxyWidget() = default; + virtual ~MiqtVirtualQGraphicsProxyWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetGeometry = 0; @@ -1741,11 +1741,7 @@ void QGraphicsProxyWidget_virtualbase_UngrabKeyboardEvent(void* self, QEvent* ev ( (MiqtVirtualQGraphicsProxyWidget*)(self) )->virtualbase_UngrabKeyboardEvent(event); } -void QGraphicsProxyWidget_Delete(QGraphicsProxyWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsProxyWidget_Delete(QGraphicsProxyWidget* self) { + delete self; } diff --git a/qt6/gen_qgraphicsproxywidget.go b/qt6/gen_qgraphicsproxywidget.go index 4905c098..1b05424f 100644 --- a/qt6/gen_qgraphicsproxywidget.go +++ b/qt6/gen_qgraphicsproxywidget.go @@ -1453,7 +1453,7 @@ func miqt_exec_callback_QGraphicsProxyWidget_UngrabKeyboardEvent(self *C.QGraphi // Delete this object from C++ memory. func (this *QGraphicsProxyWidget) Delete() { - C.QGraphicsProxyWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsProxyWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicsproxywidget.h b/qt6/gen_qgraphicsproxywidget.h index 0c9946fc..21639a00 100644 --- a/qt6/gen_qgraphicsproxywidget.h +++ b/qt6/gen_qgraphicsproxywidget.h @@ -219,7 +219,7 @@ void QGraphicsProxyWidget_override_virtual_GrabKeyboardEvent(void* self, intptr_ void QGraphicsProxyWidget_virtualbase_GrabKeyboardEvent(void* self, QEvent* event); void QGraphicsProxyWidget_override_virtual_UngrabKeyboardEvent(void* self, intptr_t slot); void QGraphicsProxyWidget_virtualbase_UngrabKeyboardEvent(void* self, QEvent* event); -void QGraphicsProxyWidget_Delete(QGraphicsProxyWidget* self, bool isSubclass); +void QGraphicsProxyWidget_Delete(QGraphicsProxyWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicsscene.cpp b/qt6/gen_qgraphicsscene.cpp index f89d0094..2c9d4a01 100644 --- a/qt6/gen_qgraphicsscene.cpp +++ b/qt6/gen_qgraphicsscene.cpp @@ -85,7 +85,7 @@ void miqt_exec_callback_QGraphicsScene_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQGraphicsScene : public virtual QGraphicsScene { +class MiqtVirtualQGraphicsScene final : public QGraphicsScene { public: MiqtVirtualQGraphicsScene(): QGraphicsScene() {}; @@ -95,7 +95,7 @@ public: MiqtVirtualQGraphicsScene(const QRectF& sceneRect, QObject* parent): QGraphicsScene(sceneRect, parent) {}; MiqtVirtualQGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject* parent): QGraphicsScene(x, y, width, height, parent) {}; - virtual ~MiqtVirtualQGraphicsScene() = default; + virtual ~MiqtVirtualQGraphicsScene() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__InputMethodQuery = 0; @@ -1753,11 +1753,7 @@ void QGraphicsScene_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQGraphicsScene*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGraphicsScene_Delete(QGraphicsScene* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsScene_Delete(QGraphicsScene* self) { + delete self; } diff --git a/qt6/gen_qgraphicsscene.go b/qt6/gen_qgraphicsscene.go index dfaa1e7d..9b992d2a 100644 --- a/qt6/gen_qgraphicsscene.go +++ b/qt6/gen_qgraphicsscene.go @@ -1585,7 +1585,7 @@ func miqt_exec_callback_QGraphicsScene_DisconnectNotify(self *C.QGraphicsScene, // Delete this object from C++ memory. func (this *QGraphicsScene) Delete() { - C.QGraphicsScene_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsScene_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicsscene.h b/qt6/gen_qgraphicsscene.h index c054de6a..19a93d42 100644 --- a/qt6/gen_qgraphicsscene.h +++ b/qt6/gen_qgraphicsscene.h @@ -309,7 +309,7 @@ void QGraphicsScene_override_virtual_ConnectNotify(void* self, intptr_t slot); void QGraphicsScene_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGraphicsScene_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGraphicsScene_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGraphicsScene_Delete(QGraphicsScene* self, bool isSubclass); +void QGraphicsScene_Delete(QGraphicsScene* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicssceneevent.cpp b/qt6/gen_qgraphicssceneevent.cpp index 7555f119..07a0d371 100644 --- a/qt6/gen_qgraphicssceneevent.cpp +++ b/qt6/gen_qgraphicssceneevent.cpp @@ -26,12 +26,12 @@ QEvent* miqt_exec_callback_QGraphicsSceneEvent_Clone(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQGraphicsSceneEvent : public virtual QGraphicsSceneEvent { +class MiqtVirtualQGraphicsSceneEvent final : public QGraphicsSceneEvent { public: MiqtVirtualQGraphicsSceneEvent(QEvent::Type typeVal): QGraphicsSceneEvent(typeVal) {}; - virtual ~MiqtVirtualQGraphicsSceneEvent() = default; + virtual ~MiqtVirtualQGraphicsSceneEvent() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetAccepted = 0; @@ -122,12 +122,8 @@ QEvent* QGraphicsSceneEvent_virtualbase_Clone(const void* self) { return ( (const MiqtVirtualQGraphicsSceneEvent*)(self) )->virtualbase_Clone(); } -void QGraphicsSceneEvent_Delete(QGraphicsSceneEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneEvent_Delete(QGraphicsSceneEvent* self) { + delete self; } QGraphicsSceneMouseEvent* QGraphicsSceneMouseEvent_new() { @@ -259,12 +255,8 @@ void QGraphicsSceneMouseEvent_SetFlags(QGraphicsSceneMouseEvent* self, int flags self->setFlags(static_cast(flags)); } -void QGraphicsSceneMouseEvent_Delete(QGraphicsSceneMouseEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneMouseEvent_Delete(QGraphicsSceneMouseEvent* self) { + delete self; } QGraphicsSceneWheelEvent* QGraphicsSceneWheelEvent_new() { @@ -363,12 +355,8 @@ void QGraphicsSceneWheelEvent_SetInverted(QGraphicsSceneWheelEvent* self, bool i self->setInverted(inverted); } -void QGraphicsSceneWheelEvent_Delete(QGraphicsSceneWheelEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneWheelEvent_Delete(QGraphicsSceneWheelEvent* self) { + delete self; } QGraphicsSceneContextMenuEvent* QGraphicsSceneContextMenuEvent_new() { @@ -425,12 +413,8 @@ void QGraphicsSceneContextMenuEvent_SetReason(QGraphicsSceneContextMenuEvent* se self->setReason(static_cast(reason)); } -void QGraphicsSceneContextMenuEvent_Delete(QGraphicsSceneContextMenuEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneContextMenuEvent_Delete(QGraphicsSceneContextMenuEvent* self) { + delete self; } QGraphicsSceneHoverEvent* QGraphicsSceneHoverEvent_new() { @@ -502,12 +486,8 @@ void QGraphicsSceneHoverEvent_SetModifiers(QGraphicsSceneHoverEvent* self, int m self->setModifiers(static_cast(modifiers)); } -void QGraphicsSceneHoverEvent_Delete(QGraphicsSceneHoverEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneHoverEvent_Delete(QGraphicsSceneHoverEvent* self) { + delete self; } QGraphicsSceneHelpEvent* QGraphicsSceneHelpEvent_new() { @@ -538,12 +518,8 @@ void QGraphicsSceneHelpEvent_SetScreenPos(QGraphicsSceneHelpEvent* self, QPoint* self->setScreenPos(*pos); } -void QGraphicsSceneHelpEvent_Delete(QGraphicsSceneHelpEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneHelpEvent_Delete(QGraphicsSceneHelpEvent* self) { + delete self; } QGraphicsSceneDragDropEvent* QGraphicsSceneDragDropEvent_new() { @@ -647,12 +623,8 @@ void QGraphicsSceneDragDropEvent_SetMimeData(QGraphicsSceneDragDropEvent* self, self->setMimeData(data); } -void QGraphicsSceneDragDropEvent_Delete(QGraphicsSceneDragDropEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneDragDropEvent_Delete(QGraphicsSceneDragDropEvent* self) { + delete self; } QGraphicsSceneResizeEvent* QGraphicsSceneResizeEvent_new() { @@ -679,12 +651,8 @@ void QGraphicsSceneResizeEvent_SetNewSize(QGraphicsSceneResizeEvent* self, QSize self->setNewSize(*size); } -void QGraphicsSceneResizeEvent_Delete(QGraphicsSceneResizeEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneResizeEvent_Delete(QGraphicsSceneResizeEvent* self) { + delete self; } QGraphicsSceneMoveEvent* QGraphicsSceneMoveEvent_new() { @@ -711,11 +679,7 @@ void QGraphicsSceneMoveEvent_SetNewPos(QGraphicsSceneMoveEvent* self, QPointF* p self->setNewPos(*pos); } -void QGraphicsSceneMoveEvent_Delete(QGraphicsSceneMoveEvent* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSceneMoveEvent_Delete(QGraphicsSceneMoveEvent* self) { + delete self; } diff --git a/qt6/gen_qgraphicssceneevent.go b/qt6/gen_qgraphicssceneevent.go index 9fa4992f..770ca1f3 100644 --- a/qt6/gen_qgraphicssceneevent.go +++ b/qt6/gen_qgraphicssceneevent.go @@ -136,7 +136,7 @@ func miqt_exec_callback_QGraphicsSceneEvent_Clone(self *C.QGraphicsSceneEvent, c // Delete this object from C++ memory. func (this *QGraphicsSceneEvent) Delete() { - C.QGraphicsSceneEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -333,7 +333,7 @@ func (this *QGraphicsSceneMouseEvent) SetFlags(flags MouseEventFlag) { // Delete this object from C++ memory. func (this *QGraphicsSceneMouseEvent) Delete() { - C.QGraphicsSceneMouseEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneMouseEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -488,7 +488,7 @@ func (this *QGraphicsSceneWheelEvent) SetInverted(inverted bool) { // Delete this object from C++ memory. func (this *QGraphicsSceneWheelEvent) Delete() { - C.QGraphicsSceneWheelEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneWheelEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -601,7 +601,7 @@ func (this *QGraphicsSceneContextMenuEvent) SetReason(reason QGraphicsSceneConte // Delete this object from C++ memory. func (this *QGraphicsSceneContextMenuEvent) Delete() { - C.QGraphicsSceneContextMenuEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneContextMenuEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -736,7 +736,7 @@ func (this *QGraphicsSceneHoverEvent) SetModifiers(modifiers KeyboardModifier) { // Delete this object from C++ memory. func (this *QGraphicsSceneHoverEvent) Delete() { - C.QGraphicsSceneHoverEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneHoverEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -823,7 +823,7 @@ func (this *QGraphicsSceneHelpEvent) SetScreenPos(pos *QPoint) { // Delete this object from C++ memory. func (this *QGraphicsSceneHelpEvent) Delete() { - C.QGraphicsSceneHelpEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneHelpEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -980,7 +980,7 @@ func (this *QGraphicsSceneDragDropEvent) SetMimeData(data *QMimeData) { // Delete this object from C++ memory. func (this *QGraphicsSceneDragDropEvent) Delete() { - C.QGraphicsSceneDragDropEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneDragDropEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1059,7 +1059,7 @@ func (this *QGraphicsSceneResizeEvent) SetNewSize(size *QSizeF) { // Delete this object from C++ memory. func (this *QGraphicsSceneResizeEvent) Delete() { - C.QGraphicsSceneResizeEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneResizeEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1138,7 +1138,7 @@ func (this *QGraphicsSceneMoveEvent) SetNewPos(pos *QPointF) { // Delete this object from C++ memory. func (this *QGraphicsSceneMoveEvent) Delete() { - C.QGraphicsSceneMoveEvent_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSceneMoveEvent_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicssceneevent.h b/qt6/gen_qgraphicssceneevent.h index ed28e9fb..53f5925e 100644 --- a/qt6/gen_qgraphicssceneevent.h +++ b/qt6/gen_qgraphicssceneevent.h @@ -58,7 +58,7 @@ void QGraphicsSceneEvent_override_virtual_SetAccepted(void* self, intptr_t slot) void QGraphicsSceneEvent_virtualbase_SetAccepted(void* self, bool accepted); void QGraphicsSceneEvent_override_virtual_Clone(void* self, intptr_t slot); QEvent* QGraphicsSceneEvent_virtualbase_Clone(const void* self); -void QGraphicsSceneEvent_Delete(QGraphicsSceneEvent* self, bool isSubclass); +void QGraphicsSceneEvent_Delete(QGraphicsSceneEvent* self); QGraphicsSceneMouseEvent* QGraphicsSceneMouseEvent_new(); QGraphicsSceneMouseEvent* QGraphicsSceneMouseEvent_new2(int typeVal); @@ -91,7 +91,7 @@ int QGraphicsSceneMouseEvent_Source(const QGraphicsSceneMouseEvent* self); void QGraphicsSceneMouseEvent_SetSource(QGraphicsSceneMouseEvent* self, int source); int QGraphicsSceneMouseEvent_Flags(const QGraphicsSceneMouseEvent* self); void QGraphicsSceneMouseEvent_SetFlags(QGraphicsSceneMouseEvent* self, int flags); -void QGraphicsSceneMouseEvent_Delete(QGraphicsSceneMouseEvent* self, bool isSubclass); +void QGraphicsSceneMouseEvent_Delete(QGraphicsSceneMouseEvent* self); QGraphicsSceneWheelEvent* QGraphicsSceneWheelEvent_new(); QGraphicsSceneWheelEvent* QGraphicsSceneWheelEvent_new2(int typeVal); @@ -116,7 +116,7 @@ QPoint* QGraphicsSceneWheelEvent_PixelDelta(const QGraphicsSceneWheelEvent* self void QGraphicsSceneWheelEvent_SetPixelDelta(QGraphicsSceneWheelEvent* self, QPoint* delta); bool QGraphicsSceneWheelEvent_IsInverted(const QGraphicsSceneWheelEvent* self); void QGraphicsSceneWheelEvent_SetInverted(QGraphicsSceneWheelEvent* self, bool inverted); -void QGraphicsSceneWheelEvent_Delete(QGraphicsSceneWheelEvent* self, bool isSubclass); +void QGraphicsSceneWheelEvent_Delete(QGraphicsSceneWheelEvent* self); QGraphicsSceneContextMenuEvent* QGraphicsSceneContextMenuEvent_new(); QGraphicsSceneContextMenuEvent* QGraphicsSceneContextMenuEvent_new2(int typeVal); @@ -131,7 +131,7 @@ int QGraphicsSceneContextMenuEvent_Modifiers(const QGraphicsSceneContextMenuEven void QGraphicsSceneContextMenuEvent_SetModifiers(QGraphicsSceneContextMenuEvent* self, int modifiers); int QGraphicsSceneContextMenuEvent_Reason(const QGraphicsSceneContextMenuEvent* self); void QGraphicsSceneContextMenuEvent_SetReason(QGraphicsSceneContextMenuEvent* self, int reason); -void QGraphicsSceneContextMenuEvent_Delete(QGraphicsSceneContextMenuEvent* self, bool isSubclass); +void QGraphicsSceneContextMenuEvent_Delete(QGraphicsSceneContextMenuEvent* self); QGraphicsSceneHoverEvent* QGraphicsSceneHoverEvent_new(); QGraphicsSceneHoverEvent* QGraphicsSceneHoverEvent_new2(int typeVal); @@ -150,7 +150,7 @@ QPoint* QGraphicsSceneHoverEvent_LastScreenPos(const QGraphicsSceneHoverEvent* s void QGraphicsSceneHoverEvent_SetLastScreenPos(QGraphicsSceneHoverEvent* self, QPoint* pos); int QGraphicsSceneHoverEvent_Modifiers(const QGraphicsSceneHoverEvent* self); void QGraphicsSceneHoverEvent_SetModifiers(QGraphicsSceneHoverEvent* self, int modifiers); -void QGraphicsSceneHoverEvent_Delete(QGraphicsSceneHoverEvent* self, bool isSubclass); +void QGraphicsSceneHoverEvent_Delete(QGraphicsSceneHoverEvent* self); QGraphicsSceneHelpEvent* QGraphicsSceneHelpEvent_new(); QGraphicsSceneHelpEvent* QGraphicsSceneHelpEvent_new2(int typeVal); @@ -159,7 +159,7 @@ QPointF* QGraphicsSceneHelpEvent_ScenePos(const QGraphicsSceneHelpEvent* self); void QGraphicsSceneHelpEvent_SetScenePos(QGraphicsSceneHelpEvent* self, QPointF* pos); QPoint* QGraphicsSceneHelpEvent_ScreenPos(const QGraphicsSceneHelpEvent* self); void QGraphicsSceneHelpEvent_SetScreenPos(QGraphicsSceneHelpEvent* self, QPoint* pos); -void QGraphicsSceneHelpEvent_Delete(QGraphicsSceneHelpEvent* self, bool isSubclass); +void QGraphicsSceneHelpEvent_Delete(QGraphicsSceneHelpEvent* self); QGraphicsSceneDragDropEvent* QGraphicsSceneDragDropEvent_new(); QGraphicsSceneDragDropEvent* QGraphicsSceneDragDropEvent_new2(int typeVal); @@ -185,7 +185,7 @@ QWidget* QGraphicsSceneDragDropEvent_Source(const QGraphicsSceneDragDropEvent* s void QGraphicsSceneDragDropEvent_SetSource(QGraphicsSceneDragDropEvent* self, QWidget* source); QMimeData* QGraphicsSceneDragDropEvent_MimeData(const QGraphicsSceneDragDropEvent* self); void QGraphicsSceneDragDropEvent_SetMimeData(QGraphicsSceneDragDropEvent* self, QMimeData* data); -void QGraphicsSceneDragDropEvent_Delete(QGraphicsSceneDragDropEvent* self, bool isSubclass); +void QGraphicsSceneDragDropEvent_Delete(QGraphicsSceneDragDropEvent* self); QGraphicsSceneResizeEvent* QGraphicsSceneResizeEvent_new(); void QGraphicsSceneResizeEvent_virtbase(QGraphicsSceneResizeEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent); @@ -193,7 +193,7 @@ QSizeF* QGraphicsSceneResizeEvent_OldSize(const QGraphicsSceneResizeEvent* self) void QGraphicsSceneResizeEvent_SetOldSize(QGraphicsSceneResizeEvent* self, QSizeF* size); QSizeF* QGraphicsSceneResizeEvent_NewSize(const QGraphicsSceneResizeEvent* self); void QGraphicsSceneResizeEvent_SetNewSize(QGraphicsSceneResizeEvent* self, QSizeF* size); -void QGraphicsSceneResizeEvent_Delete(QGraphicsSceneResizeEvent* self, bool isSubclass); +void QGraphicsSceneResizeEvent_Delete(QGraphicsSceneResizeEvent* self); QGraphicsSceneMoveEvent* QGraphicsSceneMoveEvent_new(); void QGraphicsSceneMoveEvent_virtbase(QGraphicsSceneMoveEvent* src, QGraphicsSceneEvent** outptr_QGraphicsSceneEvent); @@ -201,7 +201,7 @@ QPointF* QGraphicsSceneMoveEvent_OldPos(const QGraphicsSceneMoveEvent* self); void QGraphicsSceneMoveEvent_SetOldPos(QGraphicsSceneMoveEvent* self, QPointF* pos); QPointF* QGraphicsSceneMoveEvent_NewPos(const QGraphicsSceneMoveEvent* self); void QGraphicsSceneMoveEvent_SetNewPos(QGraphicsSceneMoveEvent* self, QPointF* pos); -void QGraphicsSceneMoveEvent_Delete(QGraphicsSceneMoveEvent* self, bool isSubclass); +void QGraphicsSceneMoveEvent_Delete(QGraphicsSceneMoveEvent* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicstransform.cpp b/qt6/gen_qgraphicstransform.cpp index b4e373ad..1655cc3d 100644 --- a/qt6/gen_qgraphicstransform.cpp +++ b/qt6/gen_qgraphicstransform.cpp @@ -41,13 +41,13 @@ void miqt_exec_callback_QGraphicsRotation_ApplyTo(void*, intptr_t, QMatrix4x4*); } /* extern C */ #endif -class MiqtVirtualQGraphicsTransform : public virtual QGraphicsTransform { +class MiqtVirtualQGraphicsTransform final : public QGraphicsTransform { public: MiqtVirtualQGraphicsTransform(): QGraphicsTransform() {}; MiqtVirtualQGraphicsTransform(QObject* parent): QGraphicsTransform(parent) {}; - virtual ~MiqtVirtualQGraphicsTransform() = default; + virtual ~MiqtVirtualQGraphicsTransform() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ApplyTo = 0; @@ -355,21 +355,17 @@ void QGraphicsTransform_virtualbase_DisconnectNotify(void* self, QMetaMethod* si ( (MiqtVirtualQGraphicsTransform*)(self) )->virtualbase_DisconnectNotify(signal); } -void QGraphicsTransform_Delete(QGraphicsTransform* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsTransform_Delete(QGraphicsTransform* self) { + delete self; } -class MiqtVirtualQGraphicsScale : public virtual QGraphicsScale { +class MiqtVirtualQGraphicsScale final : public QGraphicsScale { public: MiqtVirtualQGraphicsScale(): QGraphicsScale() {}; MiqtVirtualQGraphicsScale(QObject* parent): QGraphicsScale(parent) {}; - virtual ~MiqtVirtualQGraphicsScale() = default; + virtual ~MiqtVirtualQGraphicsScale() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ApplyTo = 0; @@ -547,21 +543,17 @@ void QGraphicsScale_virtualbase_ApplyTo(const void* self, QMatrix4x4* matrix) { ( (const MiqtVirtualQGraphicsScale*)(self) )->virtualbase_ApplyTo(matrix); } -void QGraphicsScale_Delete(QGraphicsScale* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsScale_Delete(QGraphicsScale* self) { + delete self; } -class MiqtVirtualQGraphicsRotation : public virtual QGraphicsRotation { +class MiqtVirtualQGraphicsRotation final : public QGraphicsRotation { public: MiqtVirtualQGraphicsRotation(): QGraphicsRotation() {}; MiqtVirtualQGraphicsRotation(QObject* parent): QGraphicsRotation(parent) {}; - virtual ~MiqtVirtualQGraphicsRotation() = default; + virtual ~MiqtVirtualQGraphicsRotation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ApplyTo = 0; @@ -713,11 +705,7 @@ void QGraphicsRotation_virtualbase_ApplyTo(const void* self, QMatrix4x4* matrix) ( (const MiqtVirtualQGraphicsRotation*)(self) )->virtualbase_ApplyTo(matrix); } -void QGraphicsRotation_Delete(QGraphicsRotation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsRotation_Delete(QGraphicsRotation* self) { + delete self; } diff --git a/qt6/gen_qgraphicstransform.go b/qt6/gen_qgraphicstransform.go index 5745b55e..e166ee13 100644 --- a/qt6/gen_qgraphicstransform.go +++ b/qt6/gen_qgraphicstransform.go @@ -322,7 +322,7 @@ func miqt_exec_callback_QGraphicsTransform_DisconnectNotify(self *C.QGraphicsTra // Delete this object from C++ memory. func (this *QGraphicsTransform) Delete() { - C.QGraphicsTransform_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsTransform_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -579,7 +579,7 @@ func miqt_exec_callback_QGraphicsScale_ApplyTo(self *C.QGraphicsScale, cb C.intp // Delete this object from C++ memory. func (this *QGraphicsScale) Delete() { - C.QGraphicsScale_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsScale_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -800,7 +800,7 @@ func miqt_exec_callback_QGraphicsRotation_ApplyTo(self *C.QGraphicsRotation, cb // Delete this object from C++ memory. func (this *QGraphicsRotation) Delete() { - C.QGraphicsRotation_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsRotation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicstransform.h b/qt6/gen_qgraphicstransform.h index 8d96f57f..dea826bb 100644 --- a/qt6/gen_qgraphicstransform.h +++ b/qt6/gen_qgraphicstransform.h @@ -65,7 +65,7 @@ void QGraphicsTransform_override_virtual_ConnectNotify(void* self, intptr_t slot void QGraphicsTransform_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QGraphicsTransform_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QGraphicsTransform_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QGraphicsTransform_Delete(QGraphicsTransform* self, bool isSubclass); +void QGraphicsTransform_Delete(QGraphicsTransform* self); QGraphicsScale* QGraphicsScale_new(); QGraphicsScale* QGraphicsScale_new2(QObject* parent); @@ -96,7 +96,7 @@ struct miqt_string QGraphicsScale_Tr2(const char* s, const char* c); struct miqt_string QGraphicsScale_Tr3(const char* s, const char* c, int n); void QGraphicsScale_override_virtual_ApplyTo(void* self, intptr_t slot); void QGraphicsScale_virtualbase_ApplyTo(const void* self, QMatrix4x4* matrix); -void QGraphicsScale_Delete(QGraphicsScale* self, bool isSubclass); +void QGraphicsScale_Delete(QGraphicsScale* self); QGraphicsRotation* QGraphicsRotation_new(); QGraphicsRotation* QGraphicsRotation_new2(QObject* parent); @@ -122,7 +122,7 @@ struct miqt_string QGraphicsRotation_Tr2(const char* s, const char* c); struct miqt_string QGraphicsRotation_Tr3(const char* s, const char* c, int n); void QGraphicsRotation_override_virtual_ApplyTo(void* self, intptr_t slot); void QGraphicsRotation_virtualbase_ApplyTo(const void* self, QMatrix4x4* matrix); -void QGraphicsRotation_Delete(QGraphicsRotation* self, bool isSubclass); +void QGraphicsRotation_Delete(QGraphicsRotation* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicsview.cpp b/qt6/gen_qgraphicsview.cpp index 3cbd0d63..445c06eb 100644 --- a/qt6/gen_qgraphicsview.cpp +++ b/qt6/gen_qgraphicsview.cpp @@ -77,7 +77,7 @@ QSize* miqt_exec_callback_QGraphicsView_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQGraphicsView : public virtual QGraphicsView { +class MiqtVirtualQGraphicsView final : public QGraphicsView { public: MiqtVirtualQGraphicsView(QWidget* parent): QGraphicsView(parent) {}; @@ -85,7 +85,7 @@ public: MiqtVirtualQGraphicsView(QGraphicsScene* scene): QGraphicsView(scene) {}; MiqtVirtualQGraphicsView(QGraphicsScene* scene, QWidget* parent): QGraphicsView(scene, parent) {}; - virtual ~MiqtVirtualQGraphicsView() = default; + virtual ~MiqtVirtualQGraphicsView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1581,11 +1581,7 @@ QSize* QGraphicsView_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQGraphicsView*)(self) )->virtualbase_ViewportSizeHint(); } -void QGraphicsView_Delete(QGraphicsView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsView_Delete(QGraphicsView* self) { + delete self; } diff --git a/qt6/gen_qgraphicsview.go b/qt6/gen_qgraphicsview.go index dd6d0692..a755ae36 100644 --- a/qt6/gen_qgraphicsview.go +++ b/qt6/gen_qgraphicsview.go @@ -1452,7 +1452,7 @@ func miqt_exec_callback_QGraphicsView_ViewportSizeHint(self *C.QGraphicsView, cb // Delete this object from C++ memory. func (this *QGraphicsView) Delete() { - C.QGraphicsView_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicsview.h b/qt6/gen_qgraphicsview.h index 495c0cbc..304503ff 100644 --- a/qt6/gen_qgraphicsview.h +++ b/qt6/gen_qgraphicsview.h @@ -272,7 +272,7 @@ void QGraphicsView_override_virtual_EventFilter(void* self, intptr_t slot); bool QGraphicsView_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); void QGraphicsView_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QGraphicsView_virtualbase_ViewportSizeHint(const void* self); -void QGraphicsView_Delete(QGraphicsView* self, bool isSubclass); +void QGraphicsView_Delete(QGraphicsView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgraphicswidget.cpp b/qt6/gen_qgraphicswidget.cpp index 311c096b..4bf62970 100644 --- a/qt6/gen_qgraphicswidget.cpp +++ b/qt6/gen_qgraphicswidget.cpp @@ -78,14 +78,14 @@ bool miqt_exec_callback_QGraphicsWidget_IsEmpty(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQGraphicsWidget : public virtual QGraphicsWidget { +class MiqtVirtualQGraphicsWidget final : public QGraphicsWidget { public: MiqtVirtualQGraphicsWidget(): QGraphicsWidget() {}; MiqtVirtualQGraphicsWidget(QGraphicsItem* parent): QGraphicsWidget(parent) {}; MiqtVirtualQGraphicsWidget(QGraphicsItem* parent, Qt::WindowFlags wFlags): QGraphicsWidget(parent, wFlags) {}; - virtual ~MiqtVirtualQGraphicsWidget() = default; + virtual ~MiqtVirtualQGraphicsWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetGeometry = 0; @@ -1517,11 +1517,7 @@ bool QGraphicsWidget_virtualbase_IsEmpty(const void* self) { return ( (const MiqtVirtualQGraphicsWidget*)(self) )->virtualbase_IsEmpty(); } -void QGraphicsWidget_Delete(QGraphicsWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsWidget_Delete(QGraphicsWidget* self) { + delete self; } diff --git a/qt6/gen_qgraphicswidget.go b/qt6/gen_qgraphicswidget.go index 2abc77bd..b430b8fc 100644 --- a/qt6/gen_qgraphicswidget.go +++ b/qt6/gen_qgraphicswidget.go @@ -1346,7 +1346,7 @@ func miqt_exec_callback_QGraphicsWidget_IsEmpty(self *C.QGraphicsWidget, cb C.in // Delete this object from C++ memory. func (this *QGraphicsWidget) Delete() { - C.QGraphicsWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgraphicswidget.h b/qt6/gen_qgraphicswidget.h index 10f78cdf..f9784131 100644 --- a/qt6/gen_qgraphicswidget.h +++ b/qt6/gen_qgraphicswidget.h @@ -243,7 +243,7 @@ void QGraphicsWidget_override_virtual_UngrabKeyboardEvent(void* self, intptr_t s void QGraphicsWidget_virtualbase_UngrabKeyboardEvent(void* self, QEvent* event); void QGraphicsWidget_override_virtual_IsEmpty(void* self, intptr_t slot); bool QGraphicsWidget_virtualbase_IsEmpty(const void* self); -void QGraphicsWidget_Delete(QGraphicsWidget* self, bool isSubclass); +void QGraphicsWidget_Delete(QGraphicsWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgridlayout.cpp b/qt6/gen_qgridlayout.cpp index 254daff2..a9ee4c81 100644 --- a/qt6/gen_qgridlayout.cpp +++ b/qt6/gen_qgridlayout.cpp @@ -43,13 +43,13 @@ void miqt_exec_callback_QGridLayout_ChildEvent(void*, intptr_t, QChildEvent*); } /* extern C */ #endif -class MiqtVirtualQGridLayout : public virtual QGridLayout { +class MiqtVirtualQGridLayout final : public QGridLayout { public: MiqtVirtualQGridLayout(QWidget* parent): QGridLayout(parent) {}; MiqtVirtualQGridLayout(): QGridLayout() {}; - virtual ~MiqtVirtualQGridLayout() = default; + virtual ~MiqtVirtualQGridLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -978,11 +978,7 @@ void QGridLayout_virtualbase_ChildEvent(void* self, QChildEvent* e) { ( (MiqtVirtualQGridLayout*)(self) )->virtualbase_ChildEvent(e); } -void QGridLayout_Delete(QGridLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGridLayout_Delete(QGridLayout* self) { + delete self; } diff --git a/qt6/gen_qgridlayout.go b/qt6/gen_qgridlayout.go index e04e4ee5..9181effe 100644 --- a/qt6/gen_qgridlayout.go +++ b/qt6/gen_qgridlayout.go @@ -888,7 +888,7 @@ func miqt_exec_callback_QGridLayout_ChildEvent(self *C.QGridLayout, cb C.intptr_ // Delete this object from C++ memory. func (this *QGridLayout) Delete() { - C.QGridLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QGridLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgridlayout.h b/qt6/gen_qgridlayout.h index ed0d2476..78777f82 100644 --- a/qt6/gen_qgridlayout.h +++ b/qt6/gen_qgridlayout.h @@ -136,7 +136,7 @@ void QGridLayout_override_virtual_Layout(void* self, intptr_t slot); QLayout* QGridLayout_virtualbase_Layout(void* self); void QGridLayout_override_virtual_ChildEvent(void* self, intptr_t slot); void QGridLayout_virtualbase_ChildEvent(void* self, QChildEvent* e); -void QGridLayout_Delete(QGridLayout* self, bool isSubclass); +void QGridLayout_Delete(QGridLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qgroupbox.cpp b/qt6/gen_qgroupbox.cpp index b0c6b3d8..0c6ea3dc 100644 --- a/qt6/gen_qgroupbox.cpp +++ b/qt6/gen_qgroupbox.cpp @@ -91,7 +91,7 @@ bool miqt_exec_callback_QGroupBox_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQGroupBox : public virtual QGroupBox { +class MiqtVirtualQGroupBox final : public QGroupBox { public: MiqtVirtualQGroupBox(QWidget* parent): QGroupBox(parent) {}; @@ -99,7 +99,7 @@ public: MiqtVirtualQGroupBox(const QString& title): QGroupBox(title) {}; MiqtVirtualQGroupBox(const QString& title, QWidget* parent): QGroupBox(title, parent) {}; - virtual ~MiqtVirtualQGroupBox() = default; + virtual ~MiqtVirtualQGroupBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MinimumSizeHint = 0; @@ -1619,11 +1619,7 @@ bool QGroupBox_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQGroupBox*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QGroupBox_Delete(QGroupBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGroupBox_Delete(QGroupBox* self) { + delete self; } diff --git a/qt6/gen_qgroupbox.go b/qt6/gen_qgroupbox.go index f02c871e..6c310d6b 100644 --- a/qt6/gen_qgroupbox.go +++ b/qt6/gen_qgroupbox.go @@ -1385,7 +1385,7 @@ func miqt_exec_callback_QGroupBox_FocusNextPrevChild(self *C.QGroupBox, cb C.int // Delete this object from C++ memory. func (this *QGroupBox) Delete() { - C.QGroupBox_Delete(this.h, C.bool(this.isSubclass)) + C.QGroupBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qgroupbox.h b/qt6/gen_qgroupbox.h index 37dfdb6d..70bf09a6 100644 --- a/qt6/gen_qgroupbox.h +++ b/qt6/gen_qgroupbox.h @@ -205,7 +205,7 @@ void QGroupBox_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QGroupBox_virtualbase_InputMethodQuery(const void* self, int param1); void QGroupBox_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QGroupBox_virtualbase_FocusNextPrevChild(void* self, bool next); -void QGroupBox_Delete(QGroupBox* self, bool isSubclass); +void QGroupBox_Delete(QGroupBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qguiapplication.cpp b/qt6/gen_qguiapplication.cpp index 7739b2b3..718f9dc5 100644 --- a/qt6/gen_qguiapplication.cpp +++ b/qt6/gen_qguiapplication.cpp @@ -45,13 +45,13 @@ bool miqt_exec_callback_QGuiApplication_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQGuiApplication : public virtual QGuiApplication { +class MiqtVirtualQGuiApplication final : public QGuiApplication { public: MiqtVirtualQGuiApplication(int& argc, char** argv): QGuiApplication(argc, argv) {}; MiqtVirtualQGuiApplication(int& argc, char** argv, int param3): QGuiApplication(argc, argv, param3) {}; - virtual ~MiqtVirtualQGuiApplication() = default; + virtual ~MiqtVirtualQGuiApplication() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Notify = 0; @@ -599,11 +599,7 @@ bool QGuiApplication_virtualbase_Event(void* self, QEvent* param1) { return ( (MiqtVirtualQGuiApplication*)(self) )->virtualbase_Event(param1); } -void QGuiApplication_Delete(QGuiApplication* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGuiApplication_Delete(QGuiApplication* self) { + delete self; } diff --git a/qt6/gen_qguiapplication.go b/qt6/gen_qguiapplication.go index 23a8f48c..eeab71d2 100644 --- a/qt6/gen_qguiapplication.go +++ b/qt6/gen_qguiapplication.go @@ -700,7 +700,7 @@ func miqt_exec_callback_QGuiApplication_Event(self *C.QGuiApplication, cb C.intp // Delete this object from C++ memory. func (this *QGuiApplication) Delete() { - C.QGuiApplication_Delete(this.h, C.bool(this.isSubclass)) + C.QGuiApplication_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qguiapplication.h b/qt6/gen_qguiapplication.h index f02a1964..94f3798d 100644 --- a/qt6/gen_qguiapplication.h +++ b/qt6/gen_qguiapplication.h @@ -140,7 +140,7 @@ void QGuiApplication_override_virtual_Notify(void* self, intptr_t slot); bool QGuiApplication_virtualbase_Notify(void* self, QObject* param1, QEvent* param2); void QGuiApplication_override_virtual_Event(void* self, intptr_t slot); bool QGuiApplication_virtualbase_Event(void* self, QEvent* param1); -void QGuiApplication_Delete(QGuiApplication* self, bool isSubclass); +void QGuiApplication_Delete(QGuiApplication* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qhashfunctions.cpp b/qt6/gen_qhashfunctions.cpp index 63d42f50..9bb1c985 100644 --- a/qt6/gen_qhashfunctions.cpp +++ b/qt6/gen_qhashfunctions.cpp @@ -30,11 +30,7 @@ void QHashSeed_ResetRandomGlobalSeed() { QHashSeed::resetRandomGlobalSeed(); } -void QHashSeed_Delete(QHashSeed* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHashSeed_Delete(QHashSeed* self) { + delete self; } diff --git a/qt6/gen_qhashfunctions.go b/qt6/gen_qhashfunctions.go index c3c0a93d..8b23d5e9 100644 --- a/qt6/gen_qhashfunctions.go +++ b/qt6/gen_qhashfunctions.go @@ -78,7 +78,7 @@ func QHashSeed_ResetRandomGlobalSeed() { // Delete this object from C++ memory. func (this *QHashSeed) Delete() { - C.QHashSeed_Delete(this.h, C.bool(this.isSubclass)) + C.QHashSeed_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qhashfunctions.h b/qt6/gen_qhashfunctions.h index 9fa4f974..72fec32e 100644 --- a/qt6/gen_qhashfunctions.h +++ b/qt6/gen_qhashfunctions.h @@ -25,7 +25,7 @@ QHashSeed* QHashSeed_new2(size_t d); QHashSeed* QHashSeed_GlobalSeed(); void QHashSeed_SetDeterministicGlobalSeed(); void QHashSeed_ResetRandomGlobalSeed(); -void QHashSeed_Delete(QHashSeed* self, bool isSubclass); +void QHashSeed_Delete(QHashSeed* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qheaderview.cpp b/qt6/gen_qheaderview.cpp index 5780a676..c5573bc4 100644 --- a/qt6/gen_qheaderview.cpp +++ b/qt6/gen_qheaderview.cpp @@ -125,13 +125,13 @@ QSize* miqt_exec_callback_QHeaderView_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQHeaderView : public virtual QHeaderView { +class MiqtVirtualQHeaderView final : public QHeaderView { public: MiqtVirtualQHeaderView(Qt::Orientation orientation): QHeaderView(orientation) {}; MiqtVirtualQHeaderView(Qt::Orientation orientation, QWidget* parent): QHeaderView(orientation, parent) {}; - virtual ~MiqtVirtualQHeaderView() = default; + virtual ~MiqtVirtualQHeaderView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetModel = 0; @@ -2822,11 +2822,7 @@ QSize* QHeaderView_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQHeaderView*)(self) )->virtualbase_ViewportSizeHint(); } -void QHeaderView_Delete(QHeaderView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHeaderView_Delete(QHeaderView* self) { + delete self; } diff --git a/qt6/gen_qheaderview.go b/qt6/gen_qheaderview.go index 5967b1b3..936cebcb 100644 --- a/qt6/gen_qheaderview.go +++ b/qt6/gen_qheaderview.go @@ -2477,7 +2477,7 @@ func miqt_exec_callback_QHeaderView_ViewportSizeHint(self *C.QHeaderView, cb C.i // Delete this object from C++ memory. func (this *QHeaderView) Delete() { - C.QHeaderView_Delete(this.h, C.bool(this.isSubclass)) + C.QHeaderView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qheaderview.h b/qt6/gen_qheaderview.h index 95df56b0..b010405f 100644 --- a/qt6/gen_qheaderview.h +++ b/qt6/gen_qheaderview.h @@ -343,7 +343,7 @@ void QHeaderView_override_virtual_EventFilter(void* self, intptr_t slot); bool QHeaderView_virtualbase_EventFilter(void* self, QObject* object, QEvent* event); void QHeaderView_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QHeaderView_virtualbase_ViewportSizeHint(const void* self); -void QHeaderView_Delete(QHeaderView* self, bool isSubclass); +void QHeaderView_Delete(QHeaderView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qicon.cpp b/qt6/gen_qicon.cpp index f6a75aa7..82da8a65 100644 --- a/qt6/gen_qicon.cpp +++ b/qt6/gen_qicon.cpp @@ -386,11 +386,7 @@ struct miqt_array /* of QSize* */ QIcon_AvailableSizes2(const QIcon* self, int return _out; } -void QIcon_Delete(QIcon* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIcon_Delete(QIcon* self) { + delete self; } diff --git a/qt6/gen_qicon.go b/qt6/gen_qicon.go index c8df9f69..f1f941aa 100644 --- a/qt6/gen_qicon.go +++ b/qt6/gen_qicon.go @@ -503,7 +503,7 @@ func (this *QIcon) AvailableSizes2(mode QIcon__Mode, state QIcon__State) []QSize // Delete this object from C++ memory. func (this *QIcon) Delete() { - C.QIcon_Delete(this.h, C.bool(this.isSubclass)) + C.QIcon_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qicon.h b/qt6/gen_qicon.h index df4e2475..63a01a23 100644 --- a/qt6/gen_qicon.h +++ b/qt6/gen_qicon.h @@ -99,7 +99,7 @@ void QIcon_AddFile3(QIcon* self, struct miqt_string fileName, QSize* size, int m void QIcon_AddFile4(QIcon* self, struct miqt_string fileName, QSize* size, int mode, int state); struct miqt_array /* of QSize* */ QIcon_AvailableSizes1(const QIcon* self, int mode); struct miqt_array /* of QSize* */ QIcon_AvailableSizes2(const QIcon* self, int mode, int state); -void QIcon_Delete(QIcon* self, bool isSubclass); +void QIcon_Delete(QIcon* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qiconengine.cpp b/qt6/gen_qiconengine.cpp index 89e30d88..3d686163 100644 --- a/qt6/gen_qiconengine.cpp +++ b/qt6/gen_qiconengine.cpp @@ -34,12 +34,12 @@ void miqt_exec_callback_QIconEngine_VirtualHook(void*, intptr_t, int, void*); } /* extern C */ #endif -class MiqtVirtualQIconEngine : public virtual QIconEngine { +class MiqtVirtualQIconEngine final : public QIconEngine { public: MiqtVirtualQIconEngine(): QIconEngine() {}; - virtual ~MiqtVirtualQIconEngine() = default; + virtual ~MiqtVirtualQIconEngine() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; @@ -625,12 +625,8 @@ void QIconEngine_virtualbase_VirtualHook(void* self, int id, void* data) { ( (MiqtVirtualQIconEngine*)(self) )->virtualbase_VirtualHook(id, data); } -void QIconEngine_Delete(QIconEngine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIconEngine_Delete(QIconEngine* self) { + delete self; } QIconEngine__ScaledPixmapArgument* QIconEngine__ScaledPixmapArgument_new(QIconEngine__ScaledPixmapArgument* param1) { @@ -641,11 +637,7 @@ void QIconEngine__ScaledPixmapArgument_OperatorAssign(QIconEngine__ScaledPixmapA self->operator=(*param1); } -void QIconEngine__ScaledPixmapArgument_Delete(QIconEngine__ScaledPixmapArgument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIconEngine__ScaledPixmapArgument_Delete(QIconEngine__ScaledPixmapArgument* self) { + delete self; } diff --git a/qt6/gen_qiconengine.go b/qt6/gen_qiconengine.go index 623440ff..a9698549 100644 --- a/qt6/gen_qiconengine.go +++ b/qt6/gen_qiconengine.go @@ -576,7 +576,7 @@ func miqt_exec_callback_QIconEngine_VirtualHook(self *C.QIconEngine, cb C.intptr // Delete this object from C++ memory. func (this *QIconEngine) Delete() { - C.QIconEngine_Delete(this.h, C.bool(this.isSubclass)) + C.QIconEngine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -635,7 +635,7 @@ func (this *QIconEngine__ScaledPixmapArgument) OperatorAssign(param1 *QIconEngin // Delete this object from C++ memory. func (this *QIconEngine__ScaledPixmapArgument) Delete() { - C.QIconEngine__ScaledPixmapArgument_Delete(this.h, C.bool(this.isSubclass)) + C.QIconEngine__ScaledPixmapArgument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qiconengine.h b/qt6/gen_qiconengine.h index 2f2cbc55..6f05878d 100644 --- a/qt6/gen_qiconengine.h +++ b/qt6/gen_qiconengine.h @@ -79,11 +79,11 @@ void QIconEngine_override_virtual_ScaledPixmap(void* self, intptr_t slot); QPixmap* QIconEngine_virtualbase_ScaledPixmap(void* self, QSize* size, int mode, int state, double scale); void QIconEngine_override_virtual_VirtualHook(void* self, intptr_t slot); void QIconEngine_virtualbase_VirtualHook(void* self, int id, void* data); -void QIconEngine_Delete(QIconEngine* self, bool isSubclass); +void QIconEngine_Delete(QIconEngine* self); QIconEngine__ScaledPixmapArgument* QIconEngine__ScaledPixmapArgument_new(QIconEngine__ScaledPixmapArgument* param1); void QIconEngine__ScaledPixmapArgument_OperatorAssign(QIconEngine__ScaledPixmapArgument* self, QIconEngine__ScaledPixmapArgument* param1); -void QIconEngine__ScaledPixmapArgument_Delete(QIconEngine__ScaledPixmapArgument* self, bool isSubclass); +void QIconEngine__ScaledPixmapArgument_Delete(QIconEngine__ScaledPixmapArgument* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qiconengineplugin.cpp b/qt6/gen_qiconengineplugin.cpp index d5046004..c5231818 100644 --- a/qt6/gen_qiconengineplugin.cpp +++ b/qt6/gen_qiconengineplugin.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QIconEnginePlugin_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQIconEnginePlugin : public virtual QIconEnginePlugin { +class MiqtVirtualQIconEnginePlugin final : public QIconEnginePlugin { public: MiqtVirtualQIconEnginePlugin(): QIconEnginePlugin() {}; MiqtVirtualQIconEnginePlugin(QObject* parent): QIconEnginePlugin(parent) {}; - virtual ~MiqtVirtualQIconEnginePlugin() = default; + virtual ~MiqtVirtualQIconEnginePlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -350,11 +350,7 @@ void QIconEnginePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQIconEnginePlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QIconEnginePlugin_Delete(QIconEnginePlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIconEnginePlugin_Delete(QIconEnginePlugin* self) { + delete self; } diff --git a/qt6/gen_qiconengineplugin.go b/qt6/gen_qiconengineplugin.go index 96813939..d4c6a78f 100644 --- a/qt6/gen_qiconengineplugin.go +++ b/qt6/gen_qiconengineplugin.go @@ -331,7 +331,7 @@ func miqt_exec_callback_QIconEnginePlugin_DisconnectNotify(self *C.QIconEnginePl // Delete this object from C++ memory. func (this *QIconEnginePlugin) Delete() { - C.QIconEnginePlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QIconEnginePlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qiconengineplugin.h b/qt6/gen_qiconengineplugin.h index 8344b39a..b5e296d1 100644 --- a/qt6/gen_qiconengineplugin.h +++ b/qt6/gen_qiconengineplugin.h @@ -59,7 +59,7 @@ void QIconEnginePlugin_override_virtual_ConnectNotify(void* self, intptr_t slot) void QIconEnginePlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QIconEnginePlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QIconEnginePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QIconEnginePlugin_Delete(QIconEnginePlugin* self, bool isSubclass); +void QIconEnginePlugin_Delete(QIconEnginePlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qidentityproxymodel.cpp b/qt6/gen_qidentityproxymodel.cpp index 11f7f1fe..a0cab9d0 100644 --- a/qt6/gen_qidentityproxymodel.cpp +++ b/qt6/gen_qidentityproxymodel.cpp @@ -65,13 +65,13 @@ struct miqt_map /* of int to struct miqt_string */ miqt_exec_callback_QIdentity } /* extern C */ #endif -class MiqtVirtualQIdentityProxyModel : public virtual QIdentityProxyModel { +class MiqtVirtualQIdentityProxyModel final : public QIdentityProxyModel { public: MiqtVirtualQIdentityProxyModel(): QIdentityProxyModel() {}; MiqtVirtualQIdentityProxyModel(QObject* parent): QIdentityProxyModel(parent) {}; - virtual ~MiqtVirtualQIdentityProxyModel() = default; + virtual ~MiqtVirtualQIdentityProxyModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ColumnCount = 0; @@ -1690,11 +1690,7 @@ struct miqt_map /* of int to struct miqt_string */ QIdentityProxyModel_virtualb return ( (const MiqtVirtualQIdentityProxyModel*)(self) )->virtualbase_RoleNames(); } -void QIdentityProxyModel_Delete(QIdentityProxyModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIdentityProxyModel_Delete(QIdentityProxyModel* self) { + delete self; } diff --git a/qt6/gen_qidentityproxymodel.go b/qt6/gen_qidentityproxymodel.go index 2a56dfe3..20f8d24b 100644 --- a/qt6/gen_qidentityproxymodel.go +++ b/qt6/gen_qidentityproxymodel.go @@ -1544,7 +1544,7 @@ func miqt_exec_callback_QIdentityProxyModel_RoleNames(self *C.QIdentityProxyMode // Delete this object from C++ memory. func (this *QIdentityProxyModel) Delete() { - C.QIdentityProxyModel_Delete(this.h, C.bool(this.isSubclass)) + C.QIdentityProxyModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qidentityproxymodel.h b/qt6/gen_qidentityproxymodel.h index b5aa61d9..0c5445aa 100644 --- a/qt6/gen_qidentityproxymodel.h +++ b/qt6/gen_qidentityproxymodel.h @@ -145,7 +145,7 @@ void QIdentityProxyModel_override_virtual_SupportedDropActions(void* self, intpt int QIdentityProxyModel_virtualbase_SupportedDropActions(const void* self); void QIdentityProxyModel_override_virtual_RoleNames(void* self, intptr_t slot); struct miqt_map /* of int to struct miqt_string */ QIdentityProxyModel_virtualbase_RoleNames(const void* self); -void QIdentityProxyModel_Delete(QIdentityProxyModel* self, bool isSubclass); +void QIdentityProxyModel_Delete(QIdentityProxyModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qimage.cpp b/qt6/gen_qimage.cpp index 78b1dd8a..7678874c 100644 --- a/qt6/gen_qimage.cpp +++ b/qt6/gen_qimage.cpp @@ -36,7 +36,7 @@ QPainter* miqt_exec_callback_QImage_SharedPainter(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQImage : public virtual QImage { +class MiqtVirtualQImage final : public QImage { public: MiqtVirtualQImage(): QImage() {}; @@ -50,7 +50,7 @@ public: MiqtVirtualQImage(const QImage& param1): QImage(param1) {}; MiqtVirtualQImage(const QString& fileName, const char* format): QImage(fileName, format) {}; - virtual ~MiqtVirtualQImage() = default; + virtual ~MiqtVirtualQImage() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -909,11 +909,7 @@ QPainter* QImage_virtualbase_SharedPainter(const void* self) { return ( (const MiqtVirtualQImage*)(self) )->virtualbase_SharedPainter(); } -void QImage_Delete(QImage* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImage_Delete(QImage* self) { + delete self; } diff --git a/qt6/gen_qimage.go b/qt6/gen_qimage.go index 249ed31f..493746c1 100644 --- a/qt6/gen_qimage.go +++ b/qt6/gen_qimage.go @@ -1096,7 +1096,7 @@ func miqt_exec_callback_QImage_SharedPainter(self *C.QImage, cb C.intptr_t) *C.Q // Delete this object from C++ memory. func (this *QImage) Delete() { - C.QImage_Delete(this.h, C.bool(this.isSubclass)) + C.QImage_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qimage.h b/qt6/gen_qimage.h index 1ce0713b..b13008ef 100644 --- a/qt6/gen_qimage.h +++ b/qt6/gen_qimage.h @@ -209,7 +209,7 @@ void QImage_override_virtual_Redirected(void* self, intptr_t slot); QPaintDevice* QImage_virtualbase_Redirected(const void* self, QPoint* offset); void QImage_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QImage_virtualbase_SharedPainter(const void* self); -void QImage_Delete(QImage* self, bool isSubclass); +void QImage_Delete(QImage* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qimageiohandler.cpp b/qt6/gen_qimageiohandler.cpp index 02286c85..d6e01931 100644 --- a/qt6/gen_qimageiohandler.cpp +++ b/qt6/gen_qimageiohandler.cpp @@ -48,12 +48,12 @@ void miqt_exec_callback_QImageIOPlugin_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQImageIOHandler : public virtual QImageIOHandler { +class MiqtVirtualQImageIOHandler final : public QImageIOHandler { public: MiqtVirtualQImageIOHandler(): QImageIOHandler() {}; - virtual ~MiqtVirtualQImageIOHandler() = default; + virtual ~MiqtVirtualQImageIOHandler() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CanRead = 0; @@ -527,21 +527,17 @@ QRect* QImageIOHandler_virtualbase_CurrentImageRect(const void* self) { return ( (const MiqtVirtualQImageIOHandler*)(self) )->virtualbase_CurrentImageRect(); } -void QImageIOHandler_Delete(QImageIOHandler* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImageIOHandler_Delete(QImageIOHandler* self) { + delete self; } -class MiqtVirtualQImageIOPlugin : public virtual QImageIOPlugin { +class MiqtVirtualQImageIOPlugin final : public QImageIOPlugin { public: MiqtVirtualQImageIOPlugin(): QImageIOPlugin() {}; MiqtVirtualQImageIOPlugin(QObject* parent): QImageIOPlugin(parent) {}; - virtual ~MiqtVirtualQImageIOPlugin() = default; + virtual ~MiqtVirtualQImageIOPlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Capabilities = 0; @@ -888,11 +884,7 @@ void QImageIOPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQImageIOPlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QImageIOPlugin_Delete(QImageIOPlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImageIOPlugin_Delete(QImageIOPlugin* self) { + delete self; } diff --git a/qt6/gen_qimageiohandler.go b/qt6/gen_qimageiohandler.go index 50dc7905..b676714c 100644 --- a/qt6/gen_qimageiohandler.go +++ b/qt6/gen_qimageiohandler.go @@ -526,7 +526,7 @@ func miqt_exec_callback_QImageIOHandler_CurrentImageRect(self *C.QImageIOHandler // Delete this object from C++ memory. func (this *QImageIOHandler) Delete() { - C.QImageIOHandler_Delete(this.h, C.bool(this.isSubclass)) + C.QImageIOHandler_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -890,7 +890,7 @@ func miqt_exec_callback_QImageIOPlugin_DisconnectNotify(self *C.QImageIOPlugin, // Delete this object from C++ memory. func (this *QImageIOPlugin) Delete() { - C.QImageIOPlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QImageIOPlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qimageiohandler.h b/qt6/gen_qimageiohandler.h index 50b4714c..8ca7e006 100644 --- a/qt6/gen_qimageiohandler.h +++ b/qt6/gen_qimageiohandler.h @@ -90,7 +90,7 @@ void QImageIOHandler_override_virtual_CurrentImageNumber(void* self, intptr_t sl int QImageIOHandler_virtualbase_CurrentImageNumber(const void* self); void QImageIOHandler_override_virtual_CurrentImageRect(void* self, intptr_t slot); QRect* QImageIOHandler_virtualbase_CurrentImageRect(const void* self); -void QImageIOHandler_Delete(QImageIOHandler* self, bool isSubclass); +void QImageIOHandler_Delete(QImageIOHandler* self); QImageIOPlugin* QImageIOPlugin_new(); QImageIOPlugin* QImageIOPlugin_new2(QObject* parent); @@ -120,7 +120,7 @@ void QImageIOPlugin_override_virtual_ConnectNotify(void* self, intptr_t slot); void QImageIOPlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QImageIOPlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QImageIOPlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QImageIOPlugin_Delete(QImageIOPlugin* self, bool isSubclass); +void QImageIOPlugin_Delete(QImageIOPlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qimagereader.cpp b/qt6/gen_qimagereader.cpp index 7b907311..fc113132 100644 --- a/qt6/gen_qimagereader.cpp +++ b/qt6/gen_qimagereader.cpp @@ -398,11 +398,7 @@ struct miqt_string QImageReader_Tr3(const char* sourceText, const char* disambig return _ms; } -void QImageReader_Delete(QImageReader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImageReader_Delete(QImageReader* self) { + delete self; } diff --git a/qt6/gen_qimagereader.go b/qt6/gen_qimagereader.go index 821a0ed4..5acd471a 100644 --- a/qt6/gen_qimagereader.go +++ b/qt6/gen_qimagereader.go @@ -441,7 +441,7 @@ func QImageReader_Tr3(sourceText string, disambiguation string, n int) string { // Delete this object from C++ memory. func (this *QImageReader) Delete() { - C.QImageReader_Delete(this.h, C.bool(this.isSubclass)) + C.QImageReader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qimagereader.h b/qt6/gen_qimagereader.h index 8397954b..93bdc8aa 100644 --- a/qt6/gen_qimagereader.h +++ b/qt6/gen_qimagereader.h @@ -88,7 +88,7 @@ int QImageReader_AllocationLimit(); void QImageReader_SetAllocationLimit(int mbLimit); struct miqt_string QImageReader_Tr2(const char* sourceText, const char* disambiguation); struct miqt_string QImageReader_Tr3(const char* sourceText, const char* disambiguation, int n); -void QImageReader_Delete(QImageReader* self, bool isSubclass); +void QImageReader_Delete(QImageReader* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qimagewriter.cpp b/qt6/gen_qimagewriter.cpp index 2e52f548..a73edeb5 100644 --- a/qt6/gen_qimagewriter.cpp +++ b/qt6/gen_qimagewriter.cpp @@ -270,11 +270,7 @@ struct miqt_string QImageWriter_Tr3(const char* sourceText, const char* disambig return _ms; } -void QImageWriter_Delete(QImageWriter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImageWriter_Delete(QImageWriter* self) { + delete self; } diff --git a/qt6/gen_qimagewriter.go b/qt6/gen_qimagewriter.go index 67c2134b..b856a293 100644 --- a/qt6/gen_qimagewriter.go +++ b/qt6/gen_qimagewriter.go @@ -315,7 +315,7 @@ func QImageWriter_Tr3(sourceText string, disambiguation string, n int) string { // Delete this object from C++ memory. func (this *QImageWriter) Delete() { - C.QImageWriter_Delete(this.h, C.bool(this.isSubclass)) + C.QImageWriter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qimagewriter.h b/qt6/gen_qimagewriter.h index 8b62e0e0..ddaf0a9d 100644 --- a/qt6/gen_qimagewriter.h +++ b/qt6/gen_qimagewriter.h @@ -59,7 +59,7 @@ struct miqt_array /* of struct miqt_string */ QImageWriter_SupportedMimeTypes() struct miqt_array /* of struct miqt_string */ QImageWriter_ImageFormatsForMimeType(struct miqt_string mimeType); struct miqt_string QImageWriter_Tr2(const char* sourceText, const char* disambiguation); struct miqt_string QImageWriter_Tr3(const char* sourceText, const char* disambiguation, int n); -void QImageWriter_Delete(QImageWriter* self, bool isSubclass); +void QImageWriter_Delete(QImageWriter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qinputdevice.cpp b/qt6/gen_qinputdevice.cpp index 0ed23b5e..3ec9dbb7 100644 --- a/qt6/gen_qinputdevice.cpp +++ b/qt6/gen_qinputdevice.cpp @@ -29,7 +29,7 @@ void miqt_exec_callback_QInputDevice_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQInputDevice : public virtual QInputDevice { +class MiqtVirtualQInputDevice final : public QInputDevice { public: MiqtVirtualQInputDevice(): QInputDevice() {}; @@ -38,7 +38,7 @@ public: MiqtVirtualQInputDevice(const QString& name, qint64 systemId, QInputDevice::DeviceType typeVal, const QString& seatName): QInputDevice(name, systemId, typeVal, seatName) {}; MiqtVirtualQInputDevice(const QString& name, qint64 systemId, QInputDevice::DeviceType typeVal, const QString& seatName, QObject* parent): QInputDevice(name, systemId, typeVal, seatName, parent) {}; - virtual ~MiqtVirtualQInputDevice() = default; + virtual ~MiqtVirtualQInputDevice() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -441,11 +441,7 @@ void QInputDevice_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQInputDevice*)(self) )->virtualbase_DisconnectNotify(signal); } -void QInputDevice_Delete(QInputDevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInputDevice_Delete(QInputDevice* self) { + delete self; } diff --git a/qt6/gen_qinputdevice.go b/qt6/gen_qinputdevice.go index 3cbc9a3e..14144fa3 100644 --- a/qt6/gen_qinputdevice.go +++ b/qt6/gen_qinputdevice.go @@ -474,7 +474,7 @@ func miqt_exec_callback_QInputDevice_DisconnectNotify(self *C.QInputDevice, cb C // Delete this object from C++ memory. func (this *QInputDevice) Delete() { - C.QInputDevice_Delete(this.h, C.bool(this.isSubclass)) + C.QInputDevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qinputdevice.h b/qt6/gen_qinputdevice.h index 68eb391d..fecc4bb3 100644 --- a/qt6/gen_qinputdevice.h +++ b/qt6/gen_qinputdevice.h @@ -73,7 +73,7 @@ void QInputDevice_override_virtual_ConnectNotify(void* self, intptr_t slot); void QInputDevice_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QInputDevice_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QInputDevice_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QInputDevice_Delete(QInputDevice* self, bool isSubclass); +void QInputDevice_Delete(QInputDevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qinputdialog.cpp b/qt6/gen_qinputdialog.cpp index 20571489..ec4a174b 100644 --- a/qt6/gen_qinputdialog.cpp +++ b/qt6/gen_qinputdialog.cpp @@ -46,14 +46,14 @@ bool miqt_exec_callback_QInputDialog_EventFilter(void*, intptr_t, QObject*, QEve } /* extern C */ #endif -class MiqtVirtualQInputDialog : public virtual QInputDialog { +class MiqtVirtualQInputDialog final : public QInputDialog { public: MiqtVirtualQInputDialog(QWidget* parent): QInputDialog(parent) {}; MiqtVirtualQInputDialog(): QInputDialog() {}; MiqtVirtualQInputDialog(QWidget* parent, Qt::WindowFlags flags): QInputDialog(parent, flags) {}; - virtual ~MiqtVirtualQInputDialog() = default; + virtual ~MiqtVirtualQInputDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__MinimumSizeHint = 0; @@ -1234,11 +1234,7 @@ bool QInputDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* p return ( (MiqtVirtualQInputDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QInputDialog_Delete(QInputDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInputDialog_Delete(QInputDialog* self) { + delete self; } diff --git a/qt6/gen_qinputdialog.go b/qt6/gen_qinputdialog.go index d35492d4..b7ede5a2 100644 --- a/qt6/gen_qinputdialog.go +++ b/qt6/gen_qinputdialog.go @@ -1386,7 +1386,7 @@ func miqt_exec_callback_QInputDialog_EventFilter(self *C.QInputDialog, cb C.intp // Delete this object from C++ memory. func (this *QInputDialog) Delete() { - C.QInputDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QInputDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qinputdialog.h b/qt6/gen_qinputdialog.h index 1f6dda0d..40a02953 100644 --- a/qt6/gen_qinputdialog.h +++ b/qt6/gen_qinputdialog.h @@ -170,7 +170,7 @@ void QInputDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QInputDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QInputDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QInputDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QInputDialog_Delete(QInputDialog* self, bool isSubclass); +void QInputDialog_Delete(QInputDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qiodevice.cpp b/qt6/gen_qiodevice.cpp index 32624e66..b1884f57 100644 --- a/qt6/gen_qiodevice.cpp +++ b/qt6/gen_qiodevice.cpp @@ -51,13 +51,13 @@ void miqt_exec_callback_QIODevice_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQIODevice : public virtual QIODevice { +class MiqtVirtualQIODevice final : public QIODevice { public: MiqtVirtualQIODevice(): QIODevice() {}; MiqtVirtualQIODevice(QObject* parent): QIODevice(parent) {}; - virtual ~MiqtVirtualQIODevice() = default; + virtual ~MiqtVirtualQIODevice() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IsSequential = 0; @@ -1145,11 +1145,7 @@ void QIODevice_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQIODevice*)(self) )->virtualbase_DisconnectNotify(signal); } -void QIODevice_Delete(QIODevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIODevice_Delete(QIODevice* self) { + delete self; } diff --git a/qt6/gen_qiodevice.go b/qt6/gen_qiodevice.go index 6c38e5aa..95e6d06d 100644 --- a/qt6/gen_qiodevice.go +++ b/qt6/gen_qiodevice.go @@ -1073,7 +1073,7 @@ func miqt_exec_callback_QIODevice_DisconnectNotify(self *C.QIODevice, cb C.intpt // Delete this object from C++ memory. func (this *QIODevice) Delete() { - C.QIODevice_Delete(this.h, C.bool(this.isSubclass)) + C.QIODevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qiodevice.h b/qt6/gen_qiodevice.h index 92ac1904..379481f9 100644 --- a/qt6/gen_qiodevice.h +++ b/qt6/gen_qiodevice.h @@ -151,7 +151,7 @@ void QIODevice_override_virtual_ConnectNotify(void* self, intptr_t slot); void QIODevice_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QIODevice_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QIODevice_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QIODevice_Delete(QIODevice* self, bool isSubclass); +void QIODevice_Delete(QIODevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qitemdelegate.cpp b/qt6/gen_qitemdelegate.cpp index 2a310a1f..b262e14a 100644 --- a/qt6/gen_qitemdelegate.cpp +++ b/qt6/gen_qitemdelegate.cpp @@ -44,13 +44,13 @@ struct miqt_array /* of int */ miqt_exec_callback_QItemDelegate_PaintingRoles(v } /* extern C */ #endif -class MiqtVirtualQItemDelegate : public virtual QItemDelegate { +class MiqtVirtualQItemDelegate final : public QItemDelegate { public: MiqtVirtualQItemDelegate(): QItemDelegate() {}; MiqtVirtualQItemDelegate(QObject* parent): QItemDelegate(parent) {}; - virtual ~MiqtVirtualQItemDelegate() = default; + virtual ~MiqtVirtualQItemDelegate() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; @@ -721,11 +721,7 @@ struct miqt_array /* of int */ QItemDelegate_virtualbase_PaintingRoles(const vo return ( (const MiqtVirtualQItemDelegate*)(self) )->virtualbase_PaintingRoles(); } -void QItemDelegate_Delete(QItemDelegate* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemDelegate_Delete(QItemDelegate* self) { + delete self; } diff --git a/qt6/gen_qitemdelegate.go b/qt6/gen_qitemdelegate.go index 0f2b4d84..9dd19e27 100644 --- a/qt6/gen_qitemdelegate.go +++ b/qt6/gen_qitemdelegate.go @@ -630,7 +630,7 @@ func miqt_exec_callback_QItemDelegate_PaintingRoles(self *C.QItemDelegate, cb C. // Delete this object from C++ memory. func (this *QItemDelegate) Delete() { - C.QItemDelegate_Delete(this.h, C.bool(this.isSubclass)) + C.QItemDelegate_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qitemdelegate.h b/qt6/gen_qitemdelegate.h index 8cdd17b6..cedc9c70 100644 --- a/qt6/gen_qitemdelegate.h +++ b/qt6/gen_qitemdelegate.h @@ -104,7 +104,7 @@ void QItemDelegate_override_virtual_HelpEvent(void* self, intptr_t slot); bool QItemDelegate_virtualbase_HelpEvent(void* self, QHelpEvent* event, QAbstractItemView* view, QStyleOptionViewItem* option, QModelIndex* index); void QItemDelegate_override_virtual_PaintingRoles(void* self, intptr_t slot); struct miqt_array /* of int */ QItemDelegate_virtualbase_PaintingRoles(const void* self); -void QItemDelegate_Delete(QItemDelegate* self, bool isSubclass); +void QItemDelegate_Delete(QItemDelegate* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qitemeditorfactory.cpp b/qt6/gen_qitemeditorfactory.cpp index 8c83fb0c..cc82df44 100644 --- a/qt6/gen_qitemeditorfactory.cpp +++ b/qt6/gen_qitemeditorfactory.cpp @@ -32,21 +32,17 @@ void QItemEditorCreatorBase_OperatorAssign(QItemEditorCreatorBase* self, QItemEd self->operator=(*param1); } -void QItemEditorCreatorBase_Delete(QItemEditorCreatorBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemEditorCreatorBase_Delete(QItemEditorCreatorBase* self) { + delete self; } -class MiqtVirtualQItemEditorFactory : public virtual QItemEditorFactory { +class MiqtVirtualQItemEditorFactory final : public QItemEditorFactory { public: MiqtVirtualQItemEditorFactory(): QItemEditorFactory() {}; MiqtVirtualQItemEditorFactory(const QItemEditorFactory& param1): QItemEditorFactory(param1) {}; - virtual ~MiqtVirtualQItemEditorFactory() = default; + virtual ~MiqtVirtualQItemEditorFactory() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CreateEditor = 0; @@ -152,11 +148,7 @@ struct miqt_string QItemEditorFactory_virtualbase_ValuePropertyName(const void* return ( (const MiqtVirtualQItemEditorFactory*)(self) )->virtualbase_ValuePropertyName(userType); } -void QItemEditorFactory_Delete(QItemEditorFactory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemEditorFactory_Delete(QItemEditorFactory* self) { + delete self; } diff --git a/qt6/gen_qitemeditorfactory.go b/qt6/gen_qitemeditorfactory.go index 520e9870..b11546e1 100644 --- a/qt6/gen_qitemeditorfactory.go +++ b/qt6/gen_qitemeditorfactory.go @@ -64,7 +64,7 @@ func (this *QItemEditorCreatorBase) OperatorAssign(param1 *QItemEditorCreatorBas // Delete this object from C++ memory. func (this *QItemEditorCreatorBase) Delete() { - C.QItemEditorCreatorBase_Delete(this.h, C.bool(this.isSubclass)) + C.QItemEditorCreatorBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -213,7 +213,7 @@ func miqt_exec_callback_QItemEditorFactory_ValuePropertyName(self *C.QItemEditor // Delete this object from C++ memory. func (this *QItemEditorFactory) Delete() { - C.QItemEditorFactory_Delete(this.h, C.bool(this.isSubclass)) + C.QItemEditorFactory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qitemeditorfactory.h b/qt6/gen_qitemeditorfactory.h index 8ac11ec5..8e142a6c 100644 --- a/qt6/gen_qitemeditorfactory.h +++ b/qt6/gen_qitemeditorfactory.h @@ -27,7 +27,7 @@ typedef struct QWidget QWidget; QWidget* QItemEditorCreatorBase_CreateWidget(const QItemEditorCreatorBase* self, QWidget* parent); struct miqt_string QItemEditorCreatorBase_ValuePropertyName(const QItemEditorCreatorBase* self); void QItemEditorCreatorBase_OperatorAssign(QItemEditorCreatorBase* self, QItemEditorCreatorBase* param1); -void QItemEditorCreatorBase_Delete(QItemEditorCreatorBase* self, bool isSubclass); +void QItemEditorCreatorBase_Delete(QItemEditorCreatorBase* self); QItemEditorFactory* QItemEditorFactory_new(); QItemEditorFactory* QItemEditorFactory_new2(QItemEditorFactory* param1); @@ -40,7 +40,7 @@ void QItemEditorFactory_override_virtual_CreateEditor(void* self, intptr_t slot) QWidget* QItemEditorFactory_virtualbase_CreateEditor(const void* self, int userType, QWidget* parent); void QItemEditorFactory_override_virtual_ValuePropertyName(void* self, intptr_t slot); struct miqt_string QItemEditorFactory_virtualbase_ValuePropertyName(const void* self, int userType); -void QItemEditorFactory_Delete(QItemEditorFactory* self, bool isSubclass); +void QItemEditorFactory_Delete(QItemEditorFactory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qitemselectionmodel.cpp b/qt6/gen_qitemselectionmodel.cpp index 49c6021f..c85c6520 100644 --- a/qt6/gen_qitemselectionmodel.cpp +++ b/qt6/gen_qitemselectionmodel.cpp @@ -152,22 +152,18 @@ struct miqt_array /* of QModelIndex* */ QItemSelectionRange_Indexes(const QItem return _out; } -void QItemSelectionRange_Delete(QItemSelectionRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemSelectionRange_Delete(QItemSelectionRange* self) { + delete self; } -class MiqtVirtualQItemSelectionModel : public virtual QItemSelectionModel { +class MiqtVirtualQItemSelectionModel final : public QItemSelectionModel { public: MiqtVirtualQItemSelectionModel(): QItemSelectionModel() {}; MiqtVirtualQItemSelectionModel(QAbstractItemModel* model, QObject* parent): QItemSelectionModel(model, parent) {}; MiqtVirtualQItemSelectionModel(QAbstractItemModel* model): QItemSelectionModel(model) {}; - virtual ~MiqtVirtualQItemSelectionModel() = default; + virtual ~MiqtVirtualQItemSelectionModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetCurrentIndex = 0; @@ -884,12 +880,8 @@ void QItemSelectionModel_virtualbase_DisconnectNotify(void* self, QMetaMethod* s ( (MiqtVirtualQItemSelectionModel*)(self) )->virtualbase_DisconnectNotify(signal); } -void QItemSelectionModel_Delete(QItemSelectionModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemSelectionModel_Delete(QItemSelectionModel* self) { + delete self; } QItemSelection* QItemSelection_new(QModelIndex* topLeft, QModelIndex* bottomRight) { @@ -933,11 +925,7 @@ void QItemSelection_Split(QItemSelectionRange* rangeVal, QItemSelectionRange* ot QItemSelection::split(*rangeVal, *other, result); } -void QItemSelection_Delete(QItemSelection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QItemSelection_Delete(QItemSelection* self) { + delete self; } diff --git a/qt6/gen_qitemselectionmodel.go b/qt6/gen_qitemselectionmodel.go index 216f6d74..143994e9 100644 --- a/qt6/gen_qitemselectionmodel.go +++ b/qt6/gen_qitemselectionmodel.go @@ -189,7 +189,7 @@ func (this *QItemSelectionRange) Indexes() []QModelIndex { // Delete this object from C++ memory. func (this *QItemSelectionRange) Delete() { - C.QItemSelectionRange_Delete(this.h, C.bool(this.isSubclass)) + C.QItemSelectionRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -906,7 +906,7 @@ func miqt_exec_callback_QItemSelectionModel_DisconnectNotify(self *C.QItemSelect // Delete this object from C++ memory. func (this *QItemSelectionModel) Delete() { - C.QItemSelectionModel_Delete(this.h, C.bool(this.isSubclass)) + C.QItemSelectionModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1007,7 +1007,7 @@ func QItemSelection_Split(rangeVal *QItemSelectionRange, other *QItemSelectionRa // Delete this object from C++ memory. func (this *QItemSelection) Delete() { - C.QItemSelection_Delete(this.h, C.bool(this.isSubclass)) + C.QItemSelection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qitemselectionmodel.h b/qt6/gen_qitemselectionmodel.h index 4c160d75..26281005 100644 --- a/qt6/gen_qitemselectionmodel.h +++ b/qt6/gen_qitemselectionmodel.h @@ -66,7 +66,7 @@ bool QItemSelectionRange_OperatorNotEqual(const QItemSelectionRange* self, QItem bool QItemSelectionRange_IsValid(const QItemSelectionRange* self); bool QItemSelectionRange_IsEmpty(const QItemSelectionRange* self); struct miqt_array /* of QModelIndex* */ QItemSelectionRange_Indexes(const QItemSelectionRange* self); -void QItemSelectionRange_Delete(QItemSelectionRange* self, bool isSubclass); +void QItemSelectionRange_Delete(QItemSelectionRange* self); QItemSelectionModel* QItemSelectionModel_new(); QItemSelectionModel* QItemSelectionModel_new2(QAbstractItemModel* model, QObject* parent); @@ -140,7 +140,7 @@ void QItemSelectionModel_override_virtual_ConnectNotify(void* self, intptr_t slo void QItemSelectionModel_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QItemSelectionModel_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QItemSelectionModel_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QItemSelectionModel_Delete(QItemSelectionModel* self, bool isSubclass); +void QItemSelectionModel_Delete(QItemSelectionModel* self); QItemSelection* QItemSelection_new(QModelIndex* topLeft, QModelIndex* bottomRight); QItemSelection* QItemSelection_new2(); @@ -150,7 +150,7 @@ bool QItemSelection_Contains(const QItemSelection* self, QModelIndex* index); struct miqt_array /* of QModelIndex* */ QItemSelection_Indexes(const QItemSelection* self); void QItemSelection_Merge(QItemSelection* self, QItemSelection* other, int command); void QItemSelection_Split(QItemSelectionRange* rangeVal, QItemSelectionRange* other, QItemSelection* result); -void QItemSelection_Delete(QItemSelection* self, bool isSubclass); +void QItemSelection_Delete(QItemSelection* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qjsonarray.cpp b/qt6/gen_qjsonarray.cpp index 0538ffe2..70c4f897 100644 --- a/qt6/gen_qjsonarray.cpp +++ b/qt6/gen_qjsonarray.cpp @@ -200,12 +200,8 @@ bool QJsonArray_Empty(const QJsonArray* self) { return self->empty(); } -void QJsonArray_Delete(QJsonArray* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonArray_Delete(QJsonArray* self) { + delete self; } QJsonArray__iterator* QJsonArray__iterator_new() { @@ -333,12 +329,8 @@ ptrdiff_t QJsonArray__iterator_OperatorMinusWithQJsonArrayiterator(const QJsonAr return static_cast(_ret); } -void QJsonArray__iterator_Delete(QJsonArray__iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonArray__iterator_Delete(QJsonArray__iterator* self) { + delete self; } QJsonArray__const_iterator* QJsonArray__const_iterator_new() { @@ -442,11 +434,7 @@ ptrdiff_t QJsonArray__const_iterator_OperatorMinusWithQJsonArrayconstIterator(co return static_cast(_ret); } -void QJsonArray__const_iterator_Delete(QJsonArray__const_iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonArray__const_iterator_Delete(QJsonArray__const_iterator* self) { + delete self; } diff --git a/qt6/gen_qjsonarray.go b/qt6/gen_qjsonarray.go index 7299e4fe..86462d4a 100644 --- a/qt6/gen_qjsonarray.go +++ b/qt6/gen_qjsonarray.go @@ -270,7 +270,7 @@ func (this *QJsonArray) Empty() bool { // Delete this object from C++ memory. func (this *QJsonArray) Delete() { - C.QJsonArray_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonArray_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -457,7 +457,7 @@ func (this *QJsonArray__iterator) OperatorMinusWithQJsonArrayiterator(j QJsonArr // Delete this object from C++ memory. func (this *QJsonArray__iterator) Delete() { - C.QJsonArray__iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonArray__iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -624,7 +624,7 @@ func (this *QJsonArray__const_iterator) OperatorMinusWithQJsonArrayconstIterator // Delete this object from C++ memory. func (this *QJsonArray__const_iterator) Delete() { - C.QJsonArray__const_iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonArray__const_iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qjsonarray.h b/qt6/gen_qjsonarray.h index 772dc257..ff0c24a5 100644 --- a/qt6/gen_qjsonarray.h +++ b/qt6/gen_qjsonarray.h @@ -80,7 +80,7 @@ void QJsonArray_PushFront(QJsonArray* self, QJsonValue* t); void QJsonArray_PopFront(QJsonArray* self); void QJsonArray_PopBack(QJsonArray* self); bool QJsonArray_Empty(const QJsonArray* self); -void QJsonArray_Delete(QJsonArray* self, bool isSubclass); +void QJsonArray_Delete(QJsonArray* self); QJsonArray__iterator* QJsonArray__iterator_new(); QJsonArray__iterator* QJsonArray__iterator_new2(QJsonArray* array, ptrdiff_t index); @@ -111,7 +111,7 @@ QJsonArray__iterator* QJsonArray__iterator_OperatorMinusAssign(QJsonArray__itera QJsonArray__iterator* QJsonArray__iterator_OperatorPlus(const QJsonArray__iterator* self, ptrdiff_t j); QJsonArray__iterator* QJsonArray__iterator_OperatorMinus(const QJsonArray__iterator* self, ptrdiff_t j); ptrdiff_t QJsonArray__iterator_OperatorMinusWithQJsonArrayiterator(const QJsonArray__iterator* self, QJsonArray__iterator* j); -void QJsonArray__iterator_Delete(QJsonArray__iterator* self, bool isSubclass); +void QJsonArray__iterator_Delete(QJsonArray__iterator* self); QJsonArray__const_iterator* QJsonArray__const_iterator_new(); QJsonArray__const_iterator* QJsonArray__const_iterator_new2(QJsonArray* array, ptrdiff_t index); @@ -136,7 +136,7 @@ QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinusAssign(QJson QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorPlus(const QJsonArray__const_iterator* self, ptrdiff_t j); QJsonArray__const_iterator* QJsonArray__const_iterator_OperatorMinus(const QJsonArray__const_iterator* self, ptrdiff_t j); ptrdiff_t QJsonArray__const_iterator_OperatorMinusWithQJsonArrayconstIterator(const QJsonArray__const_iterator* self, QJsonArray__const_iterator* j); -void QJsonArray__const_iterator_Delete(QJsonArray__const_iterator* self, bool isSubclass); +void QJsonArray__const_iterator_Delete(QJsonArray__const_iterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qjsondocument.cpp b/qt6/gen_qjsondocument.cpp index 297e1155..f56d85f0 100644 --- a/qt6/gen_qjsondocument.cpp +++ b/qt6/gen_qjsondocument.cpp @@ -30,12 +30,8 @@ struct miqt_string QJsonParseError_ErrorString(const QJsonParseError* self) { return _ms; } -void QJsonParseError_Delete(QJsonParseError* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonParseError_Delete(QJsonParseError* self) { + delete self; } QJsonDocument* QJsonDocument_new() { @@ -147,11 +143,7 @@ struct miqt_string QJsonDocument_ToJson1(const QJsonDocument* self, int format) return _ms; } -void QJsonDocument_Delete(QJsonDocument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonDocument_Delete(QJsonDocument* self) { + delete self; } diff --git a/qt6/gen_qjsondocument.go b/qt6/gen_qjsondocument.go index 9c4977df..70ebd0a7 100644 --- a/qt6/gen_qjsondocument.go +++ b/qt6/gen_qjsondocument.go @@ -82,7 +82,7 @@ func (this *QJsonParseError) ErrorString() string { // Delete this object from C++ memory. func (this *QJsonParseError) Delete() { - C.QJsonParseError_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonParseError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -273,7 +273,7 @@ func (this *QJsonDocument) ToJson1(format QJsonDocument__JsonFormat) []byte { // Delete this object from C++ memory. func (this *QJsonDocument) Delete() { - C.QJsonDocument_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonDocument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qjsondocument.h b/qt6/gen_qjsondocument.h index 676bf42f..b788479c 100644 --- a/qt6/gen_qjsondocument.h +++ b/qt6/gen_qjsondocument.h @@ -31,7 +31,7 @@ typedef struct QVariant QVariant; #endif struct miqt_string QJsonParseError_ErrorString(const QJsonParseError* self); -void QJsonParseError_Delete(QJsonParseError* self, bool isSubclass); +void QJsonParseError_Delete(QJsonParseError* self); QJsonDocument* QJsonDocument_new(); QJsonDocument* QJsonDocument_new2(QJsonObject* object); @@ -57,7 +57,7 @@ bool QJsonDocument_OperatorNotEqual(const QJsonDocument* self, QJsonDocument* ot bool QJsonDocument_IsNull(const QJsonDocument* self); QJsonDocument* QJsonDocument_FromJson2(struct miqt_string json, QJsonParseError* error); struct miqt_string QJsonDocument_ToJson1(const QJsonDocument* self, int format); -void QJsonDocument_Delete(QJsonDocument* self, bool isSubclass); +void QJsonDocument_Delete(QJsonDocument* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qjsonobject.cpp b/qt6/gen_qjsonobject.cpp index 9c98cc7d..ba1c6fcb 100644 --- a/qt6/gen_qjsonobject.cpp +++ b/qt6/gen_qjsonobject.cpp @@ -239,12 +239,8 @@ bool QJsonObject_Empty(const QJsonObject* self) { return self->empty(); } -void QJsonObject_Delete(QJsonObject* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonObject_Delete(QJsonObject* self) { + delete self; } QJsonObject__iterator* QJsonObject__iterator_new() { @@ -387,12 +383,8 @@ bool QJsonObject__iterator_OperatorGreaterOrEqualWithOther(const QJsonObject__it return (*self >= *other); } -void QJsonObject__iterator_Delete(QJsonObject__iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonObject__iterator_Delete(QJsonObject__iterator* self) { + delete self; } QJsonObject__const_iterator* QJsonObject__const_iterator_new() { @@ -535,11 +527,7 @@ bool QJsonObject__const_iterator_OperatorGreaterOrEqualWithOther(const QJsonObje return (*self >= *other); } -void QJsonObject__const_iterator_Delete(QJsonObject__const_iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonObject__const_iterator_Delete(QJsonObject__const_iterator* self) { + delete self; } diff --git a/qt6/gen_qjsonobject.go b/qt6/gen_qjsonobject.go index 3f3513e5..276d1a64 100644 --- a/qt6/gen_qjsonobject.go +++ b/qt6/gen_qjsonobject.go @@ -339,7 +339,7 @@ func (this *QJsonObject) Empty() bool { // Delete this object from C++ memory. func (this *QJsonObject) Delete() { - C.QJsonObject_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonObject_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -539,7 +539,7 @@ func (this *QJsonObject__iterator) OperatorGreaterOrEqualWithOther(other *QJsonO // Delete this object from C++ memory. func (this *QJsonObject__iterator) Delete() { - C.QJsonObject__iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonObject__iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -743,7 +743,7 @@ func (this *QJsonObject__const_iterator) OperatorGreaterOrEqualWithOther(other * // Delete this object from C++ memory. func (this *QJsonObject__const_iterator) Delete() { - C.QJsonObject__const_iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonObject__const_iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qjsonobject.h b/qt6/gen_qjsonobject.h index 3ba3a4cc..814deb85 100644 --- a/qt6/gen_qjsonobject.h +++ b/qt6/gen_qjsonobject.h @@ -73,7 +73,7 @@ QJsonObject__const_iterator* QJsonObject_FindWithKey(const QJsonObject* self, st QJsonObject__const_iterator* QJsonObject_ConstFind(const QJsonObject* self, struct miqt_string key); QJsonObject__iterator* QJsonObject_Insert(QJsonObject* self, struct miqt_string key, QJsonValue* value); bool QJsonObject_Empty(const QJsonObject* self); -void QJsonObject_Delete(QJsonObject* self, bool isSubclass); +void QJsonObject_Delete(QJsonObject* self); QJsonObject__iterator* QJsonObject__iterator_new(); QJsonObject__iterator* QJsonObject__iterator_new2(QJsonObject* obj, ptrdiff_t index); @@ -106,7 +106,7 @@ bool QJsonObject__iterator_OperatorLesserWithOther(const QJsonObject__iterator* bool QJsonObject__iterator_OperatorLesserOrEqualWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other); bool QJsonObject__iterator_OperatorGreaterWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other); bool QJsonObject__iterator_OperatorGreaterOrEqualWithOther(const QJsonObject__iterator* self, QJsonObject__const_iterator* other); -void QJsonObject__iterator_Delete(QJsonObject__iterator* self, bool isSubclass); +void QJsonObject__iterator_Delete(QJsonObject__iterator* self); QJsonObject__const_iterator* QJsonObject__const_iterator_new(); QJsonObject__const_iterator* QJsonObject__const_iterator_new2(QJsonObject* obj, ptrdiff_t index); @@ -139,7 +139,7 @@ bool QJsonObject__const_iterator_OperatorLesserWithOther(const QJsonObject__cons bool QJsonObject__const_iterator_OperatorLesserOrEqualWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other); bool QJsonObject__const_iterator_OperatorGreaterWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other); bool QJsonObject__const_iterator_OperatorGreaterOrEqualWithOther(const QJsonObject__const_iterator* self, QJsonObject__iterator* other); -void QJsonObject__const_iterator_Delete(QJsonObject__const_iterator* self, bool isSubclass); +void QJsonObject__const_iterator_Delete(QJsonObject__const_iterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qjsonvalue.cpp b/qt6/gen_qjsonvalue.cpp index 422ade9f..b1b58d67 100644 --- a/qt6/gen_qjsonvalue.cpp +++ b/qt6/gen_qjsonvalue.cpp @@ -202,12 +202,8 @@ double QJsonValue_ToDouble1(const QJsonValue* self, double defaultValue) { return self->toDouble(static_cast(defaultValue)); } -void QJsonValue_Delete(QJsonValue* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonValue_Delete(QJsonValue* self) { + delete self; } QJsonValueConstRef* QJsonValueConstRef_new(QJsonValueConstRef* param1) { @@ -332,12 +328,8 @@ struct miqt_string QJsonValueConstRef_ToString1(const QJsonValueConstRef* self, return _ms; } -void QJsonValueConstRef_Delete(QJsonValueConstRef* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonValueConstRef_Delete(QJsonValueConstRef* self) { + delete self; } QJsonValueRef* QJsonValueRef_new(QJsonValueRef* param1) { @@ -482,11 +474,7 @@ struct miqt_string QJsonValueRef_ToString1(const QJsonValueRef* self, struct miq return _ms; } -void QJsonValueRef_Delete(QJsonValueRef* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QJsonValueRef_Delete(QJsonValueRef* self) { + delete self; } diff --git a/qt6/gen_qjsonvalue.go b/qt6/gen_qjsonvalue.go index a9ed0df2..e54e7f62 100644 --- a/qt6/gen_qjsonvalue.go +++ b/qt6/gen_qjsonvalue.go @@ -304,7 +304,7 @@ func (this *QJsonValue) ToDouble1(defaultValue float64) float64 { // Delete this object from C++ memory. func (this *QJsonValue) Delete() { - C.QJsonValue_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonValue_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -479,7 +479,7 @@ func (this *QJsonValueConstRef) ToString1(defaultValue string) string { // Delete this object from C++ memory. func (this *QJsonValueConstRef) Delete() { - C.QJsonValueConstRef_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonValueConstRef_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -682,7 +682,7 @@ func (this *QJsonValueRef) ToString1(defaultValue string) string { // Delete this object from C++ memory. func (this *QJsonValueRef) Delete() { - C.QJsonValueRef_Delete(this.h, C.bool(this.isSubclass)) + C.QJsonValueRef_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qjsonvalue.h b/qt6/gen_qjsonvalue.h index 244feed1..05b21db7 100644 --- a/qt6/gen_qjsonvalue.h +++ b/qt6/gen_qjsonvalue.h @@ -71,7 +71,7 @@ bool QJsonValue_ToBool1(const QJsonValue* self, bool defaultValue); int QJsonValue_ToInt1(const QJsonValue* self, int defaultValue); long long QJsonValue_ToInteger1(const QJsonValue* self, long long defaultValue); double QJsonValue_ToDouble1(const QJsonValue* self, double defaultValue); -void QJsonValue_Delete(QJsonValue* self, bool isSubclass); +void QJsonValue_Delete(QJsonValue* self); QJsonValueConstRef* QJsonValueConstRef_new(QJsonValueConstRef* param1); QJsonValue* QJsonValueConstRef_ToQJsonValue(const QJsonValueConstRef* self); @@ -99,7 +99,7 @@ int QJsonValueConstRef_ToInt1(const QJsonValueConstRef* self, int defaultValue); long long QJsonValueConstRef_ToInteger1(const QJsonValueConstRef* self, long long defaultValue); double QJsonValueConstRef_ToDouble1(const QJsonValueConstRef* self, double defaultValue); struct miqt_string QJsonValueConstRef_ToString1(const QJsonValueConstRef* self, struct miqt_string defaultValue); -void QJsonValueConstRef_Delete(QJsonValueConstRef* self, bool isSubclass); +void QJsonValueConstRef_Delete(QJsonValueConstRef* self); QJsonValueRef* QJsonValueRef_new(QJsonValueRef* param1); QJsonValueRef* QJsonValueRef_new2(QJsonArray* array, ptrdiff_t idx); @@ -132,7 +132,7 @@ int QJsonValueRef_ToInt1(const QJsonValueRef* self, int defaultValue); long long QJsonValueRef_ToInteger1(const QJsonValueRef* self, long long defaultValue); double QJsonValueRef_ToDouble1(const QJsonValueRef* self, double defaultValue); struct miqt_string QJsonValueRef_ToString1(const QJsonValueRef* self, struct miqt_string defaultValue); -void QJsonValueRef_Delete(QJsonValueRef* self, bool isSubclass); +void QJsonValueRef_Delete(QJsonValueRef* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qkeysequence.cpp b/qt6/gen_qkeysequence.cpp index e589fdc9..2a78079b 100644 --- a/qt6/gen_qkeysequence.cpp +++ b/qt6/gen_qkeysequence.cpp @@ -239,11 +239,7 @@ struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequen return _ms; } -void QKeySequence_Delete(QKeySequence* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QKeySequence_Delete(QKeySequence* self) { + delete self; } diff --git a/qt6/gen_qkeysequence.go b/qt6/gen_qkeysequence.go index f6f1e9d9..45a3c8bc 100644 --- a/qt6/gen_qkeysequence.go +++ b/qt6/gen_qkeysequence.go @@ -425,7 +425,7 @@ func QKeySequence_ListToString2(list []QKeySequence, format QKeySequence__Sequen // Delete this object from C++ memory. func (this *QKeySequence) Delete() { - C.QKeySequence_Delete(this.h, C.bool(this.isSubclass)) + C.QKeySequence_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qkeysequence.h b/qt6/gen_qkeysequence.h index 213d74d9..f04590be 100644 --- a/qt6/gen_qkeysequence.h +++ b/qt6/gen_qkeysequence.h @@ -61,7 +61,7 @@ struct miqt_string QKeySequence_ToString1(const QKeySequence* self, int format); QKeySequence* QKeySequence_FromString2(struct miqt_string str, int format); struct miqt_array /* of QKeySequence* */ QKeySequence_ListFromString2(struct miqt_string str, int format); struct miqt_string QKeySequence_ListToString2(struct miqt_array /* of QKeySequence* */ list, int format); -void QKeySequence_Delete(QKeySequence* self, bool isSubclass); +void QKeySequence_Delete(QKeySequence* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qkeysequenceedit.cpp b/qt6/gen_qkeysequenceedit.cpp index 7919ebb6..f365d379 100644 --- a/qt6/gen_qkeysequenceedit.cpp +++ b/qt6/gen_qkeysequenceedit.cpp @@ -89,7 +89,7 @@ bool miqt_exec_callback_QKeySequenceEdit_FocusNextPrevChild(void*, intptr_t, boo } /* extern C */ #endif -class MiqtVirtualQKeySequenceEdit : public virtual QKeySequenceEdit { +class MiqtVirtualQKeySequenceEdit final : public QKeySequenceEdit { public: MiqtVirtualQKeySequenceEdit(QWidget* parent): QKeySequenceEdit(parent) {}; @@ -97,7 +97,7 @@ public: MiqtVirtualQKeySequenceEdit(const QKeySequence& keySequence): QKeySequenceEdit(keySequence) {}; MiqtVirtualQKeySequenceEdit(const QKeySequence& keySequence, QWidget* parent): QKeySequenceEdit(keySequence, parent) {}; - virtual ~MiqtVirtualQKeySequenceEdit() = default; + virtual ~MiqtVirtualQKeySequenceEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1541,11 +1541,7 @@ bool QKeySequenceEdit_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQKeySequenceEdit*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QKeySequenceEdit_Delete(QKeySequenceEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QKeySequenceEdit_Delete(QKeySequenceEdit* self) { + delete self; } diff --git a/qt6/gen_qkeysequenceedit.go b/qt6/gen_qkeysequenceedit.go index a1ec070e..6892a6e1 100644 --- a/qt6/gen_qkeysequenceedit.go +++ b/qt6/gen_qkeysequenceedit.go @@ -1300,7 +1300,7 @@ func miqt_exec_callback_QKeySequenceEdit_FocusNextPrevChild(self *C.QKeySequence // Delete this object from C++ memory. func (this *QKeySequenceEdit) Delete() { - C.QKeySequenceEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QKeySequenceEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qkeysequenceedit.h b/qt6/gen_qkeysequenceedit.h index 995e8cf6..1363c3bf 100644 --- a/qt6/gen_qkeysequenceedit.h +++ b/qt6/gen_qkeysequenceedit.h @@ -190,7 +190,7 @@ void QKeySequenceEdit_override_virtual_InputMethodQuery(void* self, intptr_t slo QVariant* QKeySequenceEdit_virtualbase_InputMethodQuery(const void* self, int param1); void QKeySequenceEdit_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QKeySequenceEdit_virtualbase_FocusNextPrevChild(void* self, bool next); -void QKeySequenceEdit_Delete(QKeySequenceEdit* self, bool isSubclass); +void QKeySequenceEdit_Delete(QKeySequenceEdit* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qlabel.cpp b/qt6/gen_qlabel.cpp index c5c889c1..65a67a7e 100644 --- a/qt6/gen_qlabel.cpp +++ b/qt6/gen_qlabel.cpp @@ -46,7 +46,7 @@ void miqt_exec_callback_QLabel_InitStyleOption(void*, intptr_t, QStyleOptionFram } /* extern C */ #endif -class MiqtVirtualQLabel : public virtual QLabel { +class MiqtVirtualQLabel final : public QLabel { public: MiqtVirtualQLabel(QWidget* parent): QLabel(parent) {}; @@ -56,7 +56,7 @@ public: MiqtVirtualQLabel(const QString& text, QWidget* parent): QLabel(text, parent) {}; MiqtVirtualQLabel(const QString& text, QWidget* parent, Qt::WindowFlags f): QLabel(text, parent, f) {}; - virtual ~MiqtVirtualQLabel() = default; + virtual ~MiqtVirtualQLabel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -813,11 +813,7 @@ void QLabel_virtualbase_InitStyleOption(const void* self, QStyleOptionFrame* opt ( (const MiqtVirtualQLabel*)(self) )->virtualbase_InitStyleOption(option); } -void QLabel_Delete(QLabel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLabel_Delete(QLabel* self) { + delete self; } diff --git a/qt6/gen_qlabel.go b/qt6/gen_qlabel.go index 85d649fe..b5420d1f 100644 --- a/qt6/gen_qlabel.go +++ b/qt6/gen_qlabel.go @@ -780,7 +780,7 @@ func miqt_exec_callback_QLabel_InitStyleOption(self *C.QLabel, cb C.intptr_t, op // Delete this object from C++ memory. func (this *QLabel) Delete() { - C.QLabel_Delete(this.h, C.bool(this.isSubclass)) + C.QLabel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qlabel.h b/qt6/gen_qlabel.h index 2445517c..60f98f6f 100644 --- a/qt6/gen_qlabel.h +++ b/qt6/gen_qlabel.h @@ -147,7 +147,7 @@ void QLabel_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QLabel_virtualbase_FocusNextPrevChild(void* self, bool next); void QLabel_override_virtual_InitStyleOption(void* self, intptr_t slot); void QLabel_virtualbase_InitStyleOption(const void* self, QStyleOptionFrame* option); -void QLabel_Delete(QLabel* self, bool isSubclass); +void QLabel_Delete(QLabel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qlayout.cpp b/qt6/gen_qlayout.cpp index 27b9fd63..f2771734 100644 --- a/qt6/gen_qlayout.cpp +++ b/qt6/gen_qlayout.cpp @@ -56,13 +56,13 @@ QSpacerItem* miqt_exec_callback_QLayout_SpacerItem(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQLayout : public virtual QLayout { +class MiqtVirtualQLayout final : public QLayout { public: MiqtVirtualQLayout(QWidget* parent): QLayout(parent) {}; MiqtVirtualQLayout(): QLayout() {}; - virtual ~MiqtVirtualQLayout() = default; + virtual ~MiqtVirtualQLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Spacing = 0; @@ -1211,11 +1211,7 @@ QSpacerItem* QLayout_virtualbase_SpacerItem(void* self) { return ( (MiqtVirtualQLayout*)(self) )->virtualbase_SpacerItem(); } -void QLayout_Delete(QLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLayout_Delete(QLayout* self) { + delete self; } diff --git a/qt6/gen_qlayout.go b/qt6/gen_qlayout.go index e3496957..f2f85685 100644 --- a/qt6/gen_qlayout.go +++ b/qt6/gen_qlayout.go @@ -1108,7 +1108,7 @@ func miqt_exec_callback_QLayout_SpacerItem(self *C.QLayout, cb C.intptr_t) *C.QS // Delete this object from C++ memory. func (this *QLayout) Delete() { - C.QLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qlayout.h b/qt6/gen_qlayout.h index 3ec9c44b..e31ef8cc 100644 --- a/qt6/gen_qlayout.h +++ b/qt6/gen_qlayout.h @@ -159,7 +159,7 @@ void QLayout_override_virtual_Widget(void* self, intptr_t slot); QWidget* QLayout_virtualbase_Widget(const void* self); void QLayout_override_virtual_SpacerItem(void* self, intptr_t slot); QSpacerItem* QLayout_virtualbase_SpacerItem(void* self); -void QLayout_Delete(QLayout* self, bool isSubclass); +void QLayout_Delete(QLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qlayoutitem.cpp b/qt6/gen_qlayoutitem.cpp index 94c4d76d..a2ef60a3 100644 --- a/qt6/gen_qlayoutitem.cpp +++ b/qt6/gen_qlayoutitem.cpp @@ -75,14 +75,14 @@ int miqt_exec_callback_QWidgetItemV2_ControlTypes(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQLayoutItem : public virtual QLayoutItem { +class MiqtVirtualQLayoutItem final : public QLayoutItem { public: MiqtVirtualQLayoutItem(): QLayoutItem() {}; MiqtVirtualQLayoutItem(const QLayoutItem& param1): QLayoutItem(param1) {}; MiqtVirtualQLayoutItem(Qt::Alignment alignment): QLayoutItem(alignment) {}; - virtual ~MiqtVirtualQLayoutItem() = default; + virtual ~MiqtVirtualQLayoutItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -549,15 +549,11 @@ int QLayoutItem_virtualbase_ControlTypes(const void* self) { return ( (const MiqtVirtualQLayoutItem*)(self) )->virtualbase_ControlTypes(); } -void QLayoutItem_Delete(QLayoutItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLayoutItem_Delete(QLayoutItem* self) { + delete self; } -class MiqtVirtualQSpacerItem : public virtual QSpacerItem { +class MiqtVirtualQSpacerItem final : public QSpacerItem { public: MiqtVirtualQSpacerItem(int w, int h): QSpacerItem(w, h) {}; @@ -565,7 +561,7 @@ public: MiqtVirtualQSpacerItem(int w, int h, QSizePolicy::Policy hData): QSpacerItem(w, h, hData) {}; MiqtVirtualQSpacerItem(int w, int h, QSizePolicy::Policy hData, QSizePolicy::Policy vData): QSpacerItem(w, h, hData, vData) {}; - virtual ~MiqtVirtualQSpacerItem() = default; + virtual ~MiqtVirtualQSpacerItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1097,20 +1093,16 @@ int QSpacerItem_virtualbase_ControlTypes(const void* self) { return ( (const MiqtVirtualQSpacerItem*)(self) )->virtualbase_ControlTypes(); } -void QSpacerItem_Delete(QSpacerItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSpacerItem_Delete(QSpacerItem* self) { + delete self; } -class MiqtVirtualQWidgetItem : public virtual QWidgetItem { +class MiqtVirtualQWidgetItem final : public QWidgetItem { public: MiqtVirtualQWidgetItem(QWidget* w): QWidgetItem(w) {}; - virtual ~MiqtVirtualQWidgetItem() = default; + virtual ~MiqtVirtualQWidgetItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1631,20 +1623,16 @@ QSpacerItem* QWidgetItem_virtualbase_SpacerItem(void* self) { return ( (MiqtVirtualQWidgetItem*)(self) )->virtualbase_SpacerItem(); } -void QWidgetItem_Delete(QWidgetItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWidgetItem_Delete(QWidgetItem* self) { + delete self; } -class MiqtVirtualQWidgetItemV2 : public virtual QWidgetItemV2 { +class MiqtVirtualQWidgetItemV2 final : public QWidgetItemV2 { public: MiqtVirtualQWidgetItemV2(QWidget* widget): QWidgetItemV2(widget) {}; - virtual ~MiqtVirtualQWidgetItemV2() = default; + virtual ~MiqtVirtualQWidgetItemV2() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -2040,11 +2028,7 @@ int QWidgetItemV2_virtualbase_ControlTypes(const void* self) { return ( (const MiqtVirtualQWidgetItemV2*)(self) )->virtualbase_ControlTypes(); } -void QWidgetItemV2_Delete(QWidgetItemV2* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWidgetItemV2_Delete(QWidgetItemV2* self) { + delete self; } diff --git a/qt6/gen_qlayoutitem.go b/qt6/gen_qlayoutitem.go index 03430f45..4ddf377d 100644 --- a/qt6/gen_qlayoutitem.go +++ b/qt6/gen_qlayoutitem.go @@ -487,7 +487,7 @@ func miqt_exec_callback_QLayoutItem_ControlTypes(self *C.QLayoutItem, cb C.intpt // Delete this object from C++ memory. func (this *QLayoutItem) Delete() { - C.QLayoutItem_Delete(this.h, C.bool(this.isSubclass)) + C.QLayoutItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1016,7 +1016,7 @@ func miqt_exec_callback_QSpacerItem_ControlTypes(self *C.QSpacerItem, cb C.intpt // Delete this object from C++ memory. func (this *QSpacerItem) Delete() { - C.QSpacerItem_Delete(this.h, C.bool(this.isSubclass)) + C.QSpacerItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1519,7 +1519,7 @@ func miqt_exec_callback_QWidgetItem_SpacerItem(self *C.QWidgetItem, cb C.intptr_ // Delete this object from C++ memory. func (this *QWidgetItem) Delete() { - C.QWidgetItem_Delete(this.h, C.bool(this.isSubclass)) + C.QWidgetItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1915,7 +1915,7 @@ func miqt_exec_callback_QWidgetItemV2_ControlTypes(self *C.QWidgetItemV2, cb C.i // Delete this object from C++ memory. func (this *QWidgetItemV2) Delete() { - C.QWidgetItemV2_Delete(this.h, C.bool(this.isSubclass)) + C.QWidgetItemV2_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qlayoutitem.h b/qt6/gen_qlayoutitem.h index f643b883..f475e367 100644 --- a/qt6/gen_qlayoutitem.h +++ b/qt6/gen_qlayoutitem.h @@ -86,7 +86,7 @@ void QLayoutItem_override_virtual_SpacerItem(void* self, intptr_t slot); QSpacerItem* QLayoutItem_virtualbase_SpacerItem(void* self); void QLayoutItem_override_virtual_ControlTypes(void* self, intptr_t slot); int QLayoutItem_virtualbase_ControlTypes(const void* self); -void QLayoutItem_Delete(QLayoutItem* self, bool isSubclass); +void QLayoutItem_Delete(QLayoutItem* self); QSpacerItem* QSpacerItem_new(int w, int h); QSpacerItem* QSpacerItem_new2(QSpacerItem* param1); @@ -135,7 +135,7 @@ void QSpacerItem_override_virtual_Layout(void* self, intptr_t slot); QLayout* QSpacerItem_virtualbase_Layout(void* self); void QSpacerItem_override_virtual_ControlTypes(void* self, intptr_t slot); int QSpacerItem_virtualbase_ControlTypes(const void* self); -void QSpacerItem_Delete(QSpacerItem* self, bool isSubclass); +void QSpacerItem_Delete(QSpacerItem* self); QWidgetItem* QWidgetItem_new(QWidget* w); void QWidgetItem_virtbase(QWidgetItem* src, QLayoutItem** outptr_QLayoutItem); @@ -181,7 +181,7 @@ void QWidgetItem_override_virtual_Layout(void* self, intptr_t slot); QLayout* QWidgetItem_virtualbase_Layout(void* self); void QWidgetItem_override_virtual_SpacerItem(void* self, intptr_t slot); QSpacerItem* QWidgetItem_virtualbase_SpacerItem(void* self); -void QWidgetItem_Delete(QWidgetItem* self, bool isSubclass); +void QWidgetItem_Delete(QWidgetItem* self); QWidgetItemV2* QWidgetItemV2_new(QWidget* widget); void QWidgetItemV2_virtbase(QWidgetItemV2* src, QWidgetItem** outptr_QWidgetItem); @@ -213,7 +213,7 @@ void QWidgetItemV2_override_virtual_MinimumHeightForWidth(void* self, intptr_t s int QWidgetItemV2_virtualbase_MinimumHeightForWidth(const void* self, int param1); void QWidgetItemV2_override_virtual_ControlTypes(void* self, intptr_t slot); int QWidgetItemV2_virtualbase_ControlTypes(const void* self); -void QWidgetItemV2_Delete(QWidgetItemV2* self, bool isSubclass); +void QWidgetItemV2_Delete(QWidgetItemV2* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qlcdnumber.cpp b/qt6/gen_qlcdnumber.cpp index 0bb684ea..c33084ec 100644 --- a/qt6/gen_qlcdnumber.cpp +++ b/qt6/gen_qlcdnumber.cpp @@ -28,7 +28,7 @@ void miqt_exec_callback_QLCDNumber_InitStyleOption(void*, intptr_t, QStyleOption } /* extern C */ #endif -class MiqtVirtualQLCDNumber : public virtual QLCDNumber { +class MiqtVirtualQLCDNumber final : public QLCDNumber { public: MiqtVirtualQLCDNumber(QWidget* parent): QLCDNumber(parent) {}; @@ -36,7 +36,7 @@ public: MiqtVirtualQLCDNumber(uint numDigits): QLCDNumber(numDigits) {}; MiqtVirtualQLCDNumber(uint numDigits, QWidget* parent): QLCDNumber(numDigits, parent) {}; - virtual ~MiqtVirtualQLCDNumber() = default; + virtual ~MiqtVirtualQLCDNumber() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -351,11 +351,7 @@ void QLCDNumber_virtualbase_InitStyleOption(const void* self, QStyleOptionFrame* ( (const MiqtVirtualQLCDNumber*)(self) )->virtualbase_InitStyleOption(option); } -void QLCDNumber_Delete(QLCDNumber* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLCDNumber_Delete(QLCDNumber* self) { + delete self; } diff --git a/qt6/gen_qlcdnumber.go b/qt6/gen_qlcdnumber.go index 30c3e5a6..7adb501b 100644 --- a/qt6/gen_qlcdnumber.go +++ b/qt6/gen_qlcdnumber.go @@ -379,7 +379,7 @@ func miqt_exec_callback_QLCDNumber_InitStyleOption(self *C.QLCDNumber, cb C.intp // Delete this object from C++ memory. func (this *QLCDNumber) Delete() { - C.QLCDNumber_Delete(this.h, C.bool(this.isSubclass)) + C.QLCDNumber_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qlcdnumber.h b/qt6/gen_qlcdnumber.h index 4d4fcd7b..eb1048a5 100644 --- a/qt6/gen_qlcdnumber.h +++ b/qt6/gen_qlcdnumber.h @@ -82,7 +82,7 @@ void QLCDNumber_override_virtual_ChangeEvent(void* self, intptr_t slot); void QLCDNumber_virtualbase_ChangeEvent(void* self, QEvent* param1); void QLCDNumber_override_virtual_InitStyleOption(void* self, intptr_t slot); void QLCDNumber_virtualbase_InitStyleOption(const void* self, QStyleOptionFrame* option); -void QLCDNumber_Delete(QLCDNumber* self, bool isSubclass); +void QLCDNumber_Delete(QLCDNumber* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qlibrary.cpp b/qt6/gen_qlibrary.cpp index 1b2e6e85..6638a158 100644 --- a/qt6/gen_qlibrary.cpp +++ b/qt6/gen_qlibrary.cpp @@ -26,7 +26,7 @@ void miqt_exec_callback_QLibrary_DisconnectNotify(void*, intptr_t, QMetaMethod*) } /* extern C */ #endif -class MiqtVirtualQLibrary : public virtual QLibrary { +class MiqtVirtualQLibrary final : public QLibrary { public: MiqtVirtualQLibrary(): QLibrary() {}; @@ -38,7 +38,7 @@ public: MiqtVirtualQLibrary(const QString& fileName, int verNum, QObject* parent): QLibrary(fileName, verNum, parent) {}; MiqtVirtualQLibrary(const QString& fileName, const QString& version, QObject* parent): QLibrary(fileName, version, parent) {}; - virtual ~MiqtVirtualQLibrary() = default; + virtual ~MiqtVirtualQLibrary() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -418,11 +418,7 @@ void QLibrary_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQLibrary*)(self) )->virtualbase_DisconnectNotify(signal); } -void QLibrary_Delete(QLibrary* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLibrary_Delete(QLibrary* self) { + delete self; } diff --git a/qt6/gen_qlibrary.go b/qt6/gen_qlibrary.go index 9adff78d..8903a001 100644 --- a/qt6/gen_qlibrary.go +++ b/qt6/gen_qlibrary.go @@ -458,7 +458,7 @@ func miqt_exec_callback_QLibrary_DisconnectNotify(self *C.QLibrary, cb C.intptr_ // Delete this object from C++ memory. func (this *QLibrary) Delete() { - C.QLibrary_Delete(this.h, C.bool(this.isSubclass)) + C.QLibrary_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qlibrary.h b/qt6/gen_qlibrary.h index fe9855ee..153bb424 100644 --- a/qt6/gen_qlibrary.h +++ b/qt6/gen_qlibrary.h @@ -71,7 +71,7 @@ void QLibrary_override_virtual_ConnectNotify(void* self, intptr_t slot); void QLibrary_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QLibrary_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QLibrary_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QLibrary_Delete(QLibrary* self, bool isSubclass); +void QLibrary_Delete(QLibrary* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qlibraryinfo.cpp b/qt6/gen_qlibraryinfo.cpp index 4060725c..df65f35d 100644 --- a/qt6/gen_qlibraryinfo.cpp +++ b/qt6/gen_qlibraryinfo.cpp @@ -70,11 +70,7 @@ struct miqt_array /* of struct miqt_string */ QLibraryInfo_PlatformPluginArgume return _out; } -void QLibraryInfo_Delete(QLibraryInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLibraryInfo_Delete(QLibraryInfo* self) { + delete self; } diff --git a/qt6/gen_qlibraryinfo.go b/qt6/gen_qlibraryinfo.go index 37cee223..27758214 100644 --- a/qt6/gen_qlibraryinfo.go +++ b/qt6/gen_qlibraryinfo.go @@ -114,7 +114,7 @@ func QLibraryInfo_PlatformPluginArguments(platformName string) []string { // Delete this object from C++ memory. func (this *QLibraryInfo) Delete() { - C.QLibraryInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QLibraryInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qlibraryinfo.h b/qt6/gen_qlibraryinfo.h index 32b82960..3d18aaa7 100644 --- a/qt6/gen_qlibraryinfo.h +++ b/qt6/gen_qlibraryinfo.h @@ -28,7 +28,7 @@ QVersionNumber* QLibraryInfo_Version(); struct miqt_string QLibraryInfo_Path(int p); struct miqt_string QLibraryInfo_Location(int location); struct miqt_array /* of struct miqt_string */ QLibraryInfo_PlatformPluginArguments(struct miqt_string platformName); -void QLibraryInfo_Delete(QLibraryInfo* self, bool isSubclass); +void QLibraryInfo_Delete(QLibraryInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qline.cpp b/qt6/gen_qline.cpp index 4ef2101b..36594366 100644 --- a/qt6/gen_qline.cpp +++ b/qt6/gen_qline.cpp @@ -113,12 +113,8 @@ QLineF* QLine_ToLineF(const QLine* self) { return new QLineF(self->toLineF()); } -void QLine_Delete(QLine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLine_Delete(QLine* self) { + delete self; } QLineF* QLineF_new() { @@ -280,11 +276,7 @@ int QLineF_Intersects2(const QLineF* self, QLineF* l, QPointF* intersectionPoint return static_cast(_ret); } -void QLineF_Delete(QLineF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLineF_Delete(QLineF* self) { + delete self; } diff --git a/qt6/gen_qline.go b/qt6/gen_qline.go index 00f9c666..44669506 100644 --- a/qt6/gen_qline.go +++ b/qt6/gen_qline.go @@ -184,7 +184,7 @@ func (this *QLine) ToLineF() *QLineF { // Delete this object from C++ memory. func (this *QLine) Delete() { - C.QLine_Delete(this.h, C.bool(this.isSubclass)) + C.QLine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -419,7 +419,7 @@ func (this *QLineF) Intersects2(l *QLineF, intersectionPoint *QPointF) QLineF__I // Delete this object from C++ memory. func (this *QLineF) Delete() { - C.QLineF_Delete(this.h, C.bool(this.isSubclass)) + C.QLineF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qline.h b/qt6/gen_qline.h index 2306ea9c..eacc0732 100644 --- a/qt6/gen_qline.h +++ b/qt6/gen_qline.h @@ -51,7 +51,7 @@ void QLine_SetLine(QLine* self, int x1, int y1, int x2, int y2); bool QLine_OperatorEqual(const QLine* self, QLine* d); bool QLine_OperatorNotEqual(const QLine* self, QLine* d); QLineF* QLine_ToLineF(const QLine* self); -void QLine_Delete(QLine* self, bool isSubclass); +void QLine_Delete(QLine* self); QLineF* QLineF_new(); QLineF* QLineF_new2(QPointF* pt1, QPointF* pt2); @@ -90,7 +90,7 @@ bool QLineF_OperatorEqual(const QLineF* self, QLineF* d); bool QLineF_OperatorNotEqual(const QLineF* self, QLineF* d); QLine* QLineF_ToLine(const QLineF* self); int QLineF_Intersects2(const QLineF* self, QLineF* l, QPointF* intersectionPoint); -void QLineF_Delete(QLineF* self, bool isSubclass); +void QLineF_Delete(QLineF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qlineedit.cpp b/qt6/gen_qlineedit.cpp index 572d8575..52140684 100644 --- a/qt6/gen_qlineedit.cpp +++ b/qt6/gen_qlineedit.cpp @@ -101,7 +101,7 @@ bool miqt_exec_callback_QLineEdit_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQLineEdit : public virtual QLineEdit { +class MiqtVirtualQLineEdit final : public QLineEdit { public: MiqtVirtualQLineEdit(QWidget* parent): QLineEdit(parent) {}; @@ -109,7 +109,7 @@ public: MiqtVirtualQLineEdit(const QString& param1): QLineEdit(param1) {}; MiqtVirtualQLineEdit(const QString& param1, QWidget* parent): QLineEdit(param1, parent) {}; - virtual ~MiqtVirtualQLineEdit() = default; + virtual ~MiqtVirtualQLineEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1964,11 +1964,7 @@ bool QLineEdit_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQLineEdit*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QLineEdit_Delete(QLineEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLineEdit_Delete(QLineEdit* self) { + delete self; } diff --git a/qt6/gen_qlineedit.go b/qt6/gen_qlineedit.go index 8ee51fbf..89df697f 100644 --- a/qt6/gen_qlineedit.go +++ b/qt6/gen_qlineedit.go @@ -1764,7 +1764,7 @@ func miqt_exec_callback_QLineEdit_FocusNextPrevChild(self *C.QLineEdit, cb C.int // Delete this object from C++ memory. func (this *QLineEdit) Delete() { - C.QLineEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QLineEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qlineedit.h b/qt6/gen_qlineedit.h index becf08e4..19085288 100644 --- a/qt6/gen_qlineedit.h +++ b/qt6/gen_qlineedit.h @@ -293,7 +293,7 @@ void QLineEdit_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QLineEdit_virtualbase_SharedPainter(const void* self); void QLineEdit_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QLineEdit_virtualbase_FocusNextPrevChild(void* self, bool next); -void QLineEdit_Delete(QLineEdit* self, bool isSubclass); +void QLineEdit_Delete(QLineEdit* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qlistview.cpp b/qt6/gen_qlistview.cpp index 98b344fb..2f587a0e 100644 --- a/qt6/gen_qlistview.cpp +++ b/qt6/gen_qlistview.cpp @@ -108,13 +108,13 @@ bool miqt_exec_callback_QListView_EventFilter(void*, intptr_t, QObject*, QEvent* } /* extern C */ #endif -class MiqtVirtualQListView : public virtual QListView { +class MiqtVirtualQListView final : public QListView { public: MiqtVirtualQListView(QWidget* parent): QListView(parent) {}; MiqtVirtualQListView(): QListView() {}; - virtual ~MiqtVirtualQListView() = default; + virtual ~MiqtVirtualQListView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__VisualRect = 0; @@ -2406,11 +2406,7 @@ bool QListView_virtualbase_EventFilter(void* self, QObject* object, QEvent* even return ( (MiqtVirtualQListView*)(self) )->virtualbase_EventFilter(object, event); } -void QListView_Delete(QListView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QListView_Delete(QListView* self) { + delete self; } diff --git a/qt6/gen_qlistview.go b/qt6/gen_qlistview.go index 4d4ea269..24623b0c 100644 --- a/qt6/gen_qlistview.go +++ b/qt6/gen_qlistview.go @@ -2033,7 +2033,7 @@ func miqt_exec_callback_QListView_EventFilter(self *C.QListView, cb C.intptr_t, // Delete this object from C++ memory. func (this *QListView) Delete() { - C.QListView_Delete(this.h, C.bool(this.isSubclass)) + C.QListView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qlistview.h b/qt6/gen_qlistview.h index 7facc7fa..552ccb29 100644 --- a/qt6/gen_qlistview.h +++ b/qt6/gen_qlistview.h @@ -280,7 +280,7 @@ void QListView_override_virtual_InputMethodEvent(void* self, intptr_t slot); void QListView_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event); void QListView_override_virtual_EventFilter(void* self, intptr_t slot); bool QListView_virtualbase_EventFilter(void* self, QObject* object, QEvent* event); -void QListView_Delete(QListView* self, bool isSubclass); +void QListView_Delete(QListView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qlistwidget.cpp b/qt6/gen_qlistwidget.cpp index 0f8ef52f..320210f0 100644 --- a/qt6/gen_qlistwidget.cpp +++ b/qt6/gen_qlistwidget.cpp @@ -100,7 +100,7 @@ QSize* miqt_exec_callback_QListWidget_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQListWidgetItem : public virtual QListWidgetItem { +class MiqtVirtualQListWidgetItem final : public QListWidgetItem { public: MiqtVirtualQListWidgetItem(): QListWidgetItem() {}; @@ -114,7 +114,7 @@ public: MiqtVirtualQListWidgetItem(const QIcon& icon, const QString& text, QListWidget* listview): QListWidgetItem(icon, text, listview) {}; MiqtVirtualQListWidgetItem(const QIcon& icon, const QString& text, QListWidget* listview, int typeVal): QListWidgetItem(icon, text, listview, typeVal) {}; - virtual ~MiqtVirtualQListWidgetItem() = default; + virtual ~MiqtVirtualQListWidgetItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -551,21 +551,17 @@ void QListWidgetItem_virtualbase_Write(const void* self, QDataStream* out) { ( (const MiqtVirtualQListWidgetItem*)(self) )->virtualbase_Write(out); } -void QListWidgetItem_Delete(QListWidgetItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QListWidgetItem_Delete(QListWidgetItem* self) { + delete self; } -class MiqtVirtualQListWidget : public virtual QListWidget { +class MiqtVirtualQListWidget final : public QListWidget { public: MiqtVirtualQListWidget(QWidget* parent): QListWidget(parent) {}; MiqtVirtualQListWidget(): QListWidget() {}; - virtual ~MiqtVirtualQListWidget() = default; + virtual ~MiqtVirtualQListWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetSelectionModel = 0; @@ -2252,11 +2248,7 @@ QSize* QListWidget_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQListWidget*)(self) )->virtualbase_ViewportSizeHint(); } -void QListWidget_Delete(QListWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QListWidget_Delete(QListWidget* self) { + delete self; } diff --git a/qt6/gen_qlistwidget.go b/qt6/gen_qlistwidget.go index 68e53fa1..09c14b0f 100644 --- a/qt6/gen_qlistwidget.go +++ b/qt6/gen_qlistwidget.go @@ -519,7 +519,7 @@ func miqt_exec_callback_QListWidgetItem_Write(self *C.QListWidgetItem, cb C.intp // Delete this object from C++ memory. func (this *QListWidgetItem) Delete() { - C.QListWidgetItem_Delete(this.h, C.bool(this.isSubclass)) + C.QListWidgetItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2127,7 +2127,7 @@ func miqt_exec_callback_QListWidget_ViewportSizeHint(self *C.QListWidget, cb C.i // Delete this object from C++ memory. func (this *QListWidget) Delete() { - C.QListWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QListWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qlistwidget.h b/qt6/gen_qlistwidget.h index a1f7ee92..49513eed 100644 --- a/qt6/gen_qlistwidget.h +++ b/qt6/gen_qlistwidget.h @@ -145,7 +145,7 @@ void QListWidgetItem_override_virtual_Read(void* self, intptr_t slot); void QListWidgetItem_virtualbase_Read(void* self, QDataStream* in); void QListWidgetItem_override_virtual_Write(void* self, intptr_t slot); void QListWidgetItem_virtualbase_Write(const void* self, QDataStream* out); -void QListWidgetItem_Delete(QListWidgetItem* self, bool isSubclass); +void QListWidgetItem_Delete(QListWidgetItem* self); QListWidget* QListWidget_new(QWidget* parent); QListWidget* QListWidget_new2(); @@ -296,7 +296,7 @@ void QListWidget_override_virtual_CurrentChanged(void* self, intptr_t slot); void QListWidget_virtualbase_CurrentChanged(void* self, QModelIndex* current, QModelIndex* previous); void QListWidget_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QListWidget_virtualbase_ViewportSizeHint(const void* self); -void QListWidget_Delete(QListWidget* self, bool isSubclass); +void QListWidget_Delete(QListWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qlocale.cpp b/qt6/gen_qlocale.cpp index 53b3b748..38199493 100644 --- a/qt6/gen_qlocale.cpp +++ b/qt6/gen_qlocale.cpp @@ -1370,11 +1370,7 @@ struct miqt_string QLocale_QuoteString2(const QLocale* self, struct miqt_string return _ms; } -void QLocale_Delete(QLocale* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLocale_Delete(QLocale* self) { + delete self; } diff --git a/qt6/gen_qlocale.go b/qt6/gen_qlocale.go index e004b089..604f76ac 100644 --- a/qt6/gen_qlocale.go +++ b/qt6/gen_qlocale.go @@ -2113,7 +2113,7 @@ func (this *QLocale) QuoteString2(str string, style QLocale__QuotationStyle) str // Delete this object from C++ memory. func (this *QLocale) Delete() { - C.QLocale_Delete(this.h, C.bool(this.isSubclass)) + C.QLocale_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qlocale.h b/qt6/gen_qlocale.h index f302637b..2b5fc188 100644 --- a/qt6/gen_qlocale.h +++ b/qt6/gen_qlocale.h @@ -177,7 +177,7 @@ struct miqt_string QLocale_FormattedDataSize2(const QLocale* self, long long byt struct miqt_string QLocale_FormattedDataSize3(const QLocale* self, long long bytes, int precision, int format); struct miqt_string QLocale_LanguageToCode2(uint16_t language, int codeTypes); struct miqt_string QLocale_QuoteString2(const QLocale* self, struct miqt_string str, int style); -void QLocale_Delete(QLocale* self, bool isSubclass); +void QLocale_Delete(QLocale* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qlockfile.cpp b/qt6/gen_qlockfile.cpp index daccdd1d..b4e7e32e 100644 --- a/qt6/gen_qlockfile.cpp +++ b/qt6/gen_qlockfile.cpp @@ -66,11 +66,7 @@ bool QLockFile_TryLock1(QLockFile* self, int timeout) { return self->tryLock(static_cast(timeout)); } -void QLockFile_Delete(QLockFile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLockFile_Delete(QLockFile* self) { + delete self; } diff --git a/qt6/gen_qlockfile.go b/qt6/gen_qlockfile.go index 0dbbe8a3..cfd9feaf 100644 --- a/qt6/gen_qlockfile.go +++ b/qt6/gen_qlockfile.go @@ -112,7 +112,7 @@ func (this *QLockFile) TryLock1(timeout int) bool { // Delete this object from C++ memory. func (this *QLockFile) Delete() { - C.QLockFile_Delete(this.h, C.bool(this.isSubclass)) + C.QLockFile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qlockfile.h b/qt6/gen_qlockfile.h index 52e64a9e..e202ca02 100644 --- a/qt6/gen_qlockfile.h +++ b/qt6/gen_qlockfile.h @@ -31,7 +31,7 @@ bool QLockFile_IsLocked(const QLockFile* self); bool QLockFile_RemoveStaleLockFile(QLockFile* self); int QLockFile_Error(const QLockFile* self); bool QLockFile_TryLock1(QLockFile* self, int timeout); -void QLockFile_Delete(QLockFile* self, bool isSubclass); +void QLockFile_Delete(QLockFile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qloggingcategory.cpp b/qt6/gen_qloggingcategory.cpp index 86219aa2..755bef24 100644 --- a/qt6/gen_qloggingcategory.cpp +++ b/qt6/gen_qloggingcategory.cpp @@ -58,11 +58,7 @@ void QLoggingCategory_SetFilterRules(struct miqt_string rules) { QLoggingCategory::setFilterRules(rules_QString); } -void QLoggingCategory_Delete(QLoggingCategory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLoggingCategory_Delete(QLoggingCategory* self) { + delete self; } diff --git a/qt6/gen_qloggingcategory.go b/qt6/gen_qloggingcategory.go index 197dec9e..bd742eec 100644 --- a/qt6/gen_qloggingcategory.go +++ b/qt6/gen_qloggingcategory.go @@ -99,7 +99,7 @@ func QLoggingCategory_SetFilterRules(rules string) { // Delete this object from C++ memory. func (this *QLoggingCategory) Delete() { - C.QLoggingCategory_Delete(this.h, C.bool(this.isSubclass)) + C.QLoggingCategory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qloggingcategory.h b/qt6/gen_qloggingcategory.h index 7aa37ee3..112ff57b 100644 --- a/qt6/gen_qloggingcategory.h +++ b/qt6/gen_qloggingcategory.h @@ -30,7 +30,7 @@ QLoggingCategory* QLoggingCategory_OperatorCall(QLoggingCategory* self); QLoggingCategory* QLoggingCategory_OperatorCall2(const QLoggingCategory* self); QLoggingCategory* QLoggingCategory_DefaultCategory(); void QLoggingCategory_SetFilterRules(struct miqt_string rules); -void QLoggingCategory_Delete(QLoggingCategory* self, bool isSubclass); +void QLoggingCategory_Delete(QLoggingCategory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmainwindow.cpp b/qt6/gen_qmainwindow.cpp index d60a0894..b451a164 100644 --- a/qt6/gen_qmainwindow.cpp +++ b/qt6/gen_qmainwindow.cpp @@ -94,14 +94,14 @@ bool miqt_exec_callback_QMainWindow_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQMainWindow : public virtual QMainWindow { +class MiqtVirtualQMainWindow final : public QMainWindow { public: MiqtVirtualQMainWindow(QWidget* parent): QMainWindow(parent) {}; MiqtVirtualQMainWindow(): QMainWindow() {}; MiqtVirtualQMainWindow(QWidget* parent, Qt::WindowFlags flags): QMainWindow(parent, flags) {}; - virtual ~MiqtVirtualQMainWindow() = default; + virtual ~MiqtVirtualQMainWindow() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CreatePopupMenu = 0; @@ -1793,11 +1793,7 @@ bool QMainWindow_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQMainWindow*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QMainWindow_Delete(QMainWindow* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMainWindow_Delete(QMainWindow* self) { + delete self; } diff --git a/qt6/gen_qmainwindow.go b/qt6/gen_qmainwindow.go index 5242cba2..60d6800e 100644 --- a/qt6/gen_qmainwindow.go +++ b/qt6/gen_qmainwindow.go @@ -1559,7 +1559,7 @@ func miqt_exec_callback_QMainWindow_FocusNextPrevChild(self *C.QMainWindow, cb C // Delete this object from C++ memory. func (this *QMainWindow) Delete() { - C.QMainWindow_Delete(this.h, C.bool(this.isSubclass)) + C.QMainWindow_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmainwindow.h b/qt6/gen_qmainwindow.h index 96da26b9..987d28cb 100644 --- a/qt6/gen_qmainwindow.h +++ b/qt6/gen_qmainwindow.h @@ -244,7 +244,7 @@ void QMainWindow_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QMainWindow_virtualbase_InputMethodQuery(const void* self, int param1); void QMainWindow_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QMainWindow_virtualbase_FocusNextPrevChild(void* self, bool next); -void QMainWindow_Delete(QMainWindow* self, bool isSubclass); +void QMainWindow_Delete(QMainWindow* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmargins.cpp b/qt6/gen_qmargins.cpp index ae6c64dd..f60078fa 100644 --- a/qt6/gen_qmargins.cpp +++ b/qt6/gen_qmargins.cpp @@ -111,12 +111,8 @@ QMarginsF* QMargins_ToMarginsF(const QMargins* self) { return new QMarginsF(self->toMarginsF()); } -void QMargins_Delete(QMargins* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMargins_Delete(QMargins* self) { + delete self; } QMarginsF* QMarginsF_new() { @@ -215,11 +211,7 @@ QMargins* QMarginsF_ToMargins(const QMarginsF* self) { return new QMargins(self->toMargins()); } -void QMarginsF_Delete(QMarginsF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMarginsF_Delete(QMarginsF* self) { + delete self; } diff --git a/qt6/gen_qmargins.go b/qt6/gen_qmargins.go index 500773f9..1fa1604d 100644 --- a/qt6/gen_qmargins.go +++ b/qt6/gen_qmargins.go @@ -146,7 +146,7 @@ func (this *QMargins) ToMarginsF() *QMarginsF { // Delete this object from C++ memory. func (this *QMargins) Delete() { - C.QMargins_Delete(this.h, C.bool(this.isSubclass)) + C.QMargins_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -291,7 +291,7 @@ func (this *QMarginsF) ToMargins() *QMargins { // Delete this object from C++ memory. func (this *QMarginsF) Delete() { - C.QMarginsF_Delete(this.h, C.bool(this.isSubclass)) + C.QMarginsF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmargins.h b/qt6/gen_qmargins.h index a35a3a6d..3b4cf10f 100644 --- a/qt6/gen_qmargins.h +++ b/qt6/gen_qmargins.h @@ -43,7 +43,7 @@ QMargins* QMargins_OperatorDivideAssign(QMargins* self, int param1); QMargins* QMargins_OperatorMultiplyAssignWithQreal(QMargins* self, double param1); QMargins* QMargins_OperatorDivideAssignWithQreal(QMargins* self, double param1); QMarginsF* QMargins_ToMarginsF(const QMargins* self); -void QMargins_Delete(QMargins* self, bool isSubclass); +void QMargins_Delete(QMargins* self); QMarginsF* QMarginsF_new(); QMarginsF* QMarginsF_new2(double left, double top, double right, double bottom); @@ -65,7 +65,7 @@ QMarginsF* QMarginsF_OperatorMinusAssignWithSubtrahend(QMarginsF* self, double s QMarginsF* QMarginsF_OperatorMultiplyAssign(QMarginsF* self, double factor); QMarginsF* QMarginsF_OperatorDivideAssign(QMarginsF* self, double divisor); QMargins* QMarginsF_ToMargins(const QMarginsF* self); -void QMarginsF_Delete(QMarginsF* self, bool isSubclass); +void QMarginsF_Delete(QMarginsF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmatrix4x4.cpp b/qt6/gen_qmatrix4x4.cpp index 1ba413a1..90027b0b 100644 --- a/qt6/gen_qmatrix4x4.cpp +++ b/qt6/gen_qmatrix4x4.cpp @@ -290,11 +290,7 @@ void QMatrix4x4_Viewport6(QMatrix4x4* self, float left, float bottom, float widt self->viewport(static_cast(left), static_cast(bottom), static_cast(width), static_cast(height), static_cast(nearPlane), static_cast(farPlane)); } -void QMatrix4x4_Delete(QMatrix4x4* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMatrix4x4_Delete(QMatrix4x4* self) { + delete self; } diff --git a/qt6/gen_qmatrix4x4.go b/qt6/gen_qmatrix4x4.go index 324ab6bb..27db4a2b 100644 --- a/qt6/gen_qmatrix4x4.go +++ b/qt6/gen_qmatrix4x4.go @@ -378,7 +378,7 @@ func (this *QMatrix4x4) Viewport6(left float32, bottom float32, width float32, h // Delete this object from C++ memory. func (this *QMatrix4x4) Delete() { - C.QMatrix4x4_Delete(this.h, C.bool(this.isSubclass)) + C.QMatrix4x4_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmatrix4x4.h b/qt6/gen_qmatrix4x4.h index b851eb1f..ee5b0425 100644 --- a/qt6/gen_qmatrix4x4.h +++ b/qt6/gen_qmatrix4x4.h @@ -103,7 +103,7 @@ QMatrix4x4* QMatrix4x4_Inverted1(const QMatrix4x4* self, bool* invertible); void QMatrix4x4_Rotate4(QMatrix4x4* self, float angle, float x, float y, float z); void QMatrix4x4_Viewport5(QMatrix4x4* self, float left, float bottom, float width, float height, float nearPlane); void QMatrix4x4_Viewport6(QMatrix4x4* self, float left, float bottom, float width, float height, float nearPlane, float farPlane); -void QMatrix4x4_Delete(QMatrix4x4* self, bool isSubclass); +void QMatrix4x4_Delete(QMatrix4x4* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmdiarea.cpp b/qt6/gen_qmdiarea.cpp index a2e88b11..4bf96230 100644 --- a/qt6/gen_qmdiarea.cpp +++ b/qt6/gen_qmdiarea.cpp @@ -62,13 +62,13 @@ QSize* miqt_exec_callback_QMdiArea_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQMdiArea : public virtual QMdiArea { +class MiqtVirtualQMdiArea final : public QMdiArea { public: MiqtVirtualQMdiArea(QWidget* parent): QMdiArea(parent) {}; MiqtVirtualQMdiArea(): QMdiArea() {}; - virtual ~MiqtVirtualQMdiArea() = default; + virtual ~MiqtVirtualQMdiArea() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1059,11 +1059,7 @@ QSize* QMdiArea_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQMdiArea*)(self) )->virtualbase_ViewportSizeHint(); } -void QMdiArea_Delete(QMdiArea* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMdiArea_Delete(QMdiArea* self) { + delete self; } diff --git a/qt6/gen_qmdiarea.go b/qt6/gen_qmdiarea.go index 4b7a10ff..1ebb0a28 100644 --- a/qt6/gen_qmdiarea.go +++ b/qt6/gen_qmdiarea.go @@ -946,7 +946,7 @@ func miqt_exec_callback_QMdiArea_ViewportSizeHint(self *C.QMdiArea, cb C.intptr_ // Delete this object from C++ memory. func (this *QMdiArea) Delete() { - C.QMdiArea_Delete(this.h, C.bool(this.isSubclass)) + C.QMdiArea_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmdiarea.h b/qt6/gen_qmdiarea.h index 054ac61d..4228dce6 100644 --- a/qt6/gen_qmdiarea.h +++ b/qt6/gen_qmdiarea.h @@ -169,7 +169,7 @@ void QMdiArea_override_virtual_KeyPressEvent(void* self, intptr_t slot); void QMdiArea_virtualbase_KeyPressEvent(void* self, QKeyEvent* param1); void QMdiArea_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QMdiArea_virtualbase_ViewportSizeHint(const void* self); -void QMdiArea_Delete(QMdiArea* self, bool isSubclass); +void QMdiArea_Delete(QMdiArea* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmdisubwindow.cpp b/qt6/gen_qmdisubwindow.cpp index 58450055..87a6643d 100644 --- a/qt6/gen_qmdisubwindow.cpp +++ b/qt6/gen_qmdisubwindow.cpp @@ -93,14 +93,14 @@ bool miqt_exec_callback_QMdiSubWindow_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQMdiSubWindow : public virtual QMdiSubWindow { +class MiqtVirtualQMdiSubWindow final : public QMdiSubWindow { public: MiqtVirtualQMdiSubWindow(QWidget* parent): QMdiSubWindow(parent) {}; MiqtVirtualQMdiSubWindow(): QMdiSubWindow() {}; MiqtVirtualQMdiSubWindow(QWidget* parent, Qt::WindowFlags flags): QMdiSubWindow(parent, flags) {}; - virtual ~MiqtVirtualQMdiSubWindow() = default; + virtual ~MiqtVirtualQMdiSubWindow() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1661,11 +1661,7 @@ bool QMdiSubWindow_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQMdiSubWindow*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QMdiSubWindow_Delete(QMdiSubWindow* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMdiSubWindow_Delete(QMdiSubWindow* self) { + delete self; } diff --git a/qt6/gen_qmdisubwindow.go b/qt6/gen_qmdisubwindow.go index 1be65e9a..0599bec0 100644 --- a/qt6/gen_qmdisubwindow.go +++ b/qt6/gen_qmdisubwindow.go @@ -1417,7 +1417,7 @@ func miqt_exec_callback_QMdiSubWindow_FocusNextPrevChild(self *C.QMdiSubWindow, // Delete this object from C++ memory. func (this *QMdiSubWindow) Delete() { - C.QMdiSubWindow_Delete(this.h, C.bool(this.isSubclass)) + C.QMdiSubWindow_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmdisubwindow.h b/qt6/gen_qmdisubwindow.h index 17fe6395..31308e92 100644 --- a/qt6/gen_qmdisubwindow.h +++ b/qt6/gen_qmdisubwindow.h @@ -226,7 +226,7 @@ void QMdiSubWindow_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QMdiSubWindow_virtualbase_InputMethodQuery(const void* self, int param1); void QMdiSubWindow_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QMdiSubWindow_virtualbase_FocusNextPrevChild(void* self, bool next); -void QMdiSubWindow_Delete(QMdiSubWindow* self, bool isSubclass); +void QMdiSubWindow_Delete(QMdiSubWindow* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmenu.cpp b/qt6/gen_qmenu.cpp index cb52c77f..711d207b 100644 --- a/qt6/gen_qmenu.cpp +++ b/qt6/gen_qmenu.cpp @@ -96,7 +96,7 @@ QVariant* miqt_exec_callback_QMenu_InputMethodQuery(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQMenu : public virtual QMenu { +class MiqtVirtualQMenu final : public QMenu { public: MiqtVirtualQMenu(QWidget* parent): QMenu(parent) {}; @@ -104,7 +104,7 @@ public: MiqtVirtualQMenu(const QString& title): QMenu(title) {}; MiqtVirtualQMenu(const QString& title, QWidget* parent): QMenu(title, parent) {}; - virtual ~MiqtVirtualQMenu() = default; + virtual ~MiqtVirtualQMenu() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1790,11 +1790,7 @@ QVariant* QMenu_virtualbase_InputMethodQuery(const void* self, int param1) { return ( (const MiqtVirtualQMenu*)(self) )->virtualbase_InputMethodQuery(param1); } -void QMenu_Delete(QMenu* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMenu_Delete(QMenu* self) { + delete self; } diff --git a/qt6/gen_qmenu.go b/qt6/gen_qmenu.go index 9df56737..ee07b946 100644 --- a/qt6/gen_qmenu.go +++ b/qt6/gen_qmenu.go @@ -1582,7 +1582,7 @@ func miqt_exec_callback_QMenu_InputMethodQuery(self *C.QMenu, cb C.intptr_t, par // Delete this object from C++ memory. func (this *QMenu) Delete() { - C.QMenu_Delete(this.h, C.bool(this.isSubclass)) + C.QMenu_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmenu.h b/qt6/gen_qmenu.h index 3c32cac7..c5efc37c 100644 --- a/qt6/gen_qmenu.h +++ b/qt6/gen_qmenu.h @@ -251,7 +251,7 @@ void QMenu_override_virtual_InputMethodEvent(void* self, intptr_t slot); void QMenu_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* param1); void QMenu_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QMenu_virtualbase_InputMethodQuery(const void* self, int param1); -void QMenu_Delete(QMenu* self, bool isSubclass); +void QMenu_Delete(QMenu* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmenubar.cpp b/qt6/gen_qmenubar.cpp index 473da7dc..d7ded4ae 100644 --- a/qt6/gen_qmenubar.cpp +++ b/qt6/gen_qmenubar.cpp @@ -95,13 +95,13 @@ bool miqt_exec_callback_QMenuBar_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQMenuBar : public virtual QMenuBar { +class MiqtVirtualQMenuBar final : public QMenuBar { public: MiqtVirtualQMenuBar(QWidget* parent): QMenuBar(parent) {}; MiqtVirtualQMenuBar(): QMenuBar() {}; - virtual ~MiqtVirtualQMenuBar() = default; + virtual ~MiqtVirtualQMenuBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1675,11 +1675,7 @@ bool QMenuBar_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQMenuBar*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QMenuBar_Delete(QMenuBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMenuBar_Delete(QMenuBar* self) { + delete self; } diff --git a/qt6/gen_qmenubar.go b/qt6/gen_qmenubar.go index d48bca31..d603e644 100644 --- a/qt6/gen_qmenubar.go +++ b/qt6/gen_qmenubar.go @@ -1429,7 +1429,7 @@ func miqt_exec_callback_QMenuBar_FocusNextPrevChild(self *C.QMenuBar, cb C.intpt // Delete this object from C++ memory. func (this *QMenuBar) Delete() { - C.QMenuBar_Delete(this.h, C.bool(this.isSubclass)) + C.QMenuBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmenubar.h b/qt6/gen_qmenubar.h index 0163e647..0f937ab2 100644 --- a/qt6/gen_qmenubar.h +++ b/qt6/gen_qmenubar.h @@ -228,7 +228,7 @@ void QMenuBar_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QMenuBar_virtualbase_InputMethodQuery(const void* self, int param1); void QMenuBar_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QMenuBar_virtualbase_FocusNextPrevChild(void* self, bool next); -void QMenuBar_Delete(QMenuBar* self, bool isSubclass); +void QMenuBar_Delete(QMenuBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmessageauthenticationcode.cpp b/qt6/gen_qmessageauthenticationcode.cpp index 61cada0d..0c7bd225 100644 --- a/qt6/gen_qmessageauthenticationcode.cpp +++ b/qt6/gen_qmessageauthenticationcode.cpp @@ -63,11 +63,7 @@ struct miqt_string QMessageAuthenticationCode_Hash(struct miqt_string message, s return _ms; } -void QMessageAuthenticationCode_Delete(QMessageAuthenticationCode* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMessageAuthenticationCode_Delete(QMessageAuthenticationCode* self) { + delete self; } diff --git a/qt6/gen_qmessageauthenticationcode.go b/qt6/gen_qmessageauthenticationcode.go index 4f5f2b5a..90756c45 100644 --- a/qt6/gen_qmessageauthenticationcode.go +++ b/qt6/gen_qmessageauthenticationcode.go @@ -115,7 +115,7 @@ func QMessageAuthenticationCode_Hash(message []byte, key []byte, method QCryptog // Delete this object from C++ memory. func (this *QMessageAuthenticationCode) Delete() { - C.QMessageAuthenticationCode_Delete(this.h, C.bool(this.isSubclass)) + C.QMessageAuthenticationCode_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmessageauthenticationcode.h b/qt6/gen_qmessageauthenticationcode.h index 54f82742..fc3e0c4f 100644 --- a/qt6/gen_qmessageauthenticationcode.h +++ b/qt6/gen_qmessageauthenticationcode.h @@ -31,7 +31,7 @@ void QMessageAuthenticationCode_AddDataWithData(QMessageAuthenticationCode* self bool QMessageAuthenticationCode_AddDataWithDevice(QMessageAuthenticationCode* self, QIODevice* device); struct miqt_string QMessageAuthenticationCode_Result(const QMessageAuthenticationCode* self); struct miqt_string QMessageAuthenticationCode_Hash(struct miqt_string message, struct miqt_string key, int method); -void QMessageAuthenticationCode_Delete(QMessageAuthenticationCode* self, bool isSubclass); +void QMessageAuthenticationCode_Delete(QMessageAuthenticationCode* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmessagebox.cpp b/qt6/gen_qmessagebox.cpp index 874fbea8..d90b8e27 100644 --- a/qt6/gen_qmessagebox.cpp +++ b/qt6/gen_qmessagebox.cpp @@ -47,7 +47,7 @@ bool miqt_exec_callback_QMessageBox_EventFilter(void*, intptr_t, QObject*, QEven } /* extern C */ #endif -class MiqtVirtualQMessageBox : public virtual QMessageBox { +class MiqtVirtualQMessageBox final : public QMessageBox { public: MiqtVirtualQMessageBox(QWidget* parent): QMessageBox(parent) {}; @@ -60,7 +60,7 @@ public: MiqtVirtualQMessageBox(const QString& title, const QString& text, QMessageBox::Icon icon, int button0, int button1, int button2, QWidget* parent): QMessageBox(title, text, icon, button0, button1, button2, parent) {}; MiqtVirtualQMessageBox(const QString& title, const QString& text, QMessageBox::Icon icon, int button0, int button1, int button2, QWidget* parent, Qt::WindowFlags f): QMessageBox(title, text, icon, button0, button1, button2, parent, f) {}; - virtual ~MiqtVirtualQMessageBox() = default; + virtual ~MiqtVirtualQMessageBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1232,11 +1232,7 @@ bool QMessageBox_virtualbase_EventFilter(void* self, QObject* param1, QEvent* pa return ( (MiqtVirtualQMessageBox*)(self) )->virtualbase_EventFilter(param1, param2); } -void QMessageBox_Delete(QMessageBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMessageBox_Delete(QMessageBox* self) { + delete self; } diff --git a/qt6/gen_qmessagebox.go b/qt6/gen_qmessagebox.go index fa02dd61..5b03cf52 100644 --- a/qt6/gen_qmessagebox.go +++ b/qt6/gen_qmessagebox.go @@ -1692,7 +1692,7 @@ func miqt_exec_callback_QMessageBox_EventFilter(self *C.QMessageBox, cb C.intptr // Delete this object from C++ memory. func (this *QMessageBox) Delete() { - C.QMessageBox_Delete(this.h, C.bool(this.isSubclass)) + C.QMessageBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmessagebox.h b/qt6/gen_qmessagebox.h index 7a8e93d7..ebcc5bd8 100644 --- a/qt6/gen_qmessagebox.h +++ b/qt6/gen_qmessagebox.h @@ -195,7 +195,7 @@ void QMessageBox_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QMessageBox_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QMessageBox_override_virtual_EventFilter(void* self, intptr_t slot); bool QMessageBox_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QMessageBox_Delete(QMessageBox* self, bool isSubclass); +void QMessageBox_Delete(QMessageBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmetacontainer.cpp b/qt6/gen_qmetacontainer.cpp index 79db83a4..3e245826 100644 --- a/qt6/gen_qmetacontainer.cpp +++ b/qt6/gen_qmetacontainer.cpp @@ -120,12 +120,8 @@ ptrdiff_t QMetaContainer_DiffConstIterator(const QMetaContainer* self, const voi return static_cast(_ret); } -void QMetaContainer_Delete(QMetaContainer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaContainer_Delete(QMetaContainer* self) { + delete self; } QMetaSequence* QMetaSequence_new() { @@ -256,12 +252,8 @@ void QMetaSequence_ValueAtConstIterator(const QMetaSequence* self, const void* i self->valueAtConstIterator(iterator, result); } -void QMetaSequence_Delete(QMetaSequence* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaSequence_Delete(QMetaSequence* self) { + delete self; } QMetaAssociation* QMetaAssociation_new() { @@ -376,11 +368,7 @@ void* QMetaAssociation_CreateConstIteratorAtKey(const QMetaAssociation* self, co return self->createConstIteratorAtKey(container, key); } -void QMetaAssociation_Delete(QMetaAssociation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaAssociation_Delete(QMetaAssociation* self) { + delete self; } diff --git a/qt6/gen_qmetacontainer.go b/qt6/gen_qmetacontainer.go index 281975ee..5dad13d6 100644 --- a/qt6/gen_qmetacontainer.go +++ b/qt6/gen_qmetacontainer.go @@ -186,7 +186,7 @@ func (this *QMetaContainer) DiffConstIterator(i unsafe.Pointer, j unsafe.Pointer // Delete this object from C++ memory. func (this *QMetaContainer) Delete() { - C.QMetaContainer_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaContainer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -367,7 +367,7 @@ func (this *QMetaSequence) ValueAtConstIterator(iterator unsafe.Pointer, result // Delete this object from C++ memory. func (this *QMetaSequence) Delete() { - C.QMetaSequence_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaSequence_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -534,7 +534,7 @@ func (this *QMetaAssociation) CreateConstIteratorAtKey(container unsafe.Pointer, // Delete this object from C++ memory. func (this *QMetaAssociation) Delete() { - C.QMetaAssociation_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaAssociation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmetacontainer.h b/qt6/gen_qmetacontainer.h index ea674b0f..20e3bffe 100644 --- a/qt6/gen_qmetacontainer.h +++ b/qt6/gen_qmetacontainer.h @@ -52,7 +52,7 @@ bool QMetaContainer_CompareConstIterator(const QMetaContainer* self, const void* void QMetaContainer_CopyConstIterator(const QMetaContainer* self, void* target, const void* source); void QMetaContainer_AdvanceConstIterator(const QMetaContainer* self, void* iterator, ptrdiff_t step); ptrdiff_t QMetaContainer_DiffConstIterator(const QMetaContainer* self, const void* i, const void* j); -void QMetaContainer_Delete(QMetaContainer* self, bool isSubclass); +void QMetaContainer_Delete(QMetaContainer* self); QMetaSequence* QMetaSequence_new(); void QMetaSequence_virtbase(QMetaSequence* src, QMetaContainer** outptr_QMetaContainer); @@ -86,7 +86,7 @@ bool QMetaSequence_CanEraseRangeAtIterator(const QMetaSequence* self); void QMetaSequence_EraseRangeAtIterator(const QMetaSequence* self, void* container, const void* iterator1, const void* iterator2); bool QMetaSequence_CanGetValueAtConstIterator(const QMetaSequence* self); void QMetaSequence_ValueAtConstIterator(const QMetaSequence* self, const void* iterator, void* result); -void QMetaSequence_Delete(QMetaSequence* self, bool isSubclass); +void QMetaSequence_Delete(QMetaSequence* self); QMetaAssociation* QMetaAssociation_new(); void QMetaAssociation_virtbase(QMetaAssociation* src, QMetaContainer** outptr_QMetaContainer); @@ -116,7 +116,7 @@ bool QMetaAssociation_CanCreateIteratorAtKey(const QMetaAssociation* self); void* QMetaAssociation_CreateIteratorAtKey(const QMetaAssociation* self, void* container, const void* key); bool QMetaAssociation_CanCreateConstIteratorAtKey(const QMetaAssociation* self); void* QMetaAssociation_CreateConstIteratorAtKey(const QMetaAssociation* self, const void* container, const void* key); -void QMetaAssociation_Delete(QMetaAssociation* self, bool isSubclass); +void QMetaAssociation_Delete(QMetaAssociation* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmetaobject.cpp b/qt6/gen_qmetaobject.cpp index 00ed3f48..962413f2 100644 --- a/qt6/gen_qmetaobject.cpp +++ b/qt6/gen_qmetaobject.cpp @@ -427,12 +427,8 @@ bool QMetaMethod_InvokeOnGadget112(const QMetaMethod* self, void* gadget, QGener return self->invokeOnGadget(gadget, *val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8, *val9); } -void QMetaMethod_Delete(QMetaMethod* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaMethod_Delete(QMetaMethod* self) { + delete self; } QMetaEnum* QMetaEnum_new() { @@ -512,12 +508,8 @@ int QMetaEnum_KeysToValue2(const QMetaEnum* self, const char* keys, bool* ok) { return self->keysToValue(keys, ok); } -void QMetaEnum_Delete(QMetaEnum* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaEnum_Delete(QMetaEnum* self) { + delete self; } QMetaProperty* QMetaProperty_new() { @@ -673,12 +665,8 @@ QMetaObject* QMetaProperty_EnclosingMetaObject(const QMetaProperty* self) { return (QMetaObject*) self->enclosingMetaObject(); } -void QMetaProperty_Delete(QMetaProperty* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaProperty_Delete(QMetaProperty* self) { + delete self; } QMetaClassInfo* QMetaClassInfo_new() { @@ -697,11 +685,7 @@ QMetaObject* QMetaClassInfo_EnclosingMetaObject(const QMetaClassInfo* self) { return (QMetaObject*) self->enclosingMetaObject(); } -void QMetaClassInfo_Delete(QMetaClassInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaClassInfo_Delete(QMetaClassInfo* self) { + delete self; } diff --git a/qt6/gen_qmetaobject.go b/qt6/gen_qmetaobject.go index 34e333fd..8eb68dc4 100644 --- a/qt6/gen_qmetaobject.go +++ b/qt6/gen_qmetaobject.go @@ -474,7 +474,7 @@ func (this *QMetaMethod) InvokeOnGadget112(gadget unsafe.Pointer, val0 QGenericA // Delete this object from C++ memory. func (this *QMetaMethod) Delete() { - C.QMetaMethod_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaMethod_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -617,7 +617,7 @@ func (this *QMetaEnum) KeysToValue2(keys string, ok *bool) int { // Delete this object from C++ memory. func (this *QMetaEnum) Delete() { - C.QMetaEnum_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaEnum_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -834,7 +834,7 @@ func (this *QMetaProperty) EnclosingMetaObject() *QMetaObject { // Delete this object from C++ memory. func (this *QMetaProperty) Delete() { - C.QMetaProperty_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaProperty_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -903,7 +903,7 @@ func (this *QMetaClassInfo) EnclosingMetaObject() *QMetaObject { // Delete this object from C++ memory. func (this *QMetaClassInfo) Delete() { - C.QMetaClassInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaClassInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmetaobject.h b/qt6/gen_qmetaobject.h index 149334f9..9e60d286 100644 --- a/qt6/gen_qmetaobject.h +++ b/qt6/gen_qmetaobject.h @@ -130,7 +130,7 @@ bool QMetaMethod_InvokeOnGadget82(const QMetaMethod* self, void* gadget, QGeneri bool QMetaMethod_InvokeOnGadget92(const QMetaMethod* self, void* gadget, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7); bool QMetaMethod_InvokeOnGadget102(const QMetaMethod* self, void* gadget, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8); bool QMetaMethod_InvokeOnGadget112(const QMetaMethod* self, void* gadget, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8, QGenericArgument* val9); -void QMetaMethod_Delete(QMetaMethod* self, bool isSubclass); +void QMetaMethod_Delete(QMetaMethod* self); QMetaEnum* QMetaEnum_new(); QMetaEnum* QMetaEnum_new2(QMetaEnum* param1); @@ -150,7 +150,7 @@ QMetaObject* QMetaEnum_EnclosingMetaObject(const QMetaEnum* self); bool QMetaEnum_IsValid(const QMetaEnum* self); int QMetaEnum_KeyToValue2(const QMetaEnum* self, const char* key, bool* ok); int QMetaEnum_KeysToValue2(const QMetaEnum* self, const char* keys, bool* ok); -void QMetaEnum_Delete(QMetaEnum* self, bool isSubclass); +void QMetaEnum_Delete(QMetaEnum* self); QMetaProperty* QMetaProperty_new(); const char* QMetaProperty_Name(const QMetaProperty* self); @@ -190,13 +190,13 @@ bool QMetaProperty_HasStdCppSet(const QMetaProperty* self); bool QMetaProperty_IsAlias(const QMetaProperty* self); bool QMetaProperty_IsValid(const QMetaProperty* self); QMetaObject* QMetaProperty_EnclosingMetaObject(const QMetaProperty* self); -void QMetaProperty_Delete(QMetaProperty* self, bool isSubclass); +void QMetaProperty_Delete(QMetaProperty* self); QMetaClassInfo* QMetaClassInfo_new(); const char* QMetaClassInfo_Name(const QMetaClassInfo* self); const char* QMetaClassInfo_Value(const QMetaClassInfo* self); QMetaObject* QMetaClassInfo_EnclosingMetaObject(const QMetaClassInfo* self); -void QMetaClassInfo_Delete(QMetaClassInfo* self, bool isSubclass); +void QMetaClassInfo_Delete(QMetaClassInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmetatype.cpp b/qt6/gen_qmetatype.cpp index e58b600c..6215d0db 100644 --- a/qt6/gen_qmetatype.cpp +++ b/qt6/gen_qmetatype.cpp @@ -250,11 +250,7 @@ void* QMetaType_Construct2(const QMetaType* self, void* where, const void* copyV return self->construct(where, copyVal); } -void QMetaType_Delete(QMetaType* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaType_Delete(QMetaType* self) { + delete self; } diff --git a/qt6/gen_qmetatype.go b/qt6/gen_qmetatype.go index a695eed4..097da2c9 100644 --- a/qt6/gen_qmetatype.go +++ b/qt6/gen_qmetatype.go @@ -420,7 +420,7 @@ func (this *QMetaType) Construct2(where unsafe.Pointer, copyVal unsafe.Pointer) // Delete this object from C++ memory. func (this *QMetaType) Delete() { - C.QMetaType_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaType_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmetatype.h b/qt6/gen_qmetatype.h index db75aeef..8a0dab88 100644 --- a/qt6/gen_qmetatype.h +++ b/qt6/gen_qmetatype.h @@ -87,7 +87,7 @@ void* QMetaType_Create22(int typeVal, const void* copyVal); int QMetaType_Id1(const QMetaType* self, int param1); void* QMetaType_Create1(const QMetaType* self, const void* copyVal); void* QMetaType_Construct2(const QMetaType* self, void* where, const void* copyVal); -void QMetaType_Delete(QMetaType* self, bool isSubclass); +void QMetaType_Delete(QMetaType* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmimedata.cpp b/qt6/gen_qmimedata.cpp index c84186db..47653149 100644 --- a/qt6/gen_qmimedata.cpp +++ b/qt6/gen_qmimedata.cpp @@ -34,12 +34,12 @@ void miqt_exec_callback_QMimeData_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQMimeData : public virtual QMimeData { +class MiqtVirtualQMimeData final : public QMimeData { public: MiqtVirtualQMimeData(): QMimeData() {}; - virtual ~MiqtVirtualQMimeData() = default; + virtual ~MiqtVirtualQMimeData() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__HasFormat = 0; @@ -592,11 +592,7 @@ void QMimeData_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQMimeData*)(self) )->virtualbase_DisconnectNotify(signal); } -void QMimeData_Delete(QMimeData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMimeData_Delete(QMimeData* self) { + delete self; } diff --git a/qt6/gen_qmimedata.go b/qt6/gen_qmimedata.go index 11e97138..00aa8913 100644 --- a/qt6/gen_qmimedata.go +++ b/qt6/gen_qmimedata.go @@ -556,7 +556,7 @@ func miqt_exec_callback_QMimeData_DisconnectNotify(self *C.QMimeData, cb C.intpt // Delete this object from C++ memory. func (this *QMimeData) Delete() { - C.QMimeData_Delete(this.h, C.bool(this.isSubclass)) + C.QMimeData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmimedata.h b/qt6/gen_qmimedata.h index 7d421bbc..2c5092bd 100644 --- a/qt6/gen_qmimedata.h +++ b/qt6/gen_qmimedata.h @@ -87,7 +87,7 @@ void QMimeData_override_virtual_ConnectNotify(void* self, intptr_t slot); void QMimeData_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QMimeData_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QMimeData_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QMimeData_Delete(QMimeData* self, bool isSubclass); +void QMimeData_Delete(QMimeData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmimedatabase.cpp b/qt6/gen_qmimedatabase.cpp index 31f780f4..1b68bc69 100644 --- a/qt6/gen_qmimedatabase.cpp +++ b/qt6/gen_qmimedatabase.cpp @@ -109,11 +109,7 @@ QMimeType* QMimeDatabase_MimeTypeForFile22(const QMimeDatabase* self, QFileInfo* return new QMimeType(self->mimeTypeForFile(*fileInfo, static_cast(mode))); } -void QMimeDatabase_Delete(QMimeDatabase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMimeDatabase_Delete(QMimeDatabase* self) { + delete self; } diff --git a/qt6/gen_qmimedatabase.go b/qt6/gen_qmimedatabase.go index 6b424083..d3d35299 100644 --- a/qt6/gen_qmimedatabase.go +++ b/qt6/gen_qmimedatabase.go @@ -189,7 +189,7 @@ func (this *QMimeDatabase) MimeTypeForFile22(fileInfo *QFileInfo, mode QMimeData // Delete this object from C++ memory. func (this *QMimeDatabase) Delete() { - C.QMimeDatabase_Delete(this.h, C.bool(this.isSubclass)) + C.QMimeDatabase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmimedatabase.h b/qt6/gen_qmimedatabase.h index 7bec6e9f..3c4a5e4a 100644 --- a/qt6/gen_qmimedatabase.h +++ b/qt6/gen_qmimedatabase.h @@ -42,7 +42,7 @@ struct miqt_string QMimeDatabase_SuffixForFileName(const QMimeDatabase* self, st struct miqt_array /* of QMimeType* */ QMimeDatabase_AllMimeTypes(const QMimeDatabase* self); QMimeType* QMimeDatabase_MimeTypeForFile2(const QMimeDatabase* self, struct miqt_string fileName, int mode); QMimeType* QMimeDatabase_MimeTypeForFile22(const QMimeDatabase* self, QFileInfo* fileInfo, int mode); -void QMimeDatabase_Delete(QMimeDatabase* self, bool isSubclass); +void QMimeDatabase_Delete(QMimeDatabase* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmimetype.cpp b/qt6/gen_qmimetype.cpp index d27007d1..8ebfa6fb 100644 --- a/qt6/gen_qmimetype.cpp +++ b/qt6/gen_qmimetype.cpp @@ -217,11 +217,7 @@ struct miqt_string QMimeType_FilterString(const QMimeType* self) { return _ms; } -void QMimeType_Delete(QMimeType* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMimeType_Delete(QMimeType* self) { + delete self; } diff --git a/qt6/gen_qmimetype.go b/qt6/gen_qmimetype.go index ae24f7ae..35ad200f 100644 --- a/qt6/gen_qmimetype.go +++ b/qt6/gen_qmimetype.go @@ -203,7 +203,7 @@ func (this *QMimeType) FilterString() string { // Delete this object from C++ memory. func (this *QMimeType) Delete() { - C.QMimeType_Delete(this.h, C.bool(this.isSubclass)) + C.QMimeType_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmimetype.h b/qt6/gen_qmimetype.h index 9d8087b4..44f7d098 100644 --- a/qt6/gen_qmimetype.h +++ b/qt6/gen_qmimetype.h @@ -40,7 +40,7 @@ struct miqt_array /* of struct miqt_string */ QMimeType_Suffixes(const QMimeTyp struct miqt_string QMimeType_PreferredSuffix(const QMimeType* self); bool QMimeType_Inherits(const QMimeType* self, struct miqt_string mimeTypeName); struct miqt_string QMimeType_FilterString(const QMimeType* self); -void QMimeType_Delete(QMimeType* self, bool isSubclass); +void QMimeType_Delete(QMimeType* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmovie.cpp b/qt6/gen_qmovie.cpp index 4e5300d5..ce631c45 100644 --- a/qt6/gen_qmovie.cpp +++ b/qt6/gen_qmovie.cpp @@ -41,7 +41,7 @@ void miqt_exec_callback_QMovie_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQMovie : public virtual QMovie { +class MiqtVirtualQMovie final : public QMovie { public: MiqtVirtualQMovie(): QMovie() {}; @@ -53,7 +53,7 @@ public: MiqtVirtualQMovie(const QString& fileName, const QByteArray& format): QMovie(fileName, format) {}; MiqtVirtualQMovie(const QString& fileName, const QByteArray& format, QObject* parent): QMovie(fileName, format, parent) {}; - virtual ~MiqtVirtualQMovie() = default; + virtual ~MiqtVirtualQMovie() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -611,11 +611,7 @@ void QMovie_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQMovie*)(self) )->virtualbase_DisconnectNotify(signal); } -void QMovie_Delete(QMovie* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMovie_Delete(QMovie* self) { + delete self; } diff --git a/qt6/gen_qmovie.go b/qt6/gen_qmovie.go index ee49d033..140c4f76 100644 --- a/qt6/gen_qmovie.go +++ b/qt6/gen_qmovie.go @@ -678,7 +678,7 @@ func miqt_exec_callback_QMovie_DisconnectNotify(self *C.QMovie, cb C.intptr_t, s // Delete this object from C++ memory. func (this *QMovie) Delete() { - C.QMovie_Delete(this.h, C.bool(this.isSubclass)) + C.QMovie_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmovie.h b/qt6/gen_qmovie.h index 6f6a575e..6b2a4b62 100644 --- a/qt6/gen_qmovie.h +++ b/qt6/gen_qmovie.h @@ -117,7 +117,7 @@ void QMovie_override_virtual_ConnectNotify(void* self, intptr_t slot); void QMovie_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QMovie_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QMovie_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QMovie_Delete(QMovie* self, bool isSubclass); +void QMovie_Delete(QMovie* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qmutex.cpp b/qt6/gen_qmutex.cpp index 794272e0..bd545817 100644 --- a/qt6/gen_qmutex.cpp +++ b/qt6/gen_qmutex.cpp @@ -32,12 +32,8 @@ bool QBasicMutex_TryLock2(QBasicMutex* self) { return self->try_lock(); } -void QBasicMutex_Delete(QBasicMutex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QBasicMutex_Delete(QBasicMutex* self) { + delete self; } QMutex* QMutex_new() { @@ -56,12 +52,8 @@ bool QMutex_TryLockWithTimeout(QMutex* self, int timeout) { return self->tryLock(static_cast(timeout)); } -void QMutex_Delete(QMutex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMutex_Delete(QMutex* self) { + delete self; } QRecursiveMutex* QRecursiveMutex_new() { @@ -88,11 +80,7 @@ bool QRecursiveMutex_TryLock1(QRecursiveMutex* self, int timeout) { return self->tryLock(static_cast(timeout)); } -void QRecursiveMutex_Delete(QRecursiveMutex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRecursiveMutex_Delete(QRecursiveMutex* self) { + delete self; } diff --git a/qt6/gen_qmutex.go b/qt6/gen_qmutex.go index 4342b4a1..8d489330 100644 --- a/qt6/gen_qmutex.go +++ b/qt6/gen_qmutex.go @@ -72,7 +72,7 @@ func (this *QBasicMutex) TryLock2() bool { // Delete this object from C++ memory. func (this *QBasicMutex) Delete() { - C.QBasicMutex_Delete(this.h, C.bool(this.isSubclass)) + C.QBasicMutex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -139,7 +139,7 @@ func (this *QMutex) TryLockWithTimeout(timeout int) bool { // Delete this object from C++ memory. func (this *QMutex) Delete() { - C.QMutex_Delete(this.h, C.bool(this.isSubclass)) + C.QMutex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -214,7 +214,7 @@ func (this *QRecursiveMutex) TryLock1(timeout int) bool { // Delete this object from C++ memory. func (this *QRecursiveMutex) Delete() { - C.QRecursiveMutex_Delete(this.h, C.bool(this.isSubclass)) + C.QRecursiveMutex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qmutex.h b/qt6/gen_qmutex.h index d9d146d2..ac615dc4 100644 --- a/qt6/gen_qmutex.h +++ b/qt6/gen_qmutex.h @@ -29,13 +29,13 @@ void QBasicMutex_Lock(QBasicMutex* self); void QBasicMutex_Unlock(QBasicMutex* self); bool QBasicMutex_TryLock(QBasicMutex* self); bool QBasicMutex_TryLock2(QBasicMutex* self); -void QBasicMutex_Delete(QBasicMutex* self, bool isSubclass); +void QBasicMutex_Delete(QBasicMutex* self); QMutex* QMutex_new(); void QMutex_virtbase(QMutex* src, QBasicMutex** outptr_QBasicMutex); bool QMutex_TryLock(QMutex* self); bool QMutex_TryLockWithTimeout(QMutex* self, int timeout); -void QMutex_Delete(QMutex* self, bool isSubclass); +void QMutex_Delete(QMutex* self); QRecursiveMutex* QRecursiveMutex_new(); void QRecursiveMutex_Lock(QRecursiveMutex* self); @@ -43,7 +43,7 @@ bool QRecursiveMutex_TryLock(QRecursiveMutex* self); void QRecursiveMutex_Unlock(QRecursiveMutex* self); bool QRecursiveMutex_TryLock2(QRecursiveMutex* self); bool QRecursiveMutex_TryLock1(QRecursiveMutex* self, int timeout); -void QRecursiveMutex_Delete(QRecursiveMutex* self, bool isSubclass); +void QRecursiveMutex_Delete(QRecursiveMutex* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qnamespace.cpp b/qt6/gen_qnamespace.cpp index 2535969b..09355b74 100644 --- a/qt6/gen_qnamespace.cpp +++ b/qt6/gen_qnamespace.cpp @@ -20,20 +20,12 @@ Disambiguated_t* Disambiguated_t_new2(Disambiguated_t* param1) { return new Qt::Disambiguated_t(*param1); } -void Disambiguated_t_Delete(Disambiguated_t* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void Disambiguated_t_Delete(Disambiguated_t* self) { + delete self; } -void QInternal_Delete(QInternal* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QInternal_Delete(QInternal* self) { + delete self; } QKeyCombination* QKeyCombination_new() { @@ -86,11 +78,7 @@ int QKeyCombination_ToInt(const QKeyCombination* self) { return self->operator int(); } -void QKeyCombination_Delete(QKeyCombination* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QKeyCombination_Delete(QKeyCombination* self) { + delete self; } diff --git a/qt6/gen_qnamespace.go b/qt6/gen_qnamespace.go index b9db9e61..8a99bb04 100644 --- a/qt6/gen_qnamespace.go +++ b/qt6/gen_qnamespace.go @@ -1716,7 +1716,7 @@ func NewDisambiguated_t2(param1 *Disambiguated_t) *Disambiguated_t { // Delete this object from C++ memory. func (this *Disambiguated_t) Delete() { - C.Disambiguated_t_Delete(this.h, C.bool(this.isSubclass)) + C.Disambiguated_t_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1763,7 +1763,7 @@ func UnsafeNewQInternal(h unsafe.Pointer) *QInternal { // Delete this object from C++ memory. func (this *QInternal) Delete() { - C.QInternal_Delete(this.h, C.bool(this.isSubclass)) + C.QInternal_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1888,7 +1888,7 @@ func (this *QKeyCombination) ToInt() int { // Delete this object from C++ memory. func (this *QKeyCombination) Delete() { - C.QKeyCombination_Delete(this.h, C.bool(this.isSubclass)) + C.QKeyCombination_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qnamespace.h b/qt6/gen_qnamespace.h index dd8ab6e2..33203bc3 100644 --- a/qt6/gen_qnamespace.h +++ b/qt6/gen_qnamespace.h @@ -30,9 +30,9 @@ typedef struct Disambiguated_t Disambiguated_t; Disambiguated_t* Disambiguated_t_new(); Disambiguated_t* Disambiguated_t_new2(Disambiguated_t* param1); -void Disambiguated_t_Delete(Disambiguated_t* self, bool isSubclass); +void Disambiguated_t_Delete(Disambiguated_t* self); -void QInternal_Delete(QInternal* self, bool isSubclass); +void QInternal_Delete(QInternal* self); QKeyCombination* QKeyCombination_new(); QKeyCombination* QKeyCombination_new2(int modifiers); @@ -46,7 +46,7 @@ int QKeyCombination_Key(const QKeyCombination* self); QKeyCombination* QKeyCombination_FromCombined(int combined); int QKeyCombination_ToCombined(const QKeyCombination* self); int QKeyCombination_ToInt(const QKeyCombination* self); -void QKeyCombination_Delete(QKeyCombination* self, bool isSubclass); +void QKeyCombination_Delete(QKeyCombination* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qobject.cpp b/qt6/gen_qobject.cpp index 9c0005e4..ed118b2f 100644 --- a/qt6/gen_qobject.cpp +++ b/qt6/gen_qobject.cpp @@ -40,21 +40,17 @@ QMetaObject* QObjectData_DynamicMetaObject(const QObjectData* self) { return self->dynamicMetaObject(); } -void QObjectData_Delete(QObjectData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QObjectData_Delete(QObjectData* self) { + delete self; } -class MiqtVirtualQObject : public virtual QObject { +class MiqtVirtualQObject final : public QObject { public: MiqtVirtualQObject(): QObject() {}; MiqtVirtualQObject(QObject* parent): QObject(parent) {}; - virtual ~MiqtVirtualQObject() = default; + virtual ~MiqtVirtualQObject() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -521,12 +517,8 @@ void QObject_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQObject*)(self) )->virtualbase_DisconnectNotify(signal); } -void QObject_Delete(QObject* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QObject_Delete(QObject* self) { + delete self; } QSignalBlocker* QSignalBlocker_new(QObject* o) { @@ -545,11 +537,7 @@ void QSignalBlocker_Unblock(QSignalBlocker* self) { self->unblock(); } -void QSignalBlocker_Delete(QSignalBlocker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSignalBlocker_Delete(QSignalBlocker* self) { + delete self; } diff --git a/qt6/gen_qobject.go b/qt6/gen_qobject.go index 4b6fc31d..3d1b6972 100644 --- a/qt6/gen_qobject.go +++ b/qt6/gen_qobject.go @@ -59,7 +59,7 @@ func (this *QObjectData) DynamicMetaObject() *QMetaObject { // Delete this object from C++ memory. func (this *QObjectData) Delete() { - C.QObjectData_Delete(this.h, C.bool(this.isSubclass)) + C.QObjectData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -566,7 +566,7 @@ func miqt_exec_callback_QObject_DisconnectNotify(self *C.QObject, cb C.intptr_t, // Delete this object from C++ memory. func (this *QObject) Delete() { - C.QObject_Delete(this.h, C.bool(this.isSubclass)) + C.QObject_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -637,7 +637,7 @@ func (this *QSignalBlocker) Unblock() { // Delete this object from C++ memory. func (this *QSignalBlocker) Delete() { - C.QSignalBlocker_Delete(this.h, C.bool(this.isSubclass)) + C.QSignalBlocker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qobject.h b/qt6/gen_qobject.h index 284bded9..b9507cfa 100644 --- a/qt6/gen_qobject.h +++ b/qt6/gen_qobject.h @@ -49,7 +49,7 @@ typedef struct QVariant QVariant; #endif QMetaObject* QObjectData_DynamicMetaObject(const QObjectData* self); -void QObjectData_Delete(QObjectData* self, bool isSubclass); +void QObjectData_Delete(QObjectData* self); QObject* QObject_new(); QObject* QObject_new2(QObject* parent); @@ -115,13 +115,13 @@ void QObject_override_virtual_ConnectNotify(void* self, intptr_t slot); void QObject_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QObject_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QObject_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QObject_Delete(QObject* self, bool isSubclass); +void QObject_Delete(QObject* self); QSignalBlocker* QSignalBlocker_new(QObject* o); QSignalBlocker* QSignalBlocker_new2(QObject* o); void QSignalBlocker_Reblock(QSignalBlocker* self); void QSignalBlocker_Unblock(QSignalBlocker* self); -void QSignalBlocker_Delete(QSignalBlocker* self, bool isSubclass); +void QSignalBlocker_Delete(QSignalBlocker* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qobjectcleanuphandler.cpp b/qt6/gen_qobjectcleanuphandler.cpp index ba88f354..455f5714 100644 --- a/qt6/gen_qobjectcleanuphandler.cpp +++ b/qt6/gen_qobjectcleanuphandler.cpp @@ -26,12 +26,12 @@ void miqt_exec_callback_QObjectCleanupHandler_DisconnectNotify(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQObjectCleanupHandler : public virtual QObjectCleanupHandler { +class MiqtVirtualQObjectCleanupHandler final : public QObjectCleanupHandler { public: MiqtVirtualQObjectCleanupHandler(): QObjectCleanupHandler() {}; - virtual ~MiqtVirtualQObjectCleanupHandler() = default; + virtual ~MiqtVirtualQObjectCleanupHandler() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -327,11 +327,7 @@ void QObjectCleanupHandler_virtualbase_DisconnectNotify(void* self, QMetaMethod* ( (MiqtVirtualQObjectCleanupHandler*)(self) )->virtualbase_DisconnectNotify(signal); } -void QObjectCleanupHandler_Delete(QObjectCleanupHandler* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QObjectCleanupHandler_Delete(QObjectCleanupHandler* self) { + delete self; } diff --git a/qt6/gen_qobjectcleanuphandler.go b/qt6/gen_qobjectcleanuphandler.go index e25a7e76..2b58ad18 100644 --- a/qt6/gen_qobjectcleanuphandler.go +++ b/qt6/gen_qobjectcleanuphandler.go @@ -306,7 +306,7 @@ func miqt_exec_callback_QObjectCleanupHandler_DisconnectNotify(self *C.QObjectCl // Delete this object from C++ memory. func (this *QObjectCleanupHandler) Delete() { - C.QObjectCleanupHandler_Delete(this.h, C.bool(this.isSubclass)) + C.QObjectCleanupHandler_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qobjectcleanuphandler.h b/qt6/gen_qobjectcleanuphandler.h index b1300bac..fedad52f 100644 --- a/qt6/gen_qobjectcleanuphandler.h +++ b/qt6/gen_qobjectcleanuphandler.h @@ -57,7 +57,7 @@ void QObjectCleanupHandler_override_virtual_ConnectNotify(void* self, intptr_t s void QObjectCleanupHandler_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QObjectCleanupHandler_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QObjectCleanupHandler_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QObjectCleanupHandler_Delete(QObjectCleanupHandler* self, bool isSubclass); +void QObjectCleanupHandler_Delete(QObjectCleanupHandler* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qobjectdefs.cpp b/qt6/gen_qobjectdefs.cpp index 216bb47d..185d0169 100644 --- a/qt6/gen_qobjectdefs.cpp +++ b/qt6/gen_qobjectdefs.cpp @@ -26,12 +26,8 @@ extern "C" { } /* extern C */ #endif -void QMethodRawArguments_Delete(QMethodRawArguments* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMethodRawArguments_Delete(QMethodRawArguments* self) { + delete self; } QGenericArgument* QGenericArgument_new() { @@ -58,12 +54,8 @@ const char* QGenericArgument_Name(const QGenericArgument* self) { return (const char*) self->name(); } -void QGenericArgument_Delete(QGenericArgument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGenericArgument_Delete(QGenericArgument* self) { + delete self; } QGenericReturnArgument* QGenericReturnArgument_new() { @@ -86,12 +78,8 @@ void QGenericReturnArgument_virtbase(QGenericReturnArgument* src, QGenericArgume *outptr_QGenericArgument = static_cast(src); } -void QGenericReturnArgument_Delete(QGenericReturnArgument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGenericReturnArgument_Delete(QGenericReturnArgument* self) { + delete self; } QMetaObject* QMetaObject_new() { @@ -506,12 +494,8 @@ QObject* QMetaObject_NewInstance10(const QMetaObject* self, QGenericArgument* va return self->newInstance(*val0, *val1, *val2, *val3, *val4, *val5, *val6, *val7, *val8, *val9); } -void QMetaObject_Delete(QMetaObject* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaObject_Delete(QMetaObject* self) { + delete self; } QMetaObject__Connection* QMetaObject__Connection_new() { @@ -530,12 +514,8 @@ void QMetaObject__Connection_Swap(QMetaObject__Connection* self, QMetaObject__Co self->swap(*other); } -void QMetaObject__Connection_Delete(QMetaObject__Connection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaObject__Connection_Delete(QMetaObject__Connection* self) { + delete self; } QMetaObject__SuperData* QMetaObject__SuperData_new() { @@ -562,12 +542,8 @@ void QMetaObject__SuperData_OperatorAssign(QMetaObject__SuperData* self, QMetaOb self->operator=(*param1); } -void QMetaObject__SuperData_Delete(QMetaObject__SuperData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaObject__SuperData_Delete(QMetaObject__SuperData* self) { + delete self; } QMetaObject__Data* QMetaObject__Data_new() { @@ -582,11 +558,7 @@ void QMetaObject__Data_OperatorAssign(QMetaObject__Data* self, QMetaObject__Data self->operator=(*param1); } -void QMetaObject__Data_Delete(QMetaObject__Data* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMetaObject__Data_Delete(QMetaObject__Data* self) { + delete self; } diff --git a/qt6/gen_qobjectdefs.go b/qt6/gen_qobjectdefs.go index 359f4440..561b707e 100644 --- a/qt6/gen_qobjectdefs.go +++ b/qt6/gen_qobjectdefs.go @@ -63,7 +63,7 @@ func UnsafeNewQMethodRawArguments(h unsafe.Pointer) *QMethodRawArguments { // Delete this object from C++ memory. func (this *QMethodRawArguments) Delete() { - C.QMethodRawArguments_Delete(this.h, C.bool(this.isSubclass)) + C.QMethodRawArguments_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -155,7 +155,7 @@ func (this *QGenericArgument) Name() string { // Delete this object from C++ memory. func (this *QGenericArgument) Delete() { - C.QGenericArgument_Delete(this.h, C.bool(this.isSubclass)) + C.QGenericArgument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -242,7 +242,7 @@ func NewQGenericReturnArgument4(aName string, aData unsafe.Pointer) *QGenericRet // Delete this object from C++ memory. func (this *QGenericReturnArgument) Delete() { - C.QGenericReturnArgument_Delete(this.h, C.bool(this.isSubclass)) + C.QGenericReturnArgument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -836,7 +836,7 @@ func (this *QMetaObject) NewInstance10(val0 QGenericArgument, val1 QGenericArgum // Delete this object from C++ memory. func (this *QMetaObject) Delete() { - C.QMetaObject_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaObject_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -907,7 +907,7 @@ func (this *QMetaObject__Connection) Swap(other *QMetaObject__Connection) { // Delete this object from C++ memory. func (this *QMetaObject__Connection) Delete() { - C.QMetaObject__Connection_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaObject__Connection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -990,7 +990,7 @@ func (this *QMetaObject__SuperData) OperatorAssign(param1 *QMetaObject__SuperDat // Delete this object from C++ memory. func (this *QMetaObject__SuperData) Delete() { - C.QMetaObject__SuperData_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaObject__SuperData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1057,7 +1057,7 @@ func (this *QMetaObject__Data) OperatorAssign(param1 *QMetaObject__Data) { // Delete this object from C++ memory. func (this *QMetaObject__Data) Delete() { - C.QMetaObject__Data_Delete(this.h, C.bool(this.isSubclass)) + C.QMetaObject__Data_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qobjectdefs.h b/qt6/gen_qobjectdefs.h index a766ff07..1582a965 100644 --- a/qt6/gen_qobjectdefs.h +++ b/qt6/gen_qobjectdefs.h @@ -56,7 +56,7 @@ typedef struct QMethodRawArguments QMethodRawArguments; typedef struct QObject QObject; #endif -void QMethodRawArguments_Delete(QMethodRawArguments* self, bool isSubclass); +void QMethodRawArguments_Delete(QMethodRawArguments* self); QGenericArgument* QGenericArgument_new(); QGenericArgument* QGenericArgument_new2(QGenericArgument* param1); @@ -64,14 +64,14 @@ QGenericArgument* QGenericArgument_new3(const char* aName); QGenericArgument* QGenericArgument_new4(const char* aName, const void* aData); void* QGenericArgument_Data(const QGenericArgument* self); const char* QGenericArgument_Name(const QGenericArgument* self); -void QGenericArgument_Delete(QGenericArgument* self, bool isSubclass); +void QGenericArgument_Delete(QGenericArgument* self); QGenericReturnArgument* QGenericReturnArgument_new(); QGenericReturnArgument* QGenericReturnArgument_new2(QGenericReturnArgument* param1); QGenericReturnArgument* QGenericReturnArgument_new3(const char* aName); QGenericReturnArgument* QGenericReturnArgument_new4(const char* aName, void* aData); void QGenericReturnArgument_virtbase(QGenericReturnArgument* src, QGenericArgument** outptr_QGenericArgument); -void QGenericReturnArgument_Delete(QGenericReturnArgument* self, bool isSubclass); +void QGenericReturnArgument_Delete(QGenericReturnArgument* self); QMetaObject* QMetaObject_new(); QMetaObject* QMetaObject_new2(QMetaObject* param1); @@ -170,13 +170,13 @@ QObject* QMetaObject_NewInstance7(const QMetaObject* self, QGenericArgument* val QObject* QMetaObject_NewInstance8(const QMetaObject* self, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7); QObject* QMetaObject_NewInstance9(const QMetaObject* self, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8); QObject* QMetaObject_NewInstance10(const QMetaObject* self, QGenericArgument* val0, QGenericArgument* val1, QGenericArgument* val2, QGenericArgument* val3, QGenericArgument* val4, QGenericArgument* val5, QGenericArgument* val6, QGenericArgument* val7, QGenericArgument* val8, QGenericArgument* val9); -void QMetaObject_Delete(QMetaObject* self, bool isSubclass); +void QMetaObject_Delete(QMetaObject* self); QMetaObject__Connection* QMetaObject__Connection_new(); QMetaObject__Connection* QMetaObject__Connection_new2(QMetaObject__Connection* other); void QMetaObject__Connection_OperatorAssign(QMetaObject__Connection* self, QMetaObject__Connection* other); void QMetaObject__Connection_Swap(QMetaObject__Connection* self, QMetaObject__Connection* other); -void QMetaObject__Connection_Delete(QMetaObject__Connection* self, bool isSubclass); +void QMetaObject__Connection_Delete(QMetaObject__Connection* self); QMetaObject__SuperData* QMetaObject__SuperData_new(); QMetaObject__SuperData* QMetaObject__SuperData_new2(QMetaObject* mo); @@ -184,12 +184,12 @@ QMetaObject__SuperData* QMetaObject__SuperData_new3(QMetaObject__SuperData* para QMetaObject* QMetaObject__SuperData_OperatorMinusGreater(const QMetaObject__SuperData* self); QMetaObject* QMetaObject__SuperData_ToConstQMetaObjectMultiply(const QMetaObject__SuperData* self); void QMetaObject__SuperData_OperatorAssign(QMetaObject__SuperData* self, QMetaObject__SuperData* param1); -void QMetaObject__SuperData_Delete(QMetaObject__SuperData* self, bool isSubclass); +void QMetaObject__SuperData_Delete(QMetaObject__SuperData* self); QMetaObject__Data* QMetaObject__Data_new(); QMetaObject__Data* QMetaObject__Data_new2(QMetaObject__Data* param1); void QMetaObject__Data_OperatorAssign(QMetaObject__Data* self, QMetaObject__Data* param1); -void QMetaObject__Data_Delete(QMetaObject__Data* self, bool isSubclass); +void QMetaObject__Data_Delete(QMetaObject__Data* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qoffscreensurface.cpp b/qt6/gen_qoffscreensurface.cpp index 1c5df999..23580bfd 100644 --- a/qt6/gen_qoffscreensurface.cpp +++ b/qt6/gen_qoffscreensurface.cpp @@ -34,14 +34,14 @@ void miqt_exec_callback_QOffscreenSurface_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQOffscreenSurface : public virtual QOffscreenSurface { +class MiqtVirtualQOffscreenSurface final : public QOffscreenSurface { public: MiqtVirtualQOffscreenSurface(): QOffscreenSurface() {}; MiqtVirtualQOffscreenSurface(QScreen* screen): QOffscreenSurface(screen) {}; MiqtVirtualQOffscreenSurface(QScreen* screen, QObject* parent): QOffscreenSurface(screen, parent) {}; - virtual ~MiqtVirtualQOffscreenSurface() = default; + virtual ~MiqtVirtualQOffscreenSurface() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SurfaceType = 0; @@ -473,11 +473,7 @@ void QOffscreenSurface_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQOffscreenSurface*)(self) )->virtualbase_DisconnectNotify(signal); } -void QOffscreenSurface_Delete(QOffscreenSurface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QOffscreenSurface_Delete(QOffscreenSurface* self) { + delete self; } diff --git a/qt6/gen_qoffscreensurface.go b/qt6/gen_qoffscreensurface.go index d5d51fbf..78079679 100644 --- a/qt6/gen_qoffscreensurface.go +++ b/qt6/gen_qoffscreensurface.go @@ -454,7 +454,7 @@ func miqt_exec_callback_QOffscreenSurface_DisconnectNotify(self *C.QOffscreenSur // Delete this object from C++ memory. func (this *QOffscreenSurface) Delete() { - C.QOffscreenSurface_Delete(this.h, C.bool(this.isSubclass)) + C.QOffscreenSurface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qoffscreensurface.h b/qt6/gen_qoffscreensurface.h index 464f9b6d..c134f6f3 100644 --- a/qt6/gen_qoffscreensurface.h +++ b/qt6/gen_qoffscreensurface.h @@ -81,7 +81,7 @@ void QOffscreenSurface_override_virtual_ConnectNotify(void* self, intptr_t slot) void QOffscreenSurface_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QOffscreenSurface_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QOffscreenSurface_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QOffscreenSurface_Delete(QOffscreenSurface* self, bool isSubclass); +void QOffscreenSurface_Delete(QOffscreenSurface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qoperatingsystemversion.cpp b/qt6/gen_qoperatingsystemversion.cpp index ab761269..7f53e047 100644 --- a/qt6/gen_qoperatingsystemversion.cpp +++ b/qt6/gen_qoperatingsystemversion.cpp @@ -87,12 +87,8 @@ struct miqt_string QOperatingSystemVersionBase_Name2(const QOperatingSystemVersi return _ms; } -void QOperatingSystemVersionBase_Delete(QOperatingSystemVersionBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QOperatingSystemVersionBase_Delete(QOperatingSystemVersionBase* self) { + delete self; } QOperatingSystemVersion* QOperatingSystemVersion_new(QOperatingSystemVersionBase* osversion) { @@ -164,11 +160,7 @@ struct miqt_string QOperatingSystemVersion_Name(const QOperatingSystemVersion* s return _ms; } -void QOperatingSystemVersion_Delete(QOperatingSystemVersion* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QOperatingSystemVersion_Delete(QOperatingSystemVersion* self) { + delete self; } diff --git a/qt6/gen_qoperatingsystemversion.go b/qt6/gen_qoperatingsystemversion.go index 95454ccb..dc650828 100644 --- a/qt6/gen_qoperatingsystemversion.go +++ b/qt6/gen_qoperatingsystemversion.go @@ -154,7 +154,7 @@ func (this *QOperatingSystemVersionBase) Name2() string { // Delete this object from C++ memory. func (this *QOperatingSystemVersionBase) Delete() { - C.QOperatingSystemVersionBase_Delete(this.h, C.bool(this.isSubclass)) + C.QOperatingSystemVersionBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -288,7 +288,7 @@ func (this *QOperatingSystemVersion) Name() string { // Delete this object from C++ memory. func (this *QOperatingSystemVersion) Delete() { - C.QOperatingSystemVersion_Delete(this.h, C.bool(this.isSubclass)) + C.QOperatingSystemVersion_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qoperatingsystemversion.h b/qt6/gen_qoperatingsystemversion.h index e12fa613..37774f86 100644 --- a/qt6/gen_qoperatingsystemversion.h +++ b/qt6/gen_qoperatingsystemversion.h @@ -38,7 +38,7 @@ int QOperatingSystemVersionBase_MicroVersion(const QOperatingSystemVersionBase* int QOperatingSystemVersionBase_SegmentCount(const QOperatingSystemVersionBase* self); int QOperatingSystemVersionBase_Type(const QOperatingSystemVersionBase* self); struct miqt_string QOperatingSystemVersionBase_Name2(const QOperatingSystemVersionBase* self); -void QOperatingSystemVersionBase_Delete(QOperatingSystemVersionBase* self, bool isSubclass); +void QOperatingSystemVersionBase_Delete(QOperatingSystemVersionBase* self); QOperatingSystemVersion* QOperatingSystemVersion_new(QOperatingSystemVersionBase* osversion); QOperatingSystemVersion* QOperatingSystemVersion_new2(int osType, int vmajor); @@ -55,7 +55,7 @@ int QOperatingSystemVersion_MicroVersion(const QOperatingSystemVersion* self); int QOperatingSystemVersion_SegmentCount(const QOperatingSystemVersion* self); int QOperatingSystemVersion_Type(const QOperatingSystemVersion* self); struct miqt_string QOperatingSystemVersion_Name(const QOperatingSystemVersion* self); -void QOperatingSystemVersion_Delete(QOperatingSystemVersion* self, bool isSubclass); +void QOperatingSystemVersion_Delete(QOperatingSystemVersion* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpagedpaintdevice.cpp b/qt6/gen_qpagedpaintdevice.cpp index d86d89db..47a4d287 100644 --- a/qt6/gen_qpagedpaintdevice.cpp +++ b/qt6/gen_qpagedpaintdevice.cpp @@ -51,11 +51,7 @@ QPageRanges* QPagedPaintDevice_PageRanges(const QPagedPaintDevice* self) { return new QPageRanges(self->pageRanges()); } -void QPagedPaintDevice_Delete(QPagedPaintDevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPagedPaintDevice_Delete(QPagedPaintDevice* self) { + delete self; } diff --git a/qt6/gen_qpagedpaintdevice.go b/qt6/gen_qpagedpaintdevice.go index 5344eded..a3866ddc 100644 --- a/qt6/gen_qpagedpaintdevice.go +++ b/qt6/gen_qpagedpaintdevice.go @@ -96,7 +96,7 @@ func (this *QPagedPaintDevice) PageRanges() *QPageRanges { // Delete this object from C++ memory. func (this *QPagedPaintDevice) Delete() { - C.QPagedPaintDevice_Delete(this.h, C.bool(this.isSubclass)) + C.QPagedPaintDevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpagedpaintdevice.h b/qt6/gen_qpagedpaintdevice.h index c785bc7c..dbaa5fb1 100644 --- a/qt6/gen_qpagedpaintdevice.h +++ b/qt6/gen_qpagedpaintdevice.h @@ -39,7 +39,7 @@ bool QPagedPaintDevice_SetPageMargins(QPagedPaintDevice* self, QMarginsF* margin QPageLayout* QPagedPaintDevice_PageLayout(const QPagedPaintDevice* self); void QPagedPaintDevice_SetPageRanges(QPagedPaintDevice* self, QPageRanges* ranges); QPageRanges* QPagedPaintDevice_PageRanges(const QPagedPaintDevice* self); -void QPagedPaintDevice_Delete(QPagedPaintDevice* self, bool isSubclass); +void QPagedPaintDevice_Delete(QPagedPaintDevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpagelayout.cpp b/qt6/gen_qpagelayout.cpp index f8568a31..c6963b51 100644 --- a/qt6/gen_qpagelayout.cpp +++ b/qt6/gen_qpagelayout.cpp @@ -170,11 +170,7 @@ void QPageLayout_SetPageSize2(QPageLayout* self, QPageSize* pageSize, QMarginsF* self->setPageSize(*pageSize, *minMargins); } -void QPageLayout_Delete(QPageLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPageLayout_Delete(QPageLayout* self) { + delete self; } diff --git a/qt6/gen_qpagelayout.go b/qt6/gen_qpagelayout.go index 194ea7a4..314486c1 100644 --- a/qt6/gen_qpagelayout.go +++ b/qt6/gen_qpagelayout.go @@ -275,7 +275,7 @@ func (this *QPageLayout) SetPageSize2(pageSize *QPageSize, minMargins *QMarginsF // Delete this object from C++ memory. func (this *QPageLayout) Delete() { - C.QPageLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QPageLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpagelayout.h b/qt6/gen_qpagelayout.h index 4817624b..4ab5c9f2 100644 --- a/qt6/gen_qpagelayout.h +++ b/qt6/gen_qpagelayout.h @@ -68,7 +68,7 @@ QRectF* QPageLayout_PaintRectWithUnits(const QPageLayout* self, int units); QRect* QPageLayout_PaintRectPoints(const QPageLayout* self); QRect* QPageLayout_PaintRectPixels(const QPageLayout* self, int resolution); void QPageLayout_SetPageSize2(QPageLayout* self, QPageSize* pageSize, QMarginsF* minMargins); -void QPageLayout_Delete(QPageLayout* self, bool isSubclass); +void QPageLayout_Delete(QPageLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpageranges.cpp b/qt6/gen_qpageranges.cpp index 5ded8de9..b216258b 100644 --- a/qt6/gen_qpageranges.cpp +++ b/qt6/gen_qpageranges.cpp @@ -92,12 +92,8 @@ void QPageRanges_Detach(QPageRanges* self) { self->detach(); } -void QPageRanges_Delete(QPageRanges* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPageRanges_Delete(QPageRanges* self) { + delete self; } QPageRanges__Range* QPageRanges__Range_new() { @@ -112,11 +108,7 @@ bool QPageRanges__Range_Contains(const QPageRanges__Range* self, int pageNumber) return self->contains(static_cast(pageNumber)); } -void QPageRanges__Range_Delete(QPageRanges__Range* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPageRanges__Range_Delete(QPageRanges__Range* self) { + delete self; } diff --git a/qt6/gen_qpageranges.go b/qt6/gen_qpageranges.go index e09feec5..1d0571d2 100644 --- a/qt6/gen_qpageranges.go +++ b/qt6/gen_qpageranges.go @@ -133,7 +133,7 @@ func (this *QPageRanges) Detach() { // Delete this object from C++ memory. func (this *QPageRanges) Delete() { - C.QPageRanges_Delete(this.h, C.bool(this.isSubclass)) + C.QPageRanges_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -200,7 +200,7 @@ func (this *QPageRanges__Range) Contains(pageNumber int) bool { // Delete this object from C++ memory. func (this *QPageRanges__Range) Delete() { - C.QPageRanges__Range_Delete(this.h, C.bool(this.isSubclass)) + C.QPageRanges__Range_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpageranges.h b/qt6/gen_qpageranges.h index 391b62f5..f5e0fecc 100644 --- a/qt6/gen_qpageranges.h +++ b/qt6/gen_qpageranges.h @@ -41,12 +41,12 @@ bool QPageRanges_IsEmpty(const QPageRanges* self); int QPageRanges_FirstPage(const QPageRanges* self); int QPageRanges_LastPage(const QPageRanges* self); void QPageRanges_Detach(QPageRanges* self); -void QPageRanges_Delete(QPageRanges* self, bool isSubclass); +void QPageRanges_Delete(QPageRanges* self); QPageRanges__Range* QPageRanges__Range_new(); QPageRanges__Range* QPageRanges__Range_new2(QPageRanges__Range* param1); bool QPageRanges__Range_Contains(const QPageRanges__Range* self, int pageNumber); -void QPageRanges__Range_Delete(QPageRanges__Range* self, bool isSubclass); +void QPageRanges__Range_Delete(QPageRanges__Range* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpagesize.cpp b/qt6/gen_qpagesize.cpp index 6ce39c20..0f9ffa3e 100644 --- a/qt6/gen_qpagesize.cpp +++ b/qt6/gen_qpagesize.cpp @@ -209,11 +209,7 @@ int QPageSize_Id3(QSizeF* size, int units, int matchPolicy) { return static_cast(_ret); } -void QPageSize_Delete(QPageSize* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPageSize_Delete(QPageSize* self) { + delete self; } diff --git a/qt6/gen_qpagesize.go b/qt6/gen_qpagesize.go index c41aba68..6c65dc34 100644 --- a/qt6/gen_qpagesize.go +++ b/qt6/gen_qpagesize.go @@ -435,7 +435,7 @@ func QPageSize_Id3(size *QSizeF, units QPageSize__Unit, matchPolicy QPageSize__S // Delete this object from C++ memory. func (this *QPageSize) Delete() { - C.QPageSize_Delete(this.h, C.bool(this.isSubclass)) + C.QPageSize_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpagesize.h b/qt6/gen_qpagesize.h index 9331bf98..60680e1b 100644 --- a/qt6/gen_qpagesize.h +++ b/qt6/gen_qpagesize.h @@ -66,7 +66,7 @@ QSize* QPageSize_SizePointsWithPageSizeId(int pageSizeId); QSize* QPageSize_SizePixels2(int pageSizeId, int resolution); int QPageSize_Id22(QSize* pointSize, int matchPolicy); int QPageSize_Id3(QSizeF* size, int units, int matchPolicy); -void QPageSize_Delete(QPageSize* self, bool isSubclass); +void QPageSize_Delete(QPageSize* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpaintdevice.cpp b/qt6/gen_qpaintdevice.cpp index 52a35a1e..7ae28f84 100644 --- a/qt6/gen_qpaintdevice.cpp +++ b/qt6/gen_qpaintdevice.cpp @@ -80,11 +80,7 @@ double QPaintDevice_DevicePixelRatioFScale() { return static_cast(_ret); } -void QPaintDevice_Delete(QPaintDevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPaintDevice_Delete(QPaintDevice* self) { + delete self; } diff --git a/qt6/gen_qpaintdevice.go b/qt6/gen_qpaintdevice.go index a524ba25..5cc6a918 100644 --- a/qt6/gen_qpaintdevice.go +++ b/qt6/gen_qpaintdevice.go @@ -129,7 +129,7 @@ func QPaintDevice_DevicePixelRatioFScale() float64 { // Delete this object from C++ memory. func (this *QPaintDevice) Delete() { - C.QPaintDevice_Delete(this.h, C.bool(this.isSubclass)) + C.QPaintDevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpaintdevice.h b/qt6/gen_qpaintdevice.h index b672950d..4b842dd0 100644 --- a/qt6/gen_qpaintdevice.h +++ b/qt6/gen_qpaintdevice.h @@ -46,7 +46,7 @@ int QPaintDevice_Metric(const QPaintDevice* self, int metric); void QPaintDevice_InitPainter(const QPaintDevice* self, QPainter* painter); QPaintDevice* QPaintDevice_Redirected(const QPaintDevice* self, QPoint* offset); QPainter* QPaintDevice_SharedPainter(const QPaintDevice* self); -void QPaintDevice_Delete(QPaintDevice* self, bool isSubclass); +void QPaintDevice_Delete(QPaintDevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpaintdevicewindow.cpp b/qt6/gen_qpaintdevicewindow.cpp index f6ef68d4..4da30be2 100644 --- a/qt6/gen_qpaintdevicewindow.cpp +++ b/qt6/gen_qpaintdevicewindow.cpp @@ -81,11 +81,7 @@ struct miqt_string QPaintDeviceWindow_Tr3(const char* s, const char* c, int n) { return _ms; } -void QPaintDeviceWindow_Delete(QPaintDeviceWindow* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPaintDeviceWindow_Delete(QPaintDeviceWindow* self) { + delete self; } diff --git a/qt6/gen_qpaintdevicewindow.go b/qt6/gen_qpaintdevicewindow.go index e26f6215..dddf9ed3 100644 --- a/qt6/gen_qpaintdevicewindow.go +++ b/qt6/gen_qpaintdevicewindow.go @@ -108,7 +108,7 @@ func QPaintDeviceWindow_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QPaintDeviceWindow) Delete() { - C.QPaintDeviceWindow_Delete(this.h, C.bool(this.isSubclass)) + C.QPaintDeviceWindow_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpaintdevicewindow.h b/qt6/gen_qpaintdevicewindow.h index 023cacd0..411cb445 100644 --- a/qt6/gen_qpaintdevicewindow.h +++ b/qt6/gen_qpaintdevicewindow.h @@ -53,7 +53,7 @@ int QPaintDeviceWindow_Metric(const QPaintDeviceWindow* self, int metric); bool QPaintDeviceWindow_Event(QPaintDeviceWindow* self, QEvent* event); struct miqt_string QPaintDeviceWindow_Tr2(const char* s, const char* c); struct miqt_string QPaintDeviceWindow_Tr3(const char* s, const char* c, int n); -void QPaintDeviceWindow_Delete(QPaintDeviceWindow* self, bool isSubclass); +void QPaintDeviceWindow_Delete(QPaintDeviceWindow* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpaintengine.cpp b/qt6/gen_qpaintengine.cpp index ce92d1f3..11cfa42b 100644 --- a/qt6/gen_qpaintengine.cpp +++ b/qt6/gen_qpaintengine.cpp @@ -89,21 +89,17 @@ QFont* QTextItem_Font(const QTextItem* self) { return new QFont(self->font()); } -void QTextItem_Delete(QTextItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextItem_Delete(QTextItem* self) { + delete self; } -class MiqtVirtualQPaintEngine : public virtual QPaintEngine { +class MiqtVirtualQPaintEngine final : public QPaintEngine { public: MiqtVirtualQPaintEngine(): QPaintEngine() {}; MiqtVirtualQPaintEngine(QPaintEngine::PaintEngineFeatures features): QPaintEngine(features) {}; - virtual ~MiqtVirtualQPaintEngine() = default; + virtual ~MiqtVirtualQPaintEngine() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Begin = 0; @@ -959,12 +955,8 @@ QPixmap* QPaintEngine_virtualbase_CreatePixmapFromImage(void* self, QImage* imag return ( (MiqtVirtualQPaintEngine*)(self) )->virtualbase_CreatePixmapFromImage(image, flags); } -void QPaintEngine_Delete(QPaintEngine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPaintEngine_Delete(QPaintEngine* self) { + delete self; } int QPaintEngineState_State(const QPaintEngineState* self) { @@ -1045,11 +1037,7 @@ bool QPaintEngineState_PenNeedsResolving(const QPaintEngineState* self) { return self->penNeedsResolving(); } -void QPaintEngineState_Delete(QPaintEngineState* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPaintEngineState_Delete(QPaintEngineState* self) { + delete self; } diff --git a/qt6/gen_qpaintengine.go b/qt6/gen_qpaintengine.go index 0d4e171d..02925c59 100644 --- a/qt6/gen_qpaintengine.go +++ b/qt6/gen_qpaintengine.go @@ -163,7 +163,7 @@ func (this *QTextItem) Font() *QFont { // Delete this object from C++ memory. func (this *QTextItem) Delete() { - C.QTextItem_Delete(this.h, C.bool(this.isSubclass)) + C.QTextItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -981,7 +981,7 @@ func miqt_exec_callback_QPaintEngine_CreatePixmapFromImage(self *C.QPaintEngine, // Delete this object from C++ memory. func (this *QPaintEngine) Delete() { - C.QPaintEngine_Delete(this.h, C.bool(this.isSubclass)) + C.QPaintEngine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1116,7 +1116,7 @@ func (this *QPaintEngineState) PenNeedsResolving() bool { // Delete this object from C++ memory. func (this *QPaintEngineState) Delete() { - C.QPaintEngineState_Delete(this.h, C.bool(this.isSubclass)) + C.QPaintEngineState_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpaintengine.h b/qt6/gen_qpaintengine.h index 7d5fca79..7bbbfb68 100644 --- a/qt6/gen_qpaintengine.h +++ b/qt6/gen_qpaintengine.h @@ -64,7 +64,7 @@ double QTextItem_Width(const QTextItem* self); int QTextItem_RenderFlags(const QTextItem* self); struct miqt_string QTextItem_Text(const QTextItem* self); QFont* QTextItem_Font(const QTextItem* self); -void QTextItem_Delete(QTextItem* self, bool isSubclass); +void QTextItem_Delete(QTextItem* self); QPaintEngine* QPaintEngine_new(); QPaintEngine* QPaintEngine_new2(int features); @@ -150,7 +150,7 @@ void QPaintEngine_override_virtual_CreatePixmap(void* self, intptr_t slot); QPixmap* QPaintEngine_virtualbase_CreatePixmap(void* self, QSize* size); void QPaintEngine_override_virtual_CreatePixmapFromImage(void* self, intptr_t slot); QPixmap* QPaintEngine_virtualbase_CreatePixmapFromImage(void* self, QImage* image, int flags); -void QPaintEngine_Delete(QPaintEngine* self, bool isSubclass); +void QPaintEngine_Delete(QPaintEngine* self); int QPaintEngineState_State(const QPaintEngineState* self); QPen* QPaintEngineState_Pen(const QPaintEngineState* self); @@ -170,7 +170,7 @@ double QPaintEngineState_Opacity(const QPaintEngineState* self); QPainter* QPaintEngineState_Painter(const QPaintEngineState* self); bool QPaintEngineState_BrushNeedsResolving(const QPaintEngineState* self); bool QPaintEngineState_PenNeedsResolving(const QPaintEngineState* self); -void QPaintEngineState_Delete(QPaintEngineState* self, bool isSubclass); +void QPaintEngineState_Delete(QPaintEngineState* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpainter.cpp b/qt6/gen_qpainter.cpp index 9775f84d..9af5904c 100644 --- a/qt6/gen_qpainter.cpp +++ b/qt6/gen_qpainter.cpp @@ -995,12 +995,8 @@ void QPainter_SetRenderHints2(QPainter* self, int hints, bool on) { self->setRenderHints(static_cast(hints), on); } -void QPainter_Delete(QPainter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPainter_Delete(QPainter* self) { + delete self; } QPainter__PixmapFragment* QPainter__PixmapFragment_Create(QPointF* pos, QRectF* sourceRect) { @@ -1023,11 +1019,7 @@ QPainter__PixmapFragment* QPainter__PixmapFragment_Create6(QPointF* pos, QRectF* return new QPainter::PixmapFragment(QPainter::PixmapFragment::create(*pos, *sourceRect, static_cast(scaleX), static_cast(scaleY), static_cast(rotation), static_cast(opacity))); } -void QPainter__PixmapFragment_Delete(QPainter__PixmapFragment* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPainter__PixmapFragment_Delete(QPainter__PixmapFragment* self) { + delete self; } diff --git a/qt6/gen_qpainter.go b/qt6/gen_qpainter.go index a7e5d417..9f165130 100644 --- a/qt6/gen_qpainter.go +++ b/qt6/gen_qpainter.go @@ -1132,7 +1132,7 @@ func (this *QPainter) SetRenderHints2(hints QPainter__RenderHint, on bool) { // Delete this object from C++ memory. func (this *QPainter) Delete() { - C.QPainter_Delete(this.h, C.bool(this.isSubclass)) + C.QPainter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1209,7 +1209,7 @@ func QPainter__PixmapFragment_Create6(pos *QPointF, sourceRect *QRectF, scaleX f // Delete this object from C++ memory. func (this *QPainter__PixmapFragment) Delete() { - C.QPainter__PixmapFragment_Delete(this.h, C.bool(this.isSubclass)) + C.QPainter__PixmapFragment_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpainter.h b/qt6/gen_qpainter.h index 4ac05e36..86251872 100644 --- a/qt6/gen_qpainter.h +++ b/qt6/gen_qpainter.h @@ -295,14 +295,14 @@ void QPainter_DrawText32(QPainter* self, QRectF* r, struct miqt_string text, QTe QRectF* QPainter_BoundingRect32(QPainter* self, QRectF* rect, struct miqt_string text, QTextOption* o); void QPainter_SetRenderHint2(QPainter* self, int hint, bool on); void QPainter_SetRenderHints2(QPainter* self, int hints, bool on); -void QPainter_Delete(QPainter* self, bool isSubclass); +void QPainter_Delete(QPainter* self); QPainter__PixmapFragment* QPainter__PixmapFragment_Create(QPointF* pos, QRectF* sourceRect); QPainter__PixmapFragment* QPainter__PixmapFragment_Create3(QPointF* pos, QRectF* sourceRect, double scaleX); QPainter__PixmapFragment* QPainter__PixmapFragment_Create4(QPointF* pos, QRectF* sourceRect, double scaleX, double scaleY); QPainter__PixmapFragment* QPainter__PixmapFragment_Create5(QPointF* pos, QRectF* sourceRect, double scaleX, double scaleY, double rotation); QPainter__PixmapFragment* QPainter__PixmapFragment_Create6(QPointF* pos, QRectF* sourceRect, double scaleX, double scaleY, double rotation, double opacity); -void QPainter__PixmapFragment_Delete(QPainter__PixmapFragment* self, bool isSubclass); +void QPainter__PixmapFragment_Delete(QPainter__PixmapFragment* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpainterpath.cpp b/qt6/gen_qpainterpath.cpp index ab15a2f8..934fbc3e 100644 --- a/qt6/gen_qpainterpath.cpp +++ b/qt6/gen_qpainterpath.cpp @@ -324,12 +324,8 @@ void QPainterPath_AddRoundedRect7(QPainterPath* self, double x, double y, double self->addRoundedRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(xRadius), static_cast(yRadius), static_cast(mode)); } -void QPainterPath_Delete(QPainterPath* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPainterPath_Delete(QPainterPath* self) { + delete self; } QPainterPathStroker* QPainterPathStroker_new() { @@ -425,12 +421,8 @@ QPainterPath* QPainterPathStroker_CreateStroke(const QPainterPathStroker* self, return new QPainterPath(self->createStroke(*path)); } -void QPainterPathStroker_Delete(QPainterPathStroker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPainterPathStroker_Delete(QPainterPathStroker* self) { + delete self; } bool QPainterPath__Element_IsMoveTo(const QPainterPath__Element* self) { @@ -457,11 +449,7 @@ bool QPainterPath__Element_OperatorNotEqual(const QPainterPath__Element* self, Q return (*self != *e); } -void QPainterPath__Element_Delete(QPainterPath__Element* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPainterPath__Element_Delete(QPainterPath__Element* self) { + delete self; } diff --git a/qt6/gen_qpainterpath.go b/qt6/gen_qpainterpath.go index 29cd0100..dabd9e68 100644 --- a/qt6/gen_qpainterpath.go +++ b/qt6/gen_qpainterpath.go @@ -401,7 +401,7 @@ func (this *QPainterPath) AddRoundedRect7(x float64, y float64, w float64, h flo // Delete this object from C++ memory. func (this *QPainterPath) Delete() { - C.QPainterPath_Delete(this.h, C.bool(this.isSubclass)) + C.QPainterPath_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -542,7 +542,7 @@ func (this *QPainterPathStroker) CreateStroke(path *QPainterPath) *QPainterPath // Delete this object from C++ memory. func (this *QPainterPathStroker) Delete() { - C.QPainterPathStroker_Delete(this.h, C.bool(this.isSubclass)) + C.QPainterPathStroker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -615,7 +615,7 @@ func (this *QPainterPath__Element) OperatorNotEqual(e *QPainterPath__Element) bo // Delete this object from C++ memory. func (this *QPainterPath__Element) Delete() { - C.QPainterPath__Element_Delete(this.h, C.bool(this.isSubclass)) + C.QPainterPath__Element_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpainterpath.h b/qt6/gen_qpainterpath.h index f231edf9..85dfce60 100644 --- a/qt6/gen_qpainterpath.h +++ b/qt6/gen_qpainterpath.h @@ -111,7 +111,7 @@ QPainterPath* QPainterPath_OperatorPlusAssign(QPainterPath* self, QPainterPath* QPainterPath* QPainterPath_OperatorMinusAssign(QPainterPath* self, QPainterPath* other); void QPainterPath_AddRoundedRect4(QPainterPath* self, QRectF* rect, double xRadius, double yRadius, int mode); void QPainterPath_AddRoundedRect7(QPainterPath* self, double x, double y, double w, double h, double xRadius, double yRadius, int mode); -void QPainterPath_Delete(QPainterPath* self, bool isSubclass); +void QPainterPath_Delete(QPainterPath* self); QPainterPathStroker* QPainterPathStroker_new(); QPainterPathStroker* QPainterPathStroker_new2(QPen* pen); @@ -131,7 +131,7 @@ struct miqt_array /* of double */ QPainterPathStroker_DashPattern(const QPainte void QPainterPathStroker_SetDashOffset(QPainterPathStroker* self, double offset); double QPainterPathStroker_DashOffset(const QPainterPathStroker* self); QPainterPath* QPainterPathStroker_CreateStroke(const QPainterPathStroker* self, QPainterPath* path); -void QPainterPathStroker_Delete(QPainterPathStroker* self, bool isSubclass); +void QPainterPathStroker_Delete(QPainterPathStroker* self); bool QPainterPath__Element_IsMoveTo(const QPainterPath__Element* self); bool QPainterPath__Element_IsLineTo(const QPainterPath__Element* self); @@ -139,7 +139,7 @@ bool QPainterPath__Element_IsCurveTo(const QPainterPath__Element* self); QPointF* QPainterPath__Element_ToQPointF(const QPainterPath__Element* self); bool QPainterPath__Element_OperatorEqual(const QPainterPath__Element* self, QPainterPath__Element* e); bool QPainterPath__Element_OperatorNotEqual(const QPainterPath__Element* self, QPainterPath__Element* e); -void QPainterPath__Element_Delete(QPainterPath__Element* self, bool isSubclass); +void QPainterPath__Element_Delete(QPainterPath__Element* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpalette.cpp b/qt6/gen_qpalette.cpp index c5de6b30..49bdf2b8 100644 --- a/qt6/gen_qpalette.cpp +++ b/qt6/gen_qpalette.cpp @@ -264,11 +264,7 @@ void QPalette_SetResolveMask(QPalette* self, unsigned long long mask) { self->setResolveMask(static_cast(mask)); } -void QPalette_Delete(QPalette* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPalette_Delete(QPalette* self) { + delete self; } diff --git a/qt6/gen_qpalette.go b/qt6/gen_qpalette.go index 07e285c4..06348dbf 100644 --- a/qt6/gen_qpalette.go +++ b/qt6/gen_qpalette.go @@ -319,7 +319,7 @@ func (this *QPalette) SetResolveMask(mask uint64) { // Delete this object from C++ memory. func (this *QPalette) Delete() { - C.QPalette_Delete(this.h, C.bool(this.isSubclass)) + C.QPalette_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpalette.h b/qt6/gen_qpalette.h index 3ad1315d..db878e22 100644 --- a/qt6/gen_qpalette.h +++ b/qt6/gen_qpalette.h @@ -76,7 +76,7 @@ long long QPalette_CacheKey(const QPalette* self); QPalette* QPalette_Resolve(const QPalette* self, QPalette* other); unsigned long long QPalette_ResolveMask(const QPalette* self); void QPalette_SetResolveMask(QPalette* self, unsigned long long mask); -void QPalette_Delete(QPalette* self, bool isSubclass); +void QPalette_Delete(QPalette* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qparallelanimationgroup.cpp b/qt6/gen_qparallelanimationgroup.cpp index a9d9e369..5fe76db4 100644 --- a/qt6/gen_qparallelanimationgroup.cpp +++ b/qt6/gen_qparallelanimationgroup.cpp @@ -23,13 +23,13 @@ void miqt_exec_callback_QParallelAnimationGroup_UpdateDirection(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQParallelAnimationGroup : public virtual QParallelAnimationGroup { +class MiqtVirtualQParallelAnimationGroup final : public QParallelAnimationGroup { public: MiqtVirtualQParallelAnimationGroup(): QParallelAnimationGroup() {}; MiqtVirtualQParallelAnimationGroup(QObject* parent): QParallelAnimationGroup(parent) {}; - virtual ~MiqtVirtualQParallelAnimationGroup() = default; + virtual ~MiqtVirtualQParallelAnimationGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Duration = 0; @@ -251,11 +251,7 @@ void QParallelAnimationGroup_virtualbase_UpdateDirection(void* self, int directi ( (MiqtVirtualQParallelAnimationGroup*)(self) )->virtualbase_UpdateDirection(direction); } -void QParallelAnimationGroup_Delete(QParallelAnimationGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QParallelAnimationGroup_Delete(QParallelAnimationGroup* self) { + delete self; } diff --git a/qt6/gen_qparallelanimationgroup.go b/qt6/gen_qparallelanimationgroup.go index 07d66f38..d96499e4 100644 --- a/qt6/gen_qparallelanimationgroup.go +++ b/qt6/gen_qparallelanimationgroup.go @@ -247,7 +247,7 @@ func miqt_exec_callback_QParallelAnimationGroup_UpdateDirection(self *C.QParalle // Delete this object from C++ memory. func (this *QParallelAnimationGroup) Delete() { - C.QParallelAnimationGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QParallelAnimationGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qparallelanimationgroup.h b/qt6/gen_qparallelanimationgroup.h index a26c0c63..6b8b688e 100644 --- a/qt6/gen_qparallelanimationgroup.h +++ b/qt6/gen_qparallelanimationgroup.h @@ -53,7 +53,7 @@ void QParallelAnimationGroup_override_virtual_UpdateState(void* self, intptr_t s void QParallelAnimationGroup_virtualbase_UpdateState(void* self, int newState, int oldState); void QParallelAnimationGroup_override_virtual_UpdateDirection(void* self, intptr_t slot); void QParallelAnimationGroup_virtualbase_UpdateDirection(void* self, int direction); -void QParallelAnimationGroup_Delete(QParallelAnimationGroup* self, bool isSubclass); +void QParallelAnimationGroup_Delete(QParallelAnimationGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpauseanimation.cpp b/qt6/gen_qpauseanimation.cpp index 88b9430a..ee8f0158 100644 --- a/qt6/gen_qpauseanimation.cpp +++ b/qt6/gen_qpauseanimation.cpp @@ -22,7 +22,7 @@ void miqt_exec_callback_QPauseAnimation_UpdateDirection(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQPauseAnimation : public virtual QPauseAnimation { +class MiqtVirtualQPauseAnimation final : public QPauseAnimation { public: MiqtVirtualQPauseAnimation(): QPauseAnimation() {}; @@ -30,7 +30,7 @@ public: MiqtVirtualQPauseAnimation(QObject* parent): QPauseAnimation(parent) {}; MiqtVirtualQPauseAnimation(int msecs, QObject* parent): QPauseAnimation(msecs, parent) {}; - virtual ~MiqtVirtualQPauseAnimation() = default; + virtual ~MiqtVirtualQPauseAnimation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Duration = 0; @@ -264,11 +264,7 @@ void QPauseAnimation_virtualbase_UpdateDirection(void* self, int direction) { ( (MiqtVirtualQPauseAnimation*)(self) )->virtualbase_UpdateDirection(direction); } -void QPauseAnimation_Delete(QPauseAnimation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPauseAnimation_Delete(QPauseAnimation* self) { + delete self; } diff --git a/qt6/gen_qpauseanimation.go b/qt6/gen_qpauseanimation.go index 3272831e..b473399a 100644 --- a/qt6/gen_qpauseanimation.go +++ b/qt6/gen_qpauseanimation.go @@ -267,7 +267,7 @@ func miqt_exec_callback_QPauseAnimation_UpdateDirection(self *C.QPauseAnimation, // Delete this object from C++ memory. func (this *QPauseAnimation) Delete() { - C.QPauseAnimation_Delete(this.h, C.bool(this.isSubclass)) + C.QPauseAnimation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpauseanimation.h b/qt6/gen_qpauseanimation.h index af2cf1ff..48e33c41 100644 --- a/qt6/gen_qpauseanimation.h +++ b/qt6/gen_qpauseanimation.h @@ -52,7 +52,7 @@ void QPauseAnimation_override_virtual_UpdateState(void* self, intptr_t slot); void QPauseAnimation_virtualbase_UpdateState(void* self, int newState, int oldState); void QPauseAnimation_override_virtual_UpdateDirection(void* self, intptr_t slot); void QPauseAnimation_virtualbase_UpdateDirection(void* self, int direction); -void QPauseAnimation_Delete(QPauseAnimation* self, bool isSubclass); +void QPauseAnimation_Delete(QPauseAnimation* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpdfwriter.cpp b/qt6/gen_qpdfwriter.cpp index 3dcbbc21..0e504fd5 100644 --- a/qt6/gen_qpdfwriter.cpp +++ b/qt6/gen_qpdfwriter.cpp @@ -43,13 +43,13 @@ void miqt_exec_callback_QPdfWriter_SetPageRanges(void*, intptr_t, QPageRanges*); } /* extern C */ #endif -class MiqtVirtualQPdfWriter : public virtual QPdfWriter { +class MiqtVirtualQPdfWriter final : public QPdfWriter { public: MiqtVirtualQPdfWriter(const QString& filename): QPdfWriter(filename) {}; MiqtVirtualQPdfWriter(QIODevice* device): QPdfWriter(device) {}; - virtual ~MiqtVirtualQPdfWriter() = default; + virtual ~MiqtVirtualQPdfWriter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__NewPage = 0; @@ -674,11 +674,7 @@ void QPdfWriter_virtualbase_SetPageRanges(void* self, QPageRanges* ranges) { ( (MiqtVirtualQPdfWriter*)(self) )->virtualbase_SetPageRanges(ranges); } -void QPdfWriter_Delete(QPdfWriter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPdfWriter_Delete(QPdfWriter* self) { + delete self; } diff --git a/qt6/gen_qpdfwriter.go b/qt6/gen_qpdfwriter.go index c6af58f2..f14da835 100644 --- a/qt6/gen_qpdfwriter.go +++ b/qt6/gen_qpdfwriter.go @@ -613,7 +613,7 @@ func miqt_exec_callback_QPdfWriter_SetPageRanges(self *C.QPdfWriter, cb C.intptr // Delete this object from C++ memory. func (this *QPdfWriter) Delete() { - C.QPdfWriter_Delete(this.h, C.bool(this.isSubclass)) + C.QPdfWriter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpdfwriter.h b/qt6/gen_qpdfwriter.h index 8efb4ed7..6070ced5 100644 --- a/qt6/gen_qpdfwriter.h +++ b/qt6/gen_qpdfwriter.h @@ -101,7 +101,7 @@ void QPdfWriter_override_virtual_SetPageMargins(void* self, intptr_t slot); bool QPdfWriter_virtualbase_SetPageMargins(void* self, QMarginsF* margins, int units); void QPdfWriter_override_virtual_SetPageRanges(void* self, intptr_t slot); void QPdfWriter_virtualbase_SetPageRanges(void* self, QPageRanges* ranges); -void QPdfWriter_Delete(QPdfWriter* self, bool isSubclass); +void QPdfWriter_Delete(QPdfWriter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpen.cpp b/qt6/gen_qpen.cpp index bac55824..d0f82785 100644 --- a/qt6/gen_qpen.cpp +++ b/qt6/gen_qpen.cpp @@ -183,11 +183,7 @@ bool QPen_IsDetached(QPen* self) { return self->isDetached(); } -void QPen_Delete(QPen* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPen_Delete(QPen* self) { + delete self; } diff --git a/qt6/gen_qpen.go b/qt6/gen_qpen.go index b8db3bd5..add5c5b7 100644 --- a/qt6/gen_qpen.go +++ b/qt6/gen_qpen.go @@ -246,7 +246,7 @@ func (this *QPen) IsDetached() bool { // Delete this object from C++ memory. func (this *QPen) Delete() { - C.QPen_Delete(this.h, C.bool(this.isSubclass)) + C.QPen_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpen.h b/qt6/gen_qpen.h index d7cbb086..46815ee6 100644 --- a/qt6/gen_qpen.h +++ b/qt6/gen_qpen.h @@ -63,7 +63,7 @@ bool QPen_OperatorEqual(const QPen* self, QPen* p); bool QPen_OperatorNotEqual(const QPen* self, QPen* p); QVariant* QPen_ToQVariant(const QPen* self); bool QPen_IsDetached(QPen* self); -void QPen_Delete(QPen* self, bool isSubclass); +void QPen_Delete(QPen* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpicture.cpp b/qt6/gen_qpicture.cpp index 8f0d6bfb..cf9c336f 100644 --- a/qt6/gen_qpicture.cpp +++ b/qt6/gen_qpicture.cpp @@ -26,14 +26,14 @@ QPainter* miqt_exec_callback_QPicture_SharedPainter(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQPicture : public virtual QPicture { +class MiqtVirtualQPicture final : public QPicture { public: MiqtVirtualQPicture(): QPicture() {}; MiqtVirtualQPicture(const QPicture& param1): QPicture(param1) {}; MiqtVirtualQPicture(int formatVersion): QPicture(formatVersion) {}; - virtual ~MiqtVirtualQPicture() = default; + virtual ~MiqtVirtualQPicture() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -343,11 +343,7 @@ QPainter* QPicture_virtualbase_SharedPainter(const void* self) { return ( (const MiqtVirtualQPicture*)(self) )->virtualbase_SharedPainter(); } -void QPicture_Delete(QPicture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPicture_Delete(QPicture* self) { + delete self; } diff --git a/qt6/gen_qpicture.go b/qt6/gen_qpicture.go index 6988f8e5..82c60f67 100644 --- a/qt6/gen_qpicture.go +++ b/qt6/gen_qpicture.go @@ -346,7 +346,7 @@ func miqt_exec_callback_QPicture_SharedPainter(self *C.QPicture, cb C.intptr_t) // Delete this object from C++ memory. func (this *QPicture) Delete() { - C.QPicture_Delete(this.h, C.bool(this.isSubclass)) + C.QPicture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpicture.h b/qt6/gen_qpicture.h index 83415c32..a97355e4 100644 --- a/qt6/gen_qpicture.h +++ b/qt6/gen_qpicture.h @@ -68,7 +68,7 @@ void QPicture_override_virtual_Redirected(void* self, intptr_t slot); QPaintDevice* QPicture_virtualbase_Redirected(const void* self, QPoint* offset); void QPicture_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QPicture_virtualbase_SharedPainter(const void* self); -void QPicture_Delete(QPicture* self, bool isSubclass); +void QPicture_Delete(QPicture* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpixelformat.cpp b/qt6/gen_qpixelformat.cpp index 388e521a..40c5e83b 100644 --- a/qt6/gen_qpixelformat.cpp +++ b/qt6/gen_qpixelformat.cpp @@ -140,11 +140,7 @@ unsigned char QPixelFormat_SubEnum(const QPixelFormat* self) { return static_cast(_ret); } -void QPixelFormat_Delete(QPixelFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPixelFormat_Delete(QPixelFormat* self) { + delete self; } diff --git a/qt6/gen_qpixelformat.go b/qt6/gen_qpixelformat.go index e3cdc971..9c9aee28 100644 --- a/qt6/gen_qpixelformat.go +++ b/qt6/gen_qpixelformat.go @@ -249,7 +249,7 @@ func (this *QPixelFormat) SubEnum() byte { // Delete this object from C++ memory. func (this *QPixelFormat) Delete() { - C.QPixelFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QPixelFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpixelformat.h b/qt6/gen_qpixelformat.h index 24542458..aab6aa34 100644 --- a/qt6/gen_qpixelformat.h +++ b/qt6/gen_qpixelformat.h @@ -47,7 +47,7 @@ int QPixelFormat_TypeInterpretation(const QPixelFormat* self); int QPixelFormat_ByteOrder(const QPixelFormat* self); int QPixelFormat_YuvLayout(const QPixelFormat* self); unsigned char QPixelFormat_SubEnum(const QPixelFormat* self); -void QPixelFormat_Delete(QPixelFormat* self, bool isSubclass); +void QPixelFormat_Delete(QPixelFormat* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpixmap.cpp b/qt6/gen_qpixmap.cpp index 33eb3828..f213cee8 100644 --- a/qt6/gen_qpixmap.cpp +++ b/qt6/gen_qpixmap.cpp @@ -35,7 +35,7 @@ QPainter* miqt_exec_callback_QPixmap_SharedPainter(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQPixmap : public virtual QPixmap { +class MiqtVirtualQPixmap final : public QPixmap { public: MiqtVirtualQPixmap(): QPixmap() {}; @@ -46,7 +46,7 @@ public: MiqtVirtualQPixmap(const QString& fileName, const char* format): QPixmap(fileName, format) {}; MiqtVirtualQPixmap(const QString& fileName, const char* format, Qt::ImageConversionFlags flags): QPixmap(fileName, format, flags) {}; - virtual ~MiqtVirtualQPixmap() = default; + virtual ~MiqtVirtualQPixmap() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -569,11 +569,7 @@ QPainter* QPixmap_virtualbase_SharedPainter(const void* self) { return ( (const MiqtVirtualQPixmap*)(self) )->virtualbase_SharedPainter(); } -void QPixmap_Delete(QPixmap* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPixmap_Delete(QPixmap* self) { + delete self; } diff --git a/qt6/gen_qpixmap.go b/qt6/gen_qpixmap.go index 465e429a..e4a0b4f2 100644 --- a/qt6/gen_qpixmap.go +++ b/qt6/gen_qpixmap.go @@ -683,7 +683,7 @@ func miqt_exec_callback_QPixmap_SharedPainter(self *C.QPixmap, cb C.intptr_t) *C // Delete this object from C++ memory. func (this *QPixmap) Delete() { - C.QPixmap_Delete(this.h, C.bool(this.isSubclass)) + C.QPixmap_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpixmap.h b/qt6/gen_qpixmap.h index e804ade3..5d49699e 100644 --- a/qt6/gen_qpixmap.h +++ b/qt6/gen_qpixmap.h @@ -143,7 +143,7 @@ void QPixmap_override_virtual_Redirected(void* self, intptr_t slot); QPaintDevice* QPixmap_virtualbase_Redirected(const void* self, QPoint* offset); void QPixmap_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QPixmap_virtualbase_SharedPainter(const void* self); -void QPixmap_Delete(QPixmap* self, bool isSubclass); +void QPixmap_Delete(QPixmap* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpixmapcache.cpp b/qt6/gen_qpixmapcache.cpp index 61fa67e6..d3d78dab 100644 --- a/qt6/gen_qpixmapcache.cpp +++ b/qt6/gen_qpixmapcache.cpp @@ -58,12 +58,8 @@ void QPixmapCache_Clear() { QPixmapCache::clear(); } -void QPixmapCache_Delete(QPixmapCache* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPixmapCache_Delete(QPixmapCache* self) { + delete self; } QPixmapCache__Key* QPixmapCache__Key_new() { @@ -94,11 +90,7 @@ bool QPixmapCache__Key_IsValid(const QPixmapCache__Key* self) { return self->isValid(); } -void QPixmapCache__Key_Delete(QPixmapCache__Key* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPixmapCache__Key_Delete(QPixmapCache__Key* self) { + delete self; } diff --git a/qt6/gen_qpixmapcache.go b/qt6/gen_qpixmapcache.go index 90968f08..d1ace0f5 100644 --- a/qt6/gen_qpixmapcache.go +++ b/qt6/gen_qpixmapcache.go @@ -102,7 +102,7 @@ func QPixmapCache_Clear() { // Delete this object from C++ memory. func (this *QPixmapCache) Delete() { - C.QPixmapCache_Delete(this.h, C.bool(this.isSubclass)) + C.QPixmapCache_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -185,7 +185,7 @@ func (this *QPixmapCache__Key) IsValid() bool { // Delete this object from C++ memory. func (this *QPixmapCache__Key) Delete() { - C.QPixmapCache__Key_Delete(this.h, C.bool(this.isSubclass)) + C.QPixmapCache__Key_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpixmapcache.h b/qt6/gen_qpixmapcache.h index 8df8d494..41afbe37 100644 --- a/qt6/gen_qpixmapcache.h +++ b/qt6/gen_qpixmapcache.h @@ -38,7 +38,7 @@ bool QPixmapCache_Replace(QPixmapCache__Key* key, QPixmap* pixmap); void QPixmapCache_Remove(struct miqt_string key); void QPixmapCache_RemoveWithKey(QPixmapCache__Key* key); void QPixmapCache_Clear(); -void QPixmapCache_Delete(QPixmapCache* self, bool isSubclass); +void QPixmapCache_Delete(QPixmapCache* self); QPixmapCache__Key* QPixmapCache__Key_new(); QPixmapCache__Key* QPixmapCache__Key_new2(QPixmapCache__Key* other); @@ -47,7 +47,7 @@ bool QPixmapCache__Key_OperatorNotEqual(const QPixmapCache__Key* self, QPixmapCa void QPixmapCache__Key_OperatorAssign(QPixmapCache__Key* self, QPixmapCache__Key* other); void QPixmapCache__Key_Swap(QPixmapCache__Key* self, QPixmapCache__Key* other); bool QPixmapCache__Key_IsValid(const QPixmapCache__Key* self); -void QPixmapCache__Key_Delete(QPixmapCache__Key* self, bool isSubclass); +void QPixmapCache__Key_Delete(QPixmapCache__Key* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qplaintextedit.cpp b/qt6/gen_qplaintextedit.cpp index 3b172464..9566457a 100644 --- a/qt6/gen_qplaintextedit.cpp +++ b/qt6/gen_qplaintextedit.cpp @@ -113,7 +113,7 @@ void miqt_exec_callback_QPlainTextDocumentLayout_DrawInlineObject(void*, intptr_ } /* extern C */ #endif -class MiqtVirtualQPlainTextEdit : public virtual QPlainTextEdit { +class MiqtVirtualQPlainTextEdit final : public QPlainTextEdit { public: MiqtVirtualQPlainTextEdit(QWidget* parent): QPlainTextEdit(parent) {}; @@ -121,7 +121,7 @@ public: MiqtVirtualQPlainTextEdit(const QString& text): QPlainTextEdit(text) {}; MiqtVirtualQPlainTextEdit(const QString& text, QWidget* parent): QPlainTextEdit(text, parent) {}; - virtual ~MiqtVirtualQPlainTextEdit() = default; + virtual ~MiqtVirtualQPlainTextEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__LoadResource = 0; @@ -1747,20 +1747,16 @@ QSize* QPlainTextEdit_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQPlainTextEdit*)(self) )->virtualbase_ViewportSizeHint(); } -void QPlainTextEdit_Delete(QPlainTextEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPlainTextEdit_Delete(QPlainTextEdit* self) { + delete self; } -class MiqtVirtualQPlainTextDocumentLayout : public virtual QPlainTextDocumentLayout { +class MiqtVirtualQPlainTextDocumentLayout final : public QPlainTextDocumentLayout { public: MiqtVirtualQPlainTextDocumentLayout(QTextDocument* document): QPlainTextDocumentLayout(document) {}; - virtual ~MiqtVirtualQPlainTextDocumentLayout() = default; + virtual ~MiqtVirtualQPlainTextDocumentLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Draw = 0; @@ -2193,11 +2189,7 @@ void QPlainTextDocumentLayout_virtualbase_DrawInlineObject(void* self, QPainter* ( (MiqtVirtualQPlainTextDocumentLayout*)(self) )->virtualbase_DrawInlineObject(painter, rect, object, posInDocument, format); } -void QPlainTextDocumentLayout_Delete(QPlainTextDocumentLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPlainTextDocumentLayout_Delete(QPlainTextDocumentLayout* self) { + delete self; } diff --git a/qt6/gen_qplaintextedit.go b/qt6/gen_qplaintextedit.go index 4567ca0f..dec88db1 100644 --- a/qt6/gen_qplaintextedit.go +++ b/qt6/gen_qplaintextedit.go @@ -1616,7 +1616,7 @@ func miqt_exec_callback_QPlainTextEdit_ViewportSizeHint(self *C.QPlainTextEdit, // Delete this object from C++ memory. func (this *QPlainTextEdit) Delete() { - C.QPlainTextEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QPlainTextEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2062,7 +2062,7 @@ func miqt_exec_callback_QPlainTextDocumentLayout_DrawInlineObject(self *C.QPlain // Delete this object from C++ memory. func (this *QPlainTextDocumentLayout) Delete() { - C.QPlainTextDocumentLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QPlainTextDocumentLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qplaintextedit.h b/qt6/gen_qplaintextedit.h index 2d46bb3e..f1f86755 100644 --- a/qt6/gen_qplaintextedit.h +++ b/qt6/gen_qplaintextedit.h @@ -316,7 +316,7 @@ void QPlainTextEdit_override_virtual_ViewportEvent(void* self, intptr_t slot); bool QPlainTextEdit_virtualbase_ViewportEvent(void* self, QEvent* param1); void QPlainTextEdit_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QPlainTextEdit_virtualbase_ViewportSizeHint(const void* self); -void QPlainTextEdit_Delete(QPlainTextEdit* self, bool isSubclass); +void QPlainTextEdit_Delete(QPlainTextEdit* self); QPlainTextDocumentLayout* QPlainTextDocumentLayout_new(QTextDocument* document); void QPlainTextDocumentLayout_virtbase(QPlainTextDocumentLayout* src, QAbstractTextDocumentLayout** outptr_QAbstractTextDocumentLayout); @@ -356,7 +356,7 @@ void QPlainTextDocumentLayout_override_virtual_PositionInlineObject(void* self, void QPlainTextDocumentLayout_virtualbase_PositionInlineObject(void* self, QTextInlineObject* item, int posInDocument, QTextFormat* format); void QPlainTextDocumentLayout_override_virtual_DrawInlineObject(void* self, intptr_t slot); void QPlainTextDocumentLayout_virtualbase_DrawInlineObject(void* self, QPainter* painter, QRectF* rect, QTextInlineObject* object, int posInDocument, QTextFormat* format); -void QPlainTextDocumentLayout_Delete(QPlainTextDocumentLayout* self, bool isSubclass); +void QPlainTextDocumentLayout_Delete(QPlainTextDocumentLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qplugin.cpp b/qt6/gen_qplugin.cpp index 65e0ac59..9657a707 100644 --- a/qt6/gen_qplugin.cpp +++ b/qt6/gen_qplugin.cpp @@ -20,48 +20,32 @@ unsigned char QPluginMetaData_ArchRequirements() { return static_cast(_ret); } -void QPluginMetaData_Delete(QPluginMetaData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPluginMetaData_Delete(QPluginMetaData* self) { + delete self; } QJsonObject* QStaticPlugin_MetaData(const QStaticPlugin* self) { return new QJsonObject(self->metaData()); } -void QStaticPlugin_Delete(QStaticPlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStaticPlugin_Delete(QStaticPlugin* self) { + delete self; } QPluginMetaData__Header* QPluginMetaData__Header_new(QPluginMetaData__Header* param1) { return new QPluginMetaData::Header(*param1); } -void QPluginMetaData__Header_Delete(QPluginMetaData__Header* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPluginMetaData__Header_Delete(QPluginMetaData__Header* self) { + delete self; } QPluginMetaData__MagicHeader* QPluginMetaData__MagicHeader_new() { return new QPluginMetaData::MagicHeader(); } -void QPluginMetaData__MagicHeader_Delete(QPluginMetaData__MagicHeader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPluginMetaData__MagicHeader_Delete(QPluginMetaData__MagicHeader* self) { + delete self; } QPluginMetaData__ElfNoteHeader* QPluginMetaData__ElfNoteHeader_new(unsigned int payloadSize) { @@ -72,11 +56,7 @@ QPluginMetaData__ElfNoteHeader* QPluginMetaData__ElfNoteHeader_new2(QPluginMetaD return new QPluginMetaData::ElfNoteHeader(*param1); } -void QPluginMetaData__ElfNoteHeader_Delete(QPluginMetaData__ElfNoteHeader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPluginMetaData__ElfNoteHeader_Delete(QPluginMetaData__ElfNoteHeader* self) { + delete self; } diff --git a/qt6/gen_qplugin.go b/qt6/gen_qplugin.go index 3f067bb2..3dfe8931 100644 --- a/qt6/gen_qplugin.go +++ b/qt6/gen_qplugin.go @@ -52,7 +52,7 @@ func QPluginMetaData_ArchRequirements() byte { // Delete this object from C++ memory. func (this *QPluginMetaData) Delete() { - C.QPluginMetaData_Delete(this.h, C.bool(this.isSubclass)) + C.QPluginMetaData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -105,7 +105,7 @@ func (this *QStaticPlugin) MetaData() *QJsonObject { // Delete this object from C++ memory. func (this *QStaticPlugin) Delete() { - C.QStaticPlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QStaticPlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -160,7 +160,7 @@ func NewQPluginMetaData__Header(param1 *QPluginMetaData__Header) *QPluginMetaDat // Delete this object from C++ memory. func (this *QPluginMetaData__Header) Delete() { - C.QPluginMetaData__Header_Delete(this.h, C.bool(this.isSubclass)) + C.QPluginMetaData__Header_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -215,7 +215,7 @@ func NewQPluginMetaData__MagicHeader() *QPluginMetaData__MagicHeader { // Delete this object from C++ memory. func (this *QPluginMetaData__MagicHeader) Delete() { - C.QPluginMetaData__MagicHeader_Delete(this.h, C.bool(this.isSubclass)) + C.QPluginMetaData__MagicHeader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -278,7 +278,7 @@ func NewQPluginMetaData__ElfNoteHeader2(param1 *QPluginMetaData__ElfNoteHeader) // Delete this object from C++ memory. func (this *QPluginMetaData__ElfNoteHeader) Delete() { - C.QPluginMetaData__ElfNoteHeader_Delete(this.h, C.bool(this.isSubclass)) + C.QPluginMetaData__ElfNoteHeader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qplugin.h b/qt6/gen_qplugin.h index 707f27c8..7691f443 100644 --- a/qt6/gen_qplugin.h +++ b/qt6/gen_qplugin.h @@ -43,20 +43,20 @@ typedef struct QStaticPlugin QStaticPlugin; #endif unsigned char QPluginMetaData_ArchRequirements(); -void QPluginMetaData_Delete(QPluginMetaData* self, bool isSubclass); +void QPluginMetaData_Delete(QPluginMetaData* self); QJsonObject* QStaticPlugin_MetaData(const QStaticPlugin* self); -void QStaticPlugin_Delete(QStaticPlugin* self, bool isSubclass); +void QStaticPlugin_Delete(QStaticPlugin* self); QPluginMetaData__Header* QPluginMetaData__Header_new(QPluginMetaData__Header* param1); -void QPluginMetaData__Header_Delete(QPluginMetaData__Header* self, bool isSubclass); +void QPluginMetaData__Header_Delete(QPluginMetaData__Header* self); QPluginMetaData__MagicHeader* QPluginMetaData__MagicHeader_new(); -void QPluginMetaData__MagicHeader_Delete(QPluginMetaData__MagicHeader* self, bool isSubclass); +void QPluginMetaData__MagicHeader_Delete(QPluginMetaData__MagicHeader* self); QPluginMetaData__ElfNoteHeader* QPluginMetaData__ElfNoteHeader_new(unsigned int payloadSize); QPluginMetaData__ElfNoteHeader* QPluginMetaData__ElfNoteHeader_new2(QPluginMetaData__ElfNoteHeader* param1); -void QPluginMetaData__ElfNoteHeader_Delete(QPluginMetaData__ElfNoteHeader* self, bool isSubclass); +void QPluginMetaData__ElfNoteHeader_Delete(QPluginMetaData__ElfNoteHeader* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpluginloader.cpp b/qt6/gen_qpluginloader.cpp index 1f04ae5a..88f5ee60 100644 --- a/qt6/gen_qpluginloader.cpp +++ b/qt6/gen_qpluginloader.cpp @@ -29,7 +29,7 @@ void miqt_exec_callback_QPluginLoader_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQPluginLoader : public virtual QPluginLoader { +class MiqtVirtualQPluginLoader final : public QPluginLoader { public: MiqtVirtualQPluginLoader(): QPluginLoader() {}; @@ -37,7 +37,7 @@ public: MiqtVirtualQPluginLoader(QObject* parent): QPluginLoader(parent) {}; MiqtVirtualQPluginLoader(const QString& fileName, QObject* parent): QPluginLoader(fileName, parent) {}; - virtual ~MiqtVirtualQPluginLoader() = default; + virtual ~MiqtVirtualQPluginLoader() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -413,11 +413,7 @@ void QPluginLoader_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQPluginLoader*)(self) )->virtualbase_DisconnectNotify(signal); } -void QPluginLoader_Delete(QPluginLoader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPluginLoader_Delete(QPluginLoader* self) { + delete self; } diff --git a/qt6/gen_qpluginloader.go b/qt6/gen_qpluginloader.go index e399348a..becaa9e3 100644 --- a/qt6/gen_qpluginloader.go +++ b/qt6/gen_qpluginloader.go @@ -396,7 +396,7 @@ func miqt_exec_callback_QPluginLoader_DisconnectNotify(self *C.QPluginLoader, cb // Delete this object from C++ memory. func (this *QPluginLoader) Delete() { - C.QPluginLoader_Delete(this.h, C.bool(this.isSubclass)) + C.QPluginLoader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpluginloader.h b/qt6/gen_qpluginloader.h index 87f8b978..8112dcaa 100644 --- a/qt6/gen_qpluginloader.h +++ b/qt6/gen_qpluginloader.h @@ -72,7 +72,7 @@ void QPluginLoader_override_virtual_ConnectNotify(void* self, intptr_t slot); void QPluginLoader_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QPluginLoader_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QPluginLoader_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QPluginLoader_Delete(QPluginLoader* self, bool isSubclass); +void QPluginLoader_Delete(QPluginLoader* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpoint.cpp b/qt6/gen_qpoint.cpp index 37ead90a..f2824d23 100644 --- a/qt6/gen_qpoint.cpp +++ b/qt6/gen_qpoint.cpp @@ -95,12 +95,8 @@ QPointF* QPoint_ToPointF(const QPoint* self) { return new QPointF(self->toPointF()); } -void QPoint_Delete(QPoint* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPoint_Delete(QPoint* self) { + delete self; } QPointF* QPointF_new() { @@ -183,11 +179,7 @@ QPoint* QPointF_ToPoint(const QPointF* self) { return new QPoint(self->toPoint()); } -void QPointF_Delete(QPointF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPointF_Delete(QPointF* self) { + delete self; } diff --git a/qt6/gen_qpoint.go b/qt6/gen_qpoint.go index d17606d3..68e092f1 100644 --- a/qt6/gen_qpoint.go +++ b/qt6/gen_qpoint.go @@ -136,7 +136,7 @@ func (this *QPoint) ToPointF() *QPointF { // Delete this object from C++ memory. func (this *QPoint) Delete() { - C.QPoint_Delete(this.h, C.bool(this.isSubclass)) + C.QPoint_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -271,7 +271,7 @@ func (this *QPointF) ToPoint() *QPoint { // Delete this object from C++ memory. func (this *QPointF) Delete() { - C.QPointF_Delete(this.h, C.bool(this.isSubclass)) + C.QPointF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpoint.h b/qt6/gen_qpoint.h index 97ed0c8a..63544d79 100644 --- a/qt6/gen_qpoint.h +++ b/qt6/gen_qpoint.h @@ -40,7 +40,7 @@ QPoint* QPoint_OperatorMultiplyAssign2(QPoint* self, int factor); QPoint* QPoint_OperatorDivideAssign(QPoint* self, double divisor); int QPoint_DotProduct(QPoint* p1, QPoint* p2); QPointF* QPoint_ToPointF(const QPoint* self); -void QPoint_Delete(QPoint* self, bool isSubclass); +void QPoint_Delete(QPoint* self); QPointF* QPointF_new(); QPointF* QPointF_new2(QPoint* p); @@ -59,7 +59,7 @@ QPointF* QPointF_OperatorMultiplyAssign(QPointF* self, double c); QPointF* QPointF_OperatorDivideAssign(QPointF* self, double c); double QPointF_DotProduct(QPointF* p1, QPointF* p2); QPoint* QPointF_ToPoint(const QPointF* self); -void QPointF_Delete(QPointF* self, bool isSubclass); +void QPointF_Delete(QPointF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpointingdevice.cpp b/qt6/gen_qpointingdevice.cpp index f6479dbd..ffa46ad7 100644 --- a/qt6/gen_qpointingdevice.cpp +++ b/qt6/gen_qpointingdevice.cpp @@ -41,12 +41,8 @@ long long QPointingDeviceUniqueId_NumericId(const QPointingDeviceUniqueId* self) return static_cast(_ret); } -void QPointingDeviceUniqueId_Delete(QPointingDeviceUniqueId* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPointingDeviceUniqueId_Delete(QPointingDeviceUniqueId* self) { + delete self; } QPointingDevice* QPointingDevice_new() { @@ -184,11 +180,7 @@ QPointingDevice* QPointingDevice_PrimaryPointingDevice1(struct miqt_string seatN return (QPointingDevice*) QPointingDevice::primaryPointingDevice(seatName_QString); } -void QPointingDevice_Delete(QPointingDevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPointingDevice_Delete(QPointingDevice* self) { + delete self; } diff --git a/qt6/gen_qpointingdevice.go b/qt6/gen_qpointingdevice.go index 5488c17c..2b3fd718 100644 --- a/qt6/gen_qpointingdevice.go +++ b/qt6/gen_qpointingdevice.go @@ -103,7 +103,7 @@ func (this *QPointingDeviceUniqueId) NumericId() int64 { // Delete this object from C++ memory. func (this *QPointingDeviceUniqueId) Delete() { - C.QPointingDeviceUniqueId_Delete(this.h, C.bool(this.isSubclass)) + C.QPointingDeviceUniqueId_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -343,7 +343,7 @@ func QPointingDevice_PrimaryPointingDevice1(seatName string) *QPointingDevice { // Delete this object from C++ memory. func (this *QPointingDevice) Delete() { - C.QPointingDevice_Delete(this.h, C.bool(this.isSubclass)) + C.QPointingDevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpointingdevice.h b/qt6/gen_qpointingdevice.h index 9da1eb46..de4a20c7 100644 --- a/qt6/gen_qpointingdevice.h +++ b/qt6/gen_qpointingdevice.h @@ -37,7 +37,7 @@ QPointingDeviceUniqueId* QPointingDeviceUniqueId_new2(QPointingDeviceUniqueId* p QPointingDeviceUniqueId* QPointingDeviceUniqueId_FromNumericId(long long id); bool QPointingDeviceUniqueId_IsValid(const QPointingDeviceUniqueId* self); long long QPointingDeviceUniqueId_NumericId(const QPointingDeviceUniqueId* self); -void QPointingDeviceUniqueId_Delete(QPointingDeviceUniqueId* self, bool isSubclass); +void QPointingDeviceUniqueId_Delete(QPointingDeviceUniqueId* self); QPointingDevice* QPointingDevice_new(); QPointingDevice* QPointingDevice_new2(struct miqt_string name, long long systemId, int devType, int pType, int caps, int maxPoints, int buttonCount); @@ -63,7 +63,7 @@ void QPointingDevice_connect_GrabChanged(QPointingDevice* self, intptr_t slot); struct miqt_string QPointingDevice_Tr2(const char* s, const char* c); struct miqt_string QPointingDevice_Tr3(const char* s, const char* c, int n); QPointingDevice* QPointingDevice_PrimaryPointingDevice1(struct miqt_string seatName); -void QPointingDevice_Delete(QPointingDevice* self, bool isSubclass); +void QPointingDevice_Delete(QPointingDevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qprocess.cpp b/qt6/gen_qprocess.cpp index 18f80800..a414f793 100644 --- a/qt6/gen_qprocess.cpp +++ b/qt6/gen_qprocess.cpp @@ -169,21 +169,17 @@ struct miqt_string QProcessEnvironment_Value2(const QProcessEnvironment* self, s return _ms; } -void QProcessEnvironment_Delete(QProcessEnvironment* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QProcessEnvironment_Delete(QProcessEnvironment* self) { + delete self; } -class MiqtVirtualQProcess : public virtual QProcess { +class MiqtVirtualQProcess final : public QProcess { public: MiqtVirtualQProcess(): QProcess() {}; MiqtVirtualQProcess(QObject* parent): QProcess(parent) {}; - virtual ~MiqtVirtualQProcess() = default; + virtual ~MiqtVirtualQProcess() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Open = 0; @@ -1215,11 +1211,7 @@ long long QProcess_virtualbase_SkipData(void* self, long long maxSize) { return ( (MiqtVirtualQProcess*)(self) )->virtualbase_SkipData(maxSize); } -void QProcess_Delete(QProcess* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QProcess_Delete(QProcess* self) { + delete self; } diff --git a/qt6/gen_qprocess.go b/qt6/gen_qprocess.go index 1c4d8e3e..26ee4c70 100644 --- a/qt6/gen_qprocess.go +++ b/qt6/gen_qprocess.go @@ -247,7 +247,7 @@ func (this *QProcessEnvironment) Value2(name string, defaultValue string) string // Delete this object from C++ memory. func (this *QProcessEnvironment) Delete() { - C.QProcessEnvironment_Delete(this.h, C.bool(this.isSubclass)) + C.QProcessEnvironment_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1323,7 +1323,7 @@ func miqt_exec_callback_QProcess_SkipData(self *C.QProcess, cb C.intptr_t, maxSi // Delete this object from C++ memory. func (this *QProcess) Delete() { - C.QProcess_Delete(this.h, C.bool(this.isSubclass)) + C.QProcess_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qprocess.h b/qt6/gen_qprocess.h index 81622407..3ec68bef 100644 --- a/qt6/gen_qprocess.h +++ b/qt6/gen_qprocess.h @@ -49,7 +49,7 @@ struct miqt_array /* of struct miqt_string */ QProcessEnvironment_Keys(const QP void QProcessEnvironment_InsertWithQProcessEnvironment(QProcessEnvironment* self, QProcessEnvironment* e); QProcessEnvironment* QProcessEnvironment_SystemEnvironment(); struct miqt_string QProcessEnvironment_Value2(const QProcessEnvironment* self, struct miqt_string name, struct miqt_string defaultValue); -void QProcessEnvironment_Delete(QProcessEnvironment* self, bool isSubclass); +void QProcessEnvironment_Delete(QProcessEnvironment* self); QProcess* QProcess_new(); QProcess* QProcess_new2(QObject* parent); @@ -161,7 +161,7 @@ void QProcess_override_virtual_ReadLineData(void* self, intptr_t slot); long long QProcess_virtualbase_ReadLineData(void* self, char* data, long long maxlen); void QProcess_override_virtual_SkipData(void* self, intptr_t slot); long long QProcess_virtualbase_SkipData(void* self, long long maxSize); -void QProcess_Delete(QProcess* self, bool isSubclass); +void QProcess_Delete(QProcess* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qprogressbar.cpp b/qt6/gen_qprogressbar.cpp index dc8bd1ce..6e1ca34c 100644 --- a/qt6/gen_qprogressbar.cpp +++ b/qt6/gen_qprogressbar.cpp @@ -88,13 +88,13 @@ bool miqt_exec_callback_QProgressBar_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQProgressBar : public virtual QProgressBar { +class MiqtVirtualQProgressBar final : public QProgressBar { public: MiqtVirtualQProgressBar(QWidget* parent): QProgressBar(parent) {}; MiqtVirtualQProgressBar(): QProgressBar() {}; - virtual ~MiqtVirtualQProgressBar() = default; + virtual ~MiqtVirtualQProgressBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Text = 0; @@ -1650,11 +1650,7 @@ bool QProgressBar_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQProgressBar*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QProgressBar_Delete(QProgressBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QProgressBar_Delete(QProgressBar* self) { + delete self; } diff --git a/qt6/gen_qprogressbar.go b/qt6/gen_qprogressbar.go index b8511cd0..dc8218db 100644 --- a/qt6/gen_qprogressbar.go +++ b/qt6/gen_qprogressbar.go @@ -1393,7 +1393,7 @@ func miqt_exec_callback_QProgressBar_FocusNextPrevChild(self *C.QProgressBar, cb // Delete this object from C++ memory. func (this *QProgressBar) Delete() { - C.QProgressBar_Delete(this.h, C.bool(this.isSubclass)) + C.QProgressBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qprogressbar.h b/qt6/gen_qprogressbar.h index 078f8e05..e53018fb 100644 --- a/qt6/gen_qprogressbar.h +++ b/qt6/gen_qprogressbar.h @@ -203,7 +203,7 @@ void QProgressBar_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QProgressBar_virtualbase_InputMethodQuery(const void* self, int param1); void QProgressBar_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QProgressBar_virtualbase_FocusNextPrevChild(void* self, bool next); -void QProgressBar_Delete(QProgressBar* self, bool isSubclass); +void QProgressBar_Delete(QProgressBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qprogressdialog.cpp b/qt6/gen_qprogressdialog.cpp index 0f1fe8f3..5cd4936c 100644 --- a/qt6/gen_qprogressdialog.cpp +++ b/qt6/gen_qprogressdialog.cpp @@ -44,7 +44,7 @@ bool miqt_exec_callback_QProgressDialog_EventFilter(void*, intptr_t, QObject*, Q } /* extern C */ #endif -class MiqtVirtualQProgressDialog : public virtual QProgressDialog { +class MiqtVirtualQProgressDialog final : public QProgressDialog { public: MiqtVirtualQProgressDialog(QWidget* parent): QProgressDialog(parent) {}; @@ -54,7 +54,7 @@ public: MiqtVirtualQProgressDialog(const QString& labelText, const QString& cancelButtonText, int minimum, int maximum, QWidget* parent): QProgressDialog(labelText, cancelButtonText, minimum, maximum, parent) {}; MiqtVirtualQProgressDialog(const QString& labelText, const QString& cancelButtonText, int minimum, int maximum, QWidget* parent, Qt::WindowFlags flags): QProgressDialog(labelText, cancelButtonText, minimum, maximum, parent, flags) {}; - virtual ~MiqtVirtualQProgressDialog() = default; + virtual ~MiqtVirtualQProgressDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -715,11 +715,7 @@ bool QProgressDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent return ( (MiqtVirtualQProgressDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QProgressDialog_Delete(QProgressDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QProgressDialog_Delete(QProgressDialog* self) { + delete self; } diff --git a/qt6/gen_qprogressdialog.go b/qt6/gen_qprogressdialog.go index 3b7e16f9..fa6bb340 100644 --- a/qt6/gen_qprogressdialog.go +++ b/qt6/gen_qprogressdialog.go @@ -674,7 +674,7 @@ func miqt_exec_callback_QProgressDialog_EventFilter(self *C.QProgressDialog, cb // Delete this object from C++ memory. func (this *QProgressDialog) Delete() { - C.QProgressDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QProgressDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qprogressdialog.h b/qt6/gen_qprogressdialog.h index 03b5f56b..7821b3e2 100644 --- a/qt6/gen_qprogressdialog.h +++ b/qt6/gen_qprogressdialog.h @@ -121,7 +121,7 @@ void QProgressDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slot void QProgressDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QProgressDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QProgressDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QProgressDialog_Delete(QProgressDialog* self, bool isSubclass); +void QProgressDialog_Delete(QProgressDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qproperty.cpp b/qt6/gen_qproperty.cpp index 4ede9692..c2f6fe9c 100644 --- a/qt6/gen_qproperty.cpp +++ b/qt6/gen_qproperty.cpp @@ -28,12 +28,8 @@ QPropertyBindingSourceLocation* QPropertyBindingSourceLocation_new2(QPropertyBin return new QPropertyBindingSourceLocation(*param1); } -void QPropertyBindingSourceLocation_Delete(QPropertyBindingSourceLocation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPropertyBindingSourceLocation_Delete(QPropertyBindingSourceLocation* self) { + delete self; } QPropertyBindingError* QPropertyBindingError_new() { @@ -77,12 +73,8 @@ struct miqt_string QPropertyBindingError_Description(const QPropertyBindingError return _ms; } -void QPropertyBindingError_Delete(QPropertyBindingError* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPropertyBindingError_Delete(QPropertyBindingError* self) { + delete self; } QUntypedPropertyBinding* QUntypedPropertyBinding_new() { @@ -109,12 +101,8 @@ QMetaType* QUntypedPropertyBinding_ValueMetaType(const QUntypedPropertyBinding* return new QMetaType(self->valueMetaType()); } -void QUntypedPropertyBinding_Delete(QUntypedPropertyBinding* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUntypedPropertyBinding_Delete(QUntypedPropertyBinding* self) { + delete self; } QPropertyObserverBase* QPropertyObserverBase_new() { @@ -125,12 +113,8 @@ QPropertyObserverBase* QPropertyObserverBase_new2(QPropertyObserverBase* param1) return new QPropertyObserverBase(*param1); } -void QPropertyObserverBase_Delete(QPropertyObserverBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPropertyObserverBase_Delete(QPropertyObserverBase* self) { + delete self; } QPropertyObserver* QPropertyObserver_new() { @@ -141,12 +125,8 @@ void QPropertyObserver_virtbase(QPropertyObserver* src, QPropertyObserverBase** *outptr_QPropertyObserverBase = static_cast(src); } -void QPropertyObserver_Delete(QPropertyObserver* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPropertyObserver_Delete(QPropertyObserver* self) { + delete self; } QPropertyNotifier* QPropertyNotifier_new() { @@ -157,12 +137,8 @@ void QPropertyNotifier_virtbase(QPropertyNotifier* src, QPropertyObserver** outp *outptr_QPropertyObserver = static_cast(src); } -void QPropertyNotifier_Delete(QPropertyNotifier* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPropertyNotifier_Delete(QPropertyNotifier* self) { + delete self; } QUntypedBindable* QUntypedBindable_new() { @@ -217,11 +193,7 @@ QUntypedPropertyBinding* QUntypedBindable_MakeBinding1(const QUntypedBindable* s return new QUntypedPropertyBinding(self->makeBinding(*location)); } -void QUntypedBindable_Delete(QUntypedBindable* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUntypedBindable_Delete(QUntypedBindable* self) { + delete self; } diff --git a/qt6/gen_qproperty.go b/qt6/gen_qproperty.go index bc1bfaae..b5b55fca 100644 --- a/qt6/gen_qproperty.go +++ b/qt6/gen_qproperty.go @@ -90,7 +90,7 @@ func NewQPropertyBindingSourceLocation2(param1 *QPropertyBindingSourceLocation) // Delete this object from C++ memory. func (this *QPropertyBindingSourceLocation) Delete() { - C.QPropertyBindingSourceLocation_Delete(this.h, C.bool(this.isSubclass)) + C.QPropertyBindingSourceLocation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -192,7 +192,7 @@ func (this *QPropertyBindingError) Description() string { // Delete this object from C++ memory. func (this *QPropertyBindingError) Delete() { - C.QPropertyBindingError_Delete(this.h, C.bool(this.isSubclass)) + C.QPropertyBindingError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -275,7 +275,7 @@ func (this *QUntypedPropertyBinding) ValueMetaType() *QMetaType { // Delete this object from C++ memory. func (this *QUntypedPropertyBinding) Delete() { - C.QUntypedPropertyBinding_Delete(this.h, C.bool(this.isSubclass)) + C.QUntypedPropertyBinding_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -338,7 +338,7 @@ func NewQPropertyObserverBase2(param1 *QPropertyObserverBase) *QPropertyObserver // Delete this object from C++ memory. func (this *QPropertyObserverBase) Delete() { - C.QPropertyObserverBase_Delete(this.h, C.bool(this.isSubclass)) + C.QPropertyObserverBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -397,7 +397,7 @@ func NewQPropertyObserver() *QPropertyObserver { // Delete this object from C++ memory. func (this *QPropertyObserver) Delete() { - C.QPropertyObserver_Delete(this.h, C.bool(this.isSubclass)) + C.QPropertyObserver_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -456,7 +456,7 @@ func NewQPropertyNotifier() *QPropertyNotifier { // Delete this object from C++ memory. func (this *QPropertyNotifier) Delete() { - C.QPropertyNotifier_Delete(this.h, C.bool(this.isSubclass)) + C.QPropertyNotifier_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -573,7 +573,7 @@ func (this *QUntypedBindable) MakeBinding1(location *QPropertyBindingSourceLocat // Delete this object from C++ memory. func (this *QUntypedBindable) Delete() { - C.QUntypedBindable_Delete(this.h, C.bool(this.isSubclass)) + C.QUntypedBindable_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qproperty.h b/qt6/gen_qproperty.h index 66e6ed3f..8c987066 100644 --- a/qt6/gen_qproperty.h +++ b/qt6/gen_qproperty.h @@ -36,7 +36,7 @@ typedef struct QUntypedPropertyBinding QUntypedPropertyBinding; QPropertyBindingSourceLocation* QPropertyBindingSourceLocation_new(); QPropertyBindingSourceLocation* QPropertyBindingSourceLocation_new2(QPropertyBindingSourceLocation* param1); -void QPropertyBindingSourceLocation_Delete(QPropertyBindingSourceLocation* self, bool isSubclass); +void QPropertyBindingSourceLocation_Delete(QPropertyBindingSourceLocation* self); QPropertyBindingError* QPropertyBindingError_new(); QPropertyBindingError* QPropertyBindingError_new2(int typeVal); @@ -46,7 +46,7 @@ void QPropertyBindingError_OperatorAssign(QPropertyBindingError* self, QProperty bool QPropertyBindingError_HasError(const QPropertyBindingError* self); int QPropertyBindingError_Type(const QPropertyBindingError* self); struct miqt_string QPropertyBindingError_Description(const QPropertyBindingError* self); -void QPropertyBindingError_Delete(QPropertyBindingError* self, bool isSubclass); +void QPropertyBindingError_Delete(QPropertyBindingError* self); QUntypedPropertyBinding* QUntypedPropertyBinding_new(); QUntypedPropertyBinding* QUntypedPropertyBinding_new2(QUntypedPropertyBinding* other); @@ -54,19 +54,19 @@ void QUntypedPropertyBinding_OperatorAssign(QUntypedPropertyBinding* self, QUnty bool QUntypedPropertyBinding_IsNull(const QUntypedPropertyBinding* self); QPropertyBindingError* QUntypedPropertyBinding_Error(const QUntypedPropertyBinding* self); QMetaType* QUntypedPropertyBinding_ValueMetaType(const QUntypedPropertyBinding* self); -void QUntypedPropertyBinding_Delete(QUntypedPropertyBinding* self, bool isSubclass); +void QUntypedPropertyBinding_Delete(QUntypedPropertyBinding* self); QPropertyObserverBase* QPropertyObserverBase_new(); QPropertyObserverBase* QPropertyObserverBase_new2(QPropertyObserverBase* param1); -void QPropertyObserverBase_Delete(QPropertyObserverBase* self, bool isSubclass); +void QPropertyObserverBase_Delete(QPropertyObserverBase* self); QPropertyObserver* QPropertyObserver_new(); void QPropertyObserver_virtbase(QPropertyObserver* src, QPropertyObserverBase** outptr_QPropertyObserverBase); -void QPropertyObserver_Delete(QPropertyObserver* self, bool isSubclass); +void QPropertyObserver_Delete(QPropertyObserver* self); QPropertyNotifier* QPropertyNotifier_new(); void QPropertyNotifier_virtbase(QPropertyNotifier* src, QPropertyObserver** outptr_QPropertyObserver); -void QPropertyNotifier_Delete(QPropertyNotifier* self, bool isSubclass); +void QPropertyNotifier_Delete(QPropertyNotifier* self); QUntypedBindable* QUntypedBindable_new(); QUntypedBindable* QUntypedBindable_new2(QUntypedBindable* param1); @@ -81,7 +81,7 @@ bool QUntypedBindable_SetBinding(QUntypedBindable* self, QUntypedPropertyBinding bool QUntypedBindable_HasBinding(const QUntypedBindable* self); QMetaType* QUntypedBindable_MetaType(const QUntypedBindable* self); QUntypedPropertyBinding* QUntypedBindable_MakeBinding1(const QUntypedBindable* self, QPropertyBindingSourceLocation* location); -void QUntypedBindable_Delete(QUntypedBindable* self, bool isSubclass); +void QUntypedBindable_Delete(QUntypedBindable* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpropertyanimation.cpp b/qt6/gen_qpropertyanimation.cpp index d221b1e2..e257c4c6 100644 --- a/qt6/gen_qpropertyanimation.cpp +++ b/qt6/gen_qpropertyanimation.cpp @@ -26,7 +26,7 @@ QVariant* miqt_exec_callback_QPropertyAnimation_Interpolated(void*, intptr_t, QV } /* extern C */ #endif -class MiqtVirtualQPropertyAnimation : public virtual QPropertyAnimation { +class MiqtVirtualQPropertyAnimation final : public QPropertyAnimation { public: MiqtVirtualQPropertyAnimation(): QPropertyAnimation() {}; @@ -34,7 +34,7 @@ public: MiqtVirtualQPropertyAnimation(QObject* parent): QPropertyAnimation(parent) {}; MiqtVirtualQPropertyAnimation(QObject* target, const QByteArray& propertyName, QObject* parent): QPropertyAnimation(target, propertyName, parent) {}; - virtual ~MiqtVirtualQPropertyAnimation() = default; + virtual ~MiqtVirtualQPropertyAnimation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -323,11 +323,7 @@ QVariant* QPropertyAnimation_virtualbase_Interpolated(const void* self, QVariant return ( (const MiqtVirtualQPropertyAnimation*)(self) )->virtualbase_Interpolated(from, to, progress); } -void QPropertyAnimation_Delete(QPropertyAnimation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPropertyAnimation_Delete(QPropertyAnimation* self) { + delete self; } diff --git a/qt6/gen_qpropertyanimation.go b/qt6/gen_qpropertyanimation.go index 8e740f9d..690b4864 100644 --- a/qt6/gen_qpropertyanimation.go +++ b/qt6/gen_qpropertyanimation.go @@ -321,7 +321,7 @@ func miqt_exec_callback_QPropertyAnimation_Interpolated(self *C.QPropertyAnimati // Delete this object from C++ memory. func (this *QPropertyAnimation) Delete() { - C.QPropertyAnimation_Delete(this.h, C.bool(this.isSubclass)) + C.QPropertyAnimation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpropertyanimation.h b/qt6/gen_qpropertyanimation.h index 29602aa1..a0d71283 100644 --- a/qt6/gen_qpropertyanimation.h +++ b/qt6/gen_qpropertyanimation.h @@ -61,7 +61,7 @@ void QPropertyAnimation_override_virtual_UpdateCurrentTime(void* self, intptr_t void QPropertyAnimation_virtualbase_UpdateCurrentTime(void* self, int param1); void QPropertyAnimation_override_virtual_Interpolated(void* self, intptr_t slot); QVariant* QPropertyAnimation_virtualbase_Interpolated(const void* self, QVariant* from, QVariant* to, double progress); -void QPropertyAnimation_Delete(QPropertyAnimation* self, bool isSubclass); +void QPropertyAnimation_Delete(QPropertyAnimation* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpropertyprivate.cpp b/qt6/gen_qpropertyprivate.cpp index 8f077822..bb6cd791 100644 --- a/qt6/gen_qpropertyprivate.cpp +++ b/qt6/gen_qpropertyprivate.cpp @@ -11,19 +11,11 @@ extern "C" { } /* extern C */ #endif -void QUntypedPropertyData_Delete(QUntypedPropertyData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUntypedPropertyData_Delete(QUntypedPropertyData* self) { + delete self; } -void QPropertyProxyBindingData_Delete(QPropertyProxyBindingData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPropertyProxyBindingData_Delete(QPropertyProxyBindingData* self) { + delete self; } diff --git a/qt6/gen_qpropertyprivate.go b/qt6/gen_qpropertyprivate.go index a5ee5125..9e6dd391 100644 --- a/qt6/gen_qpropertyprivate.go +++ b/qt6/gen_qpropertyprivate.go @@ -48,7 +48,7 @@ func UnsafeNewQUntypedPropertyData(h unsafe.Pointer) *QUntypedPropertyData { // Delete this object from C++ memory. func (this *QUntypedPropertyData) Delete() { - C.QUntypedPropertyData_Delete(this.h, C.bool(this.isSubclass)) + C.QUntypedPropertyData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -95,7 +95,7 @@ func UnsafeNewQPropertyProxyBindingData(h unsafe.Pointer) *QPropertyProxyBinding // Delete this object from C++ memory. func (this *QPropertyProxyBindingData) Delete() { - C.QPropertyProxyBindingData_Delete(this.h, C.bool(this.isSubclass)) + C.QPropertyProxyBindingData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpropertyprivate.h b/qt6/gen_qpropertyprivate.h index 9554da30..5c8786d0 100644 --- a/qt6/gen_qpropertyprivate.h +++ b/qt6/gen_qpropertyprivate.h @@ -22,9 +22,9 @@ typedef struct QPropertyProxyBindingData QPropertyProxyBindingData; typedef struct QUntypedPropertyData QUntypedPropertyData; #endif -void QUntypedPropertyData_Delete(QUntypedPropertyData* self, bool isSubclass); +void QUntypedPropertyData_Delete(QUntypedPropertyData* self); -void QPropertyProxyBindingData_Delete(QPropertyProxyBindingData* self, bool isSubclass); +void QPropertyProxyBindingData_Delete(QPropertyProxyBindingData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qproxystyle.cpp b/qt6/gen_qproxystyle.cpp index dc576f18..51983767 100644 --- a/qt6/gen_qproxystyle.cpp +++ b/qt6/gen_qproxystyle.cpp @@ -55,14 +55,14 @@ bool miqt_exec_callback_QProxyStyle_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQProxyStyle : public virtual QProxyStyle { +class MiqtVirtualQProxyStyle final : public QProxyStyle { public: MiqtVirtualQProxyStyle(): QProxyStyle() {}; MiqtVirtualQProxyStyle(const QString& key): QProxyStyle(key) {}; MiqtVirtualQProxyStyle(QStyle* style): QProxyStyle(style) {}; - virtual ~MiqtVirtualQProxyStyle() = default; + virtual ~MiqtVirtualQProxyStyle() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DrawPrimitive = 0; @@ -1088,11 +1088,7 @@ bool QProxyStyle_virtualbase_Event(void* self, QEvent* e) { return ( (MiqtVirtualQProxyStyle*)(self) )->virtualbase_Event(e); } -void QProxyStyle_Delete(QProxyStyle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QProxyStyle_Delete(QProxyStyle* self) { + delete self; } diff --git a/qt6/gen_qproxystyle.go b/qt6/gen_qproxystyle.go index 7bc325e8..226e62ed 100644 --- a/qt6/gen_qproxystyle.go +++ b/qt6/gen_qproxystyle.go @@ -1028,7 +1028,7 @@ func miqt_exec_callback_QProxyStyle_Event(self *C.QProxyStyle, cb C.intptr_t, e // Delete this object from C++ memory. func (this *QProxyStyle) Delete() { - C.QProxyStyle_Delete(this.h, C.bool(this.isSubclass)) + C.QProxyStyle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qproxystyle.h b/qt6/gen_qproxystyle.h index 7143eaef..7fe0d281 100644 --- a/qt6/gen_qproxystyle.h +++ b/qt6/gen_qproxystyle.h @@ -139,7 +139,7 @@ void QProxyStyle_override_virtual_UnpolishWithApp(void* self, intptr_t slot); void QProxyStyle_virtualbase_UnpolishWithApp(void* self, QApplication* app); void QProxyStyle_override_virtual_Event(void* self, intptr_t slot); bool QProxyStyle_virtualbase_Event(void* self, QEvent* e); -void QProxyStyle_Delete(QProxyStyle* self, bool isSubclass); +void QProxyStyle_Delete(QProxyStyle* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qpushbutton.cpp b/qt6/gen_qpushbutton.cpp index b3a26964..e51f8285 100644 --- a/qt6/gen_qpushbutton.cpp +++ b/qt6/gen_qpushbutton.cpp @@ -46,7 +46,7 @@ void miqt_exec_callback_QPushButton_TimerEvent(void*, intptr_t, QTimerEvent*); } /* extern C */ #endif -class MiqtVirtualQPushButton : public virtual QPushButton { +class MiqtVirtualQPushButton final : public QPushButton { public: MiqtVirtualQPushButton(QWidget* parent): QPushButton(parent) {}; @@ -56,7 +56,7 @@ public: MiqtVirtualQPushButton(const QString& text, QWidget* parent): QPushButton(text, parent) {}; MiqtVirtualQPushButton(const QIcon& icon, const QString& text, QWidget* parent): QPushButton(icon, text, parent) {}; - virtual ~MiqtVirtualQPushButton() = default; + virtual ~MiqtVirtualQPushButton() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -715,11 +715,7 @@ void QPushButton_virtualbase_TimerEvent(void* self, QTimerEvent* e) { ( (MiqtVirtualQPushButton*)(self) )->virtualbase_TimerEvent(e); } -void QPushButton_Delete(QPushButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPushButton_Delete(QPushButton* self) { + delete self; } diff --git a/qt6/gen_qpushbutton.go b/qt6/gen_qpushbutton.go index 950c6ef8..4754e69b 100644 --- a/qt6/gen_qpushbutton.go +++ b/qt6/gen_qpushbutton.go @@ -648,7 +648,7 @@ func miqt_exec_callback_QPushButton_TimerEvent(self *C.QPushButton, cb C.intptr_ // Delete this object from C++ memory. func (this *QPushButton) Delete() { - C.QPushButton_Delete(this.h, C.bool(this.isSubclass)) + C.QPushButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qpushbutton.h b/qt6/gen_qpushbutton.h index acd64771..e90d32b5 100644 --- a/qt6/gen_qpushbutton.h +++ b/qt6/gen_qpushbutton.h @@ -117,7 +117,7 @@ void QPushButton_override_virtual_ChangeEvent(void* self, intptr_t slot); void QPushButton_virtualbase_ChangeEvent(void* self, QEvent* e); void QPushButton_override_virtual_TimerEvent(void* self, intptr_t slot); void QPushButton_virtualbase_TimerEvent(void* self, QTimerEvent* e); -void QPushButton_Delete(QPushButton* self, bool isSubclass); +void QPushButton_Delete(QPushButton* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qquaternion.cpp b/qt6/gen_qquaternion.cpp index d630cff9..91139668 100644 --- a/qt6/gen_qquaternion.cpp +++ b/qt6/gen_qquaternion.cpp @@ -215,11 +215,7 @@ QQuaternion* QQuaternion_Nlerp(QQuaternion* q1, QQuaternion* q2, float t) { return new QQuaternion(QQuaternion::nlerp(*q1, *q2, static_cast(t))); } -void QQuaternion_Delete(QQuaternion* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QQuaternion_Delete(QQuaternion* self) { + delete self; } diff --git a/qt6/gen_qquaternion.go b/qt6/gen_qquaternion.go index 2c8b8622..72761528 100644 --- a/qt6/gen_qquaternion.go +++ b/qt6/gen_qquaternion.go @@ -298,7 +298,7 @@ func QQuaternion_Nlerp(q1 *QQuaternion, q2 *QQuaternion, t float32) *QQuaternion // Delete this object from C++ memory. func (this *QQuaternion) Delete() { - C.QQuaternion_Delete(this.h, C.bool(this.isSubclass)) + C.QQuaternion_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qquaternion.h b/qt6/gen_qquaternion.h index 51e44ec6..7596f77c 100644 --- a/qt6/gen_qquaternion.h +++ b/qt6/gen_qquaternion.h @@ -74,7 +74,7 @@ QQuaternion* QQuaternion_FromDirection(QVector3D* direction, QVector3D* up); QQuaternion* QQuaternion_RotationTo(QVector3D* from, QVector3D* to); QQuaternion* QQuaternion_Slerp(QQuaternion* q1, QQuaternion* q2, float t); QQuaternion* QQuaternion_Nlerp(QQuaternion* q1, QQuaternion* q2, float t); -void QQuaternion_Delete(QQuaternion* self, bool isSubclass); +void QQuaternion_Delete(QQuaternion* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qradiobutton.cpp b/qt6/gen_qradiobutton.cpp index e45602d3..5b866131 100644 --- a/qt6/gen_qradiobutton.cpp +++ b/qt6/gen_qradiobutton.cpp @@ -44,7 +44,7 @@ void miqt_exec_callback_QRadioButton_TimerEvent(void*, intptr_t, QTimerEvent*); } /* extern C */ #endif -class MiqtVirtualQRadioButton : public virtual QRadioButton { +class MiqtVirtualQRadioButton final : public QRadioButton { public: MiqtVirtualQRadioButton(QWidget* parent): QRadioButton(parent) {}; @@ -52,7 +52,7 @@ public: MiqtVirtualQRadioButton(const QString& text): QRadioButton(text) {}; MiqtVirtualQRadioButton(const QString& text, QWidget* parent): QRadioButton(text, parent) {}; - virtual ~MiqtVirtualQRadioButton() = default; + virtual ~MiqtVirtualQRadioButton() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -665,11 +665,7 @@ void QRadioButton_virtualbase_TimerEvent(void* self, QTimerEvent* e) { ( (MiqtVirtualQRadioButton*)(self) )->virtualbase_TimerEvent(e); } -void QRadioButton_Delete(QRadioButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRadioButton_Delete(QRadioButton* self) { + delete self; } diff --git a/qt6/gen_qradiobutton.go b/qt6/gen_qradiobutton.go index c3474f47..b10669c9 100644 --- a/qt6/gen_qradiobutton.go +++ b/qt6/gen_qradiobutton.go @@ -588,7 +588,7 @@ func miqt_exec_callback_QRadioButton_TimerEvent(self *C.QRadioButton, cb C.intpt // Delete this object from C++ memory. func (this *QRadioButton) Delete() { - C.QRadioButton_Delete(this.h, C.bool(this.isSubclass)) + C.QRadioButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qradiobutton.h b/qt6/gen_qradiobutton.h index 534138c4..d1f332b4 100644 --- a/qt6/gen_qradiobutton.h +++ b/qt6/gen_qradiobutton.h @@ -99,7 +99,7 @@ void QRadioButton_override_virtual_ChangeEvent(void* self, intptr_t slot); void QRadioButton_virtualbase_ChangeEvent(void* self, QEvent* e); void QRadioButton_override_virtual_TimerEvent(void* self, intptr_t slot); void QRadioButton_virtualbase_TimerEvent(void* self, QTimerEvent* e); -void QRadioButton_Delete(QRadioButton* self, bool isSubclass); +void QRadioButton_Delete(QRadioButton* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qrandom.cpp b/qt6/gen_qrandom.cpp index 06c57db1..a47b987e 100644 --- a/qt6/gen_qrandom.cpp +++ b/qt6/gen_qrandom.cpp @@ -154,12 +154,8 @@ void QRandomGenerator_Seed1(QRandomGenerator* self, unsigned int s) { self->seed(static_cast(s)); } -void QRandomGenerator_Delete(QRandomGenerator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRandomGenerator_Delete(QRandomGenerator* self) { + delete self; } QRandomGenerator64* QRandomGenerator64_new() { @@ -230,11 +226,7 @@ void QRandomGenerator64_OperatorAssign(QRandomGenerator64* self, QRandomGenerato self->operator=(*param1); } -void QRandomGenerator64_Delete(QRandomGenerator64* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRandomGenerator64_Delete(QRandomGenerator64* self) { + delete self; } diff --git a/qt6/gen_qrandom.go b/qt6/gen_qrandom.go index 63b5a0bc..30e2a515 100644 --- a/qt6/gen_qrandom.go +++ b/qt6/gen_qrandom.go @@ -198,7 +198,7 @@ func (this *QRandomGenerator) Seed1(s uint) { // Delete this object from C++ memory. func (this *QRandomGenerator) Delete() { - C.QRandomGenerator_Delete(this.h, C.bool(this.isSubclass)) + C.QRandomGenerator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -335,7 +335,7 @@ func (this *QRandomGenerator64) OperatorAssign(param1 *QRandomGenerator64) { // Delete this object from C++ memory. func (this *QRandomGenerator64) Delete() { - C.QRandomGenerator64_Delete(this.h, C.bool(this.isSubclass)) + C.QRandomGenerator64_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qrandom.h b/qt6/gen_qrandom.h index a8fa6e7c..a00a927d 100644 --- a/qt6/gen_qrandom.h +++ b/qt6/gen_qrandom.h @@ -54,7 +54,7 @@ QRandomGenerator* QRandomGenerator_System(); QRandomGenerator* QRandomGenerator_Global(); QRandomGenerator* QRandomGenerator_SecurelySeeded(); void QRandomGenerator_Seed1(QRandomGenerator* self, unsigned int s); -void QRandomGenerator_Delete(QRandomGenerator* self, bool isSubclass); +void QRandomGenerator_Delete(QRandomGenerator* self); QRandomGenerator64* QRandomGenerator64_new(); QRandomGenerator64* QRandomGenerator64_new2(const unsigned int* seedBuffer, ptrdiff_t lenVal); @@ -72,7 +72,7 @@ QRandomGenerator64* QRandomGenerator64_System(); QRandomGenerator64* QRandomGenerator64_Global(); QRandomGenerator64* QRandomGenerator64_SecurelySeeded(); void QRandomGenerator64_OperatorAssign(QRandomGenerator64* self, QRandomGenerator64* param1); -void QRandomGenerator64_Delete(QRandomGenerator64* self, bool isSubclass); +void QRandomGenerator64_Delete(QRandomGenerator64* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qrasterwindow.cpp b/qt6/gen_qrasterwindow.cpp index b6bbcdd0..eef6e9cb 100644 --- a/qt6/gen_qrasterwindow.cpp +++ b/qt6/gen_qrasterwindow.cpp @@ -28,13 +28,13 @@ bool miqt_exec_callback_QRasterWindow_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQRasterWindow : public virtual QRasterWindow { +class MiqtVirtualQRasterWindow final : public QRasterWindow { public: MiqtVirtualQRasterWindow(): QRasterWindow() {}; MiqtVirtualQRasterWindow(QWindow* parent): QRasterWindow(parent) {}; - virtual ~MiqtVirtualQRasterWindow() = default; + virtual ~MiqtVirtualQRasterWindow() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Metric = 0; @@ -249,11 +249,7 @@ bool QRasterWindow_virtualbase_Event(void* self, QEvent* event) { return ( (MiqtVirtualQRasterWindow*)(self) )->virtualbase_Event(event); } -void QRasterWindow_Delete(QRasterWindow* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRasterWindow_Delete(QRasterWindow* self) { + delete self; } diff --git a/qt6/gen_qrasterwindow.go b/qt6/gen_qrasterwindow.go index 01ab52fe..d7b597a5 100644 --- a/qt6/gen_qrasterwindow.go +++ b/qt6/gen_qrasterwindow.go @@ -246,7 +246,7 @@ func miqt_exec_callback_QRasterWindow_Event(self *C.QRasterWindow, cb C.intptr_t // Delete this object from C++ memory. func (this *QRasterWindow) Delete() { - C.QRasterWindow_Delete(this.h, C.bool(this.isSubclass)) + C.QRasterWindow_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qrasterwindow.h b/qt6/gen_qrasterwindow.h index ea81503b..45f5d4dc 100644 --- a/qt6/gen_qrasterwindow.h +++ b/qt6/gen_qrasterwindow.h @@ -60,7 +60,7 @@ void QRasterWindow_override_virtual_PaintEvent(void* self, intptr_t slot); void QRasterWindow_virtualbase_PaintEvent(void* self, QPaintEvent* event); void QRasterWindow_override_virtual_Event(void* self, intptr_t slot); bool QRasterWindow_virtualbase_Event(void* self, QEvent* event); -void QRasterWindow_Delete(QRasterWindow* self, bool isSubclass); +void QRasterWindow_Delete(QRasterWindow* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qrawfont.cpp b/qt6/gen_qrawfont.cpp index cecb0759..ed696370 100644 --- a/qt6/gen_qrawfont.cpp +++ b/qt6/gen_qrawfont.cpp @@ -298,11 +298,7 @@ QRawFont* QRawFont_FromFont2(QFont* font, int writingSystem) { return new QRawFont(QRawFont::fromFont(*font, static_cast(writingSystem))); } -void QRawFont_Delete(QRawFont* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRawFont_Delete(QRawFont* self) { + delete self; } diff --git a/qt6/gen_qrawfont.go b/qt6/gen_qrawfont.go index 1bab9d57..d7bc15d2 100644 --- a/qt6/gen_qrawfont.go +++ b/qt6/gen_qrawfont.go @@ -365,7 +365,7 @@ func QRawFont_FromFont2(font *QFont, writingSystem QFontDatabase__WritingSystem) // Delete this object from C++ memory. func (this *QRawFont) Delete() { - C.QRawFont_Delete(this.h, C.bool(this.isSubclass)) + C.QRawFont_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qrawfont.h b/qt6/gen_qrawfont.h index bd346535..6bdae94d 100644 --- a/qt6/gen_qrawfont.h +++ b/qt6/gen_qrawfont.h @@ -81,7 +81,7 @@ QRawFont* QRawFont_FromFont(QFont* font); QImage* QRawFont_AlphaMapForGlyph2(const QRawFont* self, unsigned int glyphIndex, int antialiasingType); QImage* QRawFont_AlphaMapForGlyph3(const QRawFont* self, unsigned int glyphIndex, int antialiasingType, QTransform* transform); QRawFont* QRawFont_FromFont2(QFont* font, int writingSystem); -void QRawFont_Delete(QRawFont* self, bool isSubclass); +void QRawFont_Delete(QRawFont* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qreadwritelock.cpp b/qt6/gen_qreadwritelock.cpp index bb1796d9..c2038f4a 100644 --- a/qt6/gen_qreadwritelock.cpp +++ b/qt6/gen_qreadwritelock.cpp @@ -48,12 +48,8 @@ void QReadWriteLock_Unlock(QReadWriteLock* self) { self->unlock(); } -void QReadWriteLock_Delete(QReadWriteLock* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QReadWriteLock_Delete(QReadWriteLock* self) { + delete self; } QReadLocker* QReadLocker_new(QReadWriteLock* readWriteLock) { @@ -72,12 +68,8 @@ QReadWriteLock* QReadLocker_ReadWriteLock(const QReadLocker* self) { return self->readWriteLock(); } -void QReadLocker_Delete(QReadLocker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QReadLocker_Delete(QReadLocker* self) { + delete self; } QWriteLocker* QWriteLocker_new(QReadWriteLock* readWriteLock) { @@ -96,11 +88,7 @@ QReadWriteLock* QWriteLocker_ReadWriteLock(const QWriteLocker* self) { return self->readWriteLock(); } -void QWriteLocker_Delete(QWriteLocker* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWriteLocker_Delete(QWriteLocker* self) { + delete self; } diff --git a/qt6/gen_qreadwritelock.go b/qt6/gen_qreadwritelock.go index 7ce9c103..99d1aad9 100644 --- a/qt6/gen_qreadwritelock.go +++ b/qt6/gen_qreadwritelock.go @@ -99,7 +99,7 @@ func (this *QReadWriteLock) Unlock() { // Delete this object from C++ memory. func (this *QReadWriteLock) Delete() { - C.QReadWriteLock_Delete(this.h, C.bool(this.isSubclass)) + C.QReadWriteLock_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -166,7 +166,7 @@ func (this *QReadLocker) ReadWriteLock() *QReadWriteLock { // Delete this object from C++ memory. func (this *QReadLocker) Delete() { - C.QReadLocker_Delete(this.h, C.bool(this.isSubclass)) + C.QReadLocker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -233,7 +233,7 @@ func (this *QWriteLocker) ReadWriteLock() *QReadWriteLock { // Delete this object from C++ memory. func (this *QWriteLocker) Delete() { - C.QWriteLocker_Delete(this.h, C.bool(this.isSubclass)) + C.QWriteLocker_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qreadwritelock.h b/qt6/gen_qreadwritelock.h index 136c1d56..cda5a373 100644 --- a/qt6/gen_qreadwritelock.h +++ b/qt6/gen_qreadwritelock.h @@ -33,19 +33,19 @@ void QReadWriteLock_LockForWrite(QReadWriteLock* self); bool QReadWriteLock_TryLockForWrite(QReadWriteLock* self); bool QReadWriteLock_TryLockForWriteWithTimeout(QReadWriteLock* self, int timeout); void QReadWriteLock_Unlock(QReadWriteLock* self); -void QReadWriteLock_Delete(QReadWriteLock* self, bool isSubclass); +void QReadWriteLock_Delete(QReadWriteLock* self); QReadLocker* QReadLocker_new(QReadWriteLock* readWriteLock); void QReadLocker_Unlock(QReadLocker* self); void QReadLocker_Relock(QReadLocker* self); QReadWriteLock* QReadLocker_ReadWriteLock(const QReadLocker* self); -void QReadLocker_Delete(QReadLocker* self, bool isSubclass); +void QReadLocker_Delete(QReadLocker* self); QWriteLocker* QWriteLocker_new(QReadWriteLock* readWriteLock); void QWriteLocker_Unlock(QWriteLocker* self); void QWriteLocker_Relock(QWriteLocker* self); QReadWriteLock* QWriteLocker_ReadWriteLock(const QWriteLocker* self); -void QWriteLocker_Delete(QWriteLocker* self, bool isSubclass); +void QWriteLocker_Delete(QWriteLocker* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qrect.cpp b/qt6/gen_qrect.cpp index 37ffdef0..93a10e7c 100644 --- a/qt6/gen_qrect.cpp +++ b/qt6/gen_qrect.cpp @@ -329,12 +329,8 @@ bool QRect_Contains23(const QRect* self, QPoint* p, bool proper) { return self->contains(*p, proper); } -void QRect_Delete(QRect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRect_Delete(QRect* self) { + delete self; } QRectF* QRectF_new() { @@ -649,11 +645,7 @@ QRect* QRectF_ToAlignedRect(const QRectF* self) { return new QRect(self->toAlignedRect()); } -void QRectF_Delete(QRectF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRectF_Delete(QRectF* self) { + delete self; } diff --git a/qt6/gen_qrect.go b/qt6/gen_qrect.go index cd5cf618..5596545f 100644 --- a/qt6/gen_qrect.go +++ b/qt6/gen_qrect.go @@ -414,7 +414,7 @@ func (this *QRect) Contains23(p *QPoint, proper bool) bool { // Delete this object from C++ memory. func (this *QRect) Delete() { - C.QRect_Delete(this.h, C.bool(this.isSubclass)) + C.QRect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -823,7 +823,7 @@ func (this *QRectF) ToAlignedRect() *QRect { // Delete this object from C++ memory. func (this *QRectF) Delete() { - C.QRectF_Delete(this.h, C.bool(this.isSubclass)) + C.QRectF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qrect.h b/qt6/gen_qrect.h index 881eef62..47690367 100644 --- a/qt6/gen_qrect.h +++ b/qt6/gen_qrect.h @@ -111,7 +111,7 @@ QRect* QRect_Span(QPoint* p1, QPoint* p2); QRectF* QRect_ToRectF(const QRect* self); bool QRect_Contains22(const QRect* self, QRect* r, bool proper); bool QRect_Contains23(const QRect* self, QPoint* p, bool proper); -void QRect_Delete(QRect* self, bool isSubclass); +void QRect_Delete(QRect* self); QRectF* QRectF_new(); QRectF* QRectF_new2(QPointF* topleft, QSizeF* size); @@ -188,7 +188,7 @@ QRectF* QRectF_OperatorPlusAssign(QRectF* self, QMarginsF* margins); QRectF* QRectF_OperatorMinusAssign(QRectF* self, QMarginsF* margins); QRect* QRectF_ToRect(const QRectF* self); QRect* QRectF_ToAlignedRect(const QRectF* self); -void QRectF_Delete(QRectF* self, bool isSubclass); +void QRectF_Delete(QRectF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qregion.cpp b/qt6/gen_qregion.cpp index 292f7201..a30d52b3 100644 --- a/qt6/gen_qregion.cpp +++ b/qt6/gen_qregion.cpp @@ -220,11 +220,7 @@ QVariant* QRegion_ToQVariant(const QRegion* self) { return new QVariant(self->operator QVariant()); } -void QRegion_Delete(QRegion* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegion_Delete(QRegion* self) { + delete self; } diff --git a/qt6/gen_qregion.go b/qt6/gen_qregion.go index 44ae59f7..0b3cc03a 100644 --- a/qt6/gen_qregion.go +++ b/qt6/gen_qregion.go @@ -313,7 +313,7 @@ func (this *QRegion) ToQVariant() *QVariant { // Delete this object from C++ memory. func (this *QRegion) Delete() { - C.QRegion_Delete(this.h, C.bool(this.isSubclass)) + C.QRegion_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qregion.h b/qt6/gen_qregion.h index 194ae471..5b702cb8 100644 --- a/qt6/gen_qregion.h +++ b/qt6/gen_qregion.h @@ -77,7 +77,7 @@ void QRegion_OperatorBitwiseNotAssign(QRegion* self, QRegion* r); bool QRegion_OperatorEqual(const QRegion* self, QRegion* r); bool QRegion_OperatorNotEqual(const QRegion* self, QRegion* r); QVariant* QRegion_ToQVariant(const QRegion* self); -void QRegion_Delete(QRegion* self, bool isSubclass); +void QRegion_Delete(QRegion* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qregularexpression.cpp b/qt6/gen_qregularexpression.cpp index 3af7b7de..6282e616 100644 --- a/qt6/gen_qregularexpression.cpp +++ b/qt6/gen_qregularexpression.cpp @@ -211,12 +211,8 @@ struct miqt_string QRegularExpression_WildcardToRegularExpression2(struct miqt_s return _ms; } -void QRegularExpression_Delete(QRegularExpression* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegularExpression_Delete(QRegularExpression* self) { + delete self; } QRegularExpressionMatch* QRegularExpressionMatch_new() { @@ -376,12 +372,8 @@ ptrdiff_t QRegularExpressionMatch_CapturedEnd1(const QRegularExpressionMatch* se return static_cast(_ret); } -void QRegularExpressionMatch_Delete(QRegularExpressionMatch* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegularExpressionMatch_Delete(QRegularExpressionMatch* self) { + delete self; } QRegularExpressionMatchIterator* QRegularExpressionMatchIterator_new() { @@ -430,11 +422,7 @@ int QRegularExpressionMatchIterator_MatchOptions(const QRegularExpressionMatchIt return static_cast(_ret); } -void QRegularExpressionMatchIterator_Delete(QRegularExpressionMatchIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegularExpressionMatchIterator_Delete(QRegularExpressionMatchIterator* self) { + delete self; } diff --git a/qt6/gen_qregularexpression.go b/qt6/gen_qregularexpression.go index f05818cf..a71f60b9 100644 --- a/qt6/gen_qregularexpression.go +++ b/qt6/gen_qregularexpression.go @@ -325,7 +325,7 @@ func QRegularExpression_WildcardToRegularExpression2(str string, options QRegula // Delete this object from C++ memory. func (this *QRegularExpression) Delete() { - C.QRegularExpression_Delete(this.h, C.bool(this.isSubclass)) + C.QRegularExpression_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -524,7 +524,7 @@ func (this *QRegularExpressionMatch) CapturedEnd1(nth int) int64 { // Delete this object from C++ memory. func (this *QRegularExpressionMatch) Delete() { - C.QRegularExpressionMatch_Delete(this.h, C.bool(this.isSubclass)) + C.QRegularExpressionMatch_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -629,7 +629,7 @@ func (this *QRegularExpressionMatchIterator) MatchOptions() QRegularExpression__ // Delete this object from C++ memory. func (this *QRegularExpressionMatchIterator) Delete() { - C.QRegularExpressionMatchIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QRegularExpressionMatchIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qregularexpression.h b/qt6/gen_qregularexpression.h index e61eb706..2a4f6741 100644 --- a/qt6/gen_qregularexpression.h +++ b/qt6/gen_qregularexpression.h @@ -54,7 +54,7 @@ QRegularExpressionMatchIterator* QRegularExpression_GlobalMatch2(const QRegularE QRegularExpressionMatchIterator* QRegularExpression_GlobalMatch3(const QRegularExpression* self, struct miqt_string subject, ptrdiff_t offset, int matchType); QRegularExpressionMatchIterator* QRegularExpression_GlobalMatch4(const QRegularExpression* self, struct miqt_string subject, ptrdiff_t offset, int matchType, int matchOptions); struct miqt_string QRegularExpression_WildcardToRegularExpression2(struct miqt_string str, int options); -void QRegularExpression_Delete(QRegularExpression* self, bool isSubclass); +void QRegularExpression_Delete(QRegularExpression* self); QRegularExpressionMatch* QRegularExpressionMatch_new(); QRegularExpressionMatch* QRegularExpressionMatch_new2(QRegularExpressionMatch* match); @@ -82,7 +82,7 @@ struct miqt_string QRegularExpressionMatch_Captured1(const QRegularExpressionMat ptrdiff_t QRegularExpressionMatch_CapturedStart1(const QRegularExpressionMatch* self, int nth); ptrdiff_t QRegularExpressionMatch_CapturedLength1(const QRegularExpressionMatch* self, int nth); ptrdiff_t QRegularExpressionMatch_CapturedEnd1(const QRegularExpressionMatch* self, int nth); -void QRegularExpressionMatch_Delete(QRegularExpressionMatch* self, bool isSubclass); +void QRegularExpressionMatch_Delete(QRegularExpressionMatch* self); QRegularExpressionMatchIterator* QRegularExpressionMatchIterator_new(); QRegularExpressionMatchIterator* QRegularExpressionMatchIterator_new2(QRegularExpressionMatchIterator* iterator); @@ -95,7 +95,7 @@ QRegularExpressionMatch* QRegularExpressionMatchIterator_PeekNext(const QRegular QRegularExpression* QRegularExpressionMatchIterator_RegularExpression(const QRegularExpressionMatchIterator* self); int QRegularExpressionMatchIterator_MatchType(const QRegularExpressionMatchIterator* self); int QRegularExpressionMatchIterator_MatchOptions(const QRegularExpressionMatchIterator* self); -void QRegularExpressionMatchIterator_Delete(QRegularExpressionMatchIterator* self, bool isSubclass); +void QRegularExpressionMatchIterator_Delete(QRegularExpressionMatchIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qresource.cpp b/qt6/gen_qresource.cpp index d73584a4..13cbf320 100644 --- a/qt6/gen_qresource.cpp +++ b/qt6/gen_qresource.cpp @@ -142,11 +142,7 @@ bool QResource_UnregisterResource22(const unsigned char* rccData, struct miqt_st return QResource::unregisterResource(static_cast(rccData), resourceRoot_QString); } -void QResource_Delete(QResource* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QResource_Delete(QResource* self) { + delete self; } diff --git a/qt6/gen_qresource.go b/qt6/gen_qresource.go index 69241847..1f5f963d 100644 --- a/qt6/gen_qresource.go +++ b/qt6/gen_qresource.go @@ -217,7 +217,7 @@ func QResource_UnregisterResource22(rccData *byte, resourceRoot string) bool { // Delete this object from C++ memory. func (this *QResource) Delete() { - C.QResource_Delete(this.h, C.bool(this.isSubclass)) + C.QResource_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qresource.h b/qt6/gen_qresource.h index df607f7b..6a50c3ef 100644 --- a/qt6/gen_qresource.h +++ b/qt6/gen_qresource.h @@ -47,7 +47,7 @@ bool QResource_RegisterResource2(struct miqt_string rccFilename, struct miqt_str bool QResource_UnregisterResource2(struct miqt_string rccFilename, struct miqt_string resourceRoot); bool QResource_RegisterResource22(const unsigned char* rccData, struct miqt_string resourceRoot); bool QResource_UnregisterResource22(const unsigned char* rccData, struct miqt_string resourceRoot); -void QResource_Delete(QResource* self, bool isSubclass); +void QResource_Delete(QResource* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qrgba64.cpp b/qt6/gen_qrgba64.cpp index 70bed548..b4a81e65 100644 --- a/qt6/gen_qrgba64.cpp +++ b/qt6/gen_qrgba64.cpp @@ -125,11 +125,7 @@ void QRgba64_OperatorAssign(QRgba64* self, unsigned long long _rgba) { self->operator=(static_cast(_rgba)); } -void QRgba64_Delete(QRgba64* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRgba64_Delete(QRgba64* self) { + delete self; } diff --git a/qt6/gen_qrgba64.go b/qt6/gen_qrgba64.go index 2d0d7da9..9b07d8c0 100644 --- a/qt6/gen_qrgba64.go +++ b/qt6/gen_qrgba64.go @@ -172,7 +172,7 @@ func (this *QRgba64) OperatorAssign(_rgba uint64) { // Delete this object from C++ memory. func (this *QRgba64) Delete() { - C.QRgba64_Delete(this.h, C.bool(this.isSubclass)) + C.QRgba64_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qrgba64.h b/qt6/gen_qrgba64.h index 9e53f754..6ebe5238 100644 --- a/qt6/gen_qrgba64.h +++ b/qt6/gen_qrgba64.h @@ -46,7 +46,7 @@ QRgba64* QRgba64_Premultiplied(const QRgba64* self); QRgba64* QRgba64_Unpremultiplied(const QRgba64* self); unsigned long long QRgba64_ToUnsignedLongLong(const QRgba64* self); void QRgba64_OperatorAssign(QRgba64* self, unsigned long long _rgba); -void QRgba64_Delete(QRgba64* self, bool isSubclass); +void QRgba64_Delete(QRgba64* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qrubberband.cpp b/qt6/gen_qrubberband.cpp index e959a0df..65a28fe0 100644 --- a/qt6/gen_qrubberband.cpp +++ b/qt6/gen_qrubberband.cpp @@ -87,13 +87,13 @@ bool miqt_exec_callback_QRubberBand_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQRubberBand : public virtual QRubberBand { +class MiqtVirtualQRubberBand final : public QRubberBand { public: MiqtVirtualQRubberBand(QRubberBand::Shape param1): QRubberBand(param1) {}; MiqtVirtualQRubberBand(QRubberBand::Shape param1, QWidget* param2): QRubberBand(param1, param2) {}; - virtual ~MiqtVirtualQRubberBand() = default; + virtual ~MiqtVirtualQRubberBand() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1515,11 +1515,7 @@ bool QRubberBand_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQRubberBand*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QRubberBand_Delete(QRubberBand* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRubberBand_Delete(QRubberBand* self) { + delete self; } diff --git a/qt6/gen_qrubberband.go b/qt6/gen_qrubberband.go index 7e2bcba0..f6004636 100644 --- a/qt6/gen_qrubberband.go +++ b/qt6/gen_qrubberband.go @@ -1260,7 +1260,7 @@ func miqt_exec_callback_QRubberBand_FocusNextPrevChild(self *C.QRubberBand, cb C // Delete this object from C++ memory. func (this *QRubberBand) Delete() { - C.QRubberBand_Delete(this.h, C.bool(this.isSubclass)) + C.QRubberBand_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qrubberband.h b/qt6/gen_qrubberband.h index 417fdf13..0997ad02 100644 --- a/qt6/gen_qrubberband.h +++ b/qt6/gen_qrubberband.h @@ -188,7 +188,7 @@ void QRubberBand_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QRubberBand_virtualbase_InputMethodQuery(const void* self, int param1); void QRubberBand_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QRubberBand_virtualbase_FocusNextPrevChild(void* self, bool next); -void QRubberBand_Delete(QRubberBand* self, bool isSubclass); +void QRubberBand_Delete(QRubberBand* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qrunnable.cpp b/qt6/gen_qrunnable.cpp index b4379421..55cc9ed3 100644 --- a/qt6/gen_qrunnable.cpp +++ b/qt6/gen_qrunnable.cpp @@ -11,12 +11,12 @@ void miqt_exec_callback_QRunnable_Run(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQRunnable : public virtual QRunnable { +class MiqtVirtualQRunnable final : public QRunnable { public: MiqtVirtualQRunnable(): QRunnable() {}; - virtual ~MiqtVirtualQRunnable() = default; + virtual ~MiqtVirtualQRunnable() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Run = 0; @@ -55,11 +55,7 @@ void QRunnable_override_virtual_Run(void* self, intptr_t slot) { dynamic_cast( (QRunnable*)(self) )->handle__Run = slot; } -void QRunnable_Delete(QRunnable* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRunnable_Delete(QRunnable* self) { + delete self; } diff --git a/qt6/gen_qrunnable.go b/qt6/gen_qrunnable.go index 1b2e9814..636bc16f 100644 --- a/qt6/gen_qrunnable.go +++ b/qt6/gen_qrunnable.go @@ -86,7 +86,7 @@ func miqt_exec_callback_QRunnable_Run(self *C.QRunnable, cb C.intptr_t) { // Delete this object from C++ memory. func (this *QRunnable) Delete() { - C.QRunnable_Delete(this.h, C.bool(this.isSubclass)) + C.QRunnable_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qrunnable.h b/qt6/gen_qrunnable.h index 3587c3ef..eb1d0f6f 100644 --- a/qt6/gen_qrunnable.h +++ b/qt6/gen_qrunnable.h @@ -26,7 +26,7 @@ bool QRunnable_AutoDelete(const QRunnable* self); void QRunnable_SetAutoDelete(QRunnable* self, bool autoDelete); void QRunnable_override_virtual_Run(void* self, intptr_t slot); void QRunnable_virtualbase_Run(void* self); -void QRunnable_Delete(QRunnable* self, bool isSubclass); +void QRunnable_Delete(QRunnable* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsavefile.cpp b/qt6/gen_qsavefile.cpp index a8246b98..9c99fd8e 100644 --- a/qt6/gen_qsavefile.cpp +++ b/qt6/gen_qsavefile.cpp @@ -31,7 +31,7 @@ long long miqt_exec_callback_QSaveFile_ReadLineData(void*, intptr_t, char*, long } /* extern C */ #endif -class MiqtVirtualQSaveFile : public virtual QSaveFile { +class MiqtVirtualQSaveFile final : public QSaveFile { public: MiqtVirtualQSaveFile(const QString& name): QSaveFile(name) {}; @@ -39,7 +39,7 @@ public: MiqtVirtualQSaveFile(const QString& name, QObject* parent): QSaveFile(name, parent) {}; MiqtVirtualQSaveFile(QObject* parent): QSaveFile(parent) {}; - virtual ~MiqtVirtualQSaveFile() = default; + virtual ~MiqtVirtualQSaveFile() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__FileName = 0; @@ -563,11 +563,7 @@ long long QSaveFile_virtualbase_ReadLineData(void* self, char* data, long long m return ( (MiqtVirtualQSaveFile*)(self) )->virtualbase_ReadLineData(data, maxlen); } -void QSaveFile_Delete(QSaveFile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSaveFile_Delete(QSaveFile* self) { + delete self; } diff --git a/qt6/gen_qsavefile.go b/qt6/gen_qsavefile.go index e9a0f9e6..3c1bde35 100644 --- a/qt6/gen_qsavefile.go +++ b/qt6/gen_qsavefile.go @@ -536,7 +536,7 @@ func miqt_exec_callback_QSaveFile_ReadLineData(self *C.QSaveFile, cb C.intptr_t, // Delete this object from C++ memory. func (this *QSaveFile) Delete() { - C.QSaveFile_Delete(this.h, C.bool(this.isSubclass)) + C.QSaveFile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsavefile.h b/qt6/gen_qsavefile.h index 2ca264b6..9b18730f 100644 --- a/qt6/gen_qsavefile.h +++ b/qt6/gen_qsavefile.h @@ -74,7 +74,7 @@ void QSaveFile_override_virtual_ReadData(void* self, intptr_t slot); long long QSaveFile_virtualbase_ReadData(void* self, char* data, long long maxlen); void QSaveFile_override_virtual_ReadLineData(void* self, intptr_t slot); long long QSaveFile_virtualbase_ReadLineData(void* self, char* data, long long maxlen); -void QSaveFile_Delete(QSaveFile* self, bool isSubclass); +void QSaveFile_Delete(QSaveFile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qscopedpointer.cpp b/qt6/gen_qscopedpointer.cpp index 1b11c52d..bbb76381 100644 --- a/qt6/gen_qscopedpointer.cpp +++ b/qt6/gen_qscopedpointer.cpp @@ -18,11 +18,7 @@ void QScopedPointerPodDeleter_OperatorCall(const QScopedPointerPodDeleter* self, self->operator()(pointer); } -void QScopedPointerPodDeleter_Delete(QScopedPointerPodDeleter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScopedPointerPodDeleter_Delete(QScopedPointerPodDeleter* self) { + delete self; } diff --git a/qt6/gen_qscopedpointer.go b/qt6/gen_qscopedpointer.go index cf0e7ed9..1245b568 100644 --- a/qt6/gen_qscopedpointer.go +++ b/qt6/gen_qscopedpointer.go @@ -56,7 +56,7 @@ func (this *QScopedPointerPodDeleter) OperatorCall(pointer unsafe.Pointer) { // Delete this object from C++ memory. func (this *QScopedPointerPodDeleter) Delete() { - C.QScopedPointerPodDeleter_Delete(this.h, C.bool(this.isSubclass)) + C.QScopedPointerPodDeleter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qscopedpointer.h b/qt6/gen_qscopedpointer.h index 2edee1d8..c6a2761b 100644 --- a/qt6/gen_qscopedpointer.h +++ b/qt6/gen_qscopedpointer.h @@ -22,7 +22,7 @@ typedef struct QScopedPointerPodDeleter QScopedPointerPodDeleter; void QScopedPointerPodDeleter_Cleanup(void* pointer); void QScopedPointerPodDeleter_OperatorCall(const QScopedPointerPodDeleter* self, void* pointer); -void QScopedPointerPodDeleter_Delete(QScopedPointerPodDeleter* self, bool isSubclass); +void QScopedPointerPodDeleter_Delete(QScopedPointerPodDeleter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qscreen.cpp b/qt6/gen_qscreen.cpp index b89c335d..fcde160d 100644 --- a/qt6/gen_qscreen.cpp +++ b/qt6/gen_qscreen.cpp @@ -388,11 +388,7 @@ QPixmap* QScreen_GrabWindow5(QScreen* self, uintptr_t window, int x, int y, int return new QPixmap(self->grabWindow(static_cast(window), static_cast(x), static_cast(y), static_cast(w), static_cast(h))); } -void QScreen_Delete(QScreen* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScreen_Delete(QScreen* self) { + delete self; } diff --git a/qt6/gen_qscreen.go b/qt6/gen_qscreen.go index 9a14d41b..1119307e 100644 --- a/qt6/gen_qscreen.go +++ b/qt6/gen_qscreen.go @@ -478,7 +478,7 @@ func (this *QScreen) GrabWindow5(window uintptr, x int, y int, w int, h int) *QP // Delete this object from C++ memory. func (this *QScreen) Delete() { - C.QScreen_Delete(this.h, C.bool(this.isSubclass)) + C.QScreen_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qscreen.h b/qt6/gen_qscreen.h index a3efba9a..c8b43c45 100644 --- a/qt6/gen_qscreen.h +++ b/qt6/gen_qscreen.h @@ -98,7 +98,7 @@ QPixmap* QScreen_GrabWindow2(QScreen* self, uintptr_t window, int x); QPixmap* QScreen_GrabWindow3(QScreen* self, uintptr_t window, int x, int y); QPixmap* QScreen_GrabWindow4(QScreen* self, uintptr_t window, int x, int y, int w); QPixmap* QScreen_GrabWindow5(QScreen* self, uintptr_t window, int x, int y, int w, int h); -void QScreen_Delete(QScreen* self, bool isSubclass); +void QScreen_Delete(QScreen* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qscrollarea.cpp b/qt6/gen_qscrollarea.cpp index 9eb98e71..8937f04f 100644 --- a/qt6/gen_qscrollarea.cpp +++ b/qt6/gen_qscrollarea.cpp @@ -53,13 +53,13 @@ void miqt_exec_callback_QScrollArea_KeyPressEvent(void*, intptr_t, QKeyEvent*); } /* extern C */ #endif -class MiqtVirtualQScrollArea : public virtual QScrollArea { +class MiqtVirtualQScrollArea final : public QScrollArea { public: MiqtVirtualQScrollArea(QWidget* parent): QScrollArea(parent) {}; MiqtVirtualQScrollArea(): QScrollArea() {}; - virtual ~MiqtVirtualQScrollArea() = default; + virtual ~MiqtVirtualQScrollArea() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -873,11 +873,7 @@ void QScrollArea_virtualbase_KeyPressEvent(void* self, QKeyEvent* param1) { ( (MiqtVirtualQScrollArea*)(self) )->virtualbase_KeyPressEvent(param1); } -void QScrollArea_Delete(QScrollArea* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScrollArea_Delete(QScrollArea* self) { + delete self; } diff --git a/qt6/gen_qscrollarea.go b/qt6/gen_qscrollarea.go index e5dd8d12..1f7c3c85 100644 --- a/qt6/gen_qscrollarea.go +++ b/qt6/gen_qscrollarea.go @@ -759,7 +759,7 @@ func miqt_exec_callback_QScrollArea_KeyPressEvent(self *C.QScrollArea, cb C.intp // Delete this object from C++ memory. func (this *QScrollArea) Delete() { - C.QScrollArea_Delete(this.h, C.bool(this.isSubclass)) + C.QScrollArea_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qscrollarea.h b/qt6/gen_qscrollarea.h index 8044a66d..9a474672 100644 --- a/qt6/gen_qscrollarea.h +++ b/qt6/gen_qscrollarea.h @@ -128,7 +128,7 @@ void QScrollArea_override_virtual_DropEvent(void* self, intptr_t slot); void QScrollArea_virtualbase_DropEvent(void* self, QDropEvent* param1); void QScrollArea_override_virtual_KeyPressEvent(void* self, intptr_t slot); void QScrollArea_virtualbase_KeyPressEvent(void* self, QKeyEvent* param1); -void QScrollArea_Delete(QScrollArea* self, bool isSubclass); +void QScrollArea_Delete(QScrollArea* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qscrollbar.cpp b/qt6/gen_qscrollbar.cpp index 2d0017c3..58e0d722 100644 --- a/qt6/gen_qscrollbar.cpp +++ b/qt6/gen_qscrollbar.cpp @@ -42,7 +42,7 @@ void miqt_exec_callback_QScrollBar_ChangeEvent(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQScrollBar : public virtual QScrollBar { +class MiqtVirtualQScrollBar final : public QScrollBar { public: MiqtVirtualQScrollBar(QWidget* parent): QScrollBar(parent) {}; @@ -50,7 +50,7 @@ public: MiqtVirtualQScrollBar(Qt::Orientation param1): QScrollBar(param1) {}; MiqtVirtualQScrollBar(Qt::Orientation param1, QWidget* parent): QScrollBar(param1, parent) {}; - virtual ~MiqtVirtualQScrollBar() = default; + virtual ~MiqtVirtualQScrollBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -569,11 +569,7 @@ void QScrollBar_virtualbase_ChangeEvent(void* self, QEvent* e) { ( (MiqtVirtualQScrollBar*)(self) )->virtualbase_ChangeEvent(e); } -void QScrollBar_Delete(QScrollBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScrollBar_Delete(QScrollBar* self) { + delete self; } diff --git a/qt6/gen_qscrollbar.go b/qt6/gen_qscrollbar.go index 7d6f0eeb..bf7329b3 100644 --- a/qt6/gen_qscrollbar.go +++ b/qt6/gen_qscrollbar.go @@ -503,7 +503,7 @@ func miqt_exec_callback_QScrollBar_ChangeEvent(self *C.QScrollBar, cb C.intptr_t // Delete this object from C++ memory. func (this *QScrollBar) Delete() { - C.QScrollBar_Delete(this.h, C.bool(this.isSubclass)) + C.QScrollBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qscrollbar.h b/qt6/gen_qscrollbar.h index 2c4fd6df..d234b3ae 100644 --- a/qt6/gen_qscrollbar.h +++ b/qt6/gen_qscrollbar.h @@ -99,7 +99,7 @@ void QScrollBar_override_virtual_TimerEvent(void* self, intptr_t slot); void QScrollBar_virtualbase_TimerEvent(void* self, QTimerEvent* param1); void QScrollBar_override_virtual_ChangeEvent(void* self, intptr_t slot); void QScrollBar_virtualbase_ChangeEvent(void* self, QEvent* e); -void QScrollBar_Delete(QScrollBar* self, bool isSubclass); +void QScrollBar_Delete(QScrollBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qscrollerproperties.cpp b/qt6/gen_qscrollerproperties.cpp index 7d06bc1b..b91c0b0b 100644 --- a/qt6/gen_qscrollerproperties.cpp +++ b/qt6/gen_qscrollerproperties.cpp @@ -47,11 +47,7 @@ void QScrollerProperties_SetScrollMetric(QScrollerProperties* self, int metric, self->setScrollMetric(static_cast(metric), *value); } -void QScrollerProperties_Delete(QScrollerProperties* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QScrollerProperties_Delete(QScrollerProperties* self) { + delete self; } diff --git a/qt6/gen_qscrollerproperties.go b/qt6/gen_qscrollerproperties.go index 016962fc..8d8eb7c6 100644 --- a/qt6/gen_qscrollerproperties.go +++ b/qt6/gen_qscrollerproperties.go @@ -137,7 +137,7 @@ func (this *QScrollerProperties) SetScrollMetric(metric QScrollerProperties__Scr // Delete this object from C++ memory. func (this *QScrollerProperties) Delete() { - C.QScrollerProperties_Delete(this.h, C.bool(this.isSubclass)) + C.QScrollerProperties_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qscrollerproperties.h b/qt6/gen_qscrollerproperties.h index 82f7c6c4..0bb14424 100644 --- a/qt6/gen_qscrollerproperties.h +++ b/qt6/gen_qscrollerproperties.h @@ -31,7 +31,7 @@ void QScrollerProperties_SetDefaultScrollerProperties(QScrollerProperties* sp); void QScrollerProperties_UnsetDefaultScrollerProperties(); QVariant* QScrollerProperties_ScrollMetric(const QScrollerProperties* self, int metric); void QScrollerProperties_SetScrollMetric(QScrollerProperties* self, int metric, QVariant* value); -void QScrollerProperties_Delete(QScrollerProperties* self, bool isSubclass); +void QScrollerProperties_Delete(QScrollerProperties* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsemaphore.cpp b/qt6/gen_qsemaphore.cpp index 02f2f618..12e99343 100644 --- a/qt6/gen_qsemaphore.cpp +++ b/qt6/gen_qsemaphore.cpp @@ -55,12 +55,8 @@ void QSemaphore_Release1(QSemaphore* self, int n) { self->release(static_cast(n)); } -void QSemaphore_Delete(QSemaphore* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSemaphore_Delete(QSemaphore* self) { + delete self; } QSemaphoreReleaser* QSemaphoreReleaser_new() { @@ -95,11 +91,7 @@ QSemaphore* QSemaphoreReleaser_Cancel(QSemaphoreReleaser* self) { return self->cancel(); } -void QSemaphoreReleaser_Delete(QSemaphoreReleaser* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSemaphoreReleaser_Delete(QSemaphoreReleaser* self) { + delete self; } diff --git a/qt6/gen_qsemaphore.go b/qt6/gen_qsemaphore.go index 4d6555e9..1a714726 100644 --- a/qt6/gen_qsemaphore.go +++ b/qt6/gen_qsemaphore.go @@ -100,7 +100,7 @@ func (this *QSemaphore) Release1(n int) { // Delete this object from C++ memory. func (this *QSemaphore) Delete() { - C.QSemaphore_Delete(this.h, C.bool(this.isSubclass)) + C.QSemaphore_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -199,7 +199,7 @@ func (this *QSemaphoreReleaser) Cancel() *QSemaphore { // Delete this object from C++ memory. func (this *QSemaphoreReleaser) Delete() { - C.QSemaphoreReleaser_Delete(this.h, C.bool(this.isSubclass)) + C.QSemaphoreReleaser_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsemaphore.h b/qt6/gen_qsemaphore.h index 48786235..2c2b988f 100644 --- a/qt6/gen_qsemaphore.h +++ b/qt6/gen_qsemaphore.h @@ -33,7 +33,7 @@ bool QSemaphore_TryAcquire3(QSemaphore* self); void QSemaphore_Acquire1(QSemaphore* self, int n); bool QSemaphore_TryAcquire1(QSemaphore* self, int n); void QSemaphore_Release1(QSemaphore* self, int n); -void QSemaphore_Delete(QSemaphore* self, bool isSubclass); +void QSemaphore_Delete(QSemaphore* self); QSemaphoreReleaser* QSemaphoreReleaser_new(); QSemaphoreReleaser* QSemaphoreReleaser_new2(QSemaphore* sem); @@ -43,7 +43,7 @@ QSemaphoreReleaser* QSemaphoreReleaser_new5(QSemaphore* sem, int n); void QSemaphoreReleaser_Swap(QSemaphoreReleaser* self, QSemaphoreReleaser* other); QSemaphore* QSemaphoreReleaser_Semaphore(const QSemaphoreReleaser* self); QSemaphore* QSemaphoreReleaser_Cancel(QSemaphoreReleaser* self); -void QSemaphoreReleaser_Delete(QSemaphoreReleaser* self, bool isSubclass); +void QSemaphoreReleaser_Delete(QSemaphoreReleaser* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsequentialanimationgroup.cpp b/qt6/gen_qsequentialanimationgroup.cpp index 8cbd68ad..61690640 100644 --- a/qt6/gen_qsequentialanimationgroup.cpp +++ b/qt6/gen_qsequentialanimationgroup.cpp @@ -25,13 +25,13 @@ void miqt_exec_callback_QSequentialAnimationGroup_UpdateDirection(void*, intptr_ } /* extern C */ #endif -class MiqtVirtualQSequentialAnimationGroup : public virtual QSequentialAnimationGroup { +class MiqtVirtualQSequentialAnimationGroup final : public QSequentialAnimationGroup { public: MiqtVirtualQSequentialAnimationGroup(): QSequentialAnimationGroup() {}; MiqtVirtualQSequentialAnimationGroup(QObject* parent): QSequentialAnimationGroup(parent) {}; - virtual ~MiqtVirtualQSequentialAnimationGroup() = default; + virtual ~MiqtVirtualQSequentialAnimationGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Duration = 0; @@ -276,11 +276,7 @@ void QSequentialAnimationGroup_virtualbase_UpdateDirection(void* self, int direc ( (MiqtVirtualQSequentialAnimationGroup*)(self) )->virtualbase_UpdateDirection(direction); } -void QSequentialAnimationGroup_Delete(QSequentialAnimationGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSequentialAnimationGroup_Delete(QSequentialAnimationGroup* self) { + delete self; } diff --git a/qt6/gen_qsequentialanimationgroup.go b/qt6/gen_qsequentialanimationgroup.go index 81aa2ecd..6f925ea2 100644 --- a/qt6/gen_qsequentialanimationgroup.go +++ b/qt6/gen_qsequentialanimationgroup.go @@ -279,7 +279,7 @@ func miqt_exec_callback_QSequentialAnimationGroup_UpdateDirection(self *C.QSeque // Delete this object from C++ memory. func (this *QSequentialAnimationGroup) Delete() { - C.QSequentialAnimationGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QSequentialAnimationGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsequentialanimationgroup.h b/qt6/gen_qsequentialanimationgroup.h index 83f3362b..90d9a15b 100644 --- a/qt6/gen_qsequentialanimationgroup.h +++ b/qt6/gen_qsequentialanimationgroup.h @@ -60,7 +60,7 @@ void QSequentialAnimationGroup_override_virtual_UpdateState(void* self, intptr_t void QSequentialAnimationGroup_virtualbase_UpdateState(void* self, int newState, int oldState); void QSequentialAnimationGroup_override_virtual_UpdateDirection(void* self, intptr_t slot); void QSequentialAnimationGroup_virtualbase_UpdateDirection(void* self, int direction); -void QSequentialAnimationGroup_Delete(QSequentialAnimationGroup* self, bool isSubclass); +void QSequentialAnimationGroup_Delete(QSequentialAnimationGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsettings.cpp b/qt6/gen_qsettings.cpp index 045c52d6..80799f7b 100644 --- a/qt6/gen_qsettings.cpp +++ b/qt6/gen_qsettings.cpp @@ -29,7 +29,7 @@ void miqt_exec_callback_QSettings_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQSettings : public virtual QSettings { +class MiqtVirtualQSettings final : public QSettings { public: MiqtVirtualQSettings(const QString& organization): QSettings(organization) {}; @@ -48,7 +48,7 @@ public: MiqtVirtualQSettings(QObject* parent): QSettings(parent) {}; MiqtVirtualQSettings(QSettings::Scope scope, QObject* parent): QSettings(scope, parent) {}; - virtual ~MiqtVirtualQSettings() = default; + virtual ~MiqtVirtualQSettings() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -610,11 +610,7 @@ void QSettings_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQSettings*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSettings_Delete(QSettings* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSettings_Delete(QSettings* self) { + delete self; } diff --git a/qt6/gen_qsettings.go b/qt6/gen_qsettings.go index cd926ae2..81aa7de7 100644 --- a/qt6/gen_qsettings.go +++ b/qt6/gen_qsettings.go @@ -684,7 +684,7 @@ func miqt_exec_callback_QSettings_DisconnectNotify(self *C.QSettings, cb C.intpt // Delete this object from C++ memory. func (this *QSettings) Delete() { - C.QSettings_Delete(this.h, C.bool(this.isSubclass)) + C.QSettings_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsettings.h b/qt6/gen_qsettings.h index 21651dfd..ed33e1d0 100644 --- a/qt6/gen_qsettings.h +++ b/qt6/gen_qsettings.h @@ -104,7 +104,7 @@ void QSettings_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSettings_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSettings_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSettings_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSettings_Delete(QSettings* self, bool isSubclass); +void QSettings_Delete(QSettings* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qshareddata.cpp b/qt6/gen_qshareddata.cpp index 9cf813f1..38183af1 100644 --- a/qt6/gen_qshareddata.cpp +++ b/qt6/gen_qshareddata.cpp @@ -18,23 +18,15 @@ QSharedData* QSharedData_new2(QSharedData* param1) { return new QSharedData(*param1); } -void QSharedData_Delete(QSharedData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSharedData_Delete(QSharedData* self) { + delete self; } QAdoptSharedDataTag* QAdoptSharedDataTag_new() { return new QAdoptSharedDataTag(); } -void QAdoptSharedDataTag_Delete(QAdoptSharedDataTag* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAdoptSharedDataTag_Delete(QAdoptSharedDataTag* self) { + delete self; } diff --git a/qt6/gen_qshareddata.go b/qt6/gen_qshareddata.go index 4e45d707..d7280318 100644 --- a/qt6/gen_qshareddata.go +++ b/qt6/gen_qshareddata.go @@ -64,7 +64,7 @@ func NewQSharedData2(param1 *QSharedData) *QSharedData { // Delete this object from C++ memory. func (this *QSharedData) Delete() { - C.QSharedData_Delete(this.h, C.bool(this.isSubclass)) + C.QSharedData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -119,7 +119,7 @@ func NewQAdoptSharedDataTag() *QAdoptSharedDataTag { // Delete this object from C++ memory. func (this *QAdoptSharedDataTag) Delete() { - C.QAdoptSharedDataTag_Delete(this.h, C.bool(this.isSubclass)) + C.QAdoptSharedDataTag_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qshareddata.h b/qt6/gen_qshareddata.h index 1950b2ad..c5a2844d 100644 --- a/qt6/gen_qshareddata.h +++ b/qt6/gen_qshareddata.h @@ -24,10 +24,10 @@ typedef struct QSharedData QSharedData; QSharedData* QSharedData_new(); QSharedData* QSharedData_new2(QSharedData* param1); -void QSharedData_Delete(QSharedData* self, bool isSubclass); +void QSharedData_Delete(QSharedData* self); QAdoptSharedDataTag* QAdoptSharedDataTag_new(); -void QAdoptSharedDataTag_Delete(QAdoptSharedDataTag* self, bool isSubclass); +void QAdoptSharedDataTag_Delete(QAdoptSharedDataTag* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsharedmemory.cpp b/qt6/gen_qsharedmemory.cpp index a46927ec..e709b7ef 100644 --- a/qt6/gen_qsharedmemory.cpp +++ b/qt6/gen_qsharedmemory.cpp @@ -26,7 +26,7 @@ void miqt_exec_callback_QSharedMemory_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQSharedMemory : public virtual QSharedMemory { +class MiqtVirtualQSharedMemory final : public QSharedMemory { public: MiqtVirtualQSharedMemory(): QSharedMemory() {}; @@ -34,7 +34,7 @@ public: MiqtVirtualQSharedMemory(QObject* parent): QSharedMemory(parent) {}; MiqtVirtualQSharedMemory(const QString& key, QObject* parent): QSharedMemory(key, parent) {}; - virtual ~MiqtVirtualQSharedMemory() = default; + virtual ~MiqtVirtualQSharedMemory() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -425,11 +425,7 @@ void QSharedMemory_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQSharedMemory*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSharedMemory_Delete(QSharedMemory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSharedMemory_Delete(QSharedMemory* self) { + delete self; } diff --git a/qt6/gen_qsharedmemory.go b/qt6/gen_qsharedmemory.go index 4523db07..39fc2aab 100644 --- a/qt6/gen_qsharedmemory.go +++ b/qt6/gen_qsharedmemory.go @@ -432,7 +432,7 @@ func miqt_exec_callback_QSharedMemory_DisconnectNotify(self *C.QSharedMemory, cb // Delete this object from C++ memory. func (this *QSharedMemory) Delete() { - C.QSharedMemory_Delete(this.h, C.bool(this.isSubclass)) + C.QSharedMemory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsharedmemory.h b/qt6/gen_qsharedmemory.h index b1da394b..4632ad43 100644 --- a/qt6/gen_qsharedmemory.h +++ b/qt6/gen_qsharedmemory.h @@ -74,7 +74,7 @@ void QSharedMemory_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSharedMemory_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSharedMemory_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSharedMemory_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSharedMemory_Delete(QSharedMemory* self, bool isSubclass); +void QSharedMemory_Delete(QSharedMemory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qshortcut.cpp b/qt6/gen_qshortcut.cpp index 355b86eb..4cd7306a 100644 --- a/qt6/gen_qshortcut.cpp +++ b/qt6/gen_qshortcut.cpp @@ -30,7 +30,7 @@ void miqt_exec_callback_QShortcut_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQShortcut : public virtual QShortcut { +class MiqtVirtualQShortcut final : public QShortcut { public: MiqtVirtualQShortcut(QObject* parent): QShortcut(parent) {}; @@ -43,7 +43,7 @@ public: MiqtVirtualQShortcut(QKeySequence::StandardKey key, QObject* parent, const char* member, const char* ambiguousMember): QShortcut(key, parent, member, ambiguousMember) {}; MiqtVirtualQShortcut(QKeySequence::StandardKey key, QObject* parent, const char* member, const char* ambiguousMember, Qt::ShortcutContext context): QShortcut(key, parent, member, ambiguousMember, context) {}; - virtual ~MiqtVirtualQShortcut() = default; + virtual ~MiqtVirtualQShortcut() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -455,11 +455,7 @@ void QShortcut_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQShortcut*)(self) )->virtualbase_DisconnectNotify(signal); } -void QShortcut_Delete(QShortcut* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QShortcut_Delete(QShortcut* self) { + delete self; } diff --git a/qt6/gen_qshortcut.go b/qt6/gen_qshortcut.go index 6a61a112..b150d3c1 100644 --- a/qt6/gen_qshortcut.go +++ b/qt6/gen_qshortcut.go @@ -487,7 +487,7 @@ func miqt_exec_callback_QShortcut_DisconnectNotify(self *C.QShortcut, cb C.intpt // Delete this object from C++ memory. func (this *QShortcut) Delete() { - C.QShortcut_Delete(this.h, C.bool(this.isSubclass)) + C.QShortcut_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qshortcut.h b/qt6/gen_qshortcut.h index ef605b17..30fae476 100644 --- a/qt6/gen_qshortcut.h +++ b/qt6/gen_qshortcut.h @@ -82,7 +82,7 @@ void QShortcut_override_virtual_ConnectNotify(void* self, intptr_t slot); void QShortcut_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QShortcut_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QShortcut_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QShortcut_Delete(QShortcut* self, bool isSubclass); +void QShortcut_Delete(QShortcut* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsignalmapper.cpp b/qt6/gen_qsignalmapper.cpp index 407dc99b..f41d2f04 100644 --- a/qt6/gen_qsignalmapper.cpp +++ b/qt6/gen_qsignalmapper.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QSignalMapper_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQSignalMapper : public virtual QSignalMapper { +class MiqtVirtualQSignalMapper final : public QSignalMapper { public: MiqtVirtualQSignalMapper(): QSignalMapper() {}; MiqtVirtualQSignalMapper(QObject* parent): QSignalMapper(parent) {}; - virtual ~MiqtVirtualQSignalMapper() = default; + virtual ~MiqtVirtualQSignalMapper() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -398,11 +398,7 @@ void QSignalMapper_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQSignalMapper*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSignalMapper_Delete(QSignalMapper* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSignalMapper_Delete(QSignalMapper* self) { + delete self; } diff --git a/qt6/gen_qsignalmapper.go b/qt6/gen_qsignalmapper.go index 43a69f16..c2cf1846 100644 --- a/qt6/gen_qsignalmapper.go +++ b/qt6/gen_qsignalmapper.go @@ -409,7 +409,7 @@ func miqt_exec_callback_QSignalMapper_DisconnectNotify(self *C.QSignalMapper, cb // Delete this object from C++ memory. func (this *QSignalMapper) Delete() { - C.QSignalMapper_Delete(this.h, C.bool(this.isSubclass)) + C.QSignalMapper_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsignalmapper.h b/qt6/gen_qsignalmapper.h index 78661813..d76fe130 100644 --- a/qt6/gen_qsignalmapper.h +++ b/qt6/gen_qsignalmapper.h @@ -69,7 +69,7 @@ void QSignalMapper_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSignalMapper_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSignalMapper_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSignalMapper_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSignalMapper_Delete(QSignalMapper* self, bool isSubclass); +void QSignalMapper_Delete(QSignalMapper* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsize.cpp b/qt6/gen_qsize.cpp index ae885c9e..cea29144 100644 --- a/qt6/gen_qsize.cpp +++ b/qt6/gen_qsize.cpp @@ -121,12 +121,8 @@ QSizeF* QSize_ToSizeF(const QSize* self) { return new QSizeF(self->toSizeF()); } -void QSize_Delete(QSize* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSize_Delete(QSize* self) { + delete self; } QSizeF* QSizeF_new() { @@ -243,11 +239,7 @@ QSize* QSizeF_ToSize(const QSizeF* self) { return new QSize(self->toSize()); } -void QSizeF_Delete(QSizeF* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSizeF_Delete(QSizeF* self) { + delete self; } diff --git a/qt6/gen_qsize.go b/qt6/gen_qsize.go index 850513c3..07f23278 100644 --- a/qt6/gen_qsize.go +++ b/qt6/gen_qsize.go @@ -176,7 +176,7 @@ func (this *QSize) ToSizeF() *QSizeF { // Delete this object from C++ memory. func (this *QSize) Delete() { - C.QSize_Delete(this.h, C.bool(this.isSubclass)) + C.QSize_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -359,7 +359,7 @@ func (this *QSizeF) ToSize() *QSize { // Delete this object from C++ memory. func (this *QSizeF) Delete() { - C.QSizeF_Delete(this.h, C.bool(this.isSubclass)) + C.QSizeF_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsize.h b/qt6/gen_qsize.h index 118ee8bd..d9d2a8e7 100644 --- a/qt6/gen_qsize.h +++ b/qt6/gen_qsize.h @@ -51,7 +51,7 @@ QSize* QSize_OperatorMinusAssign(QSize* self, QSize* param1); QSize* QSize_OperatorMultiplyAssign(QSize* self, double c); QSize* QSize_OperatorDivideAssign(QSize* self, double c); QSizeF* QSize_ToSizeF(const QSize* self); -void QSize_Delete(QSize* self, bool isSubclass); +void QSize_Delete(QSize* self); QSizeF* QSizeF_new(); QSizeF* QSizeF_new2(QSize* sz); @@ -79,7 +79,7 @@ QSizeF* QSizeF_OperatorMinusAssign(QSizeF* self, QSizeF* param1); QSizeF* QSizeF_OperatorMultiplyAssign(QSizeF* self, double c); QSizeF* QSizeF_OperatorDivideAssign(QSizeF* self, double c); QSize* QSizeF_ToSize(const QSizeF* self); -void QSizeF_Delete(QSizeF* self, bool isSubclass); +void QSizeF_Delete(QSizeF* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsizegrip.cpp b/qt6/gen_qsizegrip.cpp index 9fe5f7fc..623d32db 100644 --- a/qt6/gen_qsizegrip.cpp +++ b/qt6/gen_qsizegrip.cpp @@ -85,12 +85,12 @@ bool miqt_exec_callback_QSizeGrip_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQSizeGrip : public virtual QSizeGrip { +class MiqtVirtualQSizeGrip final : public QSizeGrip { public: MiqtVirtualQSizeGrip(QWidget* parent): QSizeGrip(parent) {}; - virtual ~MiqtVirtualQSizeGrip() = default; + virtual ~MiqtVirtualQSizeGrip() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1487,11 +1487,7 @@ bool QSizeGrip_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQSizeGrip*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QSizeGrip_Delete(QSizeGrip* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSizeGrip_Delete(QSizeGrip* self) { + delete self; } diff --git a/qt6/gen_qsizegrip.go b/qt6/gen_qsizegrip.go index 05249096..6a621414 100644 --- a/qt6/gen_qsizegrip.go +++ b/qt6/gen_qsizegrip.go @@ -1231,7 +1231,7 @@ func miqt_exec_callback_QSizeGrip_FocusNextPrevChild(self *C.QSizeGrip, cb C.int // Delete this object from C++ memory. func (this *QSizeGrip) Delete() { - C.QSizeGrip_Delete(this.h, C.bool(this.isSubclass)) + C.QSizeGrip_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsizegrip.h b/qt6/gen_qsizegrip.h index ea19fccd..1b4ff50a 100644 --- a/qt6/gen_qsizegrip.h +++ b/qt6/gen_qsizegrip.h @@ -180,7 +180,7 @@ void QSizeGrip_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QSizeGrip_virtualbase_InputMethodQuery(const void* self, int param1); void QSizeGrip_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QSizeGrip_virtualbase_FocusNextPrevChild(void* self, bool next); -void QSizeGrip_Delete(QSizeGrip* self, bool isSubclass); +void QSizeGrip_Delete(QSizeGrip* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsizepolicy.cpp b/qt6/gen_qsizepolicy.cpp index 341fbb18..71e22b05 100644 --- a/qt6/gen_qsizepolicy.cpp +++ b/qt6/gen_qsizepolicy.cpp @@ -119,11 +119,7 @@ QSizePolicy* QSizePolicy_Transposed(const QSizePolicy* self) { return new QSizePolicy(self->transposed()); } -void QSizePolicy_Delete(QSizePolicy* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSizePolicy_Delete(QSizePolicy* self) { + delete self; } diff --git a/qt6/gen_qsizepolicy.go b/qt6/gen_qsizepolicy.go index 26d48d27..f49b581d 100644 --- a/qt6/gen_qsizepolicy.go +++ b/qt6/gen_qsizepolicy.go @@ -213,7 +213,7 @@ func (this *QSizePolicy) Transposed() *QSizePolicy { // Delete this object from C++ memory. func (this *QSizePolicy) Delete() { - C.QSizePolicy_Delete(this.h, C.bool(this.isSubclass)) + C.QSizePolicy_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsizepolicy.h b/qt6/gen_qsizepolicy.h index 2130a546..053215f4 100644 --- a/qt6/gen_qsizepolicy.h +++ b/qt6/gen_qsizepolicy.h @@ -48,7 +48,7 @@ bool QSizePolicy_RetainSizeWhenHidden(const QSizePolicy* self); void QSizePolicy_SetRetainSizeWhenHidden(QSizePolicy* self, bool retainSize); void QSizePolicy_Transpose(QSizePolicy* self); QSizePolicy* QSizePolicy_Transposed(const QSizePolicy* self); -void QSizePolicy_Delete(QSizePolicy* self, bool isSubclass); +void QSizePolicy_Delete(QSizePolicy* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qslider.cpp b/qt6/gen_qslider.cpp index d0f4b653..b1d5843b 100644 --- a/qt6/gen_qslider.cpp +++ b/qt6/gen_qslider.cpp @@ -39,7 +39,7 @@ void miqt_exec_callback_QSlider_ChangeEvent(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQSlider : public virtual QSlider { +class MiqtVirtualQSlider final : public QSlider { public: MiqtVirtualQSlider(QWidget* parent): QSlider(parent) {}; @@ -47,7 +47,7 @@ public: MiqtVirtualQSlider(Qt::Orientation orientation): QSlider(orientation) {}; MiqtVirtualQSlider(Qt::Orientation orientation, QWidget* parent): QSlider(orientation, parent) {}; - virtual ~MiqtVirtualQSlider() = default; + virtual ~MiqtVirtualQSlider() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -553,11 +553,7 @@ void QSlider_virtualbase_ChangeEvent(void* self, QEvent* e) { ( (MiqtVirtualQSlider*)(self) )->virtualbase_ChangeEvent(e); } -void QSlider_Delete(QSlider* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSlider_Delete(QSlider* self) { + delete self; } diff --git a/qt6/gen_qslider.go b/qt6/gen_qslider.go index fa539efd..4721f8e0 100644 --- a/qt6/gen_qslider.go +++ b/qt6/gen_qslider.go @@ -511,7 +511,7 @@ func miqt_exec_callback_QSlider_ChangeEvent(self *C.QSlider, cb C.intptr_t, e *C // Delete this object from C++ memory. func (this *QSlider) Delete() { - C.QSlider_Delete(this.h, C.bool(this.isSubclass)) + C.QSlider_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qslider.h b/qt6/gen_qslider.h index 333cb2ac..8ac51641 100644 --- a/qt6/gen_qslider.h +++ b/qt6/gen_qslider.h @@ -94,7 +94,7 @@ void QSlider_override_virtual_WheelEvent(void* self, intptr_t slot); void QSlider_virtualbase_WheelEvent(void* self, QWheelEvent* e); void QSlider_override_virtual_ChangeEvent(void* self, intptr_t slot); void QSlider_virtualbase_ChangeEvent(void* self, QEvent* e); -void QSlider_Delete(QSlider* self, bool isSubclass); +void QSlider_Delete(QSlider* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsocketnotifier.cpp b/qt6/gen_qsocketnotifier.cpp index 5d9141b5..c033ff2b 100644 --- a/qt6/gen_qsocketnotifier.cpp +++ b/qt6/gen_qsocketnotifier.cpp @@ -27,7 +27,7 @@ void miqt_exec_callback_QSocketNotifier_DisconnectNotify(void*, intptr_t, QMetaM } /* extern C */ #endif -class MiqtVirtualQSocketNotifier : public virtual QSocketNotifier { +class MiqtVirtualQSocketNotifier final : public QSocketNotifier { public: MiqtVirtualQSocketNotifier(QSocketNotifier::Type param1): QSocketNotifier(param1) {}; @@ -35,7 +35,7 @@ public: MiqtVirtualQSocketNotifier(QSocketNotifier::Type param1, QObject* parent): QSocketNotifier(param1, parent) {}; MiqtVirtualQSocketNotifier(qintptr socket, QSocketNotifier::Type param2, QObject* parent): QSocketNotifier(socket, param2, parent) {}; - virtual ~MiqtVirtualQSocketNotifier() = default; + virtual ~MiqtVirtualQSocketNotifier() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -353,12 +353,8 @@ void QSocketNotifier_virtualbase_DisconnectNotify(void* self, QMetaMethod* signa ( (MiqtVirtualQSocketNotifier*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSocketNotifier_Delete(QSocketNotifier* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSocketNotifier_Delete(QSocketNotifier* self) { + delete self; } QSocketDescriptor* QSocketDescriptor_new() { @@ -391,11 +387,7 @@ bool QSocketDescriptor_IsValid(const QSocketDescriptor* self) { return self->isValid(); } -void QSocketDescriptor_Delete(QSocketDescriptor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSocketDescriptor_Delete(QSocketDescriptor* self) { + delete self; } diff --git a/qt6/gen_qsocketnotifier.go b/qt6/gen_qsocketnotifier.go index 79963ab2..d5063799 100644 --- a/qt6/gen_qsocketnotifier.go +++ b/qt6/gen_qsocketnotifier.go @@ -346,7 +346,7 @@ func miqt_exec_callback_QSocketNotifier_DisconnectNotify(self *C.QSocketNotifier // Delete this object from C++ memory. func (this *QSocketNotifier) Delete() { - C.QSocketNotifier_Delete(this.h, C.bool(this.isSubclass)) + C.QSocketNotifier_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -433,7 +433,7 @@ func (this *QSocketDescriptor) IsValid() bool { // Delete this object from C++ memory. func (this *QSocketDescriptor) Delete() { - C.QSocketDescriptor_Delete(this.h, C.bool(this.isSubclass)) + C.QSocketDescriptor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsocketnotifier.h b/qt6/gen_qsocketnotifier.h index 34f0c00e..e80fb442 100644 --- a/qt6/gen_qsocketnotifier.h +++ b/qt6/gen_qsocketnotifier.h @@ -65,14 +65,14 @@ void QSocketNotifier_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSocketNotifier_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSocketNotifier_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSocketNotifier_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSocketNotifier_Delete(QSocketNotifier* self, bool isSubclass); +void QSocketNotifier_Delete(QSocketNotifier* self); QSocketDescriptor* QSocketDescriptor_new(); QSocketDescriptor* QSocketDescriptor_new2(QSocketDescriptor* param1); QSocketDescriptor* QSocketDescriptor_new3(int descriptor); int QSocketDescriptor_ToInt(const QSocketDescriptor* self); bool QSocketDescriptor_IsValid(const QSocketDescriptor* self); -void QSocketDescriptor_Delete(QSocketDescriptor* self, bool isSubclass); +void QSocketDescriptor_Delete(QSocketDescriptor* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsortfilterproxymodel.cpp b/qt6/gen_qsortfilterproxymodel.cpp index 029a159b..cfad8444 100644 --- a/qt6/gen_qsortfilterproxymodel.cpp +++ b/qt6/gen_qsortfilterproxymodel.cpp @@ -75,13 +75,13 @@ struct miqt_map /* of int to struct miqt_string */ miqt_exec_callback_QSortFilt } /* extern C */ #endif -class MiqtVirtualQSortFilterProxyModel : public virtual QSortFilterProxyModel { +class MiqtVirtualQSortFilterProxyModel final : public QSortFilterProxyModel { public: MiqtVirtualQSortFilterProxyModel(): QSortFilterProxyModel() {}; MiqtVirtualQSortFilterProxyModel(QObject* parent): QSortFilterProxyModel(parent) {}; - virtual ~MiqtVirtualQSortFilterProxyModel() = default; + virtual ~MiqtVirtualQSortFilterProxyModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetSourceModel = 0; @@ -1994,11 +1994,7 @@ struct miqt_map /* of int to struct miqt_string */ QSortFilterProxyModel_virtua return ( (const MiqtVirtualQSortFilterProxyModel*)(self) )->virtualbase_RoleNames(); } -void QSortFilterProxyModel_Delete(QSortFilterProxyModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSortFilterProxyModel_Delete(QSortFilterProxyModel* self) { + delete self; } diff --git a/qt6/gen_qsortfilterproxymodel.go b/qt6/gen_qsortfilterproxymodel.go index 189756fe..efe0179d 100644 --- a/qt6/gen_qsortfilterproxymodel.go +++ b/qt6/gen_qsortfilterproxymodel.go @@ -1905,7 +1905,7 @@ func miqt_exec_callback_QSortFilterProxyModel_RoleNames(self *C.QSortFilterProxy // Delete this object from C++ memory. func (this *QSortFilterProxyModel) Delete() { - C.QSortFilterProxyModel_Delete(this.h, C.bool(this.isSubclass)) + C.QSortFilterProxyModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsortfilterproxymodel.h b/qt6/gen_qsortfilterproxymodel.h index 67bb29b2..643caa59 100644 --- a/qt6/gen_qsortfilterproxymodel.h +++ b/qt6/gen_qsortfilterproxymodel.h @@ -205,7 +205,7 @@ void QSortFilterProxyModel_override_virtual_SupportedDragActions(void* self, int int QSortFilterProxyModel_virtualbase_SupportedDragActions(const void* self); void QSortFilterProxyModel_override_virtual_RoleNames(void* self, intptr_t slot); struct miqt_map /* of int to struct miqt_string */ QSortFilterProxyModel_virtualbase_RoleNames(const void* self); -void QSortFilterProxyModel_Delete(QSortFilterProxyModel* self, bool isSubclass); +void QSortFilterProxyModel_Delete(QSortFilterProxyModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qspinbox.cpp b/qt6/gen_qspinbox.cpp index 0216923c..1b480dd4 100644 --- a/qt6/gen_qspinbox.cpp +++ b/qt6/gen_qspinbox.cpp @@ -94,13 +94,13 @@ int miqt_exec_callback_QDoubleSpinBox_StepEnabled(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQSpinBox : public virtual QSpinBox { +class MiqtVirtualQSpinBox final : public QSpinBox { public: MiqtVirtualQSpinBox(QWidget* parent): QSpinBox(parent) {}; MiqtVirtualQSpinBox(): QSpinBox() {}; - virtual ~MiqtVirtualQSpinBox() = default; + virtual ~MiqtVirtualQSpinBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1203,21 +1203,17 @@ int QSpinBox_virtualbase_StepEnabled(const void* self) { return ( (const MiqtVirtualQSpinBox*)(self) )->virtualbase_StepEnabled(); } -void QSpinBox_Delete(QSpinBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSpinBox_Delete(QSpinBox* self) { + delete self; } -class MiqtVirtualQDoubleSpinBox : public virtual QDoubleSpinBox { +class MiqtVirtualQDoubleSpinBox final : public QDoubleSpinBox { public: MiqtVirtualQDoubleSpinBox(QWidget* parent): QDoubleSpinBox(parent) {}; MiqtVirtualQDoubleSpinBox(): QDoubleSpinBox() {}; - virtual ~MiqtVirtualQDoubleSpinBox() = default; + virtual ~MiqtVirtualQDoubleSpinBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Validate = 0; @@ -2347,11 +2343,7 @@ int QDoubleSpinBox_virtualbase_StepEnabled(const void* self) { return ( (const MiqtVirtualQDoubleSpinBox*)(self) )->virtualbase_StepEnabled(); } -void QDoubleSpinBox_Delete(QDoubleSpinBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDoubleSpinBox_Delete(QDoubleSpinBox* self) { + delete self; } diff --git a/qt6/gen_qspinbox.go b/qt6/gen_qspinbox.go index 9c6982dc..f5d0dd41 100644 --- a/qt6/gen_qspinbox.go +++ b/qt6/gen_qspinbox.go @@ -1012,7 +1012,7 @@ func miqt_exec_callback_QSpinBox_StepEnabled(self *C.QSpinBox, cb C.intptr_t) C. // Delete this object from C++ memory. func (this *QSpinBox) Delete() { - C.QSpinBox_Delete(this.h, C.bool(this.isSubclass)) + C.QSpinBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2053,7 +2053,7 @@ func miqt_exec_callback_QDoubleSpinBox_StepEnabled(self *C.QDoubleSpinBox, cb C. // Delete this object from C++ memory. func (this *QDoubleSpinBox) Delete() { - C.QDoubleSpinBox_Delete(this.h, C.bool(this.isSubclass)) + C.QDoubleSpinBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qspinbox.h b/qt6/gen_qspinbox.h index 7571c52a..5d7068b7 100644 --- a/qt6/gen_qspinbox.h +++ b/qt6/gen_qspinbox.h @@ -153,7 +153,7 @@ void QSpinBox_override_virtual_InitStyleOption(void* self, intptr_t slot); void QSpinBox_virtualbase_InitStyleOption(const void* self, QStyleOptionSpinBox* option); void QSpinBox_override_virtual_StepEnabled(void* self, intptr_t slot); int QSpinBox_virtualbase_StepEnabled(const void* self); -void QSpinBox_Delete(QSpinBox* self, bool isSubclass); +void QSpinBox_Delete(QSpinBox* self); QDoubleSpinBox* QDoubleSpinBox_new(QWidget* parent); QDoubleSpinBox* QDoubleSpinBox_new2(); @@ -245,7 +245,7 @@ void QDoubleSpinBox_override_virtual_InitStyleOption(void* self, intptr_t slot); void QDoubleSpinBox_virtualbase_InitStyleOption(const void* self, QStyleOptionSpinBox* option); void QDoubleSpinBox_override_virtual_StepEnabled(void* self, intptr_t slot); int QDoubleSpinBox_virtualbase_StepEnabled(const void* self); -void QDoubleSpinBox_Delete(QDoubleSpinBox* self, bool isSubclass); +void QDoubleSpinBox_Delete(QDoubleSpinBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsplashscreen.cpp b/qt6/gen_qsplashscreen.cpp index 2e6c3c67..c42347b1 100644 --- a/qt6/gen_qsplashscreen.cpp +++ b/qt6/gen_qsplashscreen.cpp @@ -89,7 +89,7 @@ bool miqt_exec_callback_QSplashScreen_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQSplashScreen : public virtual QSplashScreen { +class MiqtVirtualQSplashScreen final : public QSplashScreen { public: MiqtVirtualQSplashScreen(): QSplashScreen() {}; @@ -99,7 +99,7 @@ public: MiqtVirtualQSplashScreen(QScreen* screen, const QPixmap& pixmap): QSplashScreen(screen, pixmap) {}; MiqtVirtualQSplashScreen(QScreen* screen, const QPixmap& pixmap, Qt::WindowFlags f): QSplashScreen(screen, pixmap, f) {}; - virtual ~MiqtVirtualQSplashScreen() = default; + virtual ~MiqtVirtualQSplashScreen() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -1573,11 +1573,7 @@ bool QSplashScreen_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQSplashScreen*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QSplashScreen_Delete(QSplashScreen* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSplashScreen_Delete(QSplashScreen* self) { + delete self; } diff --git a/qt6/gen_qsplashscreen.go b/qt6/gen_qsplashscreen.go index c13995b8..b49c9b8d 100644 --- a/qt6/gen_qsplashscreen.go +++ b/qt6/gen_qsplashscreen.go @@ -1337,7 +1337,7 @@ func miqt_exec_callback_QSplashScreen_FocusNextPrevChild(self *C.QSplashScreen, // Delete this object from C++ memory. func (this *QSplashScreen) Delete() { - C.QSplashScreen_Delete(this.h, C.bool(this.isSubclass)) + C.QSplashScreen_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsplashscreen.h b/qt6/gen_qsplashscreen.h index 7863c682..fefc5f8a 100644 --- a/qt6/gen_qsplashscreen.h +++ b/qt6/gen_qsplashscreen.h @@ -194,7 +194,7 @@ void QSplashScreen_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QSplashScreen_virtualbase_InputMethodQuery(const void* self, int param1); void QSplashScreen_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QSplashScreen_virtualbase_FocusNextPrevChild(void* self, bool next); -void QSplashScreen_Delete(QSplashScreen* self, bool isSubclass); +void QSplashScreen_Delete(QSplashScreen* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsplitter.cpp b/qt6/gen_qsplitter.cpp index 8361be22..ff263359 100644 --- a/qt6/gen_qsplitter.cpp +++ b/qt6/gen_qsplitter.cpp @@ -99,7 +99,7 @@ bool miqt_exec_callback_QSplitterHandle_FocusNextPrevChild(void*, intptr_t, bool } /* extern C */ #endif -class MiqtVirtualQSplitter : public virtual QSplitter { +class MiqtVirtualQSplitter final : public QSplitter { public: MiqtVirtualQSplitter(QWidget* parent): QSplitter(parent) {}; @@ -107,7 +107,7 @@ public: MiqtVirtualQSplitter(Qt::Orientation param1): QSplitter(param1) {}; MiqtVirtualQSplitter(Qt::Orientation param1, QWidget* parent): QSplitter(param1, parent) {}; - virtual ~MiqtVirtualQSplitter() = default; + virtual ~MiqtVirtualQSplitter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -595,20 +595,16 @@ void QSplitter_virtualbase_InitStyleOption(const void* self, QStyleOptionFrame* ( (const MiqtVirtualQSplitter*)(self) )->virtualbase_InitStyleOption(option); } -void QSplitter_Delete(QSplitter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSplitter_Delete(QSplitter* self) { + delete self; } -class MiqtVirtualQSplitterHandle : public virtual QSplitterHandle { +class MiqtVirtualQSplitterHandle final : public QSplitterHandle { public: MiqtVirtualQSplitterHandle(Qt::Orientation o, QSplitter* parent): QSplitterHandle(o, parent) {}; - virtual ~MiqtVirtualQSplitterHandle() = default; + virtual ~MiqtVirtualQSplitterHandle() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1986,11 +1982,7 @@ bool QSplitterHandle_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQSplitterHandle*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QSplitterHandle_Delete(QSplitterHandle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSplitterHandle_Delete(QSplitterHandle* self) { + delete self; } diff --git a/qt6/gen_qsplitter.go b/qt6/gen_qsplitter.go index b4b0b7ae..c2000e3b 100644 --- a/qt6/gen_qsplitter.go +++ b/qt6/gen_qsplitter.go @@ -515,7 +515,7 @@ func miqt_exec_callback_QSplitter_InitStyleOption(self *C.QSplitter, cb C.intptr // Delete this object from C++ memory. func (this *QSplitter) Delete() { - C.QSplitter_Delete(this.h, C.bool(this.isSubclass)) + C.QSplitter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1726,7 +1726,7 @@ func miqt_exec_callback_QSplitterHandle_FocusNextPrevChild(self *C.QSplitterHand // Delete this object from C++ memory. func (this *QSplitterHandle) Delete() { - C.QSplitterHandle_Delete(this.h, C.bool(this.isSubclass)) + C.QSplitterHandle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsplitter.h b/qt6/gen_qsplitter.h index 9b2e92b7..18934082 100644 --- a/qt6/gen_qsplitter.h +++ b/qt6/gen_qsplitter.h @@ -148,7 +148,7 @@ void QSplitter_override_virtual_PaintEvent(void* self, intptr_t slot); void QSplitter_virtualbase_PaintEvent(void* self, QPaintEvent* param1); void QSplitter_override_virtual_InitStyleOption(void* self, intptr_t slot); void QSplitter_virtualbase_InitStyleOption(const void* self, QStyleOptionFrame* option); -void QSplitter_Delete(QSplitter* self, bool isSubclass); +void QSplitter_Delete(QSplitter* self); QSplitterHandle* QSplitterHandle_new(int o, QSplitter* parent); void QSplitterHandle_virtbase(QSplitterHandle* src, QWidget** outptr_QWidget); @@ -250,7 +250,7 @@ void QSplitterHandle_override_virtual_InputMethodQuery(void* self, intptr_t slot QVariant* QSplitterHandle_virtualbase_InputMethodQuery(const void* self, int param1); void QSplitterHandle_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QSplitterHandle_virtualbase_FocusNextPrevChild(void* self, bool next); -void QSplitterHandle_Delete(QSplitterHandle* self, bool isSubclass); +void QSplitterHandle_Delete(QSplitterHandle* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstackedlayout.cpp b/qt6/gen_qstackedlayout.cpp index accd4183..9b36e80c 100644 --- a/qt6/gen_qstackedlayout.cpp +++ b/qt6/gen_qstackedlayout.cpp @@ -44,14 +44,14 @@ void miqt_exec_callback_QStackedLayout_ChildEvent(void*, intptr_t, QChildEvent*) } /* extern C */ #endif -class MiqtVirtualQStackedLayout : public virtual QStackedLayout { +class MiqtVirtualQStackedLayout final : public QStackedLayout { public: MiqtVirtualQStackedLayout(QWidget* parent): QStackedLayout(parent) {}; MiqtVirtualQStackedLayout(): QStackedLayout() {}; MiqtVirtualQStackedLayout(QLayout* parentLayout): QStackedLayout(parentLayout) {}; - virtual ~MiqtVirtualQStackedLayout() = default; + virtual ~MiqtVirtualQStackedLayout() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Count = 0; @@ -858,11 +858,7 @@ void QStackedLayout_virtualbase_ChildEvent(void* self, QChildEvent* e) { ( (MiqtVirtualQStackedLayout*)(self) )->virtualbase_ChildEvent(e); } -void QStackedLayout_Delete(QStackedLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStackedLayout_Delete(QStackedLayout* self) { + delete self; } diff --git a/qt6/gen_qstackedlayout.go b/qt6/gen_qstackedlayout.go index 6b660525..304337d6 100644 --- a/qt6/gen_qstackedlayout.go +++ b/qt6/gen_qstackedlayout.go @@ -795,7 +795,7 @@ func miqt_exec_callback_QStackedLayout_ChildEvent(self *C.QStackedLayout, cb C.i // Delete this object from C++ memory. func (this *QStackedLayout) Delete() { - C.QStackedLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QStackedLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstackedlayout.h b/qt6/gen_qstackedlayout.h index ad235049..03cbd5ab 100644 --- a/qt6/gen_qstackedlayout.h +++ b/qt6/gen_qstackedlayout.h @@ -109,7 +109,7 @@ void QStackedLayout_override_virtual_Layout(void* self, intptr_t slot); QLayout* QStackedLayout_virtualbase_Layout(void* self); void QStackedLayout_override_virtual_ChildEvent(void* self, intptr_t slot); void QStackedLayout_virtualbase_ChildEvent(void* self, QChildEvent* e); -void QStackedLayout_Delete(QStackedLayout* self, bool isSubclass); +void QStackedLayout_Delete(QStackedLayout* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstackedwidget.cpp b/qt6/gen_qstackedwidget.cpp index 1bece7e5..204ab3f8 100644 --- a/qt6/gen_qstackedwidget.cpp +++ b/qt6/gen_qstackedwidget.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QStackedWidget_InitStyleOption(void*, intptr_t, QStyleOp } /* extern C */ #endif -class MiqtVirtualQStackedWidget : public virtual QStackedWidget { +class MiqtVirtualQStackedWidget final : public QStackedWidget { public: MiqtVirtualQStackedWidget(QWidget* parent): QStackedWidget(parent) {}; MiqtVirtualQStackedWidget(): QStackedWidget() {}; - virtual ~MiqtVirtualQStackedWidget() = default; + virtual ~MiqtVirtualQStackedWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -311,11 +311,7 @@ void QStackedWidget_virtualbase_InitStyleOption(const void* self, QStyleOptionFr ( (const MiqtVirtualQStackedWidget*)(self) )->virtualbase_InitStyleOption(option); } -void QStackedWidget_Delete(QStackedWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStackedWidget_Delete(QStackedWidget* self) { + delete self; } diff --git a/qt6/gen_qstackedwidget.go b/qt6/gen_qstackedwidget.go index 0f8c64b0..664bc453 100644 --- a/qt6/gen_qstackedwidget.go +++ b/qt6/gen_qstackedwidget.go @@ -323,7 +323,7 @@ func miqt_exec_callback_QStackedWidget_InitStyleOption(self *C.QStackedWidget, c // Delete this object from C++ memory. func (this *QStackedWidget) Delete() { - C.QStackedWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QStackedWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstackedwidget.h b/qt6/gen_qstackedwidget.h index d7f3764c..4e5788e7 100644 --- a/qt6/gen_qstackedwidget.h +++ b/qt6/gen_qstackedwidget.h @@ -71,7 +71,7 @@ void QStackedWidget_override_virtual_ChangeEvent(void* self, intptr_t slot); void QStackedWidget_virtualbase_ChangeEvent(void* self, QEvent* param1); void QStackedWidget_override_virtual_InitStyleOption(void* self, intptr_t slot); void QStackedWidget_virtualbase_InitStyleOption(const void* self, QStyleOptionFrame* option); -void QStackedWidget_Delete(QStackedWidget* self, bool isSubclass); +void QStackedWidget_Delete(QStackedWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstandarditemmodel.cpp b/qt6/gen_qstandarditemmodel.cpp index 3381c11a..e837c84d 100644 --- a/qt6/gen_qstandarditemmodel.cpp +++ b/qt6/gen_qstandarditemmodel.cpp @@ -75,7 +75,7 @@ void miqt_exec_callback_QStandardItemModel_ResetInternalData(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQStandardItem : public virtual QStandardItem { +class MiqtVirtualQStandardItem final : public QStandardItem { public: MiqtVirtualQStandardItem(): QStandardItem() {}; @@ -84,7 +84,7 @@ public: MiqtVirtualQStandardItem(int rows): QStandardItem(rows) {}; MiqtVirtualQStandardItem(int rows, int columns): QStandardItem(rows, columns) {}; - virtual ~MiqtVirtualQStandardItem() = default; + virtual ~MiqtVirtualQStandardItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Data = 0; @@ -822,15 +822,11 @@ bool QStandardItem_virtualbase_OperatorLesser(const void* self, QStandardItem* o return ( (const MiqtVirtualQStandardItem*)(self) )->virtualbase_OperatorLesser(other); } -void QStandardItem_Delete(QStandardItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStandardItem_Delete(QStandardItem* self) { + delete self; } -class MiqtVirtualQStandardItemModel : public virtual QStandardItemModel { +class MiqtVirtualQStandardItemModel final : public QStandardItemModel { public: MiqtVirtualQStandardItemModel(): QStandardItemModel() {}; @@ -838,7 +834,7 @@ public: MiqtVirtualQStandardItemModel(QObject* parent): QStandardItemModel(parent) {}; MiqtVirtualQStandardItemModel(int rows, int columns, QObject* parent): QStandardItemModel(rows, columns, parent) {}; - virtual ~MiqtVirtualQStandardItemModel() = default; + virtual ~MiqtVirtualQStandardItemModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__RoleNames = 0; @@ -2706,11 +2702,7 @@ void QStandardItemModel_virtualbase_ResetInternalData(void* self) { ( (MiqtVirtualQStandardItemModel*)(self) )->virtualbase_ResetInternalData(); } -void QStandardItemModel_Delete(QStandardItemModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStandardItemModel_Delete(QStandardItemModel* self) { + delete self; } diff --git a/qt6/gen_qstandarditemmodel.go b/qt6/gen_qstandarditemmodel.go index 699c956a..b15dd22d 100644 --- a/qt6/gen_qstandarditemmodel.go +++ b/qt6/gen_qstandarditemmodel.go @@ -772,7 +772,7 @@ func miqt_exec_callback_QStandardItem_OperatorLesser(self *C.QStandardItem, cb C // Delete this object from C++ memory. func (this *QStandardItem) Delete() { - C.QStandardItem_Delete(this.h, C.bool(this.isSubclass)) + C.QStandardItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2583,7 +2583,7 @@ func miqt_exec_callback_QStandardItemModel_ResetInternalData(self *C.QStandardIt // Delete this object from C++ memory. func (this *QStandardItemModel) Delete() { - C.QStandardItemModel_Delete(this.h, C.bool(this.isSubclass)) + C.QStandardItemModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstandarditemmodel.h b/qt6/gen_qstandarditemmodel.h index fd66d365..ac5a041b 100644 --- a/qt6/gen_qstandarditemmodel.h +++ b/qt6/gen_qstandarditemmodel.h @@ -154,7 +154,7 @@ void QStandardItem_override_virtual_Write(void* self, intptr_t slot); void QStandardItem_virtualbase_Write(const void* self, QDataStream* out); void QStandardItem_override_virtual_OperatorLesser(void* self, intptr_t slot); bool QStandardItem_virtualbase_OperatorLesser(const void* self, QStandardItem* other); -void QStandardItem_Delete(QStandardItem* self, bool isSubclass); +void QStandardItem_Delete(QStandardItem* self); QStandardItemModel* QStandardItemModel_new(); QStandardItemModel* QStandardItemModel_new2(int rows, int columns); @@ -306,7 +306,7 @@ void QStandardItemModel_override_virtual_Revert(void* self, intptr_t slot); void QStandardItemModel_virtualbase_Revert(void* self); void QStandardItemModel_override_virtual_ResetInternalData(void* self, intptr_t slot); void QStandardItemModel_virtualbase_ResetInternalData(void* self); -void QStandardItemModel_Delete(QStandardItemModel* self, bool isSubclass); +void QStandardItemModel_Delete(QStandardItemModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstatictext.cpp b/qt6/gen_qstatictext.cpp index a4d678b9..1e12fef6 100644 --- a/qt6/gen_qstatictext.cpp +++ b/qt6/gen_qstatictext.cpp @@ -113,11 +113,7 @@ void QStaticText_Prepare2(QStaticText* self, QTransform* matrix, QFont* font) { self->prepare(*matrix, *font); } -void QStaticText_Delete(QStaticText* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStaticText_Delete(QStaticText* self) { + delete self; } diff --git a/qt6/gen_qstatictext.go b/qt6/gen_qstatictext.go index 4b23c2bd..a2d4270a 100644 --- a/qt6/gen_qstatictext.go +++ b/qt6/gen_qstatictext.go @@ -166,7 +166,7 @@ func (this *QStaticText) Prepare2(matrix *QTransform, font *QFont) { // Delete this object from C++ memory. func (this *QStaticText) Delete() { - C.QStaticText_Delete(this.h, C.bool(this.isSubclass)) + C.QStaticText_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstatictext.h b/qt6/gen_qstatictext.h index 583f049c..321f4e83 100644 --- a/qt6/gen_qstatictext.h +++ b/qt6/gen_qstatictext.h @@ -49,7 +49,7 @@ bool QStaticText_OperatorEqual(const QStaticText* self, QStaticText* param1); bool QStaticText_OperatorNotEqual(const QStaticText* self, QStaticText* param1); void QStaticText_Prepare1(QStaticText* self, QTransform* matrix); void QStaticText_Prepare2(QStaticText* self, QTransform* matrix, QFont* font); -void QStaticText_Delete(QStaticText* self, bool isSubclass); +void QStaticText_Delete(QStaticText* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstatusbar.cpp b/qt6/gen_qstatusbar.cpp index f073fca4..166c4ab8 100644 --- a/qt6/gen_qstatusbar.cpp +++ b/qt6/gen_qstatusbar.cpp @@ -85,13 +85,13 @@ bool miqt_exec_callback_QStatusBar_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQStatusBar : public virtual QStatusBar { +class MiqtVirtualQStatusBar final : public QStatusBar { public: MiqtVirtualQStatusBar(QWidget* parent): QStatusBar(parent) {}; MiqtVirtualQStatusBar(): QStatusBar() {}; - virtual ~MiqtVirtualQStatusBar() = default; + virtual ~MiqtVirtualQStatusBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ShowEvent = 0; @@ -1540,11 +1540,7 @@ bool QStatusBar_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQStatusBar*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QStatusBar_Delete(QStatusBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStatusBar_Delete(QStatusBar* self) { + delete self; } diff --git a/qt6/gen_qstatusbar.go b/qt6/gen_qstatusbar.go index efbffe9d..2dc724e8 100644 --- a/qt6/gen_qstatusbar.go +++ b/qt6/gen_qstatusbar.go @@ -1297,7 +1297,7 @@ func miqt_exec_callback_QStatusBar_FocusNextPrevChild(self *C.QStatusBar, cb C.i // Delete this object from C++ memory. func (this *QStatusBar) Delete() { - C.QStatusBar_Delete(this.h, C.bool(this.isSubclass)) + C.QStatusBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstatusbar.h b/qt6/gen_qstatusbar.h index a6d9089f..57a0f1e9 100644 --- a/qt6/gen_qstatusbar.h +++ b/qt6/gen_qstatusbar.h @@ -189,7 +189,7 @@ void QStatusBar_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QStatusBar_virtualbase_InputMethodQuery(const void* self, int param1); void QStatusBar_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QStatusBar_virtualbase_FocusNextPrevChild(void* self, bool next); -void QStatusBar_Delete(QStatusBar* self, bool isSubclass); +void QStatusBar_Delete(QStatusBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstorageinfo.cpp b/qt6/gen_qstorageinfo.cpp index b124a3ea..6a34bb8d 100644 --- a/qt6/gen_qstorageinfo.cpp +++ b/qt6/gen_qstorageinfo.cpp @@ -162,11 +162,7 @@ QStorageInfo* QStorageInfo_Root() { return new QStorageInfo(QStorageInfo::root()); } -void QStorageInfo_Delete(QStorageInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStorageInfo_Delete(QStorageInfo* self) { + delete self; } diff --git a/qt6/gen_qstorageinfo.go b/qt6/gen_qstorageinfo.go index 2376196e..705d3eae 100644 --- a/qt6/gen_qstorageinfo.go +++ b/qt6/gen_qstorageinfo.go @@ -196,7 +196,7 @@ func QStorageInfo_Root() *QStorageInfo { // Delete this object from C++ memory. func (this *QStorageInfo) Delete() { - C.QStorageInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QStorageInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstorageinfo.h b/qt6/gen_qstorageinfo.h index 5e439c9c..b30f263e 100644 --- a/qt6/gen_qstorageinfo.h +++ b/qt6/gen_qstorageinfo.h @@ -46,7 +46,7 @@ bool QStorageInfo_IsValid(const QStorageInfo* self); void QStorageInfo_Refresh(QStorageInfo* self); struct miqt_array /* of QStorageInfo* */ QStorageInfo_MountedVolumes(); QStorageInfo* QStorageInfo_Root(); -void QStorageInfo_Delete(QStorageInfo* self, bool isSubclass); +void QStorageInfo_Delete(QStorageInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstringbuilder.cpp b/qt6/gen_qstringbuilder.cpp index 12612395..7f0e85e7 100644 --- a/qt6/gen_qstringbuilder.cpp +++ b/qt6/gen_qstringbuilder.cpp @@ -9,11 +9,7 @@ extern "C" { } /* extern C */ #endif -void QAbstractConcatenable_Delete(QAbstractConcatenable* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractConcatenable_Delete(QAbstractConcatenable* self) { + delete self; } diff --git a/qt6/gen_qstringbuilder.go b/qt6/gen_qstringbuilder.go index f897018e..39d5e449 100644 --- a/qt6/gen_qstringbuilder.go +++ b/qt6/gen_qstringbuilder.go @@ -48,7 +48,7 @@ func UnsafeNewQAbstractConcatenable(h unsafe.Pointer) *QAbstractConcatenable { // Delete this object from C++ memory. func (this *QAbstractConcatenable) Delete() { - C.QAbstractConcatenable_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractConcatenable_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstringbuilder.h b/qt6/gen_qstringbuilder.h index 423270a4..4287aee1 100644 --- a/qt6/gen_qstringbuilder.h +++ b/qt6/gen_qstringbuilder.h @@ -20,7 +20,7 @@ class QAbstractConcatenable; typedef struct QAbstractConcatenable QAbstractConcatenable; #endif -void QAbstractConcatenable_Delete(QAbstractConcatenable* self, bool isSubclass); +void QAbstractConcatenable_Delete(QAbstractConcatenable* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstringconverter.cpp b/qt6/gen_qstringconverter.cpp index 77750d49..f6c28ccb 100644 --- a/qt6/gen_qstringconverter.cpp +++ b/qt6/gen_qstringconverter.cpp @@ -44,12 +44,8 @@ ptrdiff_t QStringEncoder_RequiredSpace(const QStringEncoder* self, ptrdiff_t inp return static_cast(_ret); } -void QStringEncoder_Delete(QStringEncoder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStringEncoder_Delete(QStringEncoder* self) { + delete self; } QStringDecoder* QStringDecoder_new(int encoding) { @@ -89,11 +85,7 @@ QStringDecoder* QStringDecoder_DecoderForHtml(QByteArrayView* data) { return new QStringDecoder(QStringDecoder::decoderForHtml(*data)); } -void QStringDecoder_Delete(QStringDecoder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStringDecoder_Delete(QStringDecoder* self) { + delete self; } diff --git a/qt6/gen_qstringconverter.go b/qt6/gen_qstringconverter.go index 0492ef31..43feec9f 100644 --- a/qt6/gen_qstringconverter.go +++ b/qt6/gen_qstringconverter.go @@ -100,7 +100,7 @@ func (this *QStringEncoder) RequiredSpace(inputLength int64) int64 { // Delete this object from C++ memory. func (this *QStringEncoder) Delete() { - C.QStringEncoder_Delete(this.h, C.bool(this.isSubclass)) + C.QStringEncoder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -209,7 +209,7 @@ func QStringDecoder_DecoderForHtml(data QByteArrayView) *QStringDecoder { // Delete this object from C++ memory. func (this *QStringDecoder) Delete() { - C.QStringDecoder_Delete(this.h, C.bool(this.isSubclass)) + C.QStringDecoder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstringconverter.h b/qt6/gen_qstringconverter.h index 8b1f5615..175b87f8 100644 --- a/qt6/gen_qstringconverter.h +++ b/qt6/gen_qstringconverter.h @@ -37,7 +37,7 @@ QStringEncoder* QStringEncoder_new4(int encoding, int flags); QStringEncoder* QStringEncoder_new5(const char* name, int flags); void QStringEncoder_virtbase(QStringEncoder* src, QStringConverter** outptr_QStringConverter); ptrdiff_t QStringEncoder_RequiredSpace(const QStringEncoder* self, ptrdiff_t inputLength); -void QStringEncoder_Delete(QStringEncoder* self, bool isSubclass); +void QStringEncoder_Delete(QStringEncoder* self); QStringDecoder* QStringDecoder_new(int encoding); QStringDecoder* QStringDecoder_new2(); @@ -48,7 +48,7 @@ void QStringDecoder_virtbase(QStringDecoder* src, QStringConverter** outptr_QStr ptrdiff_t QStringDecoder_RequiredSpace(const QStringDecoder* self, ptrdiff_t inputLength); QChar* QStringDecoder_AppendToBuffer(QStringDecoder* self, QChar* out, QByteArrayView* ba); QStringDecoder* QStringDecoder_DecoderForHtml(QByteArrayView* data); -void QStringDecoder_Delete(QStringDecoder* self, bool isSubclass); +void QStringDecoder_Delete(QStringDecoder* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstringconverter_base.cpp b/qt6/gen_qstringconverter_base.cpp index 39cc4d98..41053da6 100644 --- a/qt6/gen_qstringconverter_base.cpp +++ b/qt6/gen_qstringconverter_base.cpp @@ -60,11 +60,7 @@ void QStringConverterBase__State_Reset(QStringConverterBase__State* self) { self->reset(); } -void QStringConverterBase__State_Delete(QStringConverterBase__State* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStringConverterBase__State_Delete(QStringConverterBase__State* self) { + delete self; } diff --git a/qt6/gen_qstringconverter_base.go b/qt6/gen_qstringconverter_base.go index 69f36062..0ee81367 100644 --- a/qt6/gen_qstringconverter_base.go +++ b/qt6/gen_qstringconverter_base.go @@ -206,7 +206,7 @@ func (this *QStringConverterBase__State) Reset() { // Delete this object from C++ memory. func (this *QStringConverterBase__State) Delete() { - C.QStringConverterBase__State_Delete(this.h, C.bool(this.isSubclass)) + C.QStringConverterBase__State_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstringconverter_base.h b/qt6/gen_qstringconverter_base.h index 65973e17..8594b26c 100644 --- a/qt6/gen_qstringconverter_base.h +++ b/qt6/gen_qstringconverter_base.h @@ -42,7 +42,7 @@ QStringConverterBase__State* QStringConverterBase__State_new(); QStringConverterBase__State* QStringConverterBase__State_new2(int f); void QStringConverterBase__State_Clear(QStringConverterBase__State* self); void QStringConverterBase__State_Reset(QStringConverterBase__State* self); -void QStringConverterBase__State_Delete(QStringConverterBase__State* self, bool isSubclass); +void QStringConverterBase__State_Delete(QStringConverterBase__State* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstringlistmodel.cpp b/qt6/gen_qstringlistmodel.cpp index 35947066..5ee5e919 100644 --- a/qt6/gen_qstringlistmodel.cpp +++ b/qt6/gen_qstringlistmodel.cpp @@ -37,7 +37,7 @@ bool miqt_exec_callback_QStringListModel_DropMimeData(void*, intptr_t, QMimeData } /* extern C */ #endif -class MiqtVirtualQStringListModel : public virtual QStringListModel { +class MiqtVirtualQStringListModel final : public QStringListModel { public: MiqtVirtualQStringListModel(): QStringListModel() {}; @@ -45,7 +45,7 @@ public: MiqtVirtualQStringListModel(QObject* parent): QStringListModel(parent) {}; MiqtVirtualQStringListModel(const QStringList& strings, QObject* parent): QStringListModel(strings, parent) {}; - virtual ~MiqtVirtualQStringListModel() = default; + virtual ~MiqtVirtualQStringListModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__RowCount = 0; @@ -789,11 +789,7 @@ bool QStringListModel_virtualbase_DropMimeData(void* self, QMimeData* data, int return ( (MiqtVirtualQStringListModel*)(self) )->virtualbase_DropMimeData(data, action, row, column, parent); } -void QStringListModel_Delete(QStringListModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStringListModel_Delete(QStringListModel* self) { + delete self; } diff --git a/qt6/gen_qstringlistmodel.go b/qt6/gen_qstringlistmodel.go index b3aeba20..89a62c00 100644 --- a/qt6/gen_qstringlistmodel.go +++ b/qt6/gen_qstringlistmodel.go @@ -776,7 +776,7 @@ func miqt_exec_callback_QStringListModel_DropMimeData(self *C.QStringListModel, // Delete this object from C++ memory. func (this *QStringListModel) Delete() { - C.QStringListModel_Delete(this.h, C.bool(this.isSubclass)) + C.QStringListModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstringlistmodel.h b/qt6/gen_qstringlistmodel.h index 49c6d7bb..cafc6a57 100644 --- a/qt6/gen_qstringlistmodel.h +++ b/qt6/gen_qstringlistmodel.h @@ -89,7 +89,7 @@ void QStringListModel_override_virtual_Index(void* self, intptr_t slot); QModelIndex* QStringListModel_virtualbase_Index(const void* self, int row, int column, QModelIndex* parent); void QStringListModel_override_virtual_DropMimeData(void* self, intptr_t slot); bool QStringListModel_virtualbase_DropMimeData(void* self, QMimeData* data, int action, int row, int column, QModelIndex* parent); -void QStringListModel_Delete(QStringListModel* self, bool isSubclass); +void QStringListModel_Delete(QStringListModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstringmatcher.cpp b/qt6/gen_qstringmatcher.cpp index d9820d59..8553a48a 100644 --- a/qt6/gen_qstringmatcher.cpp +++ b/qt6/gen_qstringmatcher.cpp @@ -91,11 +91,7 @@ ptrdiff_t QStringMatcher_IndexIn3(const QStringMatcher* self, QChar* str, ptrdif return static_cast(_ret); } -void QStringMatcher_Delete(QStringMatcher* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStringMatcher_Delete(QStringMatcher* self) { + delete self; } diff --git a/qt6/gen_qstringmatcher.go b/qt6/gen_qstringmatcher.go index 62532e66..1f9228fa 100644 --- a/qt6/gen_qstringmatcher.go +++ b/qt6/gen_qstringmatcher.go @@ -155,7 +155,7 @@ func (this *QStringMatcher) IndexIn3(str *QChar, length int64, from int64) int64 // Delete this object from C++ memory. func (this *QStringMatcher) Delete() { - C.QStringMatcher_Delete(this.h, C.bool(this.isSubclass)) + C.QStringMatcher_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstringmatcher.h b/qt6/gen_qstringmatcher.h index 9eea7c02..728e816f 100644 --- a/qt6/gen_qstringmatcher.h +++ b/qt6/gen_qstringmatcher.h @@ -37,7 +37,7 @@ struct miqt_string QStringMatcher_Pattern(const QStringMatcher* self); int QStringMatcher_CaseSensitivity(const QStringMatcher* self); ptrdiff_t QStringMatcher_IndexIn22(const QStringMatcher* self, struct miqt_string str, ptrdiff_t from); ptrdiff_t QStringMatcher_IndexIn3(const QStringMatcher* self, QChar* str, ptrdiff_t length, ptrdiff_t from); -void QStringMatcher_Delete(QStringMatcher* self, bool isSubclass); +void QStringMatcher_Delete(QStringMatcher* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstringview.cpp b/qt6/gen_qstringview.cpp index cec1b849..1a1aaa98 100644 --- a/qt6/gen_qstringview.cpp +++ b/qt6/gen_qstringview.cpp @@ -417,11 +417,7 @@ double QStringView_ToDouble1(const QStringView* self, bool* ok) { return self->toDouble(ok); } -void QStringView_Delete(QStringView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStringView_Delete(QStringView* self) { + delete self; } diff --git a/qt6/gen_qstringview.go b/qt6/gen_qstringview.go index ea2a607a..a245e8e2 100644 --- a/qt6/gen_qstringview.go +++ b/qt6/gen_qstringview.go @@ -410,7 +410,7 @@ func (this *QStringView) ToDouble1(ok *bool) float64 { // Delete this object from C++ memory. func (this *QStringView) Delete() { - C.QStringView_Delete(this.h, C.bool(this.isSubclass)) + C.QStringView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstringview.h b/qt6/gen_qstringview.h index f472fc7d..06d1414a 100644 --- a/qt6/gen_qstringview.h +++ b/qt6/gen_qstringview.h @@ -108,7 +108,7 @@ unsigned long long QStringView_ToULongLong1(const QStringView* self, bool* ok); unsigned long long QStringView_ToULongLong2(const QStringView* self, bool* ok, int base); float QStringView_ToFloat1(const QStringView* self, bool* ok); double QStringView_ToDouble1(const QStringView* self, bool* ok); -void QStringView_Delete(QStringView* self, bool isSubclass); +void QStringView_Delete(QStringView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstyle.cpp b/qt6/gen_qstyle.cpp index 193ee840..97647d49 100644 --- a/qt6/gen_qstyle.cpp +++ b/qt6/gen_qstyle.cpp @@ -62,12 +62,12 @@ void miqt_exec_callback_QStyle_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQStyle : public virtual QStyle { +class MiqtVirtualQStyle final : public QStyle { public: MiqtVirtualQStyle(): QStyle() {}; - virtual ~MiqtVirtualQStyle() = default; + virtual ~MiqtVirtualQStyle() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Polish = 0; @@ -1185,11 +1185,7 @@ void QStyle_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQStyle*)(self) )->virtualbase_DisconnectNotify(signal); } -void QStyle_Delete(QStyle* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyle_Delete(QStyle* self) { + delete self; } diff --git a/qt6/gen_qstyle.go b/qt6/gen_qstyle.go index 39ae7801..1d1db11e 100644 --- a/qt6/gen_qstyle.go +++ b/qt6/gen_qstyle.go @@ -1741,7 +1741,7 @@ func miqt_exec_callback_QStyle_DisconnectNotify(self *C.QStyle, cb C.intptr_t, s // Delete this object from C++ memory. func (this *QStyle) Delete() { - C.QStyle_Delete(this.h, C.bool(this.isSubclass)) + C.QStyle_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstyle.h b/qt6/gen_qstyle.h index 5ace58f2..392f6a71 100644 --- a/qt6/gen_qstyle.h +++ b/qt6/gen_qstyle.h @@ -161,7 +161,7 @@ void QStyle_override_virtual_ConnectNotify(void* self, intptr_t slot); void QStyle_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QStyle_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QStyle_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QStyle_Delete(QStyle* self, bool isSubclass); +void QStyle_Delete(QStyle* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstyleditemdelegate.cpp b/qt6/gen_qstyleditemdelegate.cpp index d7fd4d07..d0e34cb5 100644 --- a/qt6/gen_qstyleditemdelegate.cpp +++ b/qt6/gen_qstyleditemdelegate.cpp @@ -42,13 +42,13 @@ struct miqt_array /* of int */ miqt_exec_callback_QStyledItemDelegate_PaintingR } /* extern C */ #endif -class MiqtVirtualQStyledItemDelegate : public virtual QStyledItemDelegate { +class MiqtVirtualQStyledItemDelegate final : public QStyledItemDelegate { public: MiqtVirtualQStyledItemDelegate(): QStyledItemDelegate() {}; MiqtVirtualQStyledItemDelegate(QObject* parent): QStyledItemDelegate(parent) {}; - virtual ~MiqtVirtualQStyledItemDelegate() = default; + virtual ~MiqtVirtualQStyledItemDelegate() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Paint = 0; @@ -635,11 +635,7 @@ struct miqt_array /* of int */ QStyledItemDelegate_virtualbase_PaintingRoles(co return ( (const MiqtVirtualQStyledItemDelegate*)(self) )->virtualbase_PaintingRoles(); } -void QStyledItemDelegate_Delete(QStyledItemDelegate* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyledItemDelegate_Delete(QStyledItemDelegate* self) { + delete self; } diff --git a/qt6/gen_qstyleditemdelegate.go b/qt6/gen_qstyleditemdelegate.go index 772bee3d..f07e433b 100644 --- a/qt6/gen_qstyleditemdelegate.go +++ b/qt6/gen_qstyleditemdelegate.go @@ -560,7 +560,7 @@ func miqt_exec_callback_QStyledItemDelegate_PaintingRoles(self *C.QStyledItemDel // Delete this object from C++ memory. func (this *QStyledItemDelegate) Delete() { - C.QStyledItemDelegate_Delete(this.h, C.bool(this.isSubclass)) + C.QStyledItemDelegate_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstyleditemdelegate.h b/qt6/gen_qstyleditemdelegate.h index 53c144c2..385b0256 100644 --- a/qt6/gen_qstyleditemdelegate.h +++ b/qt6/gen_qstyleditemdelegate.h @@ -96,7 +96,7 @@ void QStyledItemDelegate_override_virtual_HelpEvent(void* self, intptr_t slot); bool QStyledItemDelegate_virtualbase_HelpEvent(void* self, QHelpEvent* event, QAbstractItemView* view, QStyleOptionViewItem* option, QModelIndex* index); void QStyledItemDelegate_override_virtual_PaintingRoles(void* self, intptr_t slot); struct miqt_array /* of int */ QStyledItemDelegate_virtualbase_PaintingRoles(const void* self); -void QStyledItemDelegate_Delete(QStyledItemDelegate* self, bool isSubclass); +void QStyledItemDelegate_Delete(QStyledItemDelegate* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstylefactory.cpp b/qt6/gen_qstylefactory.cpp index 38d7168f..3d5c3e38 100644 --- a/qt6/gen_qstylefactory.cpp +++ b/qt6/gen_qstylefactory.cpp @@ -40,11 +40,7 @@ QStyle* QStyleFactory_Create(struct miqt_string param1) { return QStyleFactory::create(param1_QString); } -void QStyleFactory_Delete(QStyleFactory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleFactory_Delete(QStyleFactory* self) { + delete self; } diff --git a/qt6/gen_qstylefactory.go b/qt6/gen_qstylefactory.go index 3a6ee0d8..d04fa8ed 100644 --- a/qt6/gen_qstylefactory.go +++ b/qt6/gen_qstylefactory.go @@ -69,7 +69,7 @@ func QStyleFactory_Create(param1 string) *QStyle { // Delete this object from C++ memory. func (this *QStyleFactory) Delete() { - C.QStyleFactory_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleFactory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstylefactory.h b/qt6/gen_qstylefactory.h index 82e89824..c3f3ed97 100644 --- a/qt6/gen_qstylefactory.h +++ b/qt6/gen_qstylefactory.h @@ -24,7 +24,7 @@ typedef struct QStyleFactory QStyleFactory; struct miqt_array /* of struct miqt_string */ QStyleFactory_Keys(); QStyle* QStyleFactory_Create(struct miqt_string param1); -void QStyleFactory_Delete(QStyleFactory* self, bool isSubclass); +void QStyleFactory_Delete(QStyleFactory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstylehints.cpp b/qt6/gen_qstylehints.cpp index 97c2ad58..6ec354f5 100644 --- a/qt6/gen_qstylehints.cpp +++ b/qt6/gen_qstylehints.cpp @@ -332,11 +332,7 @@ struct miqt_string QStyleHints_Tr3(const char* s, const char* c, int n) { return _ms; } -void QStyleHints_Delete(QStyleHints* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleHints_Delete(QStyleHints* self) { + delete self; } diff --git a/qt6/gen_qstylehints.go b/qt6/gen_qstylehints.go index b7e0ede4..62d19dc3 100644 --- a/qt6/gen_qstylehints.go +++ b/qt6/gen_qstylehints.go @@ -452,7 +452,7 @@ func QStyleHints_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QStyleHints) Delete() { - C.QStyleHints_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleHints_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstylehints.h b/qt6/gen_qstylehints.h index f38ef1d1..7e9973c8 100644 --- a/qt6/gen_qstylehints.h +++ b/qt6/gen_qstylehints.h @@ -88,7 +88,7 @@ void QStyleHints_MouseQuickSelectionThresholdChanged(QStyleHints* self, int thre void QStyleHints_connect_MouseQuickSelectionThresholdChanged(QStyleHints* self, intptr_t slot); struct miqt_string QStyleHints_Tr2(const char* s, const char* c); struct miqt_string QStyleHints_Tr3(const char* s, const char* c, int n); -void QStyleHints_Delete(QStyleHints* self, bool isSubclass); +void QStyleHints_Delete(QStyleHints* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstyleoption.cpp b/qt6/gen_qstyleoption.cpp index 9322081c..9dcc2337 100644 --- a/qt6/gen_qstyleoption.cpp +++ b/qt6/gen_qstyleoption.cpp @@ -63,12 +63,8 @@ void QStyleOption_OperatorAssign(QStyleOption* self, QStyleOption* other) { self->operator=(*other); } -void QStyleOption_Delete(QStyleOption* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOption_Delete(QStyleOption* self) { + delete self; } QStyleOptionFocusRect* QStyleOptionFocusRect_new() { @@ -83,12 +79,8 @@ void QStyleOptionFocusRect_virtbase(QStyleOptionFocusRect* src, QStyleOption** o *outptr_QStyleOption = static_cast(src); } -void QStyleOptionFocusRect_Delete(QStyleOptionFocusRect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionFocusRect_Delete(QStyleOptionFocusRect* self) { + delete self; } QStyleOptionFrame* QStyleOptionFrame_new() { @@ -103,12 +95,8 @@ void QStyleOptionFrame_virtbase(QStyleOptionFrame* src, QStyleOption** outptr_QS *outptr_QStyleOption = static_cast(src); } -void QStyleOptionFrame_Delete(QStyleOptionFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionFrame_Delete(QStyleOptionFrame* self) { + delete self; } QStyleOptionTabWidgetFrame* QStyleOptionTabWidgetFrame_new() { @@ -123,12 +111,8 @@ void QStyleOptionTabWidgetFrame_virtbase(QStyleOptionTabWidgetFrame* src, QStyle *outptr_QStyleOption = static_cast(src); } -void QStyleOptionTabWidgetFrame_Delete(QStyleOptionTabWidgetFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionTabWidgetFrame_Delete(QStyleOptionTabWidgetFrame* self) { + delete self; } QStyleOptionTabBarBase* QStyleOptionTabBarBase_new() { @@ -143,12 +127,8 @@ void QStyleOptionTabBarBase_virtbase(QStyleOptionTabBarBase* src, QStyleOption** *outptr_QStyleOption = static_cast(src); } -void QStyleOptionTabBarBase_Delete(QStyleOptionTabBarBase* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionTabBarBase_Delete(QStyleOptionTabBarBase* self) { + delete self; } QStyleOptionHeader* QStyleOptionHeader_new() { @@ -163,12 +143,8 @@ void QStyleOptionHeader_virtbase(QStyleOptionHeader* src, QStyleOption** outptr_ *outptr_QStyleOption = static_cast(src); } -void QStyleOptionHeader_Delete(QStyleOptionHeader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionHeader_Delete(QStyleOptionHeader* self) { + delete self; } QStyleOptionHeaderV2* QStyleOptionHeaderV2_new() { @@ -183,12 +159,8 @@ void QStyleOptionHeaderV2_virtbase(QStyleOptionHeaderV2* src, QStyleOptionHeader *outptr_QStyleOptionHeader = static_cast(src); } -void QStyleOptionHeaderV2_Delete(QStyleOptionHeaderV2* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionHeaderV2_Delete(QStyleOptionHeaderV2* self) { + delete self; } QStyleOptionButton* QStyleOptionButton_new() { @@ -203,12 +175,8 @@ void QStyleOptionButton_virtbase(QStyleOptionButton* src, QStyleOption** outptr_ *outptr_QStyleOption = static_cast(src); } -void QStyleOptionButton_Delete(QStyleOptionButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionButton_Delete(QStyleOptionButton* self) { + delete self; } QStyleOptionTab* QStyleOptionTab_new() { @@ -223,12 +191,8 @@ void QStyleOptionTab_virtbase(QStyleOptionTab* src, QStyleOption** outptr_QStyle *outptr_QStyleOption = static_cast(src); } -void QStyleOptionTab_Delete(QStyleOptionTab* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionTab_Delete(QStyleOptionTab* self) { + delete self; } QStyleOptionToolBar* QStyleOptionToolBar_new() { @@ -243,12 +207,8 @@ void QStyleOptionToolBar_virtbase(QStyleOptionToolBar* src, QStyleOption** outpt *outptr_QStyleOption = static_cast(src); } -void QStyleOptionToolBar_Delete(QStyleOptionToolBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionToolBar_Delete(QStyleOptionToolBar* self) { + delete self; } QStyleOptionProgressBar* QStyleOptionProgressBar_new() { @@ -263,12 +223,8 @@ void QStyleOptionProgressBar_virtbase(QStyleOptionProgressBar* src, QStyleOption *outptr_QStyleOption = static_cast(src); } -void QStyleOptionProgressBar_Delete(QStyleOptionProgressBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionProgressBar_Delete(QStyleOptionProgressBar* self) { + delete self; } QStyleOptionMenuItem* QStyleOptionMenuItem_new() { @@ -283,12 +239,8 @@ void QStyleOptionMenuItem_virtbase(QStyleOptionMenuItem* src, QStyleOption** out *outptr_QStyleOption = static_cast(src); } -void QStyleOptionMenuItem_Delete(QStyleOptionMenuItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionMenuItem_Delete(QStyleOptionMenuItem* self) { + delete self; } QStyleOptionDockWidget* QStyleOptionDockWidget_new() { @@ -303,12 +255,8 @@ void QStyleOptionDockWidget_virtbase(QStyleOptionDockWidget* src, QStyleOption** *outptr_QStyleOption = static_cast(src); } -void QStyleOptionDockWidget_Delete(QStyleOptionDockWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionDockWidget_Delete(QStyleOptionDockWidget* self) { + delete self; } QStyleOptionViewItem* QStyleOptionViewItem_new() { @@ -323,12 +271,8 @@ void QStyleOptionViewItem_virtbase(QStyleOptionViewItem* src, QStyleOption** out *outptr_QStyleOption = static_cast(src); } -void QStyleOptionViewItem_Delete(QStyleOptionViewItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionViewItem_Delete(QStyleOptionViewItem* self) { + delete self; } QStyleOptionToolBox* QStyleOptionToolBox_new() { @@ -343,12 +287,8 @@ void QStyleOptionToolBox_virtbase(QStyleOptionToolBox* src, QStyleOption** outpt *outptr_QStyleOption = static_cast(src); } -void QStyleOptionToolBox_Delete(QStyleOptionToolBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionToolBox_Delete(QStyleOptionToolBox* self) { + delete self; } QStyleOptionRubberBand* QStyleOptionRubberBand_new() { @@ -363,12 +303,8 @@ void QStyleOptionRubberBand_virtbase(QStyleOptionRubberBand* src, QStyleOption** *outptr_QStyleOption = static_cast(src); } -void QStyleOptionRubberBand_Delete(QStyleOptionRubberBand* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionRubberBand_Delete(QStyleOptionRubberBand* self) { + delete self; } QStyleOptionComplex* QStyleOptionComplex_new() { @@ -391,12 +327,8 @@ void QStyleOptionComplex_virtbase(QStyleOptionComplex* src, QStyleOption** outpt *outptr_QStyleOption = static_cast(src); } -void QStyleOptionComplex_Delete(QStyleOptionComplex* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionComplex_Delete(QStyleOptionComplex* self) { + delete self; } QStyleOptionSlider* QStyleOptionSlider_new() { @@ -411,12 +343,8 @@ void QStyleOptionSlider_virtbase(QStyleOptionSlider* src, QStyleOptionComplex** *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionSlider_Delete(QStyleOptionSlider* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionSlider_Delete(QStyleOptionSlider* self) { + delete self; } QStyleOptionSpinBox* QStyleOptionSpinBox_new() { @@ -431,12 +359,8 @@ void QStyleOptionSpinBox_virtbase(QStyleOptionSpinBox* src, QStyleOptionComplex* *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionSpinBox_Delete(QStyleOptionSpinBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionSpinBox_Delete(QStyleOptionSpinBox* self) { + delete self; } QStyleOptionToolButton* QStyleOptionToolButton_new() { @@ -451,12 +375,8 @@ void QStyleOptionToolButton_virtbase(QStyleOptionToolButton* src, QStyleOptionCo *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionToolButton_Delete(QStyleOptionToolButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionToolButton_Delete(QStyleOptionToolButton* self) { + delete self; } QStyleOptionComboBox* QStyleOptionComboBox_new() { @@ -471,12 +391,8 @@ void QStyleOptionComboBox_virtbase(QStyleOptionComboBox* src, QStyleOptionComple *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionComboBox_Delete(QStyleOptionComboBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionComboBox_Delete(QStyleOptionComboBox* self) { + delete self; } QStyleOptionTitleBar* QStyleOptionTitleBar_new() { @@ -491,12 +407,8 @@ void QStyleOptionTitleBar_virtbase(QStyleOptionTitleBar* src, QStyleOptionComple *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionTitleBar_Delete(QStyleOptionTitleBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionTitleBar_Delete(QStyleOptionTitleBar* self) { + delete self; } QStyleOptionGroupBox* QStyleOptionGroupBox_new() { @@ -511,12 +423,8 @@ void QStyleOptionGroupBox_virtbase(QStyleOptionGroupBox* src, QStyleOptionComple *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionGroupBox_Delete(QStyleOptionGroupBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionGroupBox_Delete(QStyleOptionGroupBox* self) { + delete self; } QStyleOptionSizeGrip* QStyleOptionSizeGrip_new() { @@ -531,12 +439,8 @@ void QStyleOptionSizeGrip_virtbase(QStyleOptionSizeGrip* src, QStyleOptionComple *outptr_QStyleOptionComplex = static_cast(src); } -void QStyleOptionSizeGrip_Delete(QStyleOptionSizeGrip* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionSizeGrip_Delete(QStyleOptionSizeGrip* self) { + delete self; } QStyleOptionGraphicsItem* QStyleOptionGraphicsItem_new() { @@ -556,12 +460,8 @@ double QStyleOptionGraphicsItem_LevelOfDetailFromTransform(QTransform* worldTran return static_cast(_ret); } -void QStyleOptionGraphicsItem_Delete(QStyleOptionGraphicsItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleOptionGraphicsItem_Delete(QStyleOptionGraphicsItem* self) { + delete self; } QStyleHintReturn* QStyleHintReturn_new() { @@ -584,12 +484,8 @@ void QStyleHintReturn_OperatorAssign(QStyleHintReturn* self, QStyleHintReturn* p self->operator=(*param1); } -void QStyleHintReturn_Delete(QStyleHintReturn* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleHintReturn_Delete(QStyleHintReturn* self) { + delete self; } QStyleHintReturnMask* QStyleHintReturnMask_new() { @@ -608,12 +504,8 @@ void QStyleHintReturnMask_OperatorAssign(QStyleHintReturnMask* self, QStyleHintR self->operator=(*param1); } -void QStyleHintReturnMask_Delete(QStyleHintReturnMask* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleHintReturnMask_Delete(QStyleHintReturnMask* self) { + delete self; } QStyleHintReturnVariant* QStyleHintReturnVariant_new() { @@ -632,11 +524,7 @@ void QStyleHintReturnVariant_OperatorAssign(QStyleHintReturnVariant* self, QStyl self->operator=(*param1); } -void QStyleHintReturnVariant_Delete(QStyleHintReturnVariant* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStyleHintReturnVariant_Delete(QStyleHintReturnVariant* self) { + delete self; } diff --git a/qt6/gen_qstyleoption.go b/qt6/gen_qstyleoption.go index e775f39b..b07be88c 100644 --- a/qt6/gen_qstyleoption.go +++ b/qt6/gen_qstyleoption.go @@ -635,7 +635,7 @@ func (this *QStyleOption) OperatorAssign(other *QStyleOption) { // Delete this object from C++ memory. func (this *QStyleOption) Delete() { - C.QStyleOption_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOption_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -702,7 +702,7 @@ func NewQStyleOptionFocusRect2(other *QStyleOptionFocusRect) *QStyleOptionFocusR // Delete this object from C++ memory. func (this *QStyleOptionFocusRect) Delete() { - C.QStyleOptionFocusRect_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionFocusRect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -769,7 +769,7 @@ func NewQStyleOptionFrame2(other *QStyleOptionFrame) *QStyleOptionFrame { // Delete this object from C++ memory. func (this *QStyleOptionFrame) Delete() { - C.QStyleOptionFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -836,7 +836,7 @@ func NewQStyleOptionTabWidgetFrame2(other *QStyleOptionTabWidgetFrame) *QStyleOp // Delete this object from C++ memory. func (this *QStyleOptionTabWidgetFrame) Delete() { - C.QStyleOptionTabWidgetFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionTabWidgetFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -903,7 +903,7 @@ func NewQStyleOptionTabBarBase2(other *QStyleOptionTabBarBase) *QStyleOptionTabB // Delete this object from C++ memory. func (this *QStyleOptionTabBarBase) Delete() { - C.QStyleOptionTabBarBase_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionTabBarBase_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -970,7 +970,7 @@ func NewQStyleOptionHeader2(other *QStyleOptionHeader) *QStyleOptionHeader { // Delete this object from C++ memory. func (this *QStyleOptionHeader) Delete() { - C.QStyleOptionHeader_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionHeader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1037,7 +1037,7 @@ func NewQStyleOptionHeaderV22(other *QStyleOptionHeaderV2) *QStyleOptionHeaderV2 // Delete this object from C++ memory. func (this *QStyleOptionHeaderV2) Delete() { - C.QStyleOptionHeaderV2_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionHeaderV2_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1104,7 +1104,7 @@ func NewQStyleOptionButton2(other *QStyleOptionButton) *QStyleOptionButton { // Delete this object from C++ memory. func (this *QStyleOptionButton) Delete() { - C.QStyleOptionButton_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1171,7 +1171,7 @@ func NewQStyleOptionTab2(other *QStyleOptionTab) *QStyleOptionTab { // Delete this object from C++ memory. func (this *QStyleOptionTab) Delete() { - C.QStyleOptionTab_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionTab_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1238,7 +1238,7 @@ func NewQStyleOptionToolBar2(other *QStyleOptionToolBar) *QStyleOptionToolBar { // Delete this object from C++ memory. func (this *QStyleOptionToolBar) Delete() { - C.QStyleOptionToolBar_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionToolBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1305,7 +1305,7 @@ func NewQStyleOptionProgressBar2(other *QStyleOptionProgressBar) *QStyleOptionPr // Delete this object from C++ memory. func (this *QStyleOptionProgressBar) Delete() { - C.QStyleOptionProgressBar_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionProgressBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1372,7 +1372,7 @@ func NewQStyleOptionMenuItem2(other *QStyleOptionMenuItem) *QStyleOptionMenuItem // Delete this object from C++ memory. func (this *QStyleOptionMenuItem) Delete() { - C.QStyleOptionMenuItem_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionMenuItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1439,7 +1439,7 @@ func NewQStyleOptionDockWidget2(other *QStyleOptionDockWidget) *QStyleOptionDock // Delete this object from C++ memory. func (this *QStyleOptionDockWidget) Delete() { - C.QStyleOptionDockWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionDockWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1506,7 +1506,7 @@ func NewQStyleOptionViewItem2(other *QStyleOptionViewItem) *QStyleOptionViewItem // Delete this object from C++ memory. func (this *QStyleOptionViewItem) Delete() { - C.QStyleOptionViewItem_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionViewItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1573,7 +1573,7 @@ func NewQStyleOptionToolBox2(other *QStyleOptionToolBox) *QStyleOptionToolBox { // Delete this object from C++ memory. func (this *QStyleOptionToolBox) Delete() { - C.QStyleOptionToolBox_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionToolBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1640,7 +1640,7 @@ func NewQStyleOptionRubberBand2(other *QStyleOptionRubberBand) *QStyleOptionRubb // Delete this object from C++ memory. func (this *QStyleOptionRubberBand) Delete() { - C.QStyleOptionRubberBand_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionRubberBand_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1723,7 +1723,7 @@ func NewQStyleOptionComplex4(version int, typeVal int) *QStyleOptionComplex { // Delete this object from C++ memory. func (this *QStyleOptionComplex) Delete() { - C.QStyleOptionComplex_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionComplex_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1790,7 +1790,7 @@ func NewQStyleOptionSlider2(other *QStyleOptionSlider) *QStyleOptionSlider { // Delete this object from C++ memory. func (this *QStyleOptionSlider) Delete() { - C.QStyleOptionSlider_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionSlider_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1857,7 +1857,7 @@ func NewQStyleOptionSpinBox2(other *QStyleOptionSpinBox) *QStyleOptionSpinBox { // Delete this object from C++ memory. func (this *QStyleOptionSpinBox) Delete() { - C.QStyleOptionSpinBox_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionSpinBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1924,7 +1924,7 @@ func NewQStyleOptionToolButton2(other *QStyleOptionToolButton) *QStyleOptionTool // Delete this object from C++ memory. func (this *QStyleOptionToolButton) Delete() { - C.QStyleOptionToolButton_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionToolButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1991,7 +1991,7 @@ func NewQStyleOptionComboBox2(other *QStyleOptionComboBox) *QStyleOptionComboBox // Delete this object from C++ memory. func (this *QStyleOptionComboBox) Delete() { - C.QStyleOptionComboBox_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionComboBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2058,7 +2058,7 @@ func NewQStyleOptionTitleBar2(other *QStyleOptionTitleBar) *QStyleOptionTitleBar // Delete this object from C++ memory. func (this *QStyleOptionTitleBar) Delete() { - C.QStyleOptionTitleBar_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionTitleBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2125,7 +2125,7 @@ func NewQStyleOptionGroupBox2(other *QStyleOptionGroupBox) *QStyleOptionGroupBox // Delete this object from C++ memory. func (this *QStyleOptionGroupBox) Delete() { - C.QStyleOptionGroupBox_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionGroupBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2192,7 +2192,7 @@ func NewQStyleOptionSizeGrip2(other *QStyleOptionSizeGrip) *QStyleOptionSizeGrip // Delete this object from C++ memory. func (this *QStyleOptionSizeGrip) Delete() { - C.QStyleOptionSizeGrip_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionSizeGrip_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2263,7 +2263,7 @@ func QStyleOptionGraphicsItem_LevelOfDetailFromTransform(worldTransform *QTransf // Delete this object from C++ memory. func (this *QStyleOptionGraphicsItem) Delete() { - C.QStyleOptionGraphicsItem_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleOptionGraphicsItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2346,7 +2346,7 @@ func (this *QStyleHintReturn) OperatorAssign(param1 *QStyleHintReturn) { // Delete this object from C++ memory. func (this *QStyleHintReturn) Delete() { - C.QStyleHintReturn_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleHintReturn_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2417,7 +2417,7 @@ func (this *QStyleHintReturnMask) OperatorAssign(param1 *QStyleHintReturnMask) { // Delete this object from C++ memory. func (this *QStyleHintReturnMask) Delete() { - C.QStyleHintReturnMask_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleHintReturnMask_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2488,7 +2488,7 @@ func (this *QStyleHintReturnVariant) OperatorAssign(param1 *QStyleHintReturnVari // Delete this object from C++ memory. func (this *QStyleHintReturnVariant) Delete() { - C.QStyleHintReturnVariant_Delete(this.h, C.bool(this.isSubclass)) + C.QStyleHintReturnVariant_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstyleoption.h b/qt6/gen_qstyleoption.h index f8da6ebc..2091eef4 100644 --- a/qt6/gen_qstyleoption.h +++ b/qt6/gen_qstyleoption.h @@ -84,149 +84,149 @@ QStyleOption* QStyleOption_new3(int version); QStyleOption* QStyleOption_new4(int version, int typeVal); void QStyleOption_InitFrom(QStyleOption* self, QWidget* w); void QStyleOption_OperatorAssign(QStyleOption* self, QStyleOption* other); -void QStyleOption_Delete(QStyleOption* self, bool isSubclass); +void QStyleOption_Delete(QStyleOption* self); QStyleOptionFocusRect* QStyleOptionFocusRect_new(); QStyleOptionFocusRect* QStyleOptionFocusRect_new2(QStyleOptionFocusRect* other); void QStyleOptionFocusRect_virtbase(QStyleOptionFocusRect* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionFocusRect_Delete(QStyleOptionFocusRect* self, bool isSubclass); +void QStyleOptionFocusRect_Delete(QStyleOptionFocusRect* self); QStyleOptionFrame* QStyleOptionFrame_new(); QStyleOptionFrame* QStyleOptionFrame_new2(QStyleOptionFrame* other); void QStyleOptionFrame_virtbase(QStyleOptionFrame* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionFrame_Delete(QStyleOptionFrame* self, bool isSubclass); +void QStyleOptionFrame_Delete(QStyleOptionFrame* self); QStyleOptionTabWidgetFrame* QStyleOptionTabWidgetFrame_new(); QStyleOptionTabWidgetFrame* QStyleOptionTabWidgetFrame_new2(QStyleOptionTabWidgetFrame* other); void QStyleOptionTabWidgetFrame_virtbase(QStyleOptionTabWidgetFrame* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionTabWidgetFrame_Delete(QStyleOptionTabWidgetFrame* self, bool isSubclass); +void QStyleOptionTabWidgetFrame_Delete(QStyleOptionTabWidgetFrame* self); QStyleOptionTabBarBase* QStyleOptionTabBarBase_new(); QStyleOptionTabBarBase* QStyleOptionTabBarBase_new2(QStyleOptionTabBarBase* other); void QStyleOptionTabBarBase_virtbase(QStyleOptionTabBarBase* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionTabBarBase_Delete(QStyleOptionTabBarBase* self, bool isSubclass); +void QStyleOptionTabBarBase_Delete(QStyleOptionTabBarBase* self); QStyleOptionHeader* QStyleOptionHeader_new(); QStyleOptionHeader* QStyleOptionHeader_new2(QStyleOptionHeader* other); void QStyleOptionHeader_virtbase(QStyleOptionHeader* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionHeader_Delete(QStyleOptionHeader* self, bool isSubclass); +void QStyleOptionHeader_Delete(QStyleOptionHeader* self); QStyleOptionHeaderV2* QStyleOptionHeaderV2_new(); QStyleOptionHeaderV2* QStyleOptionHeaderV2_new2(QStyleOptionHeaderV2* other); void QStyleOptionHeaderV2_virtbase(QStyleOptionHeaderV2* src, QStyleOptionHeader** outptr_QStyleOptionHeader); -void QStyleOptionHeaderV2_Delete(QStyleOptionHeaderV2* self, bool isSubclass); +void QStyleOptionHeaderV2_Delete(QStyleOptionHeaderV2* self); QStyleOptionButton* QStyleOptionButton_new(); QStyleOptionButton* QStyleOptionButton_new2(QStyleOptionButton* other); void QStyleOptionButton_virtbase(QStyleOptionButton* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionButton_Delete(QStyleOptionButton* self, bool isSubclass); +void QStyleOptionButton_Delete(QStyleOptionButton* self); QStyleOptionTab* QStyleOptionTab_new(); QStyleOptionTab* QStyleOptionTab_new2(QStyleOptionTab* other); void QStyleOptionTab_virtbase(QStyleOptionTab* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionTab_Delete(QStyleOptionTab* self, bool isSubclass); +void QStyleOptionTab_Delete(QStyleOptionTab* self); QStyleOptionToolBar* QStyleOptionToolBar_new(); QStyleOptionToolBar* QStyleOptionToolBar_new2(QStyleOptionToolBar* other); void QStyleOptionToolBar_virtbase(QStyleOptionToolBar* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionToolBar_Delete(QStyleOptionToolBar* self, bool isSubclass); +void QStyleOptionToolBar_Delete(QStyleOptionToolBar* self); QStyleOptionProgressBar* QStyleOptionProgressBar_new(); QStyleOptionProgressBar* QStyleOptionProgressBar_new2(QStyleOptionProgressBar* other); void QStyleOptionProgressBar_virtbase(QStyleOptionProgressBar* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionProgressBar_Delete(QStyleOptionProgressBar* self, bool isSubclass); +void QStyleOptionProgressBar_Delete(QStyleOptionProgressBar* self); QStyleOptionMenuItem* QStyleOptionMenuItem_new(); QStyleOptionMenuItem* QStyleOptionMenuItem_new2(QStyleOptionMenuItem* other); void QStyleOptionMenuItem_virtbase(QStyleOptionMenuItem* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionMenuItem_Delete(QStyleOptionMenuItem* self, bool isSubclass); +void QStyleOptionMenuItem_Delete(QStyleOptionMenuItem* self); QStyleOptionDockWidget* QStyleOptionDockWidget_new(); QStyleOptionDockWidget* QStyleOptionDockWidget_new2(QStyleOptionDockWidget* other); void QStyleOptionDockWidget_virtbase(QStyleOptionDockWidget* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionDockWidget_Delete(QStyleOptionDockWidget* self, bool isSubclass); +void QStyleOptionDockWidget_Delete(QStyleOptionDockWidget* self); QStyleOptionViewItem* QStyleOptionViewItem_new(); QStyleOptionViewItem* QStyleOptionViewItem_new2(QStyleOptionViewItem* other); void QStyleOptionViewItem_virtbase(QStyleOptionViewItem* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionViewItem_Delete(QStyleOptionViewItem* self, bool isSubclass); +void QStyleOptionViewItem_Delete(QStyleOptionViewItem* self); QStyleOptionToolBox* QStyleOptionToolBox_new(); QStyleOptionToolBox* QStyleOptionToolBox_new2(QStyleOptionToolBox* other); void QStyleOptionToolBox_virtbase(QStyleOptionToolBox* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionToolBox_Delete(QStyleOptionToolBox* self, bool isSubclass); +void QStyleOptionToolBox_Delete(QStyleOptionToolBox* self); QStyleOptionRubberBand* QStyleOptionRubberBand_new(); QStyleOptionRubberBand* QStyleOptionRubberBand_new2(QStyleOptionRubberBand* other); void QStyleOptionRubberBand_virtbase(QStyleOptionRubberBand* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionRubberBand_Delete(QStyleOptionRubberBand* self, bool isSubclass); +void QStyleOptionRubberBand_Delete(QStyleOptionRubberBand* self); QStyleOptionComplex* QStyleOptionComplex_new(); QStyleOptionComplex* QStyleOptionComplex_new2(QStyleOptionComplex* other); QStyleOptionComplex* QStyleOptionComplex_new3(int version); QStyleOptionComplex* QStyleOptionComplex_new4(int version, int typeVal); void QStyleOptionComplex_virtbase(QStyleOptionComplex* src, QStyleOption** outptr_QStyleOption); -void QStyleOptionComplex_Delete(QStyleOptionComplex* self, bool isSubclass); +void QStyleOptionComplex_Delete(QStyleOptionComplex* self); QStyleOptionSlider* QStyleOptionSlider_new(); QStyleOptionSlider* QStyleOptionSlider_new2(QStyleOptionSlider* other); void QStyleOptionSlider_virtbase(QStyleOptionSlider* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionSlider_Delete(QStyleOptionSlider* self, bool isSubclass); +void QStyleOptionSlider_Delete(QStyleOptionSlider* self); QStyleOptionSpinBox* QStyleOptionSpinBox_new(); QStyleOptionSpinBox* QStyleOptionSpinBox_new2(QStyleOptionSpinBox* other); void QStyleOptionSpinBox_virtbase(QStyleOptionSpinBox* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionSpinBox_Delete(QStyleOptionSpinBox* self, bool isSubclass); +void QStyleOptionSpinBox_Delete(QStyleOptionSpinBox* self); QStyleOptionToolButton* QStyleOptionToolButton_new(); QStyleOptionToolButton* QStyleOptionToolButton_new2(QStyleOptionToolButton* other); void QStyleOptionToolButton_virtbase(QStyleOptionToolButton* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionToolButton_Delete(QStyleOptionToolButton* self, bool isSubclass); +void QStyleOptionToolButton_Delete(QStyleOptionToolButton* self); QStyleOptionComboBox* QStyleOptionComboBox_new(); QStyleOptionComboBox* QStyleOptionComboBox_new2(QStyleOptionComboBox* other); void QStyleOptionComboBox_virtbase(QStyleOptionComboBox* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionComboBox_Delete(QStyleOptionComboBox* self, bool isSubclass); +void QStyleOptionComboBox_Delete(QStyleOptionComboBox* self); QStyleOptionTitleBar* QStyleOptionTitleBar_new(); QStyleOptionTitleBar* QStyleOptionTitleBar_new2(QStyleOptionTitleBar* other); void QStyleOptionTitleBar_virtbase(QStyleOptionTitleBar* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionTitleBar_Delete(QStyleOptionTitleBar* self, bool isSubclass); +void QStyleOptionTitleBar_Delete(QStyleOptionTitleBar* self); QStyleOptionGroupBox* QStyleOptionGroupBox_new(); QStyleOptionGroupBox* QStyleOptionGroupBox_new2(QStyleOptionGroupBox* other); void QStyleOptionGroupBox_virtbase(QStyleOptionGroupBox* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionGroupBox_Delete(QStyleOptionGroupBox* self, bool isSubclass); +void QStyleOptionGroupBox_Delete(QStyleOptionGroupBox* self); QStyleOptionSizeGrip* QStyleOptionSizeGrip_new(); QStyleOptionSizeGrip* QStyleOptionSizeGrip_new2(QStyleOptionSizeGrip* other); void QStyleOptionSizeGrip_virtbase(QStyleOptionSizeGrip* src, QStyleOptionComplex** outptr_QStyleOptionComplex); -void QStyleOptionSizeGrip_Delete(QStyleOptionSizeGrip* self, bool isSubclass); +void QStyleOptionSizeGrip_Delete(QStyleOptionSizeGrip* self); QStyleOptionGraphicsItem* QStyleOptionGraphicsItem_new(); QStyleOptionGraphicsItem* QStyleOptionGraphicsItem_new2(QStyleOptionGraphicsItem* other); void QStyleOptionGraphicsItem_virtbase(QStyleOptionGraphicsItem* src, QStyleOption** outptr_QStyleOption); double QStyleOptionGraphicsItem_LevelOfDetailFromTransform(QTransform* worldTransform); -void QStyleOptionGraphicsItem_Delete(QStyleOptionGraphicsItem* self, bool isSubclass); +void QStyleOptionGraphicsItem_Delete(QStyleOptionGraphicsItem* self); QStyleHintReturn* QStyleHintReturn_new(); QStyleHintReturn* QStyleHintReturn_new2(QStyleHintReturn* param1); QStyleHintReturn* QStyleHintReturn_new3(int version); QStyleHintReturn* QStyleHintReturn_new4(int version, int typeVal); void QStyleHintReturn_OperatorAssign(QStyleHintReturn* self, QStyleHintReturn* param1); -void QStyleHintReturn_Delete(QStyleHintReturn* self, bool isSubclass); +void QStyleHintReturn_Delete(QStyleHintReturn* self); QStyleHintReturnMask* QStyleHintReturnMask_new(); QStyleHintReturnMask* QStyleHintReturnMask_new2(QStyleHintReturnMask* param1); void QStyleHintReturnMask_virtbase(QStyleHintReturnMask* src, QStyleHintReturn** outptr_QStyleHintReturn); void QStyleHintReturnMask_OperatorAssign(QStyleHintReturnMask* self, QStyleHintReturnMask* param1); -void QStyleHintReturnMask_Delete(QStyleHintReturnMask* self, bool isSubclass); +void QStyleHintReturnMask_Delete(QStyleHintReturnMask* self); QStyleHintReturnVariant* QStyleHintReturnVariant_new(); QStyleHintReturnVariant* QStyleHintReturnVariant_new2(QStyleHintReturnVariant* param1); void QStyleHintReturnVariant_virtbase(QStyleHintReturnVariant* src, QStyleHintReturn** outptr_QStyleHintReturn); void QStyleHintReturnVariant_OperatorAssign(QStyleHintReturnVariant* self, QStyleHintReturnVariant* param1); -void QStyleHintReturnVariant_Delete(QStyleHintReturnVariant* self, bool isSubclass); +void QStyleHintReturnVariant_Delete(QStyleHintReturnVariant* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstylepainter.cpp b/qt6/gen_qstylepainter.cpp index 7c9c725e..e9188d07 100644 --- a/qt6/gen_qstylepainter.cpp +++ b/qt6/gen_qstylepainter.cpp @@ -76,11 +76,7 @@ void QStylePainter_DrawItemText6(QStylePainter* self, QRect* r, int flags, QPale self->drawItemText(*r, static_cast(flags), *pal, enabled, text_QString, static_cast(textRole)); } -void QStylePainter_Delete(QStylePainter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStylePainter_Delete(QStylePainter* self) { + delete self; } diff --git a/qt6/gen_qstylepainter.go b/qt6/gen_qstylepainter.go index 802c9242..827ae315 100644 --- a/qt6/gen_qstylepainter.go +++ b/qt6/gen_qstylepainter.go @@ -120,7 +120,7 @@ func (this *QStylePainter) DrawItemText6(r *QRect, flags int, pal *QPalette, ena // Delete this object from C++ memory. func (this *QStylePainter) Delete() { - C.QStylePainter_Delete(this.h, C.bool(this.isSubclass)) + C.QStylePainter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstylepainter.h b/qt6/gen_qstylepainter.h index c6e8d6b6..b5ec3203 100644 --- a/qt6/gen_qstylepainter.h +++ b/qt6/gen_qstylepainter.h @@ -51,7 +51,7 @@ void QStylePainter_DrawItemText(QStylePainter* self, QRect* r, int flags, QPalet void QStylePainter_DrawItemPixmap(QStylePainter* self, QRect* r, int flags, QPixmap* pixmap); QStyle* QStylePainter_Style(const QStylePainter* self); void QStylePainter_DrawItemText6(QStylePainter* self, QRect* r, int flags, QPalette* pal, bool enabled, struct miqt_string text, int textRole); -void QStylePainter_Delete(QStylePainter* self, bool isSubclass); +void QStylePainter_Delete(QStylePainter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qstyleplugin.cpp b/qt6/gen_qstyleplugin.cpp index 6d2f1c70..28fa00b5 100644 --- a/qt6/gen_qstyleplugin.cpp +++ b/qt6/gen_qstyleplugin.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QStylePlugin_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQStylePlugin : public virtual QStylePlugin { +class MiqtVirtualQStylePlugin final : public QStylePlugin { public: MiqtVirtualQStylePlugin(): QStylePlugin() {}; MiqtVirtualQStylePlugin(QObject* parent): QStylePlugin(parent) {}; - virtual ~MiqtVirtualQStylePlugin() = default; + virtual ~MiqtVirtualQStylePlugin() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Create = 0; @@ -350,11 +350,7 @@ void QStylePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQStylePlugin*)(self) )->virtualbase_DisconnectNotify(signal); } -void QStylePlugin_Delete(QStylePlugin* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QStylePlugin_Delete(QStylePlugin* self) { + delete self; } diff --git a/qt6/gen_qstyleplugin.go b/qt6/gen_qstyleplugin.go index d2edd24d..ce0313dd 100644 --- a/qt6/gen_qstyleplugin.go +++ b/qt6/gen_qstyleplugin.go @@ -331,7 +331,7 @@ func miqt_exec_callback_QStylePlugin_DisconnectNotify(self *C.QStylePlugin, cb C // Delete this object from C++ memory. func (this *QStylePlugin) Delete() { - C.QStylePlugin_Delete(this.h, C.bool(this.isSubclass)) + C.QStylePlugin_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qstyleplugin.h b/qt6/gen_qstyleplugin.h index f8d6a09e..d0894199 100644 --- a/qt6/gen_qstyleplugin.h +++ b/qt6/gen_qstyleplugin.h @@ -59,7 +59,7 @@ void QStylePlugin_override_virtual_ConnectNotify(void* self, intptr_t slot); void QStylePlugin_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QStylePlugin_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QStylePlugin_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QStylePlugin_Delete(QStylePlugin* self, bool isSubclass); +void QStylePlugin_Delete(QStylePlugin* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsurface.cpp b/qt6/gen_qsurface.cpp index d252664c..baae4ce1 100644 --- a/qt6/gen_qsurface.cpp +++ b/qt6/gen_qsurface.cpp @@ -34,11 +34,7 @@ QSize* QSurface_Size(const QSurface* self) { return new QSize(self->size()); } -void QSurface_Delete(QSurface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSurface_Delete(QSurface* self) { + delete self; } diff --git a/qt6/gen_qsurface.go b/qt6/gen_qsurface.go index a475c03b..0d3ec584 100644 --- a/qt6/gen_qsurface.go +++ b/qt6/gen_qsurface.go @@ -91,7 +91,7 @@ func (this *QSurface) Size() *QSize { // Delete this object from C++ memory. func (this *QSurface) Delete() { - C.QSurface_Delete(this.h, C.bool(this.isSubclass)) + C.QSurface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsurface.h b/qt6/gen_qsurface.h index 4539240a..b75e892b 100644 --- a/qt6/gen_qsurface.h +++ b/qt6/gen_qsurface.h @@ -29,7 +29,7 @@ QSurfaceFormat* QSurface_Format(const QSurface* self); int QSurface_SurfaceType(const QSurface* self); bool QSurface_SupportsOpenGL(const QSurface* self); QSize* QSurface_Size(const QSurface* self); -void QSurface_Delete(QSurface* self, bool isSubclass); +void QSurface_Delete(QSurface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsurfaceformat.cpp b/qt6/gen_qsurfaceformat.cpp index 07b7de1a..24564dd1 100644 --- a/qt6/gen_qsurfaceformat.cpp +++ b/qt6/gen_qsurfaceformat.cpp @@ -208,11 +208,7 @@ void QSurfaceFormat_SetOption2(QSurfaceFormat* self, int option, bool on) { self->setOption(static_cast(option), on); } -void QSurfaceFormat_Delete(QSurfaceFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSurfaceFormat_Delete(QSurfaceFormat* self) { + delete self; } diff --git a/qt6/gen_qsurfaceformat.go b/qt6/gen_qsurfaceformat.go index 3919e1ed..2b5a9b07 100644 --- a/qt6/gen_qsurfaceformat.go +++ b/qt6/gen_qsurfaceformat.go @@ -298,7 +298,7 @@ func (this *QSurfaceFormat) SetOption2(option QSurfaceFormat__FormatOption, on b // Delete this object from C++ memory. func (this *QSurfaceFormat) Delete() { - C.QSurfaceFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QSurfaceFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsurfaceformat.h b/qt6/gen_qsurfaceformat.h index b7910a89..c77afafb 100644 --- a/qt6/gen_qsurfaceformat.h +++ b/qt6/gen_qsurfaceformat.h @@ -67,7 +67,7 @@ void QSurfaceFormat_SetColorSpaceWithColorSpace(QSurfaceFormat* self, int colorS void QSurfaceFormat_SetDefaultFormat(QSurfaceFormat* format); QSurfaceFormat* QSurfaceFormat_DefaultFormat(); void QSurfaceFormat_SetOption2(QSurfaceFormat* self, int option, bool on); -void QSurfaceFormat_Delete(QSurfaceFormat* self, bool isSubclass); +void QSurfaceFormat_Delete(QSurfaceFormat* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsyntaxhighlighter.cpp b/qt6/gen_qsyntaxhighlighter.cpp index d089fd3f..b32ce8e9 100644 --- a/qt6/gen_qsyntaxhighlighter.cpp +++ b/qt6/gen_qsyntaxhighlighter.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QSyntaxHighlighter_DisconnectNotify(void*, intptr_t, QMe } /* extern C */ #endif -class MiqtVirtualQSyntaxHighlighter : public virtual QSyntaxHighlighter { +class MiqtVirtualQSyntaxHighlighter final : public QSyntaxHighlighter { public: MiqtVirtualQSyntaxHighlighter(QObject* parent): QSyntaxHighlighter(parent) {}; MiqtVirtualQSyntaxHighlighter(QTextDocument* parent): QSyntaxHighlighter(parent) {}; - virtual ~MiqtVirtualQSyntaxHighlighter() = default; + virtual ~MiqtVirtualQSyntaxHighlighter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__HighlightBlock = 0; @@ -362,11 +362,7 @@ void QSyntaxHighlighter_virtualbase_DisconnectNotify(void* self, QMetaMethod* si ( (MiqtVirtualQSyntaxHighlighter*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSyntaxHighlighter_Delete(QSyntaxHighlighter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSyntaxHighlighter_Delete(QSyntaxHighlighter* self) { + delete self; } diff --git a/qt6/gen_qsyntaxhighlighter.go b/qt6/gen_qsyntaxhighlighter.go index 78204d2d..ccd538e2 100644 --- a/qt6/gen_qsyntaxhighlighter.go +++ b/qt6/gen_qsyntaxhighlighter.go @@ -337,7 +337,7 @@ func miqt_exec_callback_QSyntaxHighlighter_DisconnectNotify(self *C.QSyntaxHighl // Delete this object from C++ memory. func (this *QSyntaxHighlighter) Delete() { - C.QSyntaxHighlighter_Delete(this.h, C.bool(this.isSubclass)) + C.QSyntaxHighlighter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsyntaxhighlighter.h b/qt6/gen_qsyntaxhighlighter.h index 8fc77a9f..d57b19ef 100644 --- a/qt6/gen_qsyntaxhighlighter.h +++ b/qt6/gen_qsyntaxhighlighter.h @@ -65,7 +65,7 @@ void QSyntaxHighlighter_override_virtual_ConnectNotify(void* self, intptr_t slot void QSyntaxHighlighter_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSyntaxHighlighter_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSyntaxHighlighter_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSyntaxHighlighter_Delete(QSyntaxHighlighter* self, bool isSubclass); +void QSyntaxHighlighter_Delete(QSyntaxHighlighter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsystemsemaphore.cpp b/qt6/gen_qsystemsemaphore.cpp index ce851f60..81adaa75 100644 --- a/qt6/gen_qsystemsemaphore.cpp +++ b/qt6/gen_qsystemsemaphore.cpp @@ -115,11 +115,7 @@ bool QSystemSemaphore_Release1(QSystemSemaphore* self, int n) { return self->release(static_cast(n)); } -void QSystemSemaphore_Delete(QSystemSemaphore* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSystemSemaphore_Delete(QSystemSemaphore* self) { + delete self; } diff --git a/qt6/gen_qsystemsemaphore.go b/qt6/gen_qsystemsemaphore.go index d67a714f..fc7d0a93 100644 --- a/qt6/gen_qsystemsemaphore.go +++ b/qt6/gen_qsystemsemaphore.go @@ -188,7 +188,7 @@ func (this *QSystemSemaphore) Release1(n int) bool { // Delete this object from C++ memory. func (this *QSystemSemaphore) Delete() { - C.QSystemSemaphore_Delete(this.h, C.bool(this.isSubclass)) + C.QSystemSemaphore_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsystemsemaphore.h b/qt6/gen_qsystemsemaphore.h index ad933ac5..4e25954a 100644 --- a/qt6/gen_qsystemsemaphore.h +++ b/qt6/gen_qsystemsemaphore.h @@ -35,7 +35,7 @@ struct miqt_string QSystemSemaphore_Tr3(const char* sourceText, const char* disa void QSystemSemaphore_SetKey2(QSystemSemaphore* self, struct miqt_string key, int initialValue); void QSystemSemaphore_SetKey3(QSystemSemaphore* self, struct miqt_string key, int initialValue, int mode); bool QSystemSemaphore_Release1(QSystemSemaphore* self, int n); -void QSystemSemaphore_Delete(QSystemSemaphore* self, bool isSubclass); +void QSystemSemaphore_Delete(QSystemSemaphore* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qsystemtrayicon.cpp b/qt6/gen_qsystemtrayicon.cpp index f8684fa8..2f3eb9ea 100644 --- a/qt6/gen_qsystemtrayicon.cpp +++ b/qt6/gen_qsystemtrayicon.cpp @@ -31,7 +31,7 @@ void miqt_exec_callback_QSystemTrayIcon_DisconnectNotify(void*, intptr_t, QMetaM } /* extern C */ #endif -class MiqtVirtualQSystemTrayIcon : public virtual QSystemTrayIcon { +class MiqtVirtualQSystemTrayIcon final : public QSystemTrayIcon { public: MiqtVirtualQSystemTrayIcon(): QSystemTrayIcon() {}; @@ -39,7 +39,7 @@ public: MiqtVirtualQSystemTrayIcon(QObject* parent): QSystemTrayIcon(parent) {}; MiqtVirtualQSystemTrayIcon(const QIcon& icon, QObject* parent): QSystemTrayIcon(icon, parent) {}; - virtual ~MiqtVirtualQSystemTrayIcon() = default; + virtual ~MiqtVirtualQSystemTrayIcon() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -443,11 +443,7 @@ void QSystemTrayIcon_virtualbase_DisconnectNotify(void* self, QMetaMethod* signa ( (MiqtVirtualQSystemTrayIcon*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSystemTrayIcon_Delete(QSystemTrayIcon* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSystemTrayIcon_Delete(QSystemTrayIcon* self) { + delete self; } diff --git a/qt6/gen_qsystemtrayicon.go b/qt6/gen_qsystemtrayicon.go index 56d1b87e..102194d7 100644 --- a/qt6/gen_qsystemtrayicon.go +++ b/qt6/gen_qsystemtrayicon.go @@ -493,7 +493,7 @@ func miqt_exec_callback_QSystemTrayIcon_DisconnectNotify(self *C.QSystemTrayIcon // Delete this object from C++ memory. func (this *QSystemTrayIcon) Delete() { - C.QSystemTrayIcon_Delete(this.h, C.bool(this.isSubclass)) + C.QSystemTrayIcon_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qsystemtrayicon.h b/qt6/gen_qsystemtrayicon.h index 161dcd83..1844dcf8 100644 --- a/qt6/gen_qsystemtrayicon.h +++ b/qt6/gen_qsystemtrayicon.h @@ -85,7 +85,7 @@ void QSystemTrayIcon_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSystemTrayIcon_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSystemTrayIcon_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSystemTrayIcon_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSystemTrayIcon_Delete(QSystemTrayIcon* self, bool isSubclass); +void QSystemTrayIcon_Delete(QSystemTrayIcon* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtabbar.cpp b/qt6/gen_qtabbar.cpp index 4feaa9f0..14abfec9 100644 --- a/qt6/gen_qtabbar.cpp +++ b/qt6/gen_qtabbar.cpp @@ -101,13 +101,13 @@ bool miqt_exec_callback_QTabBar_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQTabBar : public virtual QTabBar { +class MiqtVirtualQTabBar final : public QTabBar { public: MiqtVirtualQTabBar(QWidget* parent): QTabBar(parent) {}; MiqtVirtualQTabBar(): QTabBar() {}; - virtual ~MiqtVirtualQTabBar() = default; + virtual ~MiqtVirtualQTabBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -2013,11 +2013,7 @@ bool QTabBar_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQTabBar*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QTabBar_Delete(QTabBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTabBar_Delete(QTabBar* self) { + delete self; } diff --git a/qt6/gen_qtabbar.go b/qt6/gen_qtabbar.go index 4345d400..0af4406c 100644 --- a/qt6/gen_qtabbar.go +++ b/qt6/gen_qtabbar.go @@ -1804,7 +1804,7 @@ func miqt_exec_callback_QTabBar_FocusNextPrevChild(self *C.QTabBar, cb C.intptr_ // Delete this object from C++ memory. func (this *QTabBar) Delete() { - C.QTabBar_Delete(this.h, C.bool(this.isSubclass)) + C.QTabBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtabbar.h b/qt6/gen_qtabbar.h index 8815f79a..78bfbd12 100644 --- a/qt6/gen_qtabbar.h +++ b/qt6/gen_qtabbar.h @@ -278,7 +278,7 @@ void QTabBar_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QTabBar_virtualbase_InputMethodQuery(const void* self, int param1); void QTabBar_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QTabBar_virtualbase_FocusNextPrevChild(void* self, bool next); -void QTabBar_Delete(QTabBar* self, bool isSubclass); +void QTabBar_Delete(QTabBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtableview.cpp b/qt6/gen_qtableview.cpp index e1035365..0f06a676 100644 --- a/qt6/gen_qtableview.cpp +++ b/qt6/gen_qtableview.cpp @@ -106,13 +106,13 @@ bool miqt_exec_callback_QTableView_EventFilter(void*, intptr_t, QObject*, QEvent } /* extern C */ #endif -class MiqtVirtualQTableView : public virtual QTableView { +class MiqtVirtualQTableView final : public QTableView { public: MiqtVirtualQTableView(QWidget* parent): QTableView(parent) {}; MiqtVirtualQTableView(): QTableView() {}; - virtual ~MiqtVirtualQTableView() = default; + virtual ~MiqtVirtualQTableView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetModel = 0; @@ -2385,11 +2385,7 @@ bool QTableView_virtualbase_EventFilter(void* self, QObject* object, QEvent* eve return ( (MiqtVirtualQTableView*)(self) )->virtualbase_EventFilter(object, event); } -void QTableView_Delete(QTableView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTableView_Delete(QTableView* self) { + delete self; } diff --git a/qt6/gen_qtableview.go b/qt6/gen_qtableview.go index 67576552..0b4fab5f 100644 --- a/qt6/gen_qtableview.go +++ b/qt6/gen_qtableview.go @@ -1979,7 +1979,7 @@ func miqt_exec_callback_QTableView_EventFilter(self *C.QTableView, cb C.intptr_t // Delete this object from C++ memory. func (this *QTableView) Delete() { - C.QTableView_Delete(this.h, C.bool(this.isSubclass)) + C.QTableView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtableview.h b/qt6/gen_qtableview.h index 30e5a26f..304de0bc 100644 --- a/qt6/gen_qtableview.h +++ b/qt6/gen_qtableview.h @@ -279,7 +279,7 @@ void QTableView_override_virtual_InputMethodEvent(void* self, intptr_t slot); void QTableView_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event); void QTableView_override_virtual_EventFilter(void* self, intptr_t slot); bool QTableView_virtualbase_EventFilter(void* self, QObject* object, QEvent* event); -void QTableView_Delete(QTableView* self, bool isSubclass); +void QTableView_Delete(QTableView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtablewidget.cpp b/qt6/gen_qtablewidget.cpp index af2e4e37..f5470b16 100644 --- a/qt6/gen_qtablewidget.cpp +++ b/qt6/gen_qtablewidget.cpp @@ -126,15 +126,11 @@ int QTableWidgetSelectionRange_ColumnCount(const QTableWidgetSelectionRange* sel return self->columnCount(); } -void QTableWidgetSelectionRange_Delete(QTableWidgetSelectionRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTableWidgetSelectionRange_Delete(QTableWidgetSelectionRange* self) { + delete self; } -class MiqtVirtualQTableWidgetItem : public virtual QTableWidgetItem { +class MiqtVirtualQTableWidgetItem final : public QTableWidgetItem { public: MiqtVirtualQTableWidgetItem(): QTableWidgetItem() {}; @@ -145,7 +141,7 @@ public: MiqtVirtualQTableWidgetItem(const QString& text, int typeVal): QTableWidgetItem(text, typeVal) {}; MiqtVirtualQTableWidgetItem(const QIcon& icon, const QString& text, int typeVal): QTableWidgetItem(icon, text, typeVal) {}; - virtual ~MiqtVirtualQTableWidgetItem() = default; + virtual ~MiqtVirtualQTableWidgetItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -568,15 +564,11 @@ void QTableWidgetItem_virtualbase_Write(const void* self, QDataStream* out) { ( (const MiqtVirtualQTableWidgetItem*)(self) )->virtualbase_Write(out); } -void QTableWidgetItem_Delete(QTableWidgetItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTableWidgetItem_Delete(QTableWidgetItem* self) { + delete self; } -class MiqtVirtualQTableWidget : public virtual QTableWidget { +class MiqtVirtualQTableWidget final : public QTableWidget { public: MiqtVirtualQTableWidget(QWidget* parent): QTableWidget(parent) {}; @@ -584,7 +576,7 @@ public: MiqtVirtualQTableWidget(int rows, int columns): QTableWidget(rows, columns) {}; MiqtVirtualQTableWidget(int rows, int columns, QWidget* parent): QTableWidget(rows, columns, parent) {}; - virtual ~MiqtVirtualQTableWidget() = default; + virtual ~MiqtVirtualQTableWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -2160,11 +2152,7 @@ void QTableWidget_virtualbase_CurrentChanged(void* self, QModelIndex* current, Q ( (MiqtVirtualQTableWidget*)(self) )->virtualbase_CurrentChanged(current, previous); } -void QTableWidget_Delete(QTableWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTableWidget_Delete(QTableWidget* self) { + delete self; } diff --git a/qt6/gen_qtablewidget.go b/qt6/gen_qtablewidget.go index 0a86491b..63c79881 100644 --- a/qt6/gen_qtablewidget.go +++ b/qt6/gen_qtablewidget.go @@ -96,7 +96,7 @@ func (this *QTableWidgetSelectionRange) ColumnCount() int { // Delete this object from C++ memory. func (this *QTableWidgetSelectionRange) Delete() { - C.QTableWidgetSelectionRange_Delete(this.h, C.bool(this.isSubclass)) + C.QTableWidgetSelectionRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -574,7 +574,7 @@ func miqt_exec_callback_QTableWidgetItem_Write(self *C.QTableWidgetItem, cb C.in // Delete this object from C++ memory. func (this *QTableWidgetItem) Delete() { - C.QTableWidgetItem_Delete(this.h, C.bool(this.isSubclass)) + C.QTableWidgetItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2184,7 +2184,7 @@ func miqt_exec_callback_QTableWidget_CurrentChanged(self *C.QTableWidget, cb C.i // Delete this object from C++ memory. func (this *QTableWidget) Delete() { - C.QTableWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QTableWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtablewidget.h b/qt6/gen_qtablewidget.h index d966672e..fb4045cb 100644 --- a/qt6/gen_qtablewidget.h +++ b/qt6/gen_qtablewidget.h @@ -84,7 +84,7 @@ int QTableWidgetSelectionRange_LeftColumn(const QTableWidgetSelectionRange* self int QTableWidgetSelectionRange_RightColumn(const QTableWidgetSelectionRange* self); int QTableWidgetSelectionRange_RowCount(const QTableWidgetSelectionRange* self); int QTableWidgetSelectionRange_ColumnCount(const QTableWidgetSelectionRange* self); -void QTableWidgetSelectionRange_Delete(QTableWidgetSelectionRange* self, bool isSubclass); +void QTableWidgetSelectionRange_Delete(QTableWidgetSelectionRange* self); QTableWidgetItem* QTableWidgetItem_new(); QTableWidgetItem* QTableWidgetItem_new2(struct miqt_string text); @@ -144,7 +144,7 @@ void QTableWidgetItem_override_virtual_Read(void* self, intptr_t slot); void QTableWidgetItem_virtualbase_Read(void* self, QDataStream* in); void QTableWidgetItem_override_virtual_Write(void* self, intptr_t slot); void QTableWidgetItem_virtualbase_Write(const void* self, QDataStream* out); -void QTableWidgetItem_Delete(QTableWidgetItem* self, bool isSubclass); +void QTableWidgetItem_Delete(QTableWidgetItem* self); QTableWidget* QTableWidget_new(QWidget* parent); QTableWidget* QTableWidget_new2(); @@ -311,7 +311,7 @@ void QTableWidget_override_virtual_SelectionChanged(void* self, intptr_t slot); void QTableWidget_virtualbase_SelectionChanged(void* self, QItemSelection* selected, QItemSelection* deselected); void QTableWidget_override_virtual_CurrentChanged(void* self, intptr_t slot); void QTableWidget_virtualbase_CurrentChanged(void* self, QModelIndex* current, QModelIndex* previous); -void QTableWidget_Delete(QTableWidget* self, bool isSubclass); +void QTableWidget_Delete(QTableWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtabwidget.cpp b/qt6/gen_qtabwidget.cpp index 4f398187..effcf7d5 100644 --- a/qt6/gen_qtabwidget.cpp +++ b/qt6/gen_qtabwidget.cpp @@ -94,13 +94,13 @@ bool miqt_exec_callback_QTabWidget_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQTabWidget : public virtual QTabWidget { +class MiqtVirtualQTabWidget final : public QTabWidget { public: MiqtVirtualQTabWidget(QWidget* parent): QTabWidget(parent) {}; MiqtVirtualQTabWidget(): QTabWidget() {}; - virtual ~MiqtVirtualQTabWidget() = default; + virtual ~MiqtVirtualQTabWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1840,11 +1840,7 @@ bool QTabWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQTabWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QTabWidget_Delete(QTabWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTabWidget_Delete(QTabWidget* self) { + delete self; } diff --git a/qt6/gen_qtabwidget.go b/qt6/gen_qtabwidget.go index 6357e8ff..affd5ebe 100644 --- a/qt6/gen_qtabwidget.go +++ b/qt6/gen_qtabwidget.go @@ -1626,7 +1626,7 @@ func miqt_exec_callback_QTabWidget_FocusNextPrevChild(self *C.QTabWidget, cb C.i // Delete this object from C++ memory. func (this *QTabWidget) Delete() { - C.QTabWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QTabWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtabwidget.h b/qt6/gen_qtabwidget.h index b04973ae..60ee3bb5 100644 --- a/qt6/gen_qtabwidget.h +++ b/qt6/gen_qtabwidget.h @@ -249,7 +249,7 @@ void QTabWidget_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QTabWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QTabWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QTabWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QTabWidget_Delete(QTabWidget* self, bool isSubclass); +void QTabWidget_Delete(QTabWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtemporarydir.cpp b/qt6/gen_qtemporarydir.cpp index fcd9425c..0ccc1bf8 100644 --- a/qt6/gen_qtemporarydir.cpp +++ b/qt6/gen_qtemporarydir.cpp @@ -76,11 +76,7 @@ struct miqt_string QTemporaryDir_FilePath(const QTemporaryDir* self, struct miqt return _ms; } -void QTemporaryDir_Delete(QTemporaryDir* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTemporaryDir_Delete(QTemporaryDir* self) { + delete self; } diff --git a/qt6/gen_qtemporarydir.go b/qt6/gen_qtemporarydir.go index 3bf8a489..12f166e5 100644 --- a/qt6/gen_qtemporarydir.go +++ b/qt6/gen_qtemporarydir.go @@ -113,7 +113,7 @@ func (this *QTemporaryDir) FilePath(fileName string) string { // Delete this object from C++ memory. func (this *QTemporaryDir) Delete() { - C.QTemporaryDir_Delete(this.h, C.bool(this.isSubclass)) + C.QTemporaryDir_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtemporarydir.h b/qt6/gen_qtemporarydir.h index ae581acf..e474cf47 100644 --- a/qt6/gen_qtemporarydir.h +++ b/qt6/gen_qtemporarydir.h @@ -30,7 +30,7 @@ void QTemporaryDir_SetAutoRemove(QTemporaryDir* self, bool b); bool QTemporaryDir_Remove(QTemporaryDir* self); struct miqt_string QTemporaryDir_Path(const QTemporaryDir* self); struct miqt_string QTemporaryDir_FilePath(const QTemporaryDir* self, struct miqt_string fileName); -void QTemporaryDir_Delete(QTemporaryDir* self, bool isSubclass); +void QTemporaryDir_Delete(QTemporaryDir* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtemporaryfile.cpp b/qt6/gen_qtemporaryfile.cpp index fb19ce5c..3d72a97f 100644 --- a/qt6/gen_qtemporaryfile.cpp +++ b/qt6/gen_qtemporaryfile.cpp @@ -25,7 +25,7 @@ bool miqt_exec_callback_QTemporaryFile_SetPermissions(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQTemporaryFile : public virtual QTemporaryFile { +class MiqtVirtualQTemporaryFile final : public QTemporaryFile { public: MiqtVirtualQTemporaryFile(): QTemporaryFile() {}; @@ -33,7 +33,7 @@ public: MiqtVirtualQTemporaryFile(QObject* parent): QTemporaryFile(parent) {}; MiqtVirtualQTemporaryFile(const QString& templateName, QObject* parent): QTemporaryFile(templateName, parent) {}; - virtual ~MiqtVirtualQTemporaryFile() = default; + virtual ~MiqtVirtualQTemporaryFile() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__FileName = 0; @@ -349,11 +349,7 @@ bool QTemporaryFile_virtualbase_SetPermissions(void* self, int permissionSpec) { return ( (MiqtVirtualQTemporaryFile*)(self) )->virtualbase_SetPermissions(permissionSpec); } -void QTemporaryFile_Delete(QTemporaryFile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTemporaryFile_Delete(QTemporaryFile* self) { + delete self; } diff --git a/qt6/gen_qtemporaryfile.go b/qt6/gen_qtemporaryfile.go index 4f47839b..22f05858 100644 --- a/qt6/gen_qtemporaryfile.go +++ b/qt6/gen_qtemporaryfile.go @@ -353,7 +353,7 @@ func miqt_exec_callback_QTemporaryFile_SetPermissions(self *C.QTemporaryFile, cb // Delete this object from C++ memory. func (this *QTemporaryFile) Delete() { - C.QTemporaryFile_Delete(this.h, C.bool(this.isSubclass)) + C.QTemporaryFile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtemporaryfile.h b/qt6/gen_qtemporaryfile.h index 45d5a5dc..a60bbecf 100644 --- a/qt6/gen_qtemporaryfile.h +++ b/qt6/gen_qtemporaryfile.h @@ -64,7 +64,7 @@ void QTemporaryFile_override_virtual_Permissions(void* self, intptr_t slot); int QTemporaryFile_virtualbase_Permissions(const void* self); void QTemporaryFile_override_virtual_SetPermissions(void* self, intptr_t slot); bool QTemporaryFile_virtualbase_SetPermissions(void* self, int permissionSpec); -void QTemporaryFile_Delete(QTemporaryFile* self, bool isSubclass); +void QTemporaryFile_Delete(QTemporaryFile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtestsupport_gui.cpp b/qt6/gen_qtestsupport_gui.cpp index 2df6920e..44f52e1d 100644 --- a/qt6/gen_qtestsupport_gui.cpp +++ b/qt6/gen_qtestsupport_gui.cpp @@ -58,11 +58,7 @@ QTest__QTouchEventSequence* QTest__QTouchEventSequence_Release3(QTest__QTouchEve return &_ret; } -void QTest__QTouchEventSequence_Delete(QTest__QTouchEventSequence* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTest__QTouchEventSequence_Delete(QTest__QTouchEventSequence* self) { + delete self; } diff --git a/qt6/gen_qtestsupport_gui.go b/qt6/gen_qtestsupport_gui.go index d69b7f54..e3fae334 100644 --- a/qt6/gen_qtestsupport_gui.go +++ b/qt6/gen_qtestsupport_gui.go @@ -80,7 +80,7 @@ func (this *QTest__QTouchEventSequence) Release3(touchId int, pt *QPoint, window // Delete this object from C++ memory. func (this *QTest__QTouchEventSequence) Delete() { - C.QTest__QTouchEventSequence_Delete(this.h, C.bool(this.isSubclass)) + C.QTest__QTouchEventSequence_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtestsupport_gui.h b/qt6/gen_qtestsupport_gui.h index 5b989495..86446af0 100644 --- a/qt6/gen_qtestsupport_gui.h +++ b/qt6/gen_qtestsupport_gui.h @@ -36,7 +36,7 @@ bool QTest__QTouchEventSequence_Commit(QTest__QTouchEventSequence* self, bool pr QTest__QTouchEventSequence* QTest__QTouchEventSequence_Press3(QTest__QTouchEventSequence* self, int touchId, QPoint* pt, QWindow* window); QTest__QTouchEventSequence* QTest__QTouchEventSequence_Move3(QTest__QTouchEventSequence* self, int touchId, QPoint* pt, QWindow* window); QTest__QTouchEventSequence* QTest__QTouchEventSequence_Release3(QTest__QTouchEventSequence* self, int touchId, QPoint* pt, QWindow* window); -void QTest__QTouchEventSequence_Delete(QTest__QTouchEventSequence* self, bool isSubclass); +void QTest__QTouchEventSequence_Delete(QTest__QTouchEventSequence* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtestsupport_widgets.cpp b/qt6/gen_qtestsupport_widgets.cpp index f1816430..a8c916fe 100644 --- a/qt6/gen_qtestsupport_widgets.cpp +++ b/qt6/gen_qtestsupport_widgets.cpp @@ -15,12 +15,12 @@ bool miqt_exec_callback_QTest__QTouchEventWidgetSequence_Commit(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQTestQTouchEventWidgetSequence : public virtual QTest::QTouchEventWidgetSequence { +class MiqtVirtualQTestQTouchEventWidgetSequence final : public QTest::QTouchEventWidgetSequence { public: MiqtVirtualQTestQTouchEventWidgetSequence(const QTest::QTouchEventWidgetSequence& param1): QTest::QTouchEventWidgetSequence(param1) {}; - virtual ~MiqtVirtualQTestQTouchEventWidgetSequence() = default; + virtual ~MiqtVirtualQTestQTouchEventWidgetSequence() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Stationary = 0; @@ -142,11 +142,7 @@ bool QTest__QTouchEventWidgetSequence_virtualbase_Commit(void* self, bool proces return ( (MiqtVirtualQTestQTouchEventWidgetSequence*)(self) )->virtualbase_Commit(processEvents); } -void QTest__QTouchEventWidgetSequence_Delete(QTest__QTouchEventWidgetSequence* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTest__QTouchEventWidgetSequence_Delete(QTest__QTouchEventWidgetSequence* self) { + delete self; } diff --git a/qt6/gen_qtestsupport_widgets.go b/qt6/gen_qtestsupport_widgets.go index 3ad71533..7fe386c0 100644 --- a/qt6/gen_qtestsupport_widgets.go +++ b/qt6/gen_qtestsupport_widgets.go @@ -149,7 +149,7 @@ func miqt_exec_callback_QTest__QTouchEventWidgetSequence_Commit(self *C.QTest__Q // Delete this object from C++ memory. func (this *QTest__QTouchEventWidgetSequence) Delete() { - C.QTest__QTouchEventWidgetSequence_Delete(this.h, C.bool(this.isSubclass)) + C.QTest__QTouchEventWidgetSequence_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtestsupport_widgets.h b/qt6/gen_qtestsupport_widgets.h index aa52173a..f9d1d7df 100644 --- a/qt6/gen_qtestsupport_widgets.h +++ b/qt6/gen_qtestsupport_widgets.h @@ -48,7 +48,7 @@ void QTest__QTouchEventWidgetSequence_override_virtual_Stationary(void* self, in QTest__QTouchEventWidgetSequence* QTest__QTouchEventWidgetSequence_virtualbase_Stationary(void* self, int touchId); void QTest__QTouchEventWidgetSequence_override_virtual_Commit(void* self, intptr_t slot); bool QTest__QTouchEventWidgetSequence_virtualbase_Commit(void* self, bool processEvents); -void QTest__QTouchEventWidgetSequence_Delete(QTest__QTouchEventWidgetSequence* self, bool isSubclass); +void QTest__QTouchEventWidgetSequence_Delete(QTest__QTouchEventWidgetSequence* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextboundaryfinder.cpp b/qt6/gen_qtextboundaryfinder.cpp index 22b27fbc..bde20c85 100644 --- a/qt6/gen_qtextboundaryfinder.cpp +++ b/qt6/gen_qtextboundaryfinder.cpp @@ -99,11 +99,7 @@ int QTextBoundaryFinder_BoundaryReasons(const QTextBoundaryFinder* self) { return static_cast(_ret); } -void QTextBoundaryFinder_Delete(QTextBoundaryFinder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBoundaryFinder_Delete(QTextBoundaryFinder* self) { + delete self; } diff --git a/qt6/gen_qtextboundaryfinder.go b/qt6/gen_qtextboundaryfinder.go index b1df3590..d4954329 100644 --- a/qt6/gen_qtextboundaryfinder.go +++ b/qt6/gen_qtextboundaryfinder.go @@ -171,7 +171,7 @@ func (this *QTextBoundaryFinder) BoundaryReasons() QTextBoundaryFinder__Boundary // Delete this object from C++ memory. func (this *QTextBoundaryFinder) Delete() { - C.QTextBoundaryFinder_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBoundaryFinder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextboundaryfinder.h b/qt6/gen_qtextboundaryfinder.h index 448899c6..5a41d52a 100644 --- a/qt6/gen_qtextboundaryfinder.h +++ b/qt6/gen_qtextboundaryfinder.h @@ -40,7 +40,7 @@ ptrdiff_t QTextBoundaryFinder_ToNextBoundary(QTextBoundaryFinder* self); ptrdiff_t QTextBoundaryFinder_ToPreviousBoundary(QTextBoundaryFinder* self); bool QTextBoundaryFinder_IsAtBoundary(const QTextBoundaryFinder* self); int QTextBoundaryFinder_BoundaryReasons(const QTextBoundaryFinder* self); -void QTextBoundaryFinder_Delete(QTextBoundaryFinder* self, bool isSubclass); +void QTextBoundaryFinder_Delete(QTextBoundaryFinder* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextbrowser.cpp b/qt6/gen_qtextbrowser.cpp index bf7ae67b..35c05474 100644 --- a/qt6/gen_qtextbrowser.cpp +++ b/qt6/gen_qtextbrowser.cpp @@ -80,13 +80,13 @@ void miqt_exec_callback_QTextBrowser_DoSetTextCursor(void*, intptr_t, QTextCurso } /* extern C */ #endif -class MiqtVirtualQTextBrowser : public virtual QTextBrowser { +class MiqtVirtualQTextBrowser final : public QTextBrowser { public: MiqtVirtualQTextBrowser(QWidget* parent): QTextBrowser(parent) {}; MiqtVirtualQTextBrowser(): QTextBrowser() {}; - virtual ~MiqtVirtualQTextBrowser() = default; + virtual ~MiqtVirtualQTextBrowser() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__LoadResource = 0; @@ -1421,11 +1421,7 @@ void QTextBrowser_virtualbase_DoSetTextCursor(void* self, QTextCursor* cursor) { ( (MiqtVirtualQTextBrowser*)(self) )->virtualbase_DoSetTextCursor(cursor); } -void QTextBrowser_Delete(QTextBrowser* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBrowser_Delete(QTextBrowser* self) { + delete self; } diff --git a/qt6/gen_qtextbrowser.go b/qt6/gen_qtextbrowser.go index 7e9829ed..0b2abf7a 100644 --- a/qt6/gen_qtextbrowser.go +++ b/qt6/gen_qtextbrowser.go @@ -1234,7 +1234,7 @@ func miqt_exec_callback_QTextBrowser_DoSetTextCursor(self *C.QTextBrowser, cb C. // Delete this object from C++ memory. func (this *QTextBrowser) Delete() { - C.QTextBrowser_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBrowser_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextbrowser.h b/qt6/gen_qtextbrowser.h index 6c029828..85211a2f 100644 --- a/qt6/gen_qtextbrowser.h +++ b/qt6/gen_qtextbrowser.h @@ -191,7 +191,7 @@ void QTextBrowser_override_virtual_ScrollContentsBy(void* self, intptr_t slot); void QTextBrowser_virtualbase_ScrollContentsBy(void* self, int dx, int dy); void QTextBrowser_override_virtual_DoSetTextCursor(void* self, intptr_t slot); void QTextBrowser_virtualbase_DoSetTextCursor(void* self, QTextCursor* cursor); -void QTextBrowser_Delete(QTextBrowser* self, bool isSubclass); +void QTextBrowser_Delete(QTextBrowser* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextcursor.cpp b/qt6/gen_qtextcursor.cpp index 42ba2fe2..67d5f929 100644 --- a/qt6/gen_qtextcursor.cpp +++ b/qt6/gen_qtextcursor.cpp @@ -380,11 +380,7 @@ void QTextCursor_InsertImage2(QTextCursor* self, QImage* image, struct miqt_stri self->insertImage(*image, name_QString); } -void QTextCursor_Delete(QTextCursor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextCursor_Delete(QTextCursor* self) { + delete self; } diff --git a/qt6/gen_qtextcursor.go b/qt6/gen_qtextcursor.go index eafbd2e5..cbdd9e9f 100644 --- a/qt6/gen_qtextcursor.go +++ b/qt6/gen_qtextcursor.go @@ -495,7 +495,7 @@ func (this *QTextCursor) InsertImage2(image *QImage, name string) { // Delete this object from C++ memory. func (this *QTextCursor) Delete() { - C.QTextCursor_Delete(this.h, C.bool(this.isSubclass)) + C.QTextCursor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextcursor.h b/qt6/gen_qtextcursor.h index bafd8c51..e60137f3 100644 --- a/qt6/gen_qtextcursor.h +++ b/qt6/gen_qtextcursor.h @@ -131,7 +131,7 @@ bool QTextCursor_MovePosition2(QTextCursor* self, int op, int param2); bool QTextCursor_MovePosition3(QTextCursor* self, int op, int param2, int n); void QTextCursor_InsertMarkdown2(QTextCursor* self, struct miqt_string markdown, int features); void QTextCursor_InsertImage2(QTextCursor* self, QImage* image, struct miqt_string name); -void QTextCursor_Delete(QTextCursor* self, bool isSubclass); +void QTextCursor_Delete(QTextCursor* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextdocument.cpp b/qt6/gen_qtextdocument.cpp index 2d2b9030..71c9e2d4 100644 --- a/qt6/gen_qtextdocument.cpp +++ b/qt6/gen_qtextdocument.cpp @@ -69,15 +69,11 @@ void QAbstractUndoItem_OperatorAssign(QAbstractUndoItem* self, QAbstractUndoItem self->operator=(*param1); } -void QAbstractUndoItem_Delete(QAbstractUndoItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractUndoItem_Delete(QAbstractUndoItem* self) { + delete self; } -class MiqtVirtualQTextDocument : public virtual QTextDocument { +class MiqtVirtualQTextDocument final : public QTextDocument { public: MiqtVirtualQTextDocument(): QTextDocument() {}; @@ -85,7 +81,7 @@ public: MiqtVirtualQTextDocument(QObject* parent): QTextDocument(parent) {}; MiqtVirtualQTextDocument(const QString& text, QObject* parent): QTextDocument(text, parent) {}; - virtual ~MiqtVirtualQTextDocument() = default; + virtual ~MiqtVirtualQTextDocument() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clear = 0; @@ -1067,11 +1063,7 @@ void QTextDocument_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQTextDocument*)(self) )->virtualbase_DisconnectNotify(signal); } -void QTextDocument_Delete(QTextDocument* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextDocument_Delete(QTextDocument* self) { + delete self; } diff --git a/qt6/gen_qtextdocument.go b/qt6/gen_qtextdocument.go index 8411cc10..8d7d052e 100644 --- a/qt6/gen_qtextdocument.go +++ b/qt6/gen_qtextdocument.go @@ -104,7 +104,7 @@ func (this *QAbstractUndoItem) OperatorAssign(param1 *QAbstractUndoItem) { // Delete this object from C++ memory. func (this *QAbstractUndoItem) Delete() { - C.QAbstractUndoItem_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractUndoItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1223,7 +1223,7 @@ func miqt_exec_callback_QTextDocument_DisconnectNotify(self *C.QTextDocument, cb // Delete this object from C++ memory. func (this *QTextDocument) Delete() { - C.QTextDocument_Delete(this.h, C.bool(this.isSubclass)) + C.QTextDocument_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextdocument.h b/qt6/gen_qtextdocument.h index 3a84b07a..65917d1b 100644 --- a/qt6/gen_qtextdocument.h +++ b/qt6/gen_qtextdocument.h @@ -69,7 +69,7 @@ typedef struct QVariant QVariant; void QAbstractUndoItem_Undo(QAbstractUndoItem* self); void QAbstractUndoItem_Redo(QAbstractUndoItem* self); void QAbstractUndoItem_OperatorAssign(QAbstractUndoItem* self, QAbstractUndoItem* param1); -void QAbstractUndoItem_Delete(QAbstractUndoItem* self, bool isSubclass); +void QAbstractUndoItem_Delete(QAbstractUndoItem* self); QTextDocument* QTextDocument_new(); QTextDocument* QTextDocument_new2(struct miqt_string text); @@ -223,7 +223,7 @@ void QTextDocument_override_virtual_ConnectNotify(void* self, intptr_t slot); void QTextDocument_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QTextDocument_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QTextDocument_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QTextDocument_Delete(QTextDocument* self, bool isSubclass); +void QTextDocument_Delete(QTextDocument* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextdocumentfragment.cpp b/qt6/gen_qtextdocumentfragment.cpp index d633a687..9f7af7c4 100644 --- a/qt6/gen_qtextdocumentfragment.cpp +++ b/qt6/gen_qtextdocumentfragment.cpp @@ -119,11 +119,7 @@ QTextDocumentFragment* QTextDocumentFragment_FromMarkdown2(struct miqt_string ma return new QTextDocumentFragment(QTextDocumentFragment::fromMarkdown(markdown_QString, static_cast(features))); } -void QTextDocumentFragment_Delete(QTextDocumentFragment* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextDocumentFragment_Delete(QTextDocumentFragment* self) { + delete self; } diff --git a/qt6/gen_qtextdocumentfragment.go b/qt6/gen_qtextdocumentfragment.go index 6a66c875..26536dc6 100644 --- a/qt6/gen_qtextdocumentfragment.go +++ b/qt6/gen_qtextdocumentfragment.go @@ -173,7 +173,7 @@ func QTextDocumentFragment_FromMarkdown2(markdown string, features QTextDocument // Delete this object from C++ memory. func (this *QTextDocumentFragment) Delete() { - C.QTextDocumentFragment_Delete(this.h, C.bool(this.isSubclass)) + C.QTextDocumentFragment_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextdocumentfragment.h b/qt6/gen_qtextdocumentfragment.h index 51faf9ee..45b8d407 100644 --- a/qt6/gen_qtextdocumentfragment.h +++ b/qt6/gen_qtextdocumentfragment.h @@ -40,7 +40,7 @@ QTextDocumentFragment* QTextDocumentFragment_FromMarkdown(struct miqt_string mar struct miqt_string QTextDocumentFragment_ToMarkdown1(const QTextDocumentFragment* self, int features); QTextDocumentFragment* QTextDocumentFragment_FromHtml2(struct miqt_string html, QTextDocument* resourceProvider); QTextDocumentFragment* QTextDocumentFragment_FromMarkdown2(struct miqt_string markdown, int features); -void QTextDocumentFragment_Delete(QTextDocumentFragment* self, bool isSubclass); +void QTextDocumentFragment_Delete(QTextDocumentFragment* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextdocumentwriter.cpp b/qt6/gen_qtextdocumentwriter.cpp index f8398d1b..1f22d291 100644 --- a/qt6/gen_qtextdocumentwriter.cpp +++ b/qt6/gen_qtextdocumentwriter.cpp @@ -102,11 +102,7 @@ struct miqt_array /* of struct miqt_string */ QTextDocumentWriter_SupportedDocu return _out; } -void QTextDocumentWriter_Delete(QTextDocumentWriter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextDocumentWriter_Delete(QTextDocumentWriter* self) { + delete self; } diff --git a/qt6/gen_qtextdocumentwriter.go b/qt6/gen_qtextdocumentwriter.go index 1eb22903..c2216543 100644 --- a/qt6/gen_qtextdocumentwriter.go +++ b/qt6/gen_qtextdocumentwriter.go @@ -152,7 +152,7 @@ func QTextDocumentWriter_SupportedDocumentFormats() [][]byte { // Delete this object from C++ memory. func (this *QTextDocumentWriter) Delete() { - C.QTextDocumentWriter_Delete(this.h, C.bool(this.isSubclass)) + C.QTextDocumentWriter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextdocumentwriter.h b/qt6/gen_qtextdocumentwriter.h index 4dda0123..3094d693 100644 --- a/qt6/gen_qtextdocumentwriter.h +++ b/qt6/gen_qtextdocumentwriter.h @@ -39,7 +39,7 @@ struct miqt_string QTextDocumentWriter_FileName(const QTextDocumentWriter* self) bool QTextDocumentWriter_Write(QTextDocumentWriter* self, QTextDocument* document); bool QTextDocumentWriter_WriteWithFragment(QTextDocumentWriter* self, QTextDocumentFragment* fragment); struct miqt_array /* of struct miqt_string */ QTextDocumentWriter_SupportedDocumentFormats(); -void QTextDocumentWriter_Delete(QTextDocumentWriter* self, bool isSubclass); +void QTextDocumentWriter_Delete(QTextDocumentWriter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextedit.cpp b/qt6/gen_qtextedit.cpp index 357a05f5..a115feb6 100644 --- a/qt6/gen_qtextedit.cpp +++ b/qt6/gen_qtextedit.cpp @@ -92,7 +92,7 @@ QSize* miqt_exec_callback_QTextEdit_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQTextEdit : public virtual QTextEdit { +class MiqtVirtualQTextEdit final : public QTextEdit { public: MiqtVirtualQTextEdit(QWidget* parent): QTextEdit(parent) {}; @@ -100,7 +100,7 @@ public: MiqtVirtualQTextEdit(const QString& text): QTextEdit(text) {}; MiqtVirtualQTextEdit(const QString& text, QWidget* parent): QTextEdit(text, parent) {}; - virtual ~MiqtVirtualQTextEdit() = default; + virtual ~MiqtVirtualQTextEdit() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__LoadResource = 0; @@ -1831,12 +1831,8 @@ QSize* QTextEdit_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQTextEdit*)(self) )->virtualbase_ViewportSizeHint(); } -void QTextEdit_Delete(QTextEdit* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextEdit_Delete(QTextEdit* self) { + delete self; } QTextEdit__ExtraSelection* QTextEdit__ExtraSelection_new(QTextEdit__ExtraSelection* param1) { @@ -1847,11 +1843,7 @@ void QTextEdit__ExtraSelection_OperatorAssign(QTextEdit__ExtraSelection* self, Q self->operator=(*param1); } -void QTextEdit__ExtraSelection_Delete(QTextEdit__ExtraSelection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextEdit__ExtraSelection_Delete(QTextEdit__ExtraSelection* self) { + delete self; } diff --git a/qt6/gen_qtextedit.go b/qt6/gen_qtextedit.go index 86f45e91..8d24069a 100644 --- a/qt6/gen_qtextedit.go +++ b/qt6/gen_qtextedit.go @@ -1713,7 +1713,7 @@ func miqt_exec_callback_QTextEdit_ViewportSizeHint(self *C.QTextEdit, cb C.intpt // Delete this object from C++ memory. func (this *QTextEdit) Delete() { - C.QTextEdit_Delete(this.h, C.bool(this.isSubclass)) + C.QTextEdit_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1772,7 +1772,7 @@ func (this *QTextEdit__ExtraSelection) OperatorAssign(param1 *QTextEdit__ExtraSe // Delete this object from C++ memory. func (this *QTextEdit__ExtraSelection) Delete() { - C.QTextEdit__ExtraSelection_Delete(this.h, C.bool(this.isSubclass)) + C.QTextEdit__ExtraSelection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextedit.h b/qt6/gen_qtextedit.h index 96793679..26bda8a0 100644 --- a/qt6/gen_qtextedit.h +++ b/qt6/gen_qtextedit.h @@ -313,11 +313,11 @@ void QTextEdit_override_virtual_ViewportEvent(void* self, intptr_t slot); bool QTextEdit_virtualbase_ViewportEvent(void* self, QEvent* param1); void QTextEdit_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QTextEdit_virtualbase_ViewportSizeHint(const void* self); -void QTextEdit_Delete(QTextEdit* self, bool isSubclass); +void QTextEdit_Delete(QTextEdit* self); QTextEdit__ExtraSelection* QTextEdit__ExtraSelection_new(QTextEdit__ExtraSelection* param1); void QTextEdit__ExtraSelection_OperatorAssign(QTextEdit__ExtraSelection* self, QTextEdit__ExtraSelection* param1); -void QTextEdit__ExtraSelection_Delete(QTextEdit__ExtraSelection* self, bool isSubclass); +void QTextEdit__ExtraSelection_Delete(QTextEdit__ExtraSelection* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextformat.cpp b/qt6/gen_qtextformat.cpp index 5f02376a..6b76d1d0 100644 --- a/qt6/gen_qtextformat.cpp +++ b/qt6/gen_qtextformat.cpp @@ -68,12 +68,8 @@ QVariant* QTextLength_ToQVariant(const QTextLength* self) { return new QVariant(self->operator QVariant()); } -void QTextLength_Delete(QTextLength* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextLength_Delete(QTextLength* self) { + delete self; } QTextFormat* QTextFormat_new() { @@ -330,12 +326,8 @@ void QTextFormat_ClearForeground(QTextFormat* self) { self->clearForeground(); } -void QTextFormat_Delete(QTextFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFormat_Delete(QTextFormat* self) { + delete self; } QTextCharFormat* QTextCharFormat_new() { @@ -694,12 +686,8 @@ void QTextCharFormat_SetFontStyleHint2(QTextCharFormat* self, int hint, int stra self->setFontStyleHint(static_cast(hint), static_cast(strategy)); } -void QTextCharFormat_Delete(QTextCharFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextCharFormat_Delete(QTextCharFormat* self) { + delete self; } QTextBlockFormat* QTextBlockFormat_new() { @@ -855,12 +843,8 @@ int QTextBlockFormat_Marker(const QTextBlockFormat* self) { return static_cast(_ret); } -void QTextBlockFormat_Delete(QTextBlockFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBlockFormat_Delete(QTextBlockFormat* self) { + delete self; } QTextListFormat* QTextListFormat_new() { @@ -928,12 +912,8 @@ struct miqt_string QTextListFormat_NumberSuffix(const QTextListFormat* self) { return _ms; } -void QTextListFormat_Delete(QTextListFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextListFormat_Delete(QTextListFormat* self) { + delete self; } QTextImageFormat* QTextImageFormat_new() { @@ -994,12 +974,8 @@ int QTextImageFormat_Quality(const QTextImageFormat* self) { return self->quality(); } -void QTextImageFormat_Delete(QTextImageFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextImageFormat_Delete(QTextImageFormat* self) { + delete self; } QTextFrameFormat* QTextFrameFormat_new() { @@ -1140,12 +1116,8 @@ int QTextFrameFormat_PageBreakPolicy(const QTextFrameFormat* self) { return static_cast(_ret); } -void QTextFrameFormat_Delete(QTextFrameFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFrameFormat_Delete(QTextFrameFormat* self) { + delete self; } QTextTableFormat* QTextTableFormat_new() { @@ -1238,12 +1210,8 @@ bool QTextTableFormat_BorderCollapse(const QTextTableFormat* self) { return self->borderCollapse(); } -void QTextTableFormat_Delete(QTextTableFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextTableFormat_Delete(QTextTableFormat* self) { + delete self; } QTextTableCellFormat* QTextTableCellFormat_new() { @@ -1414,11 +1382,7 @@ void QTextTableCellFormat_SetBorderBrush(QTextTableCellFormat* self, QBrush* bru self->setBorderBrush(*brush); } -void QTextTableCellFormat_Delete(QTextTableCellFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextTableCellFormat_Delete(QTextTableCellFormat* self) { + delete self; } diff --git a/qt6/gen_qtextformat.go b/qt6/gen_qtextformat.go index 5e3bc0b0..fc4163db 100644 --- a/qt6/gen_qtextformat.go +++ b/qt6/gen_qtextformat.go @@ -340,7 +340,7 @@ func (this *QTextLength) ToQVariant() *QVariant { // Delete this object from C++ memory. func (this *QTextLength) Delete() { - C.QTextLength_Delete(this.h, C.bool(this.isSubclass)) + C.QTextLength_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -675,7 +675,7 @@ func (this *QTextFormat) ClearForeground() { // Delete this object from C++ memory. func (this *QTextFormat) Delete() { - C.QTextFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1082,7 +1082,7 @@ func (this *QTextCharFormat) SetFontStyleHint2(hint QFont__StyleHint, strategy Q // Delete this object from C++ memory. func (this *QTextCharFormat) Delete() { - C.QTextCharFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextCharFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1279,7 +1279,7 @@ func (this *QTextBlockFormat) Marker() QTextBlockFormat__MarkerType { // Delete this object from C++ memory. func (this *QTextBlockFormat) Delete() { - C.QTextBlockFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBlockFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1396,7 +1396,7 @@ func (this *QTextListFormat) NumberSuffix() string { // Delete this object from C++ memory. func (this *QTextListFormat) Delete() { - C.QTextListFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextListFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1502,7 +1502,7 @@ func (this *QTextImageFormat) Quality() int { // Delete this object from C++ memory. func (this *QTextImageFormat) Delete() { - C.QTextImageFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextImageFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1691,7 +1691,7 @@ func (this *QTextFrameFormat) PageBreakPolicy() QTextFormat__PageBreakFlag { // Delete this object from C++ memory. func (this *QTextFrameFormat) Delete() { - C.QTextFrameFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFrameFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1828,7 +1828,7 @@ func (this *QTextTableFormat) BorderCollapse() bool { // Delete this object from C++ memory. func (this *QTextTableFormat) Delete() { - C.QTextTableFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextTableFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2043,7 +2043,7 @@ func (this *QTextTableCellFormat) SetBorderBrush(brush *QBrush) { // Delete this object from C++ memory. func (this *QTextTableCellFormat) Delete() { - C.QTextTableCellFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QTextTableCellFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextformat.h b/qt6/gen_qtextformat.h index 440ea4a1..12b3ea35 100644 --- a/qt6/gen_qtextformat.h +++ b/qt6/gen_qtextformat.h @@ -61,7 +61,7 @@ double QTextLength_RawValue(const QTextLength* self); bool QTextLength_OperatorEqual(const QTextLength* self, QTextLength* other); bool QTextLength_OperatorNotEqual(const QTextLength* self, QTextLength* other); QVariant* QTextLength_ToQVariant(const QTextLength* self); -void QTextLength_Delete(QTextLength* self, bool isSubclass); +void QTextLength_Delete(QTextLength* self); QTextFormat* QTextFormat_new(); QTextFormat* QTextFormat_new2(int typeVal); @@ -117,7 +117,7 @@ void QTextFormat_ClearBackground(QTextFormat* self); void QTextFormat_SetForeground(QTextFormat* self, QBrush* brush); QBrush* QTextFormat_Foreground(const QTextFormat* self); void QTextFormat_ClearForeground(QTextFormat* self); -void QTextFormat_Delete(QTextFormat* self, bool isSubclass); +void QTextFormat_Delete(QTextFormat* self); QTextCharFormat* QTextCharFormat_new(); QTextCharFormat* QTextCharFormat_new2(QTextCharFormat* param1); @@ -191,7 +191,7 @@ void QTextCharFormat_SetTableCellColumnSpan(QTextCharFormat* self, int tableCell int QTextCharFormat_TableCellColumnSpan(const QTextCharFormat* self); void QTextCharFormat_SetFont2(QTextCharFormat* self, QFont* font, int behavior); void QTextCharFormat_SetFontStyleHint2(QTextCharFormat* self, int hint, int strategy); -void QTextCharFormat_Delete(QTextCharFormat* self, bool isSubclass); +void QTextCharFormat_Delete(QTextCharFormat* self); QTextBlockFormat* QTextBlockFormat_new(); QTextBlockFormat* QTextBlockFormat_new2(QTextBlockFormat* param1); @@ -225,7 +225,7 @@ void QTextBlockFormat_SetTabPositions(QTextBlockFormat* self, struct miqt_array struct miqt_array /* of QTextOption__Tab* */ QTextBlockFormat_TabPositions(const QTextBlockFormat* self); void QTextBlockFormat_SetMarker(QTextBlockFormat* self, int marker); int QTextBlockFormat_Marker(const QTextBlockFormat* self); -void QTextBlockFormat_Delete(QTextBlockFormat* self, bool isSubclass); +void QTextBlockFormat_Delete(QTextBlockFormat* self); QTextListFormat* QTextListFormat_new(); QTextListFormat* QTextListFormat_new2(QTextListFormat* param1); @@ -239,7 +239,7 @@ void QTextListFormat_SetNumberPrefix(QTextListFormat* self, struct miqt_string n struct miqt_string QTextListFormat_NumberPrefix(const QTextListFormat* self); void QTextListFormat_SetNumberSuffix(QTextListFormat* self, struct miqt_string numberSuffix); struct miqt_string QTextListFormat_NumberSuffix(const QTextListFormat* self); -void QTextListFormat_Delete(QTextListFormat* self, bool isSubclass); +void QTextListFormat_Delete(QTextListFormat* self); QTextImageFormat* QTextImageFormat_new(); void QTextImageFormat_virtbase(QTextImageFormat* src, QTextCharFormat** outptr_QTextCharFormat); @@ -253,7 +253,7 @@ double QTextImageFormat_Height(const QTextImageFormat* self); void QTextImageFormat_SetQuality(QTextImageFormat* self, int quality); void QTextImageFormat_SetQuality2(QTextImageFormat* self); int QTextImageFormat_Quality(const QTextImageFormat* self); -void QTextImageFormat_Delete(QTextImageFormat* self, bool isSubclass); +void QTextImageFormat_Delete(QTextImageFormat* self); QTextFrameFormat* QTextFrameFormat_new(); QTextFrameFormat* QTextFrameFormat_new2(QTextFrameFormat* param1); @@ -287,7 +287,7 @@ void QTextFrameFormat_SetHeightWithHeight(QTextFrameFormat* self, QTextLength* h QTextLength* QTextFrameFormat_Height(const QTextFrameFormat* self); void QTextFrameFormat_SetPageBreakPolicy(QTextFrameFormat* self, int flags); int QTextFrameFormat_PageBreakPolicy(const QTextFrameFormat* self); -void QTextFrameFormat_Delete(QTextFrameFormat* self, bool isSubclass); +void QTextFrameFormat_Delete(QTextFrameFormat* self); QTextTableFormat* QTextTableFormat_new(); void QTextTableFormat_virtbase(QTextTableFormat* src, QTextFrameFormat** outptr_QTextFrameFormat); @@ -307,7 +307,7 @@ void QTextTableFormat_SetHeaderRowCount(QTextTableFormat* self, int count); int QTextTableFormat_HeaderRowCount(const QTextTableFormat* self); void QTextTableFormat_SetBorderCollapse(QTextTableFormat* self, bool borderCollapse); bool QTextTableFormat_BorderCollapse(const QTextTableFormat* self); -void QTextTableFormat_Delete(QTextTableFormat* self, bool isSubclass); +void QTextTableFormat_Delete(QTextTableFormat* self); QTextTableCellFormat* QTextTableCellFormat_new(); void QTextTableCellFormat_virtbase(QTextTableCellFormat* src, QTextCharFormat** outptr_QTextCharFormat); @@ -348,7 +348,7 @@ QBrush* QTextTableCellFormat_LeftBorderBrush(const QTextTableCellFormat* self); void QTextTableCellFormat_SetRightBorderBrush(QTextTableCellFormat* self, QBrush* brush); QBrush* QTextTableCellFormat_RightBorderBrush(const QTextTableCellFormat* self); void QTextTableCellFormat_SetBorderBrush(QTextTableCellFormat* self, QBrush* brush); -void QTextTableCellFormat_Delete(QTextTableCellFormat* self, bool isSubclass); +void QTextTableCellFormat_Delete(QTextTableCellFormat* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextlayout.cpp b/qt6/gen_qtextlayout.cpp index a2066ccb..b53181fe 100644 --- a/qt6/gen_qtextlayout.cpp +++ b/qt6/gen_qtextlayout.cpp @@ -88,12 +88,8 @@ QTextFormat* QTextInlineObject_Format(const QTextInlineObject* self) { return new QTextFormat(self->format()); } -void QTextInlineObject_Delete(QTextInlineObject* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextInlineObject_Delete(QTextInlineObject* self) { + delete self; } QTextLayout* QTextLayout_new() { @@ -374,12 +370,8 @@ struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns2(const QTextLayout* return _out; } -void QTextLayout_Delete(QTextLayout* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextLayout_Delete(QTextLayout* self) { + delete self; } QTextLine* QTextLine_new() { @@ -554,12 +546,8 @@ struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns2(const QTextLine* sel return _out; } -void QTextLine_Delete(QTextLine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextLine_Delete(QTextLine* self) { + delete self; } QTextLayout__FormatRange* QTextLayout__FormatRange_new(QTextLayout__FormatRange* param1) { @@ -570,11 +558,7 @@ void QTextLayout__FormatRange_OperatorAssign(QTextLayout__FormatRange* self, QTe self->operator=(*param1); } -void QTextLayout__FormatRange_Delete(QTextLayout__FormatRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextLayout__FormatRange_Delete(QTextLayout__FormatRange* self) { + delete self; } diff --git a/qt6/gen_qtextlayout.go b/qt6/gen_qtextlayout.go index e86625ee..792c011a 100644 --- a/qt6/gen_qtextlayout.go +++ b/qt6/gen_qtextlayout.go @@ -133,7 +133,7 @@ func (this *QTextInlineObject) Format() *QTextFormat { // Delete this object from C++ memory. func (this *QTextInlineObject) Delete() { - C.QTextInlineObject_Delete(this.h, C.bool(this.isSubclass)) + C.QTextInlineObject_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -488,7 +488,7 @@ func (this *QTextLayout) GlyphRuns2(from int, length int) []QGlyphRun { // Delete this object from C++ memory. func (this *QTextLayout) Delete() { - C.QTextLayout_Delete(this.h, C.bool(this.isSubclass)) + C.QTextLayout_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -701,7 +701,7 @@ func (this *QTextLine) GlyphRuns2(from int, length int) []QGlyphRun { // Delete this object from C++ memory. func (this *QTextLine) Delete() { - C.QTextLine_Delete(this.h, C.bool(this.isSubclass)) + C.QTextLine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -760,7 +760,7 @@ func (this *QTextLayout__FormatRange) OperatorAssign(param1 *QTextLayout__Format // Delete this object from C++ memory. func (this *QTextLayout__FormatRange) Delete() { - C.QTextLayout__FormatRange_Delete(this.h, C.bool(this.isSubclass)) + C.QTextLayout__FormatRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextlayout.h b/qt6/gen_qtextlayout.h index 92c11e81..82587a28 100644 --- a/qt6/gen_qtextlayout.h +++ b/qt6/gen_qtextlayout.h @@ -64,7 +64,7 @@ void QTextInlineObject_SetDescent(QTextInlineObject* self, double d); int QTextInlineObject_TextPosition(const QTextInlineObject* self); int QTextInlineObject_FormatIndex(const QTextInlineObject* self); QTextFormat* QTextInlineObject_Format(const QTextInlineObject* self); -void QTextInlineObject_Delete(QTextInlineObject* self, bool isSubclass); +void QTextInlineObject_Delete(QTextInlineObject* self); QTextLayout* QTextLayout_new(); QTextLayout* QTextLayout_new2(struct miqt_string text); @@ -116,7 +116,7 @@ void QTextLayout_Draw3(const QTextLayout* self, QPainter* p, QPointF* pos, struc void QTextLayout_Draw4(const QTextLayout* self, QPainter* p, QPointF* pos, struct miqt_array /* of QTextLayout__FormatRange* */ selections, QRectF* clip); struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns1(const QTextLayout* self, int from); struct miqt_array /* of QGlyphRun* */ QTextLayout_GlyphRuns2(const QTextLayout* self, int from, int length); -void QTextLayout_Delete(QTextLayout* self, bool isSubclass); +void QTextLayout_Delete(QTextLayout* self); QTextLine* QTextLine_new(); bool QTextLine_IsValid(const QTextLine* self); @@ -151,11 +151,11 @@ double QTextLine_CursorToX22(const QTextLine* self, int cursorPos, int edge); int QTextLine_XToCursor2(const QTextLine* self, double x, int param2); struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns1(const QTextLine* self, int from); struct miqt_array /* of QGlyphRun* */ QTextLine_GlyphRuns2(const QTextLine* self, int from, int length); -void QTextLine_Delete(QTextLine* self, bool isSubclass); +void QTextLine_Delete(QTextLine* self); QTextLayout__FormatRange* QTextLayout__FormatRange_new(QTextLayout__FormatRange* param1); void QTextLayout__FormatRange_OperatorAssign(QTextLayout__FormatRange* self, QTextLayout__FormatRange* param1); -void QTextLayout__FormatRange_Delete(QTextLayout__FormatRange* self, bool isSubclass); +void QTextLayout__FormatRange_Delete(QTextLayout__FormatRange* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextlist.cpp b/qt6/gen_qtextlist.cpp index 2f35b375..967fc267 100644 --- a/qt6/gen_qtextlist.cpp +++ b/qt6/gen_qtextlist.cpp @@ -23,12 +23,12 @@ void miqt_exec_callback_QTextList_BlockFormatChanged(void*, intptr_t, QTextBlock } /* extern C */ #endif -class MiqtVirtualQTextList : public virtual QTextList { +class MiqtVirtualQTextList final : public QTextList { public: MiqtVirtualQTextList(QTextDocument* doc): QTextList(doc) {}; - virtual ~MiqtVirtualQTextList() = default; + virtual ~MiqtVirtualQTextList() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BlockInserted = 0; @@ -226,11 +226,7 @@ void QTextList_virtualbase_BlockFormatChanged(void* self, QTextBlock* block) { ( (MiqtVirtualQTextList*)(self) )->virtualbase_BlockFormatChanged(block); } -void QTextList_Delete(QTextList* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextList_Delete(QTextList* self) { + delete self; } diff --git a/qt6/gen_qtextlist.go b/qt6/gen_qtextlist.go index 66fd02ec..a9de938a 100644 --- a/qt6/gen_qtextlist.go +++ b/qt6/gen_qtextlist.go @@ -223,7 +223,7 @@ func miqt_exec_callback_QTextList_BlockFormatChanged(self *C.QTextList, cb C.int // Delete this object from C++ memory. func (this *QTextList) Delete() { - C.QTextList_Delete(this.h, C.bool(this.isSubclass)) + C.QTextList_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextlist.h b/qt6/gen_qtextlist.h index 54093e57..effd563c 100644 --- a/qt6/gen_qtextlist.h +++ b/qt6/gen_qtextlist.h @@ -56,7 +56,7 @@ void QTextList_override_virtual_BlockRemoved(void* self, intptr_t slot); void QTextList_virtualbase_BlockRemoved(void* self, QTextBlock* block); void QTextList_override_virtual_BlockFormatChanged(void* self, intptr_t slot); void QTextList_virtualbase_BlockFormatChanged(void* self, QTextBlock* block); -void QTextList_Delete(QTextList* self, bool isSubclass); +void QTextList_Delete(QTextList* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextobject.cpp b/qt6/gen_qtextobject.cpp index c8207e90..41be8650 100644 --- a/qt6/gen_qtextobject.cpp +++ b/qt6/gen_qtextobject.cpp @@ -144,12 +144,8 @@ void QTextFrameLayoutData_OperatorAssign(QTextFrameLayoutData* self, QTextFrameL self->operator=(*param1); } -void QTextFrameLayoutData_Delete(QTextFrameLayoutData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFrameLayoutData_Delete(QTextFrameLayoutData* self) { + delete self; } QTextFrame* QTextFrame_new(QTextDocument* doc) { @@ -258,24 +254,16 @@ struct miqt_string QTextFrame_Tr3(const char* s, const char* c, int n) { return _ms; } -void QTextFrame_Delete(QTextFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFrame_Delete(QTextFrame* self) { + delete self; } void QTextBlockUserData_OperatorAssign(QTextBlockUserData* self, QTextBlockUserData* param1) { self->operator=(*param1); } -void QTextBlockUserData_Delete(QTextBlockUserData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBlockUserData_Delete(QTextBlockUserData* self) { + delete self; } QTextBlock* QTextBlock_new() { @@ -447,12 +435,8 @@ int QTextBlock_FragmentIndex(const QTextBlock* self) { return self->fragmentIndex(); } -void QTextBlock_Delete(QTextBlock* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBlock_Delete(QTextBlock* self) { + delete self; } QTextFragment* QTextFragment_new() { @@ -553,12 +537,8 @@ struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns2(const QTextFragm return _out; } -void QTextFragment_Delete(QTextFragment* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFragment_Delete(QTextFragment* self) { + delete self; } QTextFrame__iterator* QTextFrame__iterator_new() { @@ -613,12 +593,8 @@ QTextFrame__iterator* QTextFrame__iterator_OperatorMinusMinusWithInt(QTextFrame_ return new QTextFrame::iterator(self->operator--(static_cast(param1))); } -void QTextFrame__iterator_Delete(QTextFrame__iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextFrame__iterator_Delete(QTextFrame__iterator* self) { + delete self; } QTextBlock__iterator* QTextBlock__iterator_new() { @@ -665,11 +641,7 @@ QTextBlock__iterator* QTextBlock__iterator_OperatorMinusMinusWithInt(QTextBlock_ return new QTextBlock::iterator(self->operator--(static_cast(param1))); } -void QTextBlock__iterator_Delete(QTextBlock__iterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextBlock__iterator_Delete(QTextBlock__iterator* self) { + delete self; } diff --git a/qt6/gen_qtextobject.go b/qt6/gen_qtextobject.go index 7890b27d..725c3919 100644 --- a/qt6/gen_qtextobject.go +++ b/qt6/gen_qtextobject.go @@ -226,7 +226,7 @@ func (this *QTextFrameLayoutData) OperatorAssign(param1 *QTextFrameLayoutData) { // Delete this object from C++ memory. func (this *QTextFrameLayoutData) Delete() { - C.QTextFrameLayoutData_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFrameLayoutData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -390,7 +390,7 @@ func QTextFrame_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QTextFrame) Delete() { - C.QTextFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -441,7 +441,7 @@ func (this *QTextBlockUserData) OperatorAssign(param1 *QTextBlockUserData) { // Delete this object from C++ memory. func (this *QTextBlockUserData) Delete() { - C.QTextBlockUserData_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBlockUserData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -671,7 +671,7 @@ func (this *QTextBlock) FragmentIndex() int { // Delete this object from C++ memory. func (this *QTextBlock) Delete() { - C.QTextBlock_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBlock_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -819,7 +819,7 @@ func (this *QTextFragment) GlyphRuns2(from int, length int) []QGlyphRun { // Delete this object from C++ memory. func (this *QTextFragment) Delete() { - C.QTextFragment_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFragment_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -928,7 +928,7 @@ func (this *QTextFrame__iterator) OperatorMinusMinusWithInt(param1 int) *QTextFr // Delete this object from C++ memory. func (this *QTextFrame__iterator) Delete() { - C.QTextFrame__iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QTextFrame__iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1029,7 +1029,7 @@ func (this *QTextBlock__iterator) OperatorMinusMinusWithInt(param1 int) *QTextBl // Delete this object from C++ memory. func (this *QTextBlock__iterator) Delete() { - C.QTextBlock__iterator_Delete(this.h, C.bool(this.isSubclass)) + C.QTextBlock__iterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextobject.h b/qt6/gen_qtextobject.h index 87f27c40..d34ffa91 100644 --- a/qt6/gen_qtextobject.h +++ b/qt6/gen_qtextobject.h @@ -94,7 +94,7 @@ struct miqt_string QTextBlockGroup_Tr2(const char* s, const char* c); struct miqt_string QTextBlockGroup_Tr3(const char* s, const char* c, int n); void QTextFrameLayoutData_OperatorAssign(QTextFrameLayoutData* self, QTextFrameLayoutData* param1); -void QTextFrameLayoutData_Delete(QTextFrameLayoutData* self, bool isSubclass); +void QTextFrameLayoutData_Delete(QTextFrameLayoutData* self); QTextFrame* QTextFrame_new(QTextDocument* doc); void QTextFrame_virtbase(QTextFrame* src, QTextObject** outptr_QTextObject); @@ -115,10 +115,10 @@ QTextFrame__iterator* QTextFrame_Begin(const QTextFrame* self); QTextFrame__iterator* QTextFrame_End(const QTextFrame* self); struct miqt_string QTextFrame_Tr2(const char* s, const char* c); struct miqt_string QTextFrame_Tr3(const char* s, const char* c, int n); -void QTextFrame_Delete(QTextFrame* self, bool isSubclass); +void QTextFrame_Delete(QTextFrame* self); void QTextBlockUserData_OperatorAssign(QTextBlockUserData* self, QTextBlockUserData* param1); -void QTextBlockUserData_Delete(QTextBlockUserData* self, bool isSubclass); +void QTextBlockUserData_Delete(QTextBlockUserData* self); QTextBlock* QTextBlock_new(); QTextBlock* QTextBlock_new2(QTextBlock* o); @@ -158,7 +158,7 @@ QTextBlock__iterator* QTextBlock_End(const QTextBlock* self); QTextBlock* QTextBlock_Next(const QTextBlock* self); QTextBlock* QTextBlock_Previous(const QTextBlock* self); int QTextBlock_FragmentIndex(const QTextBlock* self); -void QTextBlock_Delete(QTextBlock* self, bool isSubclass); +void QTextBlock_Delete(QTextBlock* self); QTextFragment* QTextFragment_new(); QTextFragment* QTextFragment_new2(QTextFragment* o); @@ -176,7 +176,7 @@ struct miqt_string QTextFragment_Text(const QTextFragment* self); struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns(const QTextFragment* self); struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns1(const QTextFragment* self, int from); struct miqt_array /* of QGlyphRun* */ QTextFragment_GlyphRuns2(const QTextFragment* self, int from, int length); -void QTextFragment_Delete(QTextFragment* self, bool isSubclass); +void QTextFragment_Delete(QTextFragment* self); QTextFrame__iterator* QTextFrame__iterator_new(); QTextFrame__iterator* QTextFrame__iterator_new2(QTextFrame__iterator* param1); @@ -190,7 +190,7 @@ QTextFrame__iterator* QTextFrame__iterator_OperatorPlusPlus(QTextFrame__iterator QTextFrame__iterator* QTextFrame__iterator_OperatorPlusPlusWithInt(QTextFrame__iterator* self, int param1); QTextFrame__iterator* QTextFrame__iterator_OperatorMinusMinus(QTextFrame__iterator* self); QTextFrame__iterator* QTextFrame__iterator_OperatorMinusMinusWithInt(QTextFrame__iterator* self, int param1); -void QTextFrame__iterator_Delete(QTextFrame__iterator* self, bool isSubclass); +void QTextFrame__iterator_Delete(QTextFrame__iterator* self); QTextBlock__iterator* QTextBlock__iterator_new(); QTextBlock__iterator* QTextBlock__iterator_new2(QTextBlock__iterator* param1); @@ -202,7 +202,7 @@ QTextBlock__iterator* QTextBlock__iterator_OperatorPlusPlus(QTextBlock__iterator QTextBlock__iterator* QTextBlock__iterator_OperatorPlusPlusWithInt(QTextBlock__iterator* self, int param1); QTextBlock__iterator* QTextBlock__iterator_OperatorMinusMinus(QTextBlock__iterator* self); QTextBlock__iterator* QTextBlock__iterator_OperatorMinusMinusWithInt(QTextBlock__iterator* self, int param1); -void QTextBlock__iterator_Delete(QTextBlock__iterator* self, bool isSubclass); +void QTextBlock__iterator_Delete(QTextBlock__iterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextoption.cpp b/qt6/gen_qtextoption.cpp index 8590dccd..b71abb94 100644 --- a/qt6/gen_qtextoption.cpp +++ b/qt6/gen_qtextoption.cpp @@ -128,12 +128,8 @@ bool QTextOption_UseDesignMetrics(const QTextOption* self) { return self->useDesignMetrics(); } -void QTextOption_Delete(QTextOption* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextOption_Delete(QTextOption* self) { + delete self; } QTextOption__Tab* QTextOption__Tab_new() { @@ -156,11 +152,7 @@ bool QTextOption__Tab_OperatorNotEqual(const QTextOption__Tab* self, QTextOption return (*self != *other); } -void QTextOption__Tab_Delete(QTextOption__Tab* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextOption__Tab_Delete(QTextOption__Tab* self) { + delete self; } diff --git a/qt6/gen_qtextoption.go b/qt6/gen_qtextoption.go index 140ada32..02bc37de 100644 --- a/qt6/gen_qtextoption.go +++ b/qt6/gen_qtextoption.go @@ -195,7 +195,7 @@ func (this *QTextOption) UseDesignMetrics() bool { // Delete this object from C++ memory. func (this *QTextOption) Delete() { - C.QTextOption_Delete(this.h, C.bool(this.isSubclass)) + C.QTextOption_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -274,7 +274,7 @@ func (this *QTextOption__Tab) OperatorNotEqual(other *QTextOption__Tab) bool { // Delete this object from C++ memory. func (this *QTextOption__Tab) Delete() { - C.QTextOption__Tab_Delete(this.h, C.bool(this.isSubclass)) + C.QTextOption__Tab_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextoption.h b/qt6/gen_qtextoption.h index 8675d933..58a4ac71 100644 --- a/qt6/gen_qtextoption.h +++ b/qt6/gen_qtextoption.h @@ -48,14 +48,14 @@ void QTextOption_SetTabs(QTextOption* self, struct miqt_array /* of QTextOption_ struct miqt_array /* of QTextOption__Tab* */ QTextOption_Tabs(const QTextOption* self); void QTextOption_SetUseDesignMetrics(QTextOption* self, bool b); bool QTextOption_UseDesignMetrics(const QTextOption* self); -void QTextOption_Delete(QTextOption* self, bool isSubclass); +void QTextOption_Delete(QTextOption* self); QTextOption__Tab* QTextOption__Tab_new(); QTextOption__Tab* QTextOption__Tab_new2(double pos, int tabType); QTextOption__Tab* QTextOption__Tab_new3(double pos, int tabType, QChar* delim); bool QTextOption__Tab_OperatorEqual(const QTextOption__Tab* self, QTextOption__Tab* other); bool QTextOption__Tab_OperatorNotEqual(const QTextOption__Tab* self, QTextOption__Tab* other); -void QTextOption__Tab_Delete(QTextOption__Tab* self, bool isSubclass); +void QTextOption__Tab_Delete(QTextOption__Tab* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtextstream.cpp b/qt6/gen_qtextstream.cpp index 2391366e..5a744859 100644 --- a/qt6/gen_qtextstream.cpp +++ b/qt6/gen_qtextstream.cpp @@ -423,11 +423,7 @@ struct miqt_string QTextStream_ReadLine1(QTextStream* self, long long maxlen) { return _ms; } -void QTextStream_Delete(QTextStream* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextStream_Delete(QTextStream* self) { + delete self; } diff --git a/qt6/gen_qtextstream.go b/qt6/gen_qtextstream.go index 60d9f493..f36ca74c 100644 --- a/qt6/gen_qtextstream.go +++ b/qt6/gen_qtextstream.go @@ -439,7 +439,7 @@ func (this *QTextStream) ReadLine1(maxlen int64) string { // Delete this object from C++ memory. func (this *QTextStream) Delete() { - C.QTextStream_Delete(this.h, C.bool(this.isSubclass)) + C.QTextStream_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtextstream.h b/qt6/gen_qtextstream.h index f8d053bc..3a6eec24 100644 --- a/qt6/gen_qtextstream.h +++ b/qt6/gen_qtextstream.h @@ -102,7 +102,7 @@ QTextStream* QTextStream_OperatorShiftLeftWithArray(QTextStream* self, struct mi QTextStream* QTextStream_OperatorShiftLeftWithChar(QTextStream* self, const char* c); QTextStream* QTextStream_OperatorShiftLeftWithPtr(QTextStream* self, const void* ptr); struct miqt_string QTextStream_ReadLine1(QTextStream* self, long long maxlen); -void QTextStream_Delete(QTextStream* self, bool isSubclass); +void QTextStream_Delete(QTextStream* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtexttable.cpp b/qt6/gen_qtexttable.cpp index 6a7dd2fc..62ce0fcb 100644 --- a/qt6/gen_qtexttable.cpp +++ b/qt6/gen_qtexttable.cpp @@ -99,12 +99,8 @@ int QTextTableCell_TableCellFormatIndex(const QTextTableCell* self) { return self->tableCellFormatIndex(); } -void QTextTableCell_Delete(QTextTableCell* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextTableCell_Delete(QTextTableCell* self) { + delete self; } QTextTable* QTextTable_new(QTextDocument* doc) { @@ -232,11 +228,7 @@ struct miqt_string QTextTable_Tr3(const char* s, const char* c, int n) { return _ms; } -void QTextTable_Delete(QTextTable* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTextTable_Delete(QTextTable* self) { + delete self; } diff --git a/qt6/gen_qtexttable.go b/qt6/gen_qtexttable.go index 6786185c..0db6f22a 100644 --- a/qt6/gen_qtexttable.go +++ b/qt6/gen_qtexttable.go @@ -142,7 +142,7 @@ func (this *QTextTableCell) TableCellFormatIndex() int { // Delete this object from C++ memory. func (this *QTextTableCell) Delete() { - C.QTextTableCell_Delete(this.h, C.bool(this.isSubclass)) + C.QTextTableCell_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -330,7 +330,7 @@ func QTextTable_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QTextTable) Delete() { - C.QTextTable_Delete(this.h, C.bool(this.isSubclass)) + C.QTextTable_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtexttable.h b/qt6/gen_qtexttable.h index b0c9ac13..514bc53c 100644 --- a/qt6/gen_qtexttable.h +++ b/qt6/gen_qtexttable.h @@ -63,7 +63,7 @@ bool QTextTableCell_OperatorNotEqual(const QTextTableCell* self, QTextTableCell* QTextFrame__iterator* QTextTableCell_Begin(const QTextTableCell* self); QTextFrame__iterator* QTextTableCell_End(const QTextTableCell* self); int QTextTableCell_TableCellFormatIndex(const QTextTableCell* self); -void QTextTableCell_Delete(QTextTableCell* self, bool isSubclass); +void QTextTableCell_Delete(QTextTableCell* self); QTextTable* QTextTable_new(QTextDocument* doc); void QTextTable_virtbase(QTextTable* src, QTextFrame** outptr_QTextFrame); @@ -91,7 +91,7 @@ void QTextTable_SetFormat(QTextTable* self, QTextTableFormat* format); QTextTableFormat* QTextTable_Format(const QTextTable* self); struct miqt_string QTextTable_Tr2(const char* s, const char* c); struct miqt_string QTextTable_Tr3(const char* s, const char* c, int n); -void QTextTable_Delete(QTextTable* self, bool isSubclass); +void QTextTable_Delete(QTextTable* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qthread.cpp b/qt6/gen_qthread.cpp index 97ab0f2c..03012681 100644 --- a/qt6/gen_qthread.cpp +++ b/qt6/gen_qthread.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QThread_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQThread : public virtual QThread { +class MiqtVirtualQThread final : public QThread { public: MiqtVirtualQThread(): QThread() {}; MiqtVirtualQThread(QObject* parent): QThread(parent) {}; - virtual ~MiqtVirtualQThread() = default; + virtual ~MiqtVirtualQThread() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -465,11 +465,7 @@ void QThread_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQThread*)(self) )->virtualbase_DisconnectNotify(signal); } -void QThread_Delete(QThread* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QThread_Delete(QThread* self) { + delete self; } diff --git a/qt6/gen_qthread.go b/qt6/gen_qthread.go index 2e957611..44c6547a 100644 --- a/qt6/gen_qthread.go +++ b/qt6/gen_qthread.go @@ -446,7 +446,7 @@ func miqt_exec_callback_QThread_DisconnectNotify(self *C.QThread, cb C.intptr_t, // Delete this object from C++ memory. func (this *QThread) Delete() { - C.QThread_Delete(this.h, C.bool(this.isSubclass)) + C.QThread_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qthread.h b/qt6/gen_qthread.h index a8297977..584a82dd 100644 --- a/qt6/gen_qthread.h +++ b/qt6/gen_qthread.h @@ -89,7 +89,7 @@ void QThread_override_virtual_ConnectNotify(void* self, intptr_t slot); void QThread_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QThread_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QThread_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QThread_Delete(QThread* self, bool isSubclass); +void QThread_Delete(QThread* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qthreadpool.cpp b/qt6/gen_qthreadpool.cpp index abad3d40..09a517b7 100644 --- a/qt6/gen_qthreadpool.cpp +++ b/qt6/gen_qthreadpool.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QThreadPool_DisconnectNotify(void*, intptr_t, QMetaMetho } /* extern C */ #endif -class MiqtVirtualQThreadPool : public virtual QThreadPool { +class MiqtVirtualQThreadPool final : public QThreadPool { public: MiqtVirtualQThreadPool(): QThreadPool() {}; MiqtVirtualQThreadPool(QObject* parent): QThreadPool(parent) {}; - virtual ~MiqtVirtualQThreadPool() = default; + virtual ~MiqtVirtualQThreadPool() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -404,11 +404,7 @@ void QThreadPool_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQThreadPool*)(self) )->virtualbase_DisconnectNotify(signal); } -void QThreadPool_Delete(QThreadPool* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QThreadPool_Delete(QThreadPool* self) { + delete self; } diff --git a/qt6/gen_qthreadpool.go b/qt6/gen_qthreadpool.go index 08250699..08d98091 100644 --- a/qt6/gen_qthreadpool.go +++ b/qt6/gen_qthreadpool.go @@ -382,7 +382,7 @@ func miqt_exec_callback_QThreadPool_DisconnectNotify(self *C.QThreadPool, cb C.i // Delete this object from C++ memory. func (this *QThreadPool) Delete() { - C.QThreadPool_Delete(this.h, C.bool(this.isSubclass)) + C.QThreadPool_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qthreadpool.h b/qt6/gen_qthreadpool.h index 6554d069..18af0bc4 100644 --- a/qt6/gen_qthreadpool.h +++ b/qt6/gen_qthreadpool.h @@ -79,7 +79,7 @@ void QThreadPool_override_virtual_ConnectNotify(void* self, intptr_t slot); void QThreadPool_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QThreadPool_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QThreadPool_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QThreadPool_Delete(QThreadPool* self, bool isSubclass); +void QThreadPool_Delete(QThreadPool* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qthreadstorage.cpp b/qt6/gen_qthreadstorage.cpp index 33d079b9..6595a9eb 100644 --- a/qt6/gen_qthreadstorage.cpp +++ b/qt6/gen_qthreadstorage.cpp @@ -14,11 +14,7 @@ QThreadStorageData* QThreadStorageData_new(QThreadStorageData* param1) { return new QThreadStorageData(*param1); } -void QThreadStorageData_Delete(QThreadStorageData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QThreadStorageData_Delete(QThreadStorageData* self) { + delete self; } diff --git a/qt6/gen_qthreadstorage.go b/qt6/gen_qthreadstorage.go index 23df61a4..507b5681 100644 --- a/qt6/gen_qthreadstorage.go +++ b/qt6/gen_qthreadstorage.go @@ -56,7 +56,7 @@ func NewQThreadStorageData(param1 *QThreadStorageData) *QThreadStorageData { // Delete this object from C++ memory. func (this *QThreadStorageData) Delete() { - C.QThreadStorageData_Delete(this.h, C.bool(this.isSubclass)) + C.QThreadStorageData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qthreadstorage.h b/qt6/gen_qthreadstorage.h index 3bb7d908..e97c1154 100644 --- a/qt6/gen_qthreadstorage.h +++ b/qt6/gen_qthreadstorage.h @@ -21,7 +21,7 @@ typedef struct QThreadStorageData QThreadStorageData; #endif QThreadStorageData* QThreadStorageData_new(QThreadStorageData* param1); -void QThreadStorageData_Delete(QThreadStorageData* self, bool isSubclass); +void QThreadStorageData_Delete(QThreadStorageData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtimeline.cpp b/qt6/gen_qtimeline.cpp index 8e6e3523..d82268bf 100644 --- a/qt6/gen_qtimeline.cpp +++ b/qt6/gen_qtimeline.cpp @@ -28,14 +28,14 @@ void miqt_exec_callback_QTimeLine_DisconnectNotify(void*, intptr_t, QMetaMethod* } /* extern C */ #endif -class MiqtVirtualQTimeLine : public virtual QTimeLine { +class MiqtVirtualQTimeLine final : public QTimeLine { public: MiqtVirtualQTimeLine(): QTimeLine() {}; MiqtVirtualQTimeLine(int duration): QTimeLine(duration) {}; MiqtVirtualQTimeLine(int duration, QObject* parent): QTimeLine(duration, parent) {}; - virtual ~MiqtVirtualQTimeLine() = default; + virtual ~MiqtVirtualQTimeLine() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ValueForTime = 0; @@ -467,11 +467,7 @@ void QTimeLine_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTimeLine*)(self) )->virtualbase_DisconnectNotify(signal); } -void QTimeLine_Delete(QTimeLine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimeLine_Delete(QTimeLine* self) { + delete self; } diff --git a/qt6/gen_qtimeline.go b/qt6/gen_qtimeline.go index 18064b3b..40ae1699 100644 --- a/qt6/gen_qtimeline.go +++ b/qt6/gen_qtimeline.go @@ -459,7 +459,7 @@ func miqt_exec_callback_QTimeLine_DisconnectNotify(self *C.QTimeLine, cb C.intpt // Delete this object from C++ memory. func (this *QTimeLine) Delete() { - C.QTimeLine_Delete(this.h, C.bool(this.isSubclass)) + C.QTimeLine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtimeline.h b/qt6/gen_qtimeline.h index d130c229..321c3684 100644 --- a/qt6/gen_qtimeline.h +++ b/qt6/gen_qtimeline.h @@ -87,7 +87,7 @@ void QTimeLine_override_virtual_ConnectNotify(void* self, intptr_t slot); void QTimeLine_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QTimeLine_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QTimeLine_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QTimeLine_Delete(QTimeLine* self, bool isSubclass); +void QTimeLine_Delete(QTimeLine* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtimer.cpp b/qt6/gen_qtimer.cpp index 1ce7d198..d28db215 100644 --- a/qt6/gen_qtimer.cpp +++ b/qt6/gen_qtimer.cpp @@ -26,13 +26,13 @@ void miqt_exec_callback_QTimer_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQTimer : public virtual QTimer { +class MiqtVirtualQTimer final : public QTimer { public: MiqtVirtualQTimer(): QTimer() {}; MiqtVirtualQTimer(QObject* parent): QTimer(parent) {}; - virtual ~MiqtVirtualQTimer() = default; + virtual ~MiqtVirtualQTimer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__TimerEvent = 0; @@ -365,11 +365,7 @@ void QTimer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTimer*)(self) )->virtualbase_DisconnectNotify(signal); } -void QTimer_Delete(QTimer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimer_Delete(QTimer* self) { + delete self; } diff --git a/qt6/gen_qtimer.go b/qt6/gen_qtimer.go index ffcaa013..86e7925a 100644 --- a/qt6/gen_qtimer.go +++ b/qt6/gen_qtimer.go @@ -346,7 +346,7 @@ func miqt_exec_callback_QTimer_DisconnectNotify(self *C.QTimer, cb C.intptr_t, s // Delete this object from C++ memory. func (this *QTimer) Delete() { - C.QTimer_Delete(this.h, C.bool(this.isSubclass)) + C.QTimer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtimer.h b/qt6/gen_qtimer.h index f9ee4100..b69ec582 100644 --- a/qt6/gen_qtimer.h +++ b/qt6/gen_qtimer.h @@ -67,7 +67,7 @@ void QTimer_override_virtual_ConnectNotify(void* self, intptr_t slot); void QTimer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QTimer_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QTimer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QTimer_Delete(QTimer* self, bool isSubclass); +void QTimer_Delete(QTimer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtimezone.cpp b/qt6/gen_qtimezone.cpp index 80a157fa..61a5286a 100644 --- a/qt6/gen_qtimezone.cpp +++ b/qt6/gen_qtimezone.cpp @@ -369,12 +369,8 @@ struct miqt_string QTimeZone_DisplayName32(const QTimeZone* self, int timeType, return _ms; } -void QTimeZone_Delete(QTimeZone* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimeZone_Delete(QTimeZone* self) { + delete self; } QTimeZone__OffsetData* QTimeZone__OffsetData_new(QTimeZone__OffsetData* param1) { @@ -385,11 +381,7 @@ void QTimeZone__OffsetData_OperatorAssign(QTimeZone__OffsetData* self, QTimeZone self->operator=(*param1); } -void QTimeZone__OffsetData_Delete(QTimeZone__OffsetData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTimeZone__OffsetData_Delete(QTimeZone__OffsetData* self) { + delete self; } diff --git a/qt6/gen_qtimezone.go b/qt6/gen_qtimezone.go index 41eca7db..eb06822a 100644 --- a/qt6/gen_qtimezone.go +++ b/qt6/gen_qtimezone.go @@ -432,7 +432,7 @@ func (this *QTimeZone) DisplayName32(timeType QTimeZone__TimeType, nameType QTim // Delete this object from C++ memory. func (this *QTimeZone) Delete() { - C.QTimeZone_Delete(this.h, C.bool(this.isSubclass)) + C.QTimeZone_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -491,7 +491,7 @@ func (this *QTimeZone__OffsetData) OperatorAssign(param1 *QTimeZone__OffsetData) // Delete this object from C++ memory. func (this *QTimeZone__OffsetData) Delete() { - C.QTimeZone__OffsetData_Delete(this.h, C.bool(this.isSubclass)) + C.QTimeZone__OffsetData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtimezone.h b/qt6/gen_qtimezone.h index ee541791..fd1e7063 100644 --- a/qt6/gen_qtimezone.h +++ b/qt6/gen_qtimezone.h @@ -73,11 +73,11 @@ struct miqt_string QTimeZone_DisplayName2(const QTimeZone* self, QDateTime* atDa struct miqt_string QTimeZone_DisplayName3(const QTimeZone* self, QDateTime* atDateTime, int nameType, QLocale* locale); struct miqt_string QTimeZone_DisplayName22(const QTimeZone* self, int timeType, int nameType); struct miqt_string QTimeZone_DisplayName32(const QTimeZone* self, int timeType, int nameType, QLocale* locale); -void QTimeZone_Delete(QTimeZone* self, bool isSubclass); +void QTimeZone_Delete(QTimeZone* self); QTimeZone__OffsetData* QTimeZone__OffsetData_new(QTimeZone__OffsetData* param1); void QTimeZone__OffsetData_OperatorAssign(QTimeZone__OffsetData* self, QTimeZone__OffsetData* param1); -void QTimeZone__OffsetData_Delete(QTimeZone__OffsetData* self, bool isSubclass); +void QTimeZone__OffsetData_Delete(QTimeZone__OffsetData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtoolbar.cpp b/qt6/gen_qtoolbar.cpp index 6424d630..6a9bd59e 100644 --- a/qt6/gen_qtoolbar.cpp +++ b/qt6/gen_qtoolbar.cpp @@ -96,7 +96,7 @@ bool miqt_exec_callback_QToolBar_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQToolBar : public virtual QToolBar { +class MiqtVirtualQToolBar final : public QToolBar { public: MiqtVirtualQToolBar(QWidget* parent): QToolBar(parent) {}; @@ -104,7 +104,7 @@ public: MiqtVirtualQToolBar(): QToolBar() {}; MiqtVirtualQToolBar(const QString& title, QWidget* parent): QToolBar(title, parent) {}; - virtual ~MiqtVirtualQToolBar() = default; + virtual ~MiqtVirtualQToolBar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ActionEvent = 0; @@ -1699,11 +1699,7 @@ bool QToolBar_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQToolBar*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QToolBar_Delete(QToolBar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QToolBar_Delete(QToolBar* self) { + delete self; } diff --git a/qt6/gen_qtoolbar.go b/qt6/gen_qtoolbar.go index a1edcac1..5253d27d 100644 --- a/qt6/gen_qtoolbar.go +++ b/qt6/gen_qtoolbar.go @@ -1509,7 +1509,7 @@ func miqt_exec_callback_QToolBar_FocusNextPrevChild(self *C.QToolBar, cb C.intpt // Delete this object from C++ memory. func (this *QToolBar) Delete() { - C.QToolBar_Delete(this.h, C.bool(this.isSubclass)) + C.QToolBar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtoolbar.h b/qt6/gen_qtoolbar.h index bd1a4f2e..5ddba607 100644 --- a/qt6/gen_qtoolbar.h +++ b/qt6/gen_qtoolbar.h @@ -223,7 +223,7 @@ void QToolBar_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QToolBar_virtualbase_InputMethodQuery(const void* self, int param1); void QToolBar_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QToolBar_virtualbase_FocusNextPrevChild(void* self, bool next); -void QToolBar_Delete(QToolBar* self, bool isSubclass); +void QToolBar_Delete(QToolBar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtoolbox.cpp b/qt6/gen_qtoolbox.cpp index 71f42792..30569e33 100644 --- a/qt6/gen_qtoolbox.cpp +++ b/qt6/gen_qtoolbox.cpp @@ -33,14 +33,14 @@ void miqt_exec_callback_QToolBox_InitStyleOption(void*, intptr_t, QStyleOptionFr } /* extern C */ #endif -class MiqtVirtualQToolBox : public virtual QToolBox { +class MiqtVirtualQToolBox final : public QToolBox { public: MiqtVirtualQToolBox(QWidget* parent): QToolBox(parent) {}; MiqtVirtualQToolBox(): QToolBox() {}; MiqtVirtualQToolBox(QWidget* parent, Qt::WindowFlags f): QToolBox(parent, f) {}; - virtual ~MiqtVirtualQToolBox() = default; + virtual ~MiqtVirtualQToolBox() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -465,11 +465,7 @@ void QToolBox_virtualbase_InitStyleOption(const void* self, QStyleOptionFrame* o ( (const MiqtVirtualQToolBox*)(self) )->virtualbase_InitStyleOption(option); } -void QToolBox_Delete(QToolBox* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QToolBox_Delete(QToolBox* self) { + delete self; } diff --git a/qt6/gen_qtoolbox.go b/qt6/gen_qtoolbox.go index f3e47941..ba6f43f9 100644 --- a/qt6/gen_qtoolbox.go +++ b/qt6/gen_qtoolbox.go @@ -461,7 +461,7 @@ func miqt_exec_callback_QToolBox_InitStyleOption(self *C.QToolBox, cb C.intptr_t // Delete this object from C++ memory. func (this *QToolBox) Delete() { - C.QToolBox_Delete(this.h, C.bool(this.isSubclass)) + C.QToolBox_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtoolbox.h b/qt6/gen_qtoolbox.h index f276ee53..756efec8 100644 --- a/qt6/gen_qtoolbox.h +++ b/qt6/gen_qtoolbox.h @@ -94,7 +94,7 @@ void QToolBox_override_virtual_PaintEvent(void* self, intptr_t slot); void QToolBox_virtualbase_PaintEvent(void* self, QPaintEvent* param1); void QToolBox_override_virtual_InitStyleOption(void* self, intptr_t slot); void QToolBox_virtualbase_InitStyleOption(const void* self, QStyleOptionFrame* option); -void QToolBox_Delete(QToolBox* self, bool isSubclass); +void QToolBox_Delete(QToolBox* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtoolbutton.cpp b/qt6/gen_qtoolbutton.cpp index 3af46513..2621683e 100644 --- a/qt6/gen_qtoolbutton.cpp +++ b/qt6/gen_qtoolbutton.cpp @@ -52,13 +52,13 @@ void miqt_exec_callback_QToolButton_FocusOutEvent(void*, intptr_t, QFocusEvent*) } /* extern C */ #endif -class MiqtVirtualQToolButton : public virtual QToolButton { +class MiqtVirtualQToolButton final : public QToolButton { public: MiqtVirtualQToolButton(QWidget* parent): QToolButton(parent) {}; MiqtVirtualQToolButton(): QToolButton() {}; - virtual ~MiqtVirtualQToolButton() = default; + virtual ~MiqtVirtualQToolButton() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -823,11 +823,7 @@ void QToolButton_virtualbase_FocusOutEvent(void* self, QFocusEvent* e) { ( (MiqtVirtualQToolButton*)(self) )->virtualbase_FocusOutEvent(e); } -void QToolButton_Delete(QToolButton* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QToolButton_Delete(QToolButton* self) { + delete self; } diff --git a/qt6/gen_qtoolbutton.go b/qt6/gen_qtoolbutton.go index 70c44d1f..e4fc3dd9 100644 --- a/qt6/gen_qtoolbutton.go +++ b/qt6/gen_qtoolbutton.go @@ -722,7 +722,7 @@ func miqt_exec_callback_QToolButton_FocusOutEvent(self *C.QToolButton, cb C.intp // Delete this object from C++ memory. func (this *QToolButton) Delete() { - C.QToolButton_Delete(this.h, C.bool(this.isSubclass)) + C.QToolButton_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtoolbutton.h b/qt6/gen_qtoolbutton.h index c0a62612..7e084feb 100644 --- a/qt6/gen_qtoolbutton.h +++ b/qt6/gen_qtoolbutton.h @@ -134,7 +134,7 @@ void QToolButton_override_virtual_FocusInEvent(void* self, intptr_t slot); void QToolButton_virtualbase_FocusInEvent(void* self, QFocusEvent* e); void QToolButton_override_virtual_FocusOutEvent(void* self, intptr_t slot); void QToolButton_virtualbase_FocusOutEvent(void* self, QFocusEvent* e); -void QToolButton_Delete(QToolButton* self, bool isSubclass); +void QToolButton_Delete(QToolButton* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtooltip.cpp b/qt6/gen_qtooltip.cpp index 5c6d72f9..b9ba7a37 100644 --- a/qt6/gen_qtooltip.cpp +++ b/qt6/gen_qtooltip.cpp @@ -73,11 +73,7 @@ void QToolTip_ShowText5(QPoint* pos, struct miqt_string text, QWidget* w, QRect* QToolTip::showText(*pos, text_QString, w, *rect, static_cast(msecShowTime)); } -void QToolTip_Delete(QToolTip* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QToolTip_Delete(QToolTip* self) { + delete self; } diff --git a/qt6/gen_qtooltip.go b/qt6/gen_qtooltip.go index ecd07f44..69aaad66 100644 --- a/qt6/gen_qtooltip.go +++ b/qt6/gen_qtooltip.go @@ -115,7 +115,7 @@ func QToolTip_ShowText5(pos *QPoint, text string, w *QWidget, rect *QRect, msecS // Delete this object from C++ memory. func (this *QToolTip) Delete() { - C.QToolTip_Delete(this.h, C.bool(this.isSubclass)) + C.QToolTip_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtooltip.h b/qt6/gen_qtooltip.h index 3b91f1fb..57ddf23d 100644 --- a/qt6/gen_qtooltip.h +++ b/qt6/gen_qtooltip.h @@ -41,7 +41,7 @@ void QToolTip_SetFont(QFont* font); void QToolTip_ShowText3(QPoint* pos, struct miqt_string text, QWidget* w); void QToolTip_ShowText4(QPoint* pos, struct miqt_string text, QWidget* w, QRect* rect); void QToolTip_ShowText5(QPoint* pos, struct miqt_string text, QWidget* w, QRect* rect, int msecShowTime); -void QToolTip_Delete(QToolTip* self, bool isSubclass); +void QToolTip_Delete(QToolTip* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtransform.cpp b/qt6/gen_qtransform.cpp index 63dfd862..01f89523 100644 --- a/qt6/gen_qtransform.cpp +++ b/qt6/gen_qtransform.cpp @@ -292,11 +292,7 @@ QTransform* QTransform_RotateRadians2(QTransform* self, double a, int axis) { return &_ret; } -void QTransform_Delete(QTransform* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTransform_Delete(QTransform* self) { + delete self; } diff --git a/qt6/gen_qtransform.go b/qt6/gen_qtransform.go index 932d9ec0..b16d1b43 100644 --- a/qt6/gen_qtransform.go +++ b/qt6/gen_qtransform.go @@ -347,7 +347,7 @@ func (this *QTransform) RotateRadians2(a float64, axis Axis) *QTransform { // Delete this object from C++ memory. func (this *QTransform) Delete() { - C.QTransform_Delete(this.h, C.bool(this.isSubclass)) + C.QTransform_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtransform.h b/qt6/gen_qtransform.h index 2267e8dc..a08aa7d4 100644 --- a/qt6/gen_qtransform.h +++ b/qt6/gen_qtransform.h @@ -97,7 +97,7 @@ QTransform* QTransform_FromScale(double dx, double dy); QTransform* QTransform_Inverted1(const QTransform* self, bool* invertible); QTransform* QTransform_Rotate2(QTransform* self, double a, int axis); QTransform* QTransform_RotateRadians2(QTransform* self, double a, int axis); -void QTransform_Delete(QTransform* self, bool isSubclass); +void QTransform_Delete(QTransform* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtranslator.cpp b/qt6/gen_qtranslator.cpp index e2d48df4..863fbe56 100644 --- a/qt6/gen_qtranslator.cpp +++ b/qt6/gen_qtranslator.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QTranslator_DisconnectNotify(void*, intptr_t, QMetaMetho } /* extern C */ #endif -class MiqtVirtualQTranslator : public virtual QTranslator { +class MiqtVirtualQTranslator final : public QTranslator { public: MiqtVirtualQTranslator(): QTranslator() {}; MiqtVirtualQTranslator(QObject* parent): QTranslator(parent) {}; - virtual ~MiqtVirtualQTranslator() = default; + virtual ~MiqtVirtualQTranslator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Translate = 0; @@ -489,11 +489,7 @@ void QTranslator_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTranslator*)(self) )->virtualbase_DisconnectNotify(signal); } -void QTranslator_Delete(QTranslator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTranslator_Delete(QTranslator* self) { + delete self; } diff --git a/qt6/gen_qtranslator.go b/qt6/gen_qtranslator.go index d7f49768..c1bc5f92 100644 --- a/qt6/gen_qtranslator.go +++ b/qt6/gen_qtranslator.go @@ -527,7 +527,7 @@ func miqt_exec_callback_QTranslator_DisconnectNotify(self *C.QTranslator, cb C.i // Delete this object from C++ memory. func (this *QTranslator) Delete() { - C.QTranslator_Delete(this.h, C.bool(this.isSubclass)) + C.QTranslator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtranslator.h b/qt6/gen_qtranslator.h index 22a66d2b..501bf252 100644 --- a/qt6/gen_qtranslator.h +++ b/qt6/gen_qtranslator.h @@ -74,7 +74,7 @@ void QTranslator_override_virtual_ConnectNotify(void* self, intptr_t slot); void QTranslator_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QTranslator_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QTranslator_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QTranslator_Delete(QTranslator* self, bool isSubclass); +void QTranslator_Delete(QTranslator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtransposeproxymodel.cpp b/qt6/gen_qtransposeproxymodel.cpp index 31a96bdf..9bcf706b 100644 --- a/qt6/gen_qtransposeproxymodel.cpp +++ b/qt6/gen_qtransposeproxymodel.cpp @@ -64,13 +64,13 @@ struct miqt_map /* of int to struct miqt_string */ miqt_exec_callback_QTranspos } /* extern C */ #endif -class MiqtVirtualQTransposeProxyModel : public virtual QTransposeProxyModel { +class MiqtVirtualQTransposeProxyModel final : public QTransposeProxyModel { public: MiqtVirtualQTransposeProxyModel(): QTransposeProxyModel() {}; MiqtVirtualQTransposeProxyModel(QObject* parent): QTransposeProxyModel(parent) {}; - virtual ~MiqtVirtualQTransposeProxyModel() = default; + virtual ~MiqtVirtualQTransposeProxyModel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetSourceModel = 0; @@ -1645,11 +1645,7 @@ struct miqt_map /* of int to struct miqt_string */ QTransposeProxyModel_virtual return ( (const MiqtVirtualQTransposeProxyModel*)(self) )->virtualbase_RoleNames(); } -void QTransposeProxyModel_Delete(QTransposeProxyModel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTransposeProxyModel_Delete(QTransposeProxyModel* self) { + delete self; } diff --git a/qt6/gen_qtransposeproxymodel.go b/qt6/gen_qtransposeproxymodel.go index ab8e6fcf..2097b8ff 100644 --- a/qt6/gen_qtransposeproxymodel.go +++ b/qt6/gen_qtransposeproxymodel.go @@ -1510,7 +1510,7 @@ func miqt_exec_callback_QTransposeProxyModel_RoleNames(self *C.QTransposeProxyMo // Delete this object from C++ memory. func (this *QTransposeProxyModel) Delete() { - C.QTransposeProxyModel_Delete(this.h, C.bool(this.isSubclass)) + C.QTransposeProxyModel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtransposeproxymodel.h b/qt6/gen_qtransposeproxymodel.h index 0322b50f..147135d2 100644 --- a/qt6/gen_qtransposeproxymodel.h +++ b/qt6/gen_qtransposeproxymodel.h @@ -143,7 +143,7 @@ void QTransposeProxyModel_override_virtual_SupportedDropActions(void* self, intp int QTransposeProxyModel_virtualbase_SupportedDropActions(const void* self); void QTransposeProxyModel_override_virtual_RoleNames(void* self, intptr_t slot); struct miqt_map /* of int to struct miqt_string */ QTransposeProxyModel_virtualbase_RoleNames(const void* self); -void QTransposeProxyModel_Delete(QTransposeProxyModel* self, bool isSubclass); +void QTransposeProxyModel_Delete(QTransposeProxyModel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtreeview.cpp b/qt6/gen_qtreeview.cpp index 529e6cb9..e7fb2352 100644 --- a/qt6/gen_qtreeview.cpp +++ b/qt6/gen_qtreeview.cpp @@ -112,13 +112,13 @@ bool miqt_exec_callback_QTreeView_EventFilter(void*, intptr_t, QObject*, QEvent* } /* extern C */ #endif -class MiqtVirtualQTreeView : public virtual QTreeView { +class MiqtVirtualQTreeView final : public QTreeView { public: MiqtVirtualQTreeView(QWidget* parent): QTreeView(parent) {}; MiqtVirtualQTreeView(): QTreeView() {}; - virtual ~MiqtVirtualQTreeView() = default; + virtual ~MiqtVirtualQTreeView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetModel = 0; @@ -2591,11 +2591,7 @@ bool QTreeView_virtualbase_EventFilter(void* self, QObject* object, QEvent* even return ( (MiqtVirtualQTreeView*)(self) )->virtualbase_EventFilter(object, event); } -void QTreeView_Delete(QTreeView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTreeView_Delete(QTreeView* self) { + delete self; } diff --git a/qt6/gen_qtreeview.go b/qt6/gen_qtreeview.go index e21a9697..80d94d4b 100644 --- a/qt6/gen_qtreeview.go +++ b/qt6/gen_qtreeview.go @@ -2179,7 +2179,7 @@ func miqt_exec_callback_QTreeView_EventFilter(self *C.QTreeView, cb C.intptr_t, // Delete this object from C++ memory. func (this *QTreeView) Delete() { - C.QTreeView_Delete(this.h, C.bool(this.isSubclass)) + C.QTreeView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtreeview.h b/qt6/gen_qtreeview.h index f3942529..51ce084e 100644 --- a/qt6/gen_qtreeview.h +++ b/qt6/gen_qtreeview.h @@ -316,7 +316,7 @@ void QTreeView_override_virtual_InputMethodEvent(void* self, intptr_t slot); void QTreeView_virtualbase_InputMethodEvent(void* self, QInputMethodEvent* event); void QTreeView_override_virtual_EventFilter(void* self, intptr_t slot); bool QTreeView_virtualbase_EventFilter(void* self, QObject* object, QEvent* event); -void QTreeView_Delete(QTreeView* self, bool isSubclass); +void QTreeView_Delete(QTreeView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtreewidget.cpp b/qt6/gen_qtreewidget.cpp index 8077ec90..4c4257e9 100644 --- a/qt6/gen_qtreewidget.cpp +++ b/qt6/gen_qtreewidget.cpp @@ -106,7 +106,7 @@ void miqt_exec_callback_QTreeWidget_CurrentChanged(void*, intptr_t, QModelIndex* } /* extern C */ #endif -class MiqtVirtualQTreeWidgetItem : public virtual QTreeWidgetItem { +class MiqtVirtualQTreeWidgetItem final : public QTreeWidgetItem { public: MiqtVirtualQTreeWidgetItem(): QTreeWidgetItem() {}; @@ -127,7 +127,7 @@ public: MiqtVirtualQTreeWidgetItem(QTreeWidgetItem* parent, const QStringList& strings, int typeVal): QTreeWidgetItem(parent, strings, typeVal) {}; MiqtVirtualQTreeWidgetItem(QTreeWidgetItem* parent, QTreeWidgetItem* after, int typeVal): QTreeWidgetItem(parent, after, typeVal) {}; - virtual ~MiqtVirtualQTreeWidgetItem() = default; + virtual ~MiqtVirtualQTreeWidgetItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Clone = 0; @@ -736,21 +736,17 @@ void QTreeWidgetItem_virtualbase_Write(const void* self, QDataStream* out) { ( (const MiqtVirtualQTreeWidgetItem*)(self) )->virtualbase_Write(out); } -void QTreeWidgetItem_Delete(QTreeWidgetItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTreeWidgetItem_Delete(QTreeWidgetItem* self) { + delete self; } -class MiqtVirtualQTreeWidget : public virtual QTreeWidget { +class MiqtVirtualQTreeWidget final : public QTreeWidget { public: MiqtVirtualQTreeWidget(QWidget* parent): QTreeWidget(parent) {}; MiqtVirtualQTreeWidget(): QTreeWidget() {}; - virtual ~MiqtVirtualQTreeWidget() = default; + virtual ~MiqtVirtualQTreeWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetSelectionModel = 0; @@ -2725,11 +2721,7 @@ void QTreeWidget_virtualbase_CurrentChanged(void* self, QModelIndex* current, QM ( (MiqtVirtualQTreeWidget*)(self) )->virtualbase_CurrentChanged(current, previous); } -void QTreeWidget_Delete(QTreeWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTreeWidget_Delete(QTreeWidget* self) { + delete self; } diff --git a/qt6/gen_qtreewidget.go b/qt6/gen_qtreewidget.go index 8f5902d6..a8a1bda6 100644 --- a/qt6/gen_qtreewidget.go +++ b/qt6/gen_qtreewidget.go @@ -725,7 +725,7 @@ func miqt_exec_callback_QTreeWidgetItem_Write(self *C.QTreeWidgetItem, cb C.intp // Delete this object from C++ memory. func (this *QTreeWidgetItem) Delete() { - C.QTreeWidgetItem_Delete(this.h, C.bool(this.isSubclass)) + C.QTreeWidgetItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2586,7 +2586,7 @@ func miqt_exec_callback_QTreeWidget_CurrentChanged(self *C.QTreeWidget, cb C.int // Delete this object from C++ memory. func (this *QTreeWidget) Delete() { - C.QTreeWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QTreeWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtreewidget.h b/qt6/gen_qtreewidget.h index 3e7d9225..37ccba4e 100644 --- a/qt6/gen_qtreewidget.h +++ b/qt6/gen_qtreewidget.h @@ -171,7 +171,7 @@ void QTreeWidgetItem_override_virtual_Read(void* self, intptr_t slot); void QTreeWidgetItem_virtualbase_Read(void* self, QDataStream* in); void QTreeWidgetItem_override_virtual_Write(void* self, intptr_t slot); void QTreeWidgetItem_virtualbase_Write(const void* self, QDataStream* out); -void QTreeWidgetItem_Delete(QTreeWidgetItem* self, bool isSubclass); +void QTreeWidgetItem_Delete(QTreeWidgetItem* self); QTreeWidget* QTreeWidget_new(QWidget* parent); QTreeWidget* QTreeWidget_new2(); @@ -347,7 +347,7 @@ void QTreeWidget_override_virtual_SelectionChanged(void* self, intptr_t slot); void QTreeWidget_virtualbase_SelectionChanged(void* self, QItemSelection* selected, QItemSelection* deselected); void QTreeWidget_override_virtual_CurrentChanged(void* self, intptr_t slot); void QTreeWidget_virtualbase_CurrentChanged(void* self, QModelIndex* current, QModelIndex* previous); -void QTreeWidget_Delete(QTreeWidget* self, bool isSubclass); +void QTreeWidget_Delete(QTreeWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qtreewidgetitemiterator.cpp b/qt6/gen_qtreewidgetitemiterator.cpp index 15f94275..91a64259 100644 --- a/qt6/gen_qtreewidgetitemiterator.cpp +++ b/qt6/gen_qtreewidgetitemiterator.cpp @@ -72,11 +72,7 @@ QTreeWidgetItem* QTreeWidgetItemIterator_OperatorMultiply(const QTreeWidgetItemI return self->operator*(); } -void QTreeWidgetItemIterator_Delete(QTreeWidgetItemIterator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTreeWidgetItemIterator_Delete(QTreeWidgetItemIterator* self) { + delete self; } diff --git a/qt6/gen_qtreewidgetitemiterator.go b/qt6/gen_qtreewidgetitemiterator.go index 61859271..95162262 100644 --- a/qt6/gen_qtreewidgetitemiterator.go +++ b/qt6/gen_qtreewidgetitemiterator.go @@ -149,7 +149,7 @@ func (this *QTreeWidgetItemIterator) OperatorMultiply() *QTreeWidgetItem { // Delete this object from C++ memory. func (this *QTreeWidgetItemIterator) Delete() { - C.QTreeWidgetItemIterator_Delete(this.h, C.bool(this.isSubclass)) + C.QTreeWidgetItemIterator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qtreewidgetitemiterator.h b/qt6/gen_qtreewidgetitemiterator.h index acdd3ade..6be6c8b0 100644 --- a/qt6/gen_qtreewidgetitemiterator.h +++ b/qt6/gen_qtreewidgetitemiterator.h @@ -37,7 +37,7 @@ QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorMinusMinus(QTreeWidgetI QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorMinusMinusWithInt(QTreeWidgetItemIterator* self, int param1); QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorMinusAssign(QTreeWidgetItemIterator* self, int n); QTreeWidgetItem* QTreeWidgetItemIterator_OperatorMultiply(const QTreeWidgetItemIterator* self); -void QTreeWidgetItemIterator_Delete(QTreeWidgetItemIterator* self, bool isSubclass); +void QTreeWidgetItemIterator_Delete(QTreeWidgetItemIterator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qundogroup.cpp b/qt6/gen_qundogroup.cpp index 3dc11028..6b188cc5 100644 --- a/qt6/gen_qundogroup.cpp +++ b/qt6/gen_qundogroup.cpp @@ -36,13 +36,13 @@ void miqt_exec_callback_QUndoGroup_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQUndoGroup : public virtual QUndoGroup { +class MiqtVirtualQUndoGroup final : public QUndoGroup { public: MiqtVirtualQUndoGroup(): QUndoGroup() {}; MiqtVirtualQUndoGroup(QObject* parent): QUndoGroup(parent) {}; - virtual ~MiqtVirtualQUndoGroup() = default; + virtual ~MiqtVirtualQUndoGroup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -508,11 +508,7 @@ void QUndoGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQUndoGroup*)(self) )->virtualbase_DisconnectNotify(signal); } -void QUndoGroup_Delete(QUndoGroup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUndoGroup_Delete(QUndoGroup* self) { + delete self; } diff --git a/qt6/gen_qundogroup.go b/qt6/gen_qundogroup.go index 9d17fc72..c7679745 100644 --- a/qt6/gen_qundogroup.go +++ b/qt6/gen_qundogroup.go @@ -536,7 +536,7 @@ func miqt_exec_callback_QUndoGroup_DisconnectNotify(self *C.QUndoGroup, cb C.int // Delete this object from C++ memory. func (this *QUndoGroup) Delete() { - C.QUndoGroup_Delete(this.h, C.bool(this.isSubclass)) + C.QUndoGroup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qundogroup.h b/qt6/gen_qundogroup.h index 46ee027e..dc453071 100644 --- a/qt6/gen_qundogroup.h +++ b/qt6/gen_qundogroup.h @@ -88,7 +88,7 @@ void QUndoGroup_override_virtual_ConnectNotify(void* self, intptr_t slot); void QUndoGroup_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QUndoGroup_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QUndoGroup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QUndoGroup_Delete(QUndoGroup* self, bool isSubclass); +void QUndoGroup_Delete(QUndoGroup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qundostack.cpp b/qt6/gen_qundostack.cpp index cb474c9d..432fe4b3 100644 --- a/qt6/gen_qundostack.cpp +++ b/qt6/gen_qundostack.cpp @@ -38,7 +38,7 @@ void miqt_exec_callback_QUndoStack_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQUndoCommand : public virtual QUndoCommand { +class MiqtVirtualQUndoCommand final : public QUndoCommand { public: MiqtVirtualQUndoCommand(): QUndoCommand() {}; @@ -46,7 +46,7 @@ public: MiqtVirtualQUndoCommand(QUndoCommand* parent): QUndoCommand(parent) {}; MiqtVirtualQUndoCommand(const QString& text, QUndoCommand* parent): QUndoCommand(text, parent) {}; - virtual ~MiqtVirtualQUndoCommand() = default; + virtual ~MiqtVirtualQUndoCommand() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Undo = 0; @@ -250,21 +250,17 @@ bool QUndoCommand_virtualbase_MergeWith(void* self, QUndoCommand* other) { return ( (MiqtVirtualQUndoCommand*)(self) )->virtualbase_MergeWith(other); } -void QUndoCommand_Delete(QUndoCommand* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUndoCommand_Delete(QUndoCommand* self) { + delete self; } -class MiqtVirtualQUndoStack : public virtual QUndoStack { +class MiqtVirtualQUndoStack final : public QUndoStack { public: MiqtVirtualQUndoStack(): QUndoStack() {}; MiqtVirtualQUndoStack(QObject* parent): QUndoStack(parent) {}; - virtual ~MiqtVirtualQUndoStack() = default; + virtual ~MiqtVirtualQUndoStack() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -766,11 +762,7 @@ void QUndoStack_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQUndoStack*)(self) )->virtualbase_DisconnectNotify(signal); } -void QUndoStack_Delete(QUndoStack* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUndoStack_Delete(QUndoStack* self) { + delete self; } diff --git a/qt6/gen_qundostack.go b/qt6/gen_qundostack.go index e7aaf9d0..be8e5cff 100644 --- a/qt6/gen_qundostack.go +++ b/qt6/gen_qundostack.go @@ -242,7 +242,7 @@ func miqt_exec_callback_QUndoCommand_MergeWith(self *C.QUndoCommand, cb C.intptr // Delete this object from C++ memory. func (this *QUndoCommand) Delete() { - C.QUndoCommand_Delete(this.h, C.bool(this.isSubclass)) + C.QUndoCommand_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -805,7 +805,7 @@ func miqt_exec_callback_QUndoStack_DisconnectNotify(self *C.QUndoStack, cb C.int // Delete this object from C++ memory. func (this *QUndoStack) Delete() { - C.QUndoStack_Delete(this.h, C.bool(this.isSubclass)) + C.QUndoStack_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qundostack.h b/qt6/gen_qundostack.h index ba69db77..f750ae81 100644 --- a/qt6/gen_qundostack.h +++ b/qt6/gen_qundostack.h @@ -59,7 +59,7 @@ void QUndoCommand_override_virtual_Id(void* self, intptr_t slot); int QUndoCommand_virtualbase_Id(const void* self); void QUndoCommand_override_virtual_MergeWith(void* self, intptr_t slot); bool QUndoCommand_virtualbase_MergeWith(void* self, QUndoCommand* other); -void QUndoCommand_Delete(QUndoCommand* self, bool isSubclass); +void QUndoCommand_Delete(QUndoCommand* self); QUndoStack* QUndoStack_new(); QUndoStack* QUndoStack_new2(QObject* parent); @@ -123,7 +123,7 @@ void QUndoStack_override_virtual_ConnectNotify(void* self, intptr_t slot); void QUndoStack_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QUndoStack_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QUndoStack_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QUndoStack_Delete(QUndoStack* self, bool isSubclass); +void QUndoStack_Delete(QUndoStack* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qundoview.cpp b/qt6/gen_qundoview.cpp index db3205bd..48aca43a 100644 --- a/qt6/gen_qundoview.cpp +++ b/qt6/gen_qundoview.cpp @@ -74,7 +74,7 @@ QSize* miqt_exec_callback_QUndoView_ViewportSizeHint(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQUndoView : public virtual QUndoView { +class MiqtVirtualQUndoView final : public QUndoView { public: MiqtVirtualQUndoView(QWidget* parent): QUndoView(parent) {}; @@ -84,7 +84,7 @@ public: MiqtVirtualQUndoView(QUndoStack* stack, QWidget* parent): QUndoView(stack, parent) {}; MiqtVirtualQUndoView(QUndoGroup* group, QWidget* parent): QUndoView(group, parent) {}; - virtual ~MiqtVirtualQUndoView() = default; + virtual ~MiqtVirtualQUndoView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__VisualRect = 0; @@ -1313,11 +1313,7 @@ QSize* QUndoView_virtualbase_ViewportSizeHint(const void* self) { return ( (const MiqtVirtualQUndoView*)(self) )->virtualbase_ViewportSizeHint(); } -void QUndoView_Delete(QUndoView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUndoView_Delete(QUndoView* self) { + delete self; } diff --git a/qt6/gen_qundoview.go b/qt6/gen_qundoview.go index 54e9a882..6c6d8fda 100644 --- a/qt6/gen_qundoview.go +++ b/qt6/gen_qundoview.go @@ -1100,7 +1100,7 @@ func miqt_exec_callback_QUndoView_ViewportSizeHint(self *C.QUndoView, cb C.intpt // Delete this object from C++ memory. func (this *QUndoView) Delete() { - C.QUndoView_Delete(this.h, C.bool(this.isSubclass)) + C.QUndoView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qundoview.h b/qt6/gen_qundoview.h index 22dfb66c..480e8711 100644 --- a/qt6/gen_qundoview.h +++ b/qt6/gen_qundoview.h @@ -160,7 +160,7 @@ void QUndoView_override_virtual_CurrentChanged(void* self, intptr_t slot); void QUndoView_virtualbase_CurrentChanged(void* self, QModelIndex* current, QModelIndex* previous); void QUndoView_override_virtual_ViewportSizeHint(void* self, intptr_t slot); QSize* QUndoView_virtualbase_ViewportSizeHint(const void* self); -void QUndoView_Delete(QUndoView* self, bool isSubclass); +void QUndoView_Delete(QUndoView* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qurl.cpp b/qt6/gen_qurl.cpp index 42a08fe5..25943205 100644 --- a/qt6/gen_qurl.cpp +++ b/qt6/gen_qurl.cpp @@ -705,11 +705,7 @@ struct miqt_array /* of QUrl* */ QUrl_FromStringList2(struct miqt_array /* of s return _out; } -void QUrl_Delete(QUrl* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUrl_Delete(QUrl* self) { + delete self; } diff --git a/qt6/gen_qurl.go b/qt6/gen_qurl.go index dd5de292..5c149e75 100644 --- a/qt6/gen_qurl.go +++ b/qt6/gen_qurl.go @@ -808,7 +808,7 @@ func QUrl_FromStringList2(uris []string, mode QUrl__ParsingMode) []QUrl { // Delete this object from C++ memory. func (this *QUrl) Delete() { - C.QUrl_Delete(this.h, C.bool(this.isSubclass)) + C.QUrl_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qurl.h b/qt6/gen_qurl.h index b4df7425..5d8175ce 100644 --- a/qt6/gen_qurl.h +++ b/qt6/gen_qurl.h @@ -110,7 +110,7 @@ struct miqt_string QUrl_ToPercentEncoding3(struct miqt_string param1, struct miq struct miqt_string QUrl_FromAce2(struct miqt_string domain, unsigned int options); struct miqt_string QUrl_ToAce2(struct miqt_string domain, unsigned int options); struct miqt_array /* of QUrl* */ QUrl_FromStringList2(struct miqt_array /* of struct miqt_string */ uris, int mode); -void QUrl_Delete(QUrl* self, bool isSubclass); +void QUrl_Delete(QUrl* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qurlquery.cpp b/qt6/gen_qurlquery.cpp index deec871c..502a14b4 100644 --- a/qt6/gen_qurlquery.cpp +++ b/qt6/gen_qurlquery.cpp @@ -301,11 +301,7 @@ struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues2(con return _out; } -void QUrlQuery_Delete(QUrlQuery* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUrlQuery_Delete(QUrlQuery* self) { + delete self; } diff --git a/qt6/gen_qurlquery.go b/qt6/gen_qurlquery.go index 916c7376..830a2694 100644 --- a/qt6/gen_qurlquery.go +++ b/qt6/gen_qurlquery.go @@ -348,7 +348,7 @@ func (this *QUrlQuery) AllQueryItemValues2(key string, encoding QUrl__ComponentF // Delete this object from C++ memory. func (this *QUrlQuery) Delete() { - C.QUrlQuery_Delete(this.h, C.bool(this.isSubclass)) + C.QUrlQuery_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qurlquery.h b/qt6/gen_qurlquery.h index 5dba7963..a5488e18 100644 --- a/qt6/gen_qurlquery.h +++ b/qt6/gen_qurlquery.h @@ -54,7 +54,7 @@ struct miqt_string QUrlQuery_ToString1(const QUrlQuery* self, unsigned int encod struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems1(const QUrlQuery* self, unsigned int encoding); struct miqt_string QUrlQuery_QueryItemValue2(const QUrlQuery* self, struct miqt_string key, unsigned int encoding); struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues2(const QUrlQuery* self, struct miqt_string key, unsigned int encoding); -void QUrlQuery_Delete(QUrlQuery* self, bool isSubclass); +void QUrlQuery_Delete(QUrlQuery* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_quuid.cpp b/qt6/gen_quuid.cpp index 16703d75..89fca80e 100644 --- a/qt6/gen_quuid.cpp +++ b/qt6/gen_quuid.cpp @@ -143,11 +143,7 @@ struct miqt_string QUuid_ToByteArray1(const QUuid* self, int mode) { return _ms; } -void QUuid_Delete(QUuid* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUuid_Delete(QUuid* self) { + delete self; } diff --git a/qt6/gen_quuid.go b/qt6/gen_quuid.go index d6269847..ee6d8eba 100644 --- a/qt6/gen_quuid.go +++ b/qt6/gen_quuid.go @@ -229,7 +229,7 @@ func (this *QUuid) ToByteArray1(mode QUuid__StringFormat) []byte { // Delete this object from C++ memory. func (this *QUuid) Delete() { - C.QUuid_Delete(this.h, C.bool(this.isSubclass)) + C.QUuid_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_quuid.h b/qt6/gen_quuid.h index 61a128cc..ab13a054 100644 --- a/qt6/gen_quuid.h +++ b/qt6/gen_quuid.h @@ -47,7 +47,7 @@ int QUuid_Variant(const QUuid* self); int QUuid_Version(const QUuid* self); struct miqt_string QUuid_ToString1(const QUuid* self, int mode); struct miqt_string QUuid_ToByteArray1(const QUuid* self, int mode); -void QUuid_Delete(QUuid* self, bool isSubclass); +void QUuid_Delete(QUuid* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qvalidator.cpp b/qt6/gen_qvalidator.cpp index d0376f85..92576c35 100644 --- a/qt6/gen_qvalidator.cpp +++ b/qt6/gen_qvalidator.cpp @@ -47,13 +47,13 @@ void miqt_exec_callback_QRegularExpressionValidator_Fixup(void*, intptr_t, struc } /* extern C */ #endif -class MiqtVirtualQValidator : public virtual QValidator { +class MiqtVirtualQValidator final : public QValidator { public: MiqtVirtualQValidator(): QValidator() {}; MiqtVirtualQValidator(QObject* parent): QValidator(parent) {}; - virtual ~MiqtVirtualQValidator() = default; + virtual ~MiqtVirtualQValidator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Validate = 0; @@ -434,15 +434,11 @@ void QValidator_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQValidator*)(self) )->virtualbase_DisconnectNotify(signal); } -void QValidator_Delete(QValidator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QValidator_Delete(QValidator* self) { + delete self; } -class MiqtVirtualQIntValidator : public virtual QIntValidator { +class MiqtVirtualQIntValidator final : public QIntValidator { public: MiqtVirtualQIntValidator(): QIntValidator() {}; @@ -450,7 +446,7 @@ public: MiqtVirtualQIntValidator(QObject* parent): QIntValidator(parent) {}; MiqtVirtualQIntValidator(int bottom, int top, QObject* parent): QIntValidator(bottom, top, parent) {}; - virtual ~MiqtVirtualQIntValidator() = default; + virtual ~MiqtVirtualQIntValidator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Validate = 0; @@ -649,15 +645,11 @@ void QIntValidator_virtualbase_Fixup(const void* self, struct miqt_string input) ( (const MiqtVirtualQIntValidator*)(self) )->virtualbase_Fixup(input); } -void QIntValidator_Delete(QIntValidator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIntValidator_Delete(QIntValidator* self) { + delete self; } -class MiqtVirtualQDoubleValidator : public virtual QDoubleValidator { +class MiqtVirtualQDoubleValidator final : public QDoubleValidator { public: MiqtVirtualQDoubleValidator(): QDoubleValidator() {}; @@ -665,7 +657,7 @@ public: MiqtVirtualQDoubleValidator(QObject* parent): QDoubleValidator(parent) {}; MiqtVirtualQDoubleValidator(double bottom, double top, int decimals, QObject* parent): QDoubleValidator(bottom, top, decimals, parent) {}; - virtual ~MiqtVirtualQDoubleValidator() = default; + virtual ~MiqtVirtualQDoubleValidator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Validate = 0; @@ -908,15 +900,11 @@ void QDoubleValidator_virtualbase_Fixup(const void* self, struct miqt_string inp ( (const MiqtVirtualQDoubleValidator*)(self) )->virtualbase_Fixup(input); } -void QDoubleValidator_Delete(QDoubleValidator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDoubleValidator_Delete(QDoubleValidator* self) { + delete self; } -class MiqtVirtualQRegularExpressionValidator : public virtual QRegularExpressionValidator { +class MiqtVirtualQRegularExpressionValidator final : public QRegularExpressionValidator { public: MiqtVirtualQRegularExpressionValidator(): QRegularExpressionValidator() {}; @@ -924,7 +912,7 @@ public: MiqtVirtualQRegularExpressionValidator(QObject* parent): QRegularExpressionValidator(parent) {}; MiqtVirtualQRegularExpressionValidator(const QRegularExpression& re, QObject* parent): QRegularExpressionValidator(re, parent) {}; - virtual ~MiqtVirtualQRegularExpressionValidator() = default; + virtual ~MiqtVirtualQRegularExpressionValidator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Validate = 0; @@ -1097,11 +1085,7 @@ void QRegularExpressionValidator_virtualbase_Fixup(const void* self, struct miqt ( (const MiqtVirtualQRegularExpressionValidator*)(self) )->virtualbase_Fixup(param1); } -void QRegularExpressionValidator_Delete(QRegularExpressionValidator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QRegularExpressionValidator_Delete(QRegularExpressionValidator* self) { + delete self; } diff --git a/qt6/gen_qvalidator.go b/qt6/gen_qvalidator.go index 8b4f1c35..6e067901 100644 --- a/qt6/gen_qvalidator.go +++ b/qt6/gen_qvalidator.go @@ -415,7 +415,7 @@ func miqt_exec_callback_QValidator_DisconnectNotify(self *C.QValidator, cb C.int // Delete this object from C++ memory. func (this *QValidator) Delete() { - C.QValidator_Delete(this.h, C.bool(this.isSubclass)) + C.QValidator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -684,7 +684,7 @@ func miqt_exec_callback_QIntValidator_Fixup(self *C.QIntValidator, cb C.intptr_t // Delete this object from C++ memory. func (this *QIntValidator) Delete() { - C.QIntValidator_Delete(this.h, C.bool(this.isSubclass)) + C.QIntValidator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1013,7 +1013,7 @@ func miqt_exec_callback_QDoubleValidator_Fixup(self *C.QDoubleValidator, cb C.in // Delete this object from C++ memory. func (this *QDoubleValidator) Delete() { - C.QDoubleValidator_Delete(this.h, C.bool(this.isSubclass)) + C.QDoubleValidator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1244,7 +1244,7 @@ func miqt_exec_callback_QRegularExpressionValidator_Fixup(self *C.QRegularExpres // Delete this object from C++ memory. func (this *QRegularExpressionValidator) Delete() { - C.QRegularExpressionValidator_Delete(this.h, C.bool(this.isSubclass)) + C.QRegularExpressionValidator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qvalidator.h b/qt6/gen_qvalidator.h index 6c71ec87..5dfcb751 100644 --- a/qt6/gen_qvalidator.h +++ b/qt6/gen_qvalidator.h @@ -74,7 +74,7 @@ void QValidator_override_virtual_ConnectNotify(void* self, intptr_t slot); void QValidator_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QValidator_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QValidator_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QValidator_Delete(QValidator* self, bool isSubclass); +void QValidator_Delete(QValidator* self); QIntValidator* QIntValidator_new(); QIntValidator* QIntValidator_new2(int bottom, int top); @@ -101,7 +101,7 @@ void QIntValidator_override_virtual_Validate(void* self, intptr_t slot); int QIntValidator_virtualbase_Validate(const void* self, struct miqt_string param1, int* param2); void QIntValidator_override_virtual_Fixup(void* self, intptr_t slot); void QIntValidator_virtualbase_Fixup(const void* self, struct miqt_string input); -void QIntValidator_Delete(QIntValidator* self, bool isSubclass); +void QIntValidator_Delete(QIntValidator* self); QDoubleValidator* QDoubleValidator_new(); QDoubleValidator* QDoubleValidator_new2(double bottom, double top, int decimals); @@ -137,7 +137,7 @@ void QDoubleValidator_override_virtual_Validate(void* self, intptr_t slot); int QDoubleValidator_virtualbase_Validate(const void* self, struct miqt_string param1, int* param2); void QDoubleValidator_override_virtual_Fixup(void* self, intptr_t slot); void QDoubleValidator_virtualbase_Fixup(const void* self, struct miqt_string input); -void QDoubleValidator_Delete(QDoubleValidator* self, bool isSubclass); +void QDoubleValidator_Delete(QDoubleValidator* self); QRegularExpressionValidator* QRegularExpressionValidator_new(); QRegularExpressionValidator* QRegularExpressionValidator_new2(QRegularExpression* re); @@ -158,7 +158,7 @@ void QRegularExpressionValidator_override_virtual_Validate(void* self, intptr_t int QRegularExpressionValidator_virtualbase_Validate(const void* self, struct miqt_string input, int* pos); void QRegularExpressionValidator_override_virtual_Fixup(void* self, intptr_t slot); void QRegularExpressionValidator_virtualbase_Fixup(const void* self, struct miqt_string param1); -void QRegularExpressionValidator_Delete(QRegularExpressionValidator* self, bool isSubclass); +void QRegularExpressionValidator_Delete(QRegularExpressionValidator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qvariant.cpp b/qt6/gen_qvariant.cpp index 7d776998..e598c465 100644 --- a/qt6/gen_qvariant.cpp +++ b/qt6/gen_qvariant.cpp @@ -596,12 +596,8 @@ double QVariant_ToReal1(const QVariant* self, bool* ok) { return static_cast(_ret); } -void QVariant_Delete(QVariant* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVariant_Delete(QVariant* self) { + delete self; } QVariantConstPointer* QVariantConstPointer_new(QVariant* variant) { @@ -624,11 +620,7 @@ void QVariantConstPointer_OperatorAssign(QVariantConstPointer* self, QVariantCon self->operator=(*param1); } -void QVariantConstPointer_Delete(QVariantConstPointer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVariantConstPointer_Delete(QVariantConstPointer* self) { + delete self; } diff --git a/qt6/gen_qvariant.go b/qt6/gen_qvariant.go index c6ddcbaf..ddee3d20 100644 --- a/qt6/gen_qvariant.go +++ b/qt6/gen_qvariant.go @@ -886,7 +886,7 @@ func (this *QVariant) ToReal1(ok *bool) float64 { // Delete this object from C++ memory. func (this *QVariant) Delete() { - C.QVariant_Delete(this.h, C.bool(this.isSubclass)) + C.QVariant_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -963,7 +963,7 @@ func (this *QVariantConstPointer) OperatorAssign(param1 *QVariantConstPointer) { // Delete this object from C++ memory. func (this *QVariantConstPointer) Delete() { - C.QVariantConstPointer_Delete(this.h, C.bool(this.isSubclass)) + C.QVariantConstPointer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qvariant.h b/qt6/gen_qvariant.h index 78678823..5c8bbf3d 100644 --- a/qt6/gen_qvariant.h +++ b/qt6/gen_qvariant.h @@ -188,14 +188,14 @@ unsigned long long QVariant_ToULongLong1(const QVariant* self, bool* ok); double QVariant_ToDouble1(const QVariant* self, bool* ok); float QVariant_ToFloat1(const QVariant* self, bool* ok); double QVariant_ToReal1(const QVariant* self, bool* ok); -void QVariant_Delete(QVariant* self, bool isSubclass); +void QVariant_Delete(QVariant* self); QVariantConstPointer* QVariantConstPointer_new(QVariant* variant); QVariantConstPointer* QVariantConstPointer_new2(QVariantConstPointer* param1); QVariant* QVariantConstPointer_OperatorMultiply(const QVariantConstPointer* self); QVariant* QVariantConstPointer_OperatorMinusGreater(const QVariantConstPointer* self); void QVariantConstPointer_OperatorAssign(QVariantConstPointer* self, QVariantConstPointer* param1); -void QVariantConstPointer_Delete(QVariantConstPointer* self, bool isSubclass); +void QVariantConstPointer_Delete(QVariantConstPointer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qvariantanimation.cpp b/qt6/gen_qvariantanimation.cpp index 85708cb7..048cc3d5 100644 --- a/qt6/gen_qvariantanimation.cpp +++ b/qt6/gen_qvariantanimation.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QVariantAnimation_UpdateDirection(void*, intptr_t, int); } /* extern C */ #endif -class MiqtVirtualQVariantAnimation : public virtual QVariantAnimation { +class MiqtVirtualQVariantAnimation final : public QVariantAnimation { public: MiqtVirtualQVariantAnimation(): QVariantAnimation() {}; MiqtVirtualQVariantAnimation(QObject* parent): QVariantAnimation(parent) {}; - virtual ~MiqtVirtualQVariantAnimation() = default; + virtual ~MiqtVirtualQVariantAnimation() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Duration = 0; @@ -420,11 +420,7 @@ void QVariantAnimation_virtualbase_UpdateDirection(void* self, int direction) { ( (MiqtVirtualQVariantAnimation*)(self) )->virtualbase_UpdateDirection(direction); } -void QVariantAnimation_Delete(QVariantAnimation* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVariantAnimation_Delete(QVariantAnimation* self) { + delete self; } diff --git a/qt6/gen_qvariantanimation.go b/qt6/gen_qvariantanimation.go index 0253ec67..949b4ade 100644 --- a/qt6/gen_qvariantanimation.go +++ b/qt6/gen_qvariantanimation.go @@ -429,7 +429,7 @@ func miqt_exec_callback_QVariantAnimation_UpdateDirection(self *C.QVariantAnimat // Delete this object from C++ memory. func (this *QVariantAnimation) Delete() { - C.QVariantAnimation_Delete(this.h, C.bool(this.isSubclass)) + C.QVariantAnimation_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qvariantanimation.h b/qt6/gen_qvariantanimation.h index f09a99e9..c14d5440 100644 --- a/qt6/gen_qvariantanimation.h +++ b/qt6/gen_qvariantanimation.h @@ -74,7 +74,7 @@ void QVariantAnimation_override_virtual_Interpolated(void* self, intptr_t slot); QVariant* QVariantAnimation_virtualbase_Interpolated(const void* self, QVariant* from, QVariant* to, double progress); void QVariantAnimation_override_virtual_UpdateDirection(void* self, intptr_t slot); void QVariantAnimation_virtualbase_UpdateDirection(void* self, int direction); -void QVariantAnimation_Delete(QVariantAnimation* self, bool isSubclass); +void QVariantAnimation_Delete(QVariantAnimation* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qvectornd.cpp b/qt6/gen_qvectornd.cpp index 4f7494d7..8b2a7bf2 100644 --- a/qt6/gen_qvectornd.cpp +++ b/qt6/gen_qvectornd.cpp @@ -157,12 +157,8 @@ QVariant* QVector2D_ToQVariant(const QVector2D* self) { return new QVariant(self->operator QVariant()); } -void QVector2D_Delete(QVector2D* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVector2D_Delete(QVector2D* self) { + delete self; } QVector3D* QVector3D_new() { @@ -345,12 +341,8 @@ QVariant* QVector3D_ToQVariant(const QVector3D* self) { return new QVariant(self->operator QVariant()); } -void QVector3D_Delete(QVector3D* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVector3D_Delete(QVector3D* self) { + delete self; } QVector4D* QVector4D_new() { @@ -517,11 +509,7 @@ QVariant* QVector4D_ToQVariant(const QVector4D* self) { return new QVariant(self->operator QVariant()); } -void QVector4D_Delete(QVector4D* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVector4D_Delete(QVector4D* self) { + delete self; } diff --git a/qt6/gen_qvectornd.go b/qt6/gen_qvectornd.go index 1f6869d3..6e1fae90 100644 --- a/qt6/gen_qvectornd.go +++ b/qt6/gen_qvectornd.go @@ -220,7 +220,7 @@ func (this *QVector2D) ToQVariant() *QVariant { // Delete this object from C++ memory. func (this *QVector2D) Delete() { - C.QVector2D_Delete(this.h, C.bool(this.isSubclass)) + C.QVector2D_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -493,7 +493,7 @@ func (this *QVector3D) ToQVariant() *QVariant { // Delete this object from C++ memory. func (this *QVector3D) Delete() { - C.QVector3D_Delete(this.h, C.bool(this.isSubclass)) + C.QVector3D_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -748,7 +748,7 @@ func (this *QVector4D) ToQVariant() *QVariant { // Delete this object from C++ memory. func (this *QVector4D) Delete() { - C.QVector4D_Delete(this.h, C.bool(this.isSubclass)) + C.QVector4D_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qvectornd.h b/qt6/gen_qvectornd.h index 0d6124a0..ed4b581b 100644 --- a/qt6/gen_qvectornd.h +++ b/qt6/gen_qvectornd.h @@ -66,7 +66,7 @@ QVector4D* QVector2D_ToVector4D(const QVector2D* self); QPoint* QVector2D_ToPoint(const QVector2D* self); QPointF* QVector2D_ToPointF(const QVector2D* self); QVariant* QVector2D_ToQVariant(const QVector2D* self); -void QVector2D_Delete(QVector2D* self, bool isSubclass); +void QVector2D_Delete(QVector2D* self); QVector3D* QVector3D_new(); QVector3D* QVector3D_new2(int param1); @@ -110,7 +110,7 @@ QVector4D* QVector3D_ToVector4D(const QVector3D* self); QPoint* QVector3D_ToPoint(const QVector3D* self); QPointF* QVector3D_ToPointF(const QVector3D* self); QVariant* QVector3D_ToQVariant(const QVector3D* self); -void QVector3D_Delete(QVector3D* self, bool isSubclass); +void QVector3D_Delete(QVector3D* self); QVector4D* QVector4D_new(); QVector4D* QVector4D_new2(int param1); @@ -150,7 +150,7 @@ QVector3D* QVector4D_ToVector3DAffine(const QVector4D* self); QPoint* QVector4D_ToPoint(const QVector4D* self); QPointF* QVector4D_ToPointF(const QVector4D* self); QVariant* QVector4D_ToQVariant(const QVector4D* self); -void QVector4D_Delete(QVector4D* self, bool isSubclass); +void QVector4D_Delete(QVector4D* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qversionnumber.cpp b/qt6/gen_qversionnumber.cpp index 354d05c1..9f566285 100644 --- a/qt6/gen_qversionnumber.cpp +++ b/qt6/gen_qversionnumber.cpp @@ -123,12 +123,8 @@ QVersionNumber* QVersionNumber_FromString2(QAnyStringView* stringVal, ptrdiff_t* return new QVersionNumber(QVersionNumber::fromString(*stringVal, (qsizetype*)(suffixIndex))); } -void QVersionNumber_Delete(QVersionNumber* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVersionNumber_Delete(QVersionNumber* self) { + delete self; } QTypeRevision* QTypeRevision_new() { @@ -165,11 +161,7 @@ bool QTypeRevision_IsValid(const QTypeRevision* self) { return self->isValid(); } -void QTypeRevision_Delete(QTypeRevision* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTypeRevision_Delete(QTypeRevision* self) { + delete self; } diff --git a/qt6/gen_qversionnumber.go b/qt6/gen_qversionnumber.go index ff6c03f7..3e412324 100644 --- a/qt6/gen_qversionnumber.go +++ b/qt6/gen_qversionnumber.go @@ -179,7 +179,7 @@ func QVersionNumber_FromString2(stringVal QAnyStringView, suffixIndex *int64) *Q // Delete this object from C++ memory. func (this *QVersionNumber) Delete() { - C.QVersionNumber_Delete(this.h, C.bool(this.isSubclass)) + C.QVersionNumber_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -268,7 +268,7 @@ func (this *QTypeRevision) IsValid() bool { // Delete this object from C++ memory. func (this *QTypeRevision) Delete() { - C.QTypeRevision_Delete(this.h, C.bool(this.isSubclass)) + C.QTypeRevision_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qversionnumber.h b/qt6/gen_qversionnumber.h index 09f309d1..e3d98dc1 100644 --- a/qt6/gen_qversionnumber.h +++ b/qt6/gen_qversionnumber.h @@ -45,7 +45,7 @@ QVersionNumber* QVersionNumber_CommonPrefix(QVersionNumber* v1, QVersionNumber* struct miqt_string QVersionNumber_ToString(const QVersionNumber* self); QVersionNumber* QVersionNumber_FromString(QAnyStringView* stringVal); QVersionNumber* QVersionNumber_FromString2(QAnyStringView* stringVal, ptrdiff_t* suffixIndex); -void QVersionNumber_Delete(QVersionNumber* self, bool isSubclass); +void QVersionNumber_Delete(QVersionNumber* self); QTypeRevision* QTypeRevision_new(); QTypeRevision* QTypeRevision_new2(QTypeRevision* param1); @@ -55,7 +55,7 @@ unsigned char QTypeRevision_MajorVersion(const QTypeRevision* self); bool QTypeRevision_HasMinorVersion(const QTypeRevision* self); unsigned char QTypeRevision_MinorVersion(const QTypeRevision* self); bool QTypeRevision_IsValid(const QTypeRevision* self); -void QTypeRevision_Delete(QTypeRevision* self, bool isSubclass); +void QTypeRevision_Delete(QTypeRevision* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qwaitcondition.cpp b/qt6/gen_qwaitcondition.cpp index 06803ab6..0c152389 100644 --- a/qt6/gen_qwaitcondition.cpp +++ b/qt6/gen_qwaitcondition.cpp @@ -57,11 +57,7 @@ bool QWaitCondition_Wait23(QWaitCondition* self, QReadWriteLock* lockedReadWrite return self->wait(lockedReadWriteLock, *deadline); } -void QWaitCondition_Delete(QWaitCondition* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWaitCondition_Delete(QWaitCondition* self) { + delete self; } diff --git a/qt6/gen_qwaitcondition.go b/qt6/gen_qwaitcondition.go index 18ea107f..05454207 100644 --- a/qt6/gen_qwaitcondition.go +++ b/qt6/gen_qwaitcondition.go @@ -96,7 +96,7 @@ func (this *QWaitCondition) Wait23(lockedReadWriteLock *QReadWriteLock, deadline // Delete this object from C++ memory. func (this *QWaitCondition) Delete() { - C.QWaitCondition_Delete(this.h, C.bool(this.isSubclass)) + C.QWaitCondition_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qwaitcondition.h b/qt6/gen_qwaitcondition.h index 86ee96d6..7279158b 100644 --- a/qt6/gen_qwaitcondition.h +++ b/qt6/gen_qwaitcondition.h @@ -37,7 +37,7 @@ void QWaitCondition_NotifyOne(QWaitCondition* self); void QWaitCondition_NotifyAll(QWaitCondition* self); bool QWaitCondition_Wait22(QWaitCondition* self, QMutex* lockedMutex, QDeadlineTimer* deadline); bool QWaitCondition_Wait23(QWaitCondition* self, QReadWriteLock* lockedReadWriteLock, QDeadlineTimer* deadline); -void QWaitCondition_Delete(QWaitCondition* self, bool isSubclass); +void QWaitCondition_Delete(QWaitCondition* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qwhatsthis.cpp b/qt6/gen_qwhatsthis.cpp index 16c9b30d..af9e4a4c 100644 --- a/qt6/gen_qwhatsthis.cpp +++ b/qt6/gen_qwhatsthis.cpp @@ -51,11 +51,7 @@ QAction* QWhatsThis_CreateAction1(QObject* parent) { return QWhatsThis::createAction(parent); } -void QWhatsThis_Delete(QWhatsThis* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWhatsThis_Delete(QWhatsThis* self) { + delete self; } diff --git a/qt6/gen_qwhatsthis.go b/qt6/gen_qwhatsthis.go index 0c491c93..30df8169 100644 --- a/qt6/gen_qwhatsthis.go +++ b/qt6/gen_qwhatsthis.go @@ -88,7 +88,7 @@ func QWhatsThis_CreateAction1(parent *QObject) *QAction { // Delete this object from C++ memory. func (this *QWhatsThis) Delete() { - C.QWhatsThis_Delete(this.h, C.bool(this.isSubclass)) + C.QWhatsThis_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qwhatsthis.h b/qt6/gen_qwhatsthis.h index f2bfe89e..0edffef9 100644 --- a/qt6/gen_qwhatsthis.h +++ b/qt6/gen_qwhatsthis.h @@ -36,7 +36,7 @@ void QWhatsThis_HideText(); QAction* QWhatsThis_CreateAction(); void QWhatsThis_ShowText3(QPoint* pos, struct miqt_string text, QWidget* w); QAction* QWhatsThis_CreateAction1(QObject* parent); -void QWhatsThis_Delete(QWhatsThis* self, bool isSubclass); +void QWhatsThis_Delete(QWhatsThis* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qwidget.cpp b/qt6/gen_qwidget.cpp index c85a07e1..ee83b938 100644 --- a/qt6/gen_qwidget.cpp +++ b/qt6/gen_qwidget.cpp @@ -129,22 +129,18 @@ void QWidgetData_OperatorAssign(QWidgetData* self, QWidgetData* param1) { self->operator=(*param1); } -void QWidgetData_Delete(QWidgetData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWidgetData_Delete(QWidgetData* self) { + delete self; } -class MiqtVirtualQWidget : public virtual QWidget { +class MiqtVirtualQWidget final : public QWidget { public: MiqtVirtualQWidget(QWidget* parent): QWidget(parent) {}; MiqtVirtualQWidget(): QWidget() {}; MiqtVirtualQWidget(QWidget* parent, Qt::WindowFlags f): QWidget(parent, f) {}; - virtual ~MiqtVirtualQWidget() = default; + virtual ~MiqtVirtualQWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -2985,11 +2981,7 @@ void QWidget_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQWidget*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWidget_Delete(QWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWidget_Delete(QWidget* self) { + delete self; } diff --git a/qt6/gen_qwidget.go b/qt6/gen_qwidget.go index 30fb2d35..84a20c87 100644 --- a/qt6/gen_qwidget.go +++ b/qt6/gen_qwidget.go @@ -69,7 +69,7 @@ func (this *QWidgetData) OperatorAssign(param1 *QWidgetData) { // Delete this object from C++ memory. func (this *QWidgetData) Delete() { - C.QWidgetData_Delete(this.h, C.bool(this.isSubclass)) + C.QWidgetData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2803,7 +2803,7 @@ func miqt_exec_callback_QWidget_DisconnectNotify(self *C.QWidget, cb C.intptr_t, // Delete this object from C++ memory. func (this *QWidget) Delete() { - C.QWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qwidget.h b/qt6/gen_qwidget.h index e771742c..a533971c 100644 --- a/qt6/gen_qwidget.h +++ b/qt6/gen_qwidget.h @@ -132,7 +132,7 @@ typedef struct QWindow QWindow; QWidgetData* QWidgetData_new(QWidgetData* param1); void QWidgetData_OperatorAssign(QWidgetData* self, QWidgetData* param1); -void QWidgetData_Delete(QWidgetData* self, bool isSubclass); +void QWidgetData_Delete(QWidgetData* self); QWidget* QWidget_new(QWidget* parent); QWidget* QWidget_new2(); @@ -549,7 +549,7 @@ void QWidget_override_virtual_ConnectNotify(void* self, intptr_t slot); void QWidget_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWidget_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWidget_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWidget_Delete(QWidget* self, bool isSubclass); +void QWidget_Delete(QWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qwidgetaction.cpp b/qt6/gen_qwidgetaction.cpp index 784797ee..620e4da4 100644 --- a/qt6/gen_qwidgetaction.cpp +++ b/qt6/gen_qwidgetaction.cpp @@ -22,12 +22,12 @@ void miqt_exec_callback_QWidgetAction_DeleteWidget(void*, intptr_t, QWidget*); } /* extern C */ #endif -class MiqtVirtualQWidgetAction : public virtual QWidgetAction { +class MiqtVirtualQWidgetAction final : public QWidgetAction { public: MiqtVirtualQWidgetAction(QObject* parent): QWidgetAction(parent) {}; - virtual ~MiqtVirtualQWidgetAction() = default; + virtual ~MiqtVirtualQWidgetAction() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -222,11 +222,7 @@ void QWidgetAction_virtualbase_DeleteWidget(void* self, QWidget* widget) { ( (MiqtVirtualQWidgetAction*)(self) )->virtualbase_DeleteWidget(widget); } -void QWidgetAction_Delete(QWidgetAction* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWidgetAction_Delete(QWidgetAction* self) { + delete self; } diff --git a/qt6/gen_qwidgetaction.go b/qt6/gen_qwidgetaction.go index 09c3e80e..d3ef2bf5 100644 --- a/qt6/gen_qwidgetaction.go +++ b/qt6/gen_qwidgetaction.go @@ -230,7 +230,7 @@ func miqt_exec_callback_QWidgetAction_DeleteWidget(self *C.QWidgetAction, cb C.i // Delete this object from C++ memory. func (this *QWidgetAction) Delete() { - C.QWidgetAction_Delete(this.h, C.bool(this.isSubclass)) + C.QWidgetAction_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qwidgetaction.h b/qt6/gen_qwidgetaction.h index f4b9c9d4..a4429c2c 100644 --- a/qt6/gen_qwidgetaction.h +++ b/qt6/gen_qwidgetaction.h @@ -53,7 +53,7 @@ void QWidgetAction_override_virtual_CreateWidget(void* self, intptr_t slot); QWidget* QWidgetAction_virtualbase_CreateWidget(void* self, QWidget* parent); void QWidgetAction_override_virtual_DeleteWidget(void* self, intptr_t slot); void QWidgetAction_virtualbase_DeleteWidget(void* self, QWidget* widget); -void QWidgetAction_Delete(QWidgetAction* self, bool isSubclass); +void QWidgetAction_Delete(QWidgetAction* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qwindow.cpp b/qt6/gen_qwindow.cpp index 789428e9..63515305 100644 --- a/qt6/gen_qwindow.cpp +++ b/qt6/gen_qwindow.cpp @@ -95,14 +95,14 @@ void miqt_exec_callback_QWindow_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQWindow : public virtual QWindow { +class MiqtVirtualQWindow final : public QWindow { public: MiqtVirtualQWindow(): QWindow() {}; MiqtVirtualQWindow(QWindow* parent): QWindow(parent) {}; MiqtVirtualQWindow(QScreen* screen): QWindow(screen) {}; - virtual ~MiqtVirtualQWindow() = default; + virtual ~MiqtVirtualQWindow() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SurfaceType = 0; @@ -1854,11 +1854,7 @@ void QWindow_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQWindow*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWindow_Delete(QWindow* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWindow_Delete(QWindow* self) { + delete self; } diff --git a/qt6/gen_qwindow.go b/qt6/gen_qwindow.go index b2edbad1..42a99b0f 100644 --- a/qt6/gen_qwindow.go +++ b/qt6/gen_qwindow.go @@ -1845,7 +1845,7 @@ func miqt_exec_callback_QWindow_DisconnectNotify(self *C.QWindow, cb C.intptr_t, // Delete this object from C++ memory. func (this *QWindow) Delete() { - C.QWindow_Delete(this.h, C.bool(this.isSubclass)) + C.QWindow_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qwindow.h b/qt6/gen_qwindow.h index ebb97082..c9264445 100644 --- a/qt6/gen_qwindow.h +++ b/qt6/gen_qwindow.h @@ -323,7 +323,7 @@ void QWindow_override_virtual_ConnectNotify(void* self, intptr_t slot); void QWindow_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWindow_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWindow_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWindow_Delete(QWindow* self, bool isSubclass); +void QWindow_Delete(QWindow* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qwizard.cpp b/qt6/gen_qwizard.cpp index ab25c3fb..591a0aeb 100644 --- a/qt6/gen_qwizard.cpp +++ b/qt6/gen_qwizard.cpp @@ -120,14 +120,14 @@ bool miqt_exec_callback_QWizardPage_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQWizard : public virtual QWizard { +class MiqtVirtualQWizard final : public QWizard { public: MiqtVirtualQWizard(QWidget* parent): QWizard(parent) {}; MiqtVirtualQWizard(): QWizard() {}; MiqtVirtualQWizard(QWidget* parent, Qt::WindowFlags flags): QWizard(parent, flags) {}; - virtual ~MiqtVirtualQWizard() = default; + virtual ~MiqtVirtualQWizard() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__ValidateCurrentPage = 0; @@ -1074,21 +1074,17 @@ bool QWizard_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2 return ( (MiqtVirtualQWizard*)(self) )->virtualbase_EventFilter(param1, param2); } -void QWizard_Delete(QWizard* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWizard_Delete(QWizard* self) { + delete self; } -class MiqtVirtualQWizardPage : public virtual QWizardPage { +class MiqtVirtualQWizardPage final : public QWizardPage { public: MiqtVirtualQWizardPage(QWidget* parent): QWizardPage(parent) {}; MiqtVirtualQWizardPage(): QWizardPage() {}; - virtual ~MiqtVirtualQWizardPage() = default; + virtual ~MiqtVirtualQWizardPage() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__InitializePage = 0; @@ -2703,11 +2699,7 @@ bool QWizardPage_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQWizardPage*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QWizardPage_Delete(QWizardPage* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWizardPage_Delete(QWizardPage* self) { + delete self; } diff --git a/qt6/gen_qwizard.go b/qt6/gen_qwizard.go index ed85b2b8..c303cee1 100644 --- a/qt6/gen_qwizard.go +++ b/qt6/gen_qwizard.go @@ -1004,7 +1004,7 @@ func miqt_exec_callback_QWizard_EventFilter(self *C.QWizard, cb C.intptr_t, para // Delete this object from C++ memory. func (this *QWizard) Delete() { - C.QWizard_Delete(this.h, C.bool(this.isSubclass)) + C.QWizard_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -2430,7 +2430,7 @@ func miqt_exec_callback_QWizardPage_FocusNextPrevChild(self *C.QWizardPage, cb C // Delete this object from C++ memory. func (this *QWizardPage) Delete() { - C.QWizardPage_Delete(this.h, C.bool(this.isSubclass)) + C.QWizardPage_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qwizard.h b/qt6/gen_qwizard.h index 0712321d..c6c21d14 100644 --- a/qt6/gen_qwizard.h +++ b/qt6/gen_qwizard.h @@ -193,7 +193,7 @@ void QWizard_override_virtual_ContextMenuEvent(void* self, intptr_t slot); void QWizard_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QWizard_override_virtual_EventFilter(void* self, intptr_t slot); bool QWizard_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QWizard_Delete(QWizard* self, bool isSubclass); +void QWizard_Delete(QWizard* self); QWizardPage* QWizardPage_new(QWidget* parent); QWizardPage* QWizardPage_new2(); @@ -314,7 +314,7 @@ void QWizardPage_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QWizardPage_virtualbase_InputMethodQuery(const void* self, int param1); void QWizardPage_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QWizardPage_virtualbase_FocusNextPrevChild(void* self, bool next); -void QWizardPage_Delete(QWizardPage* self, bool isSubclass); +void QWizardPage_Delete(QWizardPage* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/gen_qxmlstream.cpp b/qt6/gen_qxmlstream.cpp index f35b9ac2..97708786 100644 --- a/qt6/gen_qxmlstream.cpp +++ b/qt6/gen_qxmlstream.cpp @@ -59,12 +59,8 @@ void QXmlStreamAttribute_OperatorAssign(QXmlStreamAttribute* self, QXmlStreamAtt self->operator=(*param1); } -void QXmlStreamAttribute_Delete(QXmlStreamAttribute* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamAttribute_Delete(QXmlStreamAttribute* self) { + delete self; } QXmlStreamNamespaceDeclaration* QXmlStreamNamespaceDeclaration_new() { @@ -85,12 +81,8 @@ bool QXmlStreamNamespaceDeclaration_OperatorNotEqual(const QXmlStreamNamespaceDe return (*self != *other); } -void QXmlStreamNamespaceDeclaration_Delete(QXmlStreamNamespaceDeclaration* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamNamespaceDeclaration_Delete(QXmlStreamNamespaceDeclaration* self) { + delete self; } QXmlStreamNotationDeclaration* QXmlStreamNotationDeclaration_new() { @@ -105,12 +97,8 @@ bool QXmlStreamNotationDeclaration_OperatorNotEqual(const QXmlStreamNotationDecl return (*self != *other); } -void QXmlStreamNotationDeclaration_Delete(QXmlStreamNotationDeclaration* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamNotationDeclaration_Delete(QXmlStreamNotationDeclaration* self) { + delete self; } QXmlStreamEntityDeclaration* QXmlStreamEntityDeclaration_new() { @@ -125,12 +113,8 @@ bool QXmlStreamEntityDeclaration_OperatorNotEqual(const QXmlStreamEntityDeclarat return (*self != *other); } -void QXmlStreamEntityDeclaration_Delete(QXmlStreamEntityDeclaration* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamEntityDeclaration_Delete(QXmlStreamEntityDeclaration* self) { + delete self; } struct miqt_string QXmlStreamEntityResolver_ResolveEntity(QXmlStreamEntityResolver* self, struct miqt_string publicId, struct miqt_string systemId) { @@ -158,12 +142,8 @@ struct miqt_string QXmlStreamEntityResolver_ResolveUndeclaredEntity(QXmlStreamEn return _ms; } -void QXmlStreamEntityResolver_Delete(QXmlStreamEntityResolver* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamEntityResolver_Delete(QXmlStreamEntityResolver* self) { + delete self; } QXmlStreamReader* QXmlStreamReader_new() { @@ -438,12 +418,8 @@ void QXmlStreamReader_RaiseError1(QXmlStreamReader* self, struct miqt_string mes self->raiseError(message_QString); } -void QXmlStreamReader_Delete(QXmlStreamReader* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamReader_Delete(QXmlStreamReader* self) { + delete self; } QXmlStreamWriter* QXmlStreamWriter_new() { @@ -612,11 +588,7 @@ void QXmlStreamWriter_WriteProcessingInstruction2(QXmlStreamWriter* self, struct self->writeProcessingInstruction(target_QString, data_QString); } -void QXmlStreamWriter_Delete(QXmlStreamWriter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QXmlStreamWriter_Delete(QXmlStreamWriter* self) { + delete self; } diff --git a/qt6/gen_qxmlstream.go b/qt6/gen_qxmlstream.go index b3678748..81cd9575 100644 --- a/qt6/gen_qxmlstream.go +++ b/qt6/gen_qxmlstream.go @@ -150,7 +150,7 @@ func (this *QXmlStreamAttribute) OperatorAssign(param1 *QXmlStreamAttribute) { // Delete this object from C++ memory. func (this *QXmlStreamAttribute) Delete() { - C.QXmlStreamAttribute_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamAttribute_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -229,7 +229,7 @@ func (this *QXmlStreamNamespaceDeclaration) OperatorNotEqual(other *QXmlStreamNa // Delete this object from C++ memory. func (this *QXmlStreamNamespaceDeclaration) Delete() { - C.QXmlStreamNamespaceDeclaration_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamNamespaceDeclaration_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -292,7 +292,7 @@ func (this *QXmlStreamNotationDeclaration) OperatorNotEqual(other *QXmlStreamNot // Delete this object from C++ memory. func (this *QXmlStreamNotationDeclaration) Delete() { - C.QXmlStreamNotationDeclaration_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamNotationDeclaration_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -355,7 +355,7 @@ func (this *QXmlStreamEntityDeclaration) OperatorNotEqual(other *QXmlStreamEntit // Delete this object from C++ memory. func (this *QXmlStreamEntityDeclaration) Delete() { - C.QXmlStreamEntityDeclaration_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamEntityDeclaration_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -428,7 +428,7 @@ func (this *QXmlStreamEntityResolver) ResolveUndeclaredEntity(name string) strin // Delete this object from C++ memory. func (this *QXmlStreamEntityResolver) Delete() { - C.QXmlStreamEntityResolver_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamEntityResolver_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -759,7 +759,7 @@ func (this *QXmlStreamReader) RaiseError1(message string) { // Delete this object from C++ memory. func (this *QXmlStreamReader) Delete() { - C.QXmlStreamReader_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamReader_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1070,7 +1070,7 @@ func (this *QXmlStreamWriter) WriteProcessingInstruction2(target string, data st // Delete this object from C++ memory. func (this *QXmlStreamWriter) Delete() { - C.QXmlStreamWriter_Delete(this.h, C.bool(this.isSubclass)) + C.QXmlStreamWriter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/gen_qxmlstream.h b/qt6/gen_qxmlstream.h index e18a9667..8847768b 100644 --- a/qt6/gen_qxmlstream.h +++ b/qt6/gen_qxmlstream.h @@ -42,27 +42,27 @@ bool QXmlStreamAttribute_IsDefault(const QXmlStreamAttribute* self); bool QXmlStreamAttribute_OperatorEqual(const QXmlStreamAttribute* self, QXmlStreamAttribute* other); bool QXmlStreamAttribute_OperatorNotEqual(const QXmlStreamAttribute* self, QXmlStreamAttribute* other); void QXmlStreamAttribute_OperatorAssign(QXmlStreamAttribute* self, QXmlStreamAttribute* param1); -void QXmlStreamAttribute_Delete(QXmlStreamAttribute* self, bool isSubclass); +void QXmlStreamAttribute_Delete(QXmlStreamAttribute* self); QXmlStreamNamespaceDeclaration* QXmlStreamNamespaceDeclaration_new(); QXmlStreamNamespaceDeclaration* QXmlStreamNamespaceDeclaration_new2(struct miqt_string prefix, struct miqt_string namespaceUri); bool QXmlStreamNamespaceDeclaration_OperatorEqual(const QXmlStreamNamespaceDeclaration* self, QXmlStreamNamespaceDeclaration* other); bool QXmlStreamNamespaceDeclaration_OperatorNotEqual(const QXmlStreamNamespaceDeclaration* self, QXmlStreamNamespaceDeclaration* other); -void QXmlStreamNamespaceDeclaration_Delete(QXmlStreamNamespaceDeclaration* self, bool isSubclass); +void QXmlStreamNamespaceDeclaration_Delete(QXmlStreamNamespaceDeclaration* self); QXmlStreamNotationDeclaration* QXmlStreamNotationDeclaration_new(); bool QXmlStreamNotationDeclaration_OperatorEqual(const QXmlStreamNotationDeclaration* self, QXmlStreamNotationDeclaration* other); bool QXmlStreamNotationDeclaration_OperatorNotEqual(const QXmlStreamNotationDeclaration* self, QXmlStreamNotationDeclaration* other); -void QXmlStreamNotationDeclaration_Delete(QXmlStreamNotationDeclaration* self, bool isSubclass); +void QXmlStreamNotationDeclaration_Delete(QXmlStreamNotationDeclaration* self); QXmlStreamEntityDeclaration* QXmlStreamEntityDeclaration_new(); bool QXmlStreamEntityDeclaration_OperatorEqual(const QXmlStreamEntityDeclaration* self, QXmlStreamEntityDeclaration* other); bool QXmlStreamEntityDeclaration_OperatorNotEqual(const QXmlStreamEntityDeclaration* self, QXmlStreamEntityDeclaration* other); -void QXmlStreamEntityDeclaration_Delete(QXmlStreamEntityDeclaration* self, bool isSubclass); +void QXmlStreamEntityDeclaration_Delete(QXmlStreamEntityDeclaration* self); struct miqt_string QXmlStreamEntityResolver_ResolveEntity(QXmlStreamEntityResolver* self, struct miqt_string publicId, struct miqt_string systemId); struct miqt_string QXmlStreamEntityResolver_ResolveUndeclaredEntity(QXmlStreamEntityResolver* self, struct miqt_string name); -void QXmlStreamEntityResolver_Delete(QXmlStreamEntityResolver* self, bool isSubclass); +void QXmlStreamEntityResolver_Delete(QXmlStreamEntityResolver* self); QXmlStreamReader* QXmlStreamReader_new(); QXmlStreamReader* QXmlStreamReader_new2(QIODevice* device); @@ -114,7 +114,7 @@ void QXmlStreamReader_SetEntityResolver(QXmlStreamReader* self, QXmlStreamEntity QXmlStreamEntityResolver* QXmlStreamReader_EntityResolver(const QXmlStreamReader* self); struct miqt_string QXmlStreamReader_ReadElementText1(QXmlStreamReader* self, int behaviour); void QXmlStreamReader_RaiseError1(QXmlStreamReader* self, struct miqt_string message); -void QXmlStreamReader_Delete(QXmlStreamReader* self, bool isSubclass); +void QXmlStreamReader_Delete(QXmlStreamReader* self); QXmlStreamWriter* QXmlStreamWriter_new(); QXmlStreamWriter* QXmlStreamWriter_new2(QIODevice* device); @@ -150,7 +150,7 @@ void QXmlStreamWriter_WriteCurrentToken(QXmlStreamWriter* self, QXmlStreamReader bool QXmlStreamWriter_HasError(const QXmlStreamWriter* self); void QXmlStreamWriter_WriteNamespace2(QXmlStreamWriter* self, struct miqt_string namespaceUri, struct miqt_string prefix); void QXmlStreamWriter_WriteProcessingInstruction2(QXmlStreamWriter* self, struct miqt_string target, struct miqt_string data); -void QXmlStreamWriter_Delete(QXmlStreamWriter* self, bool isSubclass); +void QXmlStreamWriter_Delete(QXmlStreamWriter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qaudiobuffer.cpp b/qt6/multimedia/gen_qaudiobuffer.cpp index 318d29ef..06aa99ad 100644 --- a/qt6/multimedia/gen_qaudiobuffer.cpp +++ b/qt6/multimedia/gen_qaudiobuffer.cpp @@ -83,11 +83,7 @@ long long QAudioBuffer_StartTime(const QAudioBuffer* self) { return static_cast(_ret); } -void QAudioBuffer_Delete(QAudioBuffer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioBuffer_Delete(QAudioBuffer* self) { + delete self; } diff --git a/qt6/multimedia/gen_qaudiobuffer.go b/qt6/multimedia/gen_qaudiobuffer.go index d93a69fe..02e8a735 100644 --- a/qt6/multimedia/gen_qaudiobuffer.go +++ b/qt6/multimedia/gen_qaudiobuffer.go @@ -144,7 +144,7 @@ func (this *QAudioBuffer) StartTime() int64 { // Delete this object from C++ memory. func (this *QAudioBuffer) Delete() { - C.QAudioBuffer_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioBuffer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qaudiobuffer.h b/qt6/multimedia/gen_qaudiobuffer.h index 7e7b6cd4..87abd332 100644 --- a/qt6/multimedia/gen_qaudiobuffer.h +++ b/qt6/multimedia/gen_qaudiobuffer.h @@ -38,7 +38,7 @@ ptrdiff_t QAudioBuffer_SampleCount(const QAudioBuffer* self); ptrdiff_t QAudioBuffer_ByteCount(const QAudioBuffer* self); long long QAudioBuffer_Duration(const QAudioBuffer* self); long long QAudioBuffer_StartTime(const QAudioBuffer* self); -void QAudioBuffer_Delete(QAudioBuffer* self, bool isSubclass); +void QAudioBuffer_Delete(QAudioBuffer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qaudiodecoder.cpp b/qt6/multimedia/gen_qaudiodecoder.cpp index d6c9af6b..47f52f1b 100644 --- a/qt6/multimedia/gen_qaudiodecoder.cpp +++ b/qt6/multimedia/gen_qaudiodecoder.cpp @@ -39,13 +39,13 @@ void miqt_exec_callback_QAudioDecoder_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQAudioDecoder : public virtual QAudioDecoder { +class MiqtVirtualQAudioDecoder final : public QAudioDecoder { public: MiqtVirtualQAudioDecoder(): QAudioDecoder() {}; MiqtVirtualQAudioDecoder(QObject* parent): QAudioDecoder(parent) {}; - virtual ~MiqtVirtualQAudioDecoder() = default; + virtual ~MiqtVirtualQAudioDecoder() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -504,11 +504,7 @@ void QAudioDecoder_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQAudioDecoder*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioDecoder_Delete(QAudioDecoder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioDecoder_Delete(QAudioDecoder* self) { + delete self; } diff --git a/qt6/multimedia/gen_qaudiodecoder.go b/qt6/multimedia/gen_qaudiodecoder.go index cc19a8b1..7c54e511 100644 --- a/qt6/multimedia/gen_qaudiodecoder.go +++ b/qt6/multimedia/gen_qaudiodecoder.go @@ -553,7 +553,7 @@ func miqt_exec_callback_QAudioDecoder_DisconnectNotify(self *C.QAudioDecoder, cb // Delete this object from C++ memory. func (this *QAudioDecoder) Delete() { - C.QAudioDecoder_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioDecoder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qaudiodecoder.h b/qt6/multimedia/gen_qaudiodecoder.h index 3df9c977..196e178c 100644 --- a/qt6/multimedia/gen_qaudiodecoder.h +++ b/qt6/multimedia/gen_qaudiodecoder.h @@ -96,7 +96,7 @@ void QAudioDecoder_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAudioDecoder_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioDecoder_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioDecoder_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioDecoder_Delete(QAudioDecoder* self, bool isSubclass); +void QAudioDecoder_Delete(QAudioDecoder* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qaudiodevice.cpp b/qt6/multimedia/gen_qaudiodevice.cpp index e6b083cd..8afa2678 100644 --- a/qt6/multimedia/gen_qaudiodevice.cpp +++ b/qt6/multimedia/gen_qaudiodevice.cpp @@ -116,11 +116,7 @@ uint32_t QAudioDevice_ChannelConfiguration(const QAudioDevice* self) { return static_cast(_ret); } -void QAudioDevice_Delete(QAudioDevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioDevice_Delete(QAudioDevice* self) { + delete self; } diff --git a/qt6/multimedia/gen_qaudiodevice.go b/qt6/multimedia/gen_qaudiodevice.go index 3118dbfd..35c86981 100644 --- a/qt6/multimedia/gen_qaudiodevice.go +++ b/qt6/multimedia/gen_qaudiodevice.go @@ -154,7 +154,7 @@ func (this *QAudioDevice) ChannelConfiguration() QAudioFormat__ChannelConfig { // Delete this object from C++ memory. func (this *QAudioDevice) Delete() { - C.QAudioDevice_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioDevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qaudiodevice.h b/qt6/multimedia/gen_qaudiodevice.h index b880f1c2..9d165e2a 100644 --- a/qt6/multimedia/gen_qaudiodevice.h +++ b/qt6/multimedia/gen_qaudiodevice.h @@ -41,7 +41,7 @@ int QAudioDevice_MinimumChannelCount(const QAudioDevice* self); int QAudioDevice_MaximumChannelCount(const QAudioDevice* self); struct miqt_array /* of uint16_t */ QAudioDevice_SupportedSampleFormats(const QAudioDevice* self); uint32_t QAudioDevice_ChannelConfiguration(const QAudioDevice* self); -void QAudioDevice_Delete(QAudioDevice* self, bool isSubclass); +void QAudioDevice_Delete(QAudioDevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qaudioformat.cpp b/qt6/multimedia/gen_qaudioformat.cpp index 51e2e469..86dcf2a8 100644 --- a/qt6/multimedia/gen_qaudioformat.cpp +++ b/qt6/multimedia/gen_qaudioformat.cpp @@ -107,11 +107,7 @@ uint32_t QAudioFormat_DefaultChannelConfigForChannelCount(int channelCount) { return static_cast(_ret); } -void QAudioFormat_Delete(QAudioFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioFormat_Delete(QAudioFormat* self) { + delete self; } diff --git a/qt6/multimedia/gen_qaudioformat.go b/qt6/multimedia/gen_qaudioformat.go index 4c680364..a3bf6b08 100644 --- a/qt6/multimedia/gen_qaudioformat.go +++ b/qt6/multimedia/gen_qaudioformat.go @@ -200,7 +200,7 @@ func QAudioFormat_DefaultChannelConfigForChannelCount(channelCount int) QAudioFo // Delete this object from C++ memory. func (this *QAudioFormat) Delete() { - C.QAudioFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qaudioformat.h b/qt6/multimedia/gen_qaudioformat.h index 133da322..6a480fe7 100644 --- a/qt6/multimedia/gen_qaudioformat.h +++ b/qt6/multimedia/gen_qaudioformat.h @@ -42,7 +42,7 @@ int QAudioFormat_BytesPerFrame(const QAudioFormat* self); int QAudioFormat_BytesPerSample(const QAudioFormat* self); float QAudioFormat_NormalizedSampleValue(const QAudioFormat* self, const void* sample); uint32_t QAudioFormat_DefaultChannelConfigForChannelCount(int channelCount); -void QAudioFormat_Delete(QAudioFormat* self, bool isSubclass); +void QAudioFormat_Delete(QAudioFormat* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qaudioinput.cpp b/qt6/multimedia/gen_qaudioinput.cpp index e62c34d7..d08b05f6 100644 --- a/qt6/multimedia/gen_qaudioinput.cpp +++ b/qt6/multimedia/gen_qaudioinput.cpp @@ -30,7 +30,7 @@ void miqt_exec_callback_QAudioInput_DisconnectNotify(void*, intptr_t, QMetaMetho } /* extern C */ #endif -class MiqtVirtualQAudioInput : public virtual QAudioInput { +class MiqtVirtualQAudioInput final : public QAudioInput { public: MiqtVirtualQAudioInput(): QAudioInput() {}; @@ -38,7 +38,7 @@ public: MiqtVirtualQAudioInput(QObject* parent): QAudioInput(parent) {}; MiqtVirtualQAudioInput(const QAudioDevice& deviceInfo, QObject* parent): QAudioInput(deviceInfo, parent) {}; - virtual ~MiqtVirtualQAudioInput() = default; + virtual ~MiqtVirtualQAudioInput() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -386,11 +386,7 @@ void QAudioInput_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQAudioInput*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioInput_Delete(QAudioInput* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioInput_Delete(QAudioInput* self) { + delete self; } diff --git a/qt6/multimedia/gen_qaudioinput.go b/qt6/multimedia/gen_qaudioinput.go index e4799622..01fd8ba8 100644 --- a/qt6/multimedia/gen_qaudioinput.go +++ b/qt6/multimedia/gen_qaudioinput.go @@ -398,7 +398,7 @@ func miqt_exec_callback_QAudioInput_DisconnectNotify(self *C.QAudioInput, cb C.i // Delete this object from C++ memory. func (this *QAudioInput) Delete() { - C.QAudioInput_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioInput_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qaudioinput.h b/qt6/multimedia/gen_qaudioinput.h index 3de10029..84d71949 100644 --- a/qt6/multimedia/gen_qaudioinput.h +++ b/qt6/multimedia/gen_qaudioinput.h @@ -70,7 +70,7 @@ void QAudioInput_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAudioInput_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioInput_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioInput_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioInput_Delete(QAudioInput* self, bool isSubclass); +void QAudioInput_Delete(QAudioInput* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qaudiooutput.cpp b/qt6/multimedia/gen_qaudiooutput.cpp index 26f87df9..ef1344b3 100644 --- a/qt6/multimedia/gen_qaudiooutput.cpp +++ b/qt6/multimedia/gen_qaudiooutput.cpp @@ -30,7 +30,7 @@ void miqt_exec_callback_QAudioOutput_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQAudioOutput : public virtual QAudioOutput { +class MiqtVirtualQAudioOutput final : public QAudioOutput { public: MiqtVirtualQAudioOutput(): QAudioOutput() {}; @@ -38,7 +38,7 @@ public: MiqtVirtualQAudioOutput(QObject* parent): QAudioOutput(parent) {}; MiqtVirtualQAudioOutput(const QAudioDevice& device, QObject* parent): QAudioOutput(device, parent) {}; - virtual ~MiqtVirtualQAudioOutput() = default; + virtual ~MiqtVirtualQAudioOutput() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -386,11 +386,7 @@ void QAudioOutput_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQAudioOutput*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioOutput_Delete(QAudioOutput* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioOutput_Delete(QAudioOutput* self) { + delete self; } diff --git a/qt6/multimedia/gen_qaudiooutput.go b/qt6/multimedia/gen_qaudiooutput.go index 1cf6f8be..98a54a09 100644 --- a/qt6/multimedia/gen_qaudiooutput.go +++ b/qt6/multimedia/gen_qaudiooutput.go @@ -398,7 +398,7 @@ func miqt_exec_callback_QAudioOutput_DisconnectNotify(self *C.QAudioOutput, cb C // Delete this object from C++ memory. func (this *QAudioOutput) Delete() { - C.QAudioOutput_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioOutput_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qaudiooutput.h b/qt6/multimedia/gen_qaudiooutput.h index e514902f..013d0ecd 100644 --- a/qt6/multimedia/gen_qaudiooutput.h +++ b/qt6/multimedia/gen_qaudiooutput.h @@ -70,7 +70,7 @@ void QAudioOutput_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAudioOutput_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioOutput_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioOutput_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioOutput_Delete(QAudioOutput* self, bool isSubclass); +void QAudioOutput_Delete(QAudioOutput* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qaudiosink.cpp b/qt6/multimedia/gen_qaudiosink.cpp index e127d0c2..14ac3d9e 100644 --- a/qt6/multimedia/gen_qaudiosink.cpp +++ b/qt6/multimedia/gen_qaudiosink.cpp @@ -30,7 +30,7 @@ void miqt_exec_callback_QAudioSink_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQAudioSink : public virtual QAudioSink { +class MiqtVirtualQAudioSink final : public QAudioSink { public: MiqtVirtualQAudioSink(): QAudioSink() {}; @@ -40,7 +40,7 @@ public: MiqtVirtualQAudioSink(const QAudioDevice& audioDeviceInfo, const QAudioFormat& format): QAudioSink(audioDeviceInfo, format) {}; MiqtVirtualQAudioSink(const QAudioDevice& audioDeviceInfo, const QAudioFormat& format, QObject* parent): QAudioSink(audioDeviceInfo, format, parent) {}; - virtual ~MiqtVirtualQAudioSink() = default; + virtual ~MiqtVirtualQAudioSink() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -427,11 +427,7 @@ void QAudioSink_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQAudioSink*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioSink_Delete(QAudioSink* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioSink_Delete(QAudioSink* self) { + delete self; } diff --git a/qt6/multimedia/gen_qaudiosink.go b/qt6/multimedia/gen_qaudiosink.go index 6116da1c..0d05d1a6 100644 --- a/qt6/multimedia/gen_qaudiosink.go +++ b/qt6/multimedia/gen_qaudiosink.go @@ -421,7 +421,7 @@ func miqt_exec_callback_QAudioSink_DisconnectNotify(self *C.QAudioSink, cb C.int // Delete this object from C++ memory. func (this *QAudioSink) Delete() { - C.QAudioSink_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioSink_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qaudiosink.h b/qt6/multimedia/gen_qaudiosink.h index a0029638..dc9f9bc4 100644 --- a/qt6/multimedia/gen_qaudiosink.h +++ b/qt6/multimedia/gen_qaudiosink.h @@ -83,7 +83,7 @@ void QAudioSink_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAudioSink_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioSink_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioSink_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioSink_Delete(QAudioSink* self, bool isSubclass); +void QAudioSink_Delete(QAudioSink* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qaudiosource.cpp b/qt6/multimedia/gen_qaudiosource.cpp index 18c49db6..dd315b64 100644 --- a/qt6/multimedia/gen_qaudiosource.cpp +++ b/qt6/multimedia/gen_qaudiosource.cpp @@ -30,7 +30,7 @@ void miqt_exec_callback_QAudioSource_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQAudioSource : public virtual QAudioSource { +class MiqtVirtualQAudioSource final : public QAudioSource { public: MiqtVirtualQAudioSource(): QAudioSource() {}; @@ -40,7 +40,7 @@ public: MiqtVirtualQAudioSource(const QAudioDevice& audioDeviceInfo, const QAudioFormat& format): QAudioSource(audioDeviceInfo, format) {}; MiqtVirtualQAudioSource(const QAudioDevice& audioDeviceInfo, const QAudioFormat& format, QObject* parent): QAudioSource(audioDeviceInfo, format, parent) {}; - virtual ~MiqtVirtualQAudioSource() = default; + virtual ~MiqtVirtualQAudioSource() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -427,11 +427,7 @@ void QAudioSource_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQAudioSource*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioSource_Delete(QAudioSource* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioSource_Delete(QAudioSource* self) { + delete self; } diff --git a/qt6/multimedia/gen_qaudiosource.go b/qt6/multimedia/gen_qaudiosource.go index 1fefae31..0c31cf18 100644 --- a/qt6/multimedia/gen_qaudiosource.go +++ b/qt6/multimedia/gen_qaudiosource.go @@ -421,7 +421,7 @@ func miqt_exec_callback_QAudioSource_DisconnectNotify(self *C.QAudioSource, cb C // Delete this object from C++ memory. func (this *QAudioSource) Delete() { - C.QAudioSource_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioSource_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qaudiosource.h b/qt6/multimedia/gen_qaudiosource.h index e8a8d767..d55eef32 100644 --- a/qt6/multimedia/gen_qaudiosource.h +++ b/qt6/multimedia/gen_qaudiosource.h @@ -83,7 +83,7 @@ void QAudioSource_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAudioSource_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioSource_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioSource_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioSource_Delete(QAudioSource* self, bool isSubclass); +void QAudioSource_Delete(QAudioSource* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qcamera.cpp b/qt6/multimedia/gen_qcamera.cpp index 0bca0a03..6a049445 100644 --- a/qt6/multimedia/gen_qcamera.cpp +++ b/qt6/multimedia/gen_qcamera.cpp @@ -58,7 +58,7 @@ void miqt_exec_callback_QCamera_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQCamera : public virtual QCamera { +class MiqtVirtualQCamera final : public QCamera { public: MiqtVirtualQCamera(): QCamera() {}; @@ -68,7 +68,7 @@ public: MiqtVirtualQCamera(const QCameraDevice& cameraDevice, QObject* parent): QCamera(cameraDevice, parent) {}; MiqtVirtualQCamera(QCameraDevice::Position position, QObject* parent): QCamera(position, parent) {}; - virtual ~MiqtVirtualQCamera() = default; + virtual ~MiqtVirtualQCamera() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -904,11 +904,7 @@ void QCamera_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQCamera*)(self) )->virtualbase_DisconnectNotify(signal); } -void QCamera_Delete(QCamera* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCamera_Delete(QCamera* self) { + delete self; } diff --git a/qt6/multimedia/gen_qcamera.go b/qt6/multimedia/gen_qcamera.go index 72f60cf9..46d6356f 100644 --- a/qt6/multimedia/gen_qcamera.go +++ b/qt6/multimedia/gen_qcamera.go @@ -1164,7 +1164,7 @@ func miqt_exec_callback_QCamera_DisconnectNotify(self *C.QCamera, cb C.intptr_t, // Delete this object from C++ memory. func (this *QCamera) Delete() { - C.QCamera_Delete(this.h, C.bool(this.isSubclass)) + C.QCamera_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qcamera.h b/qt6/multimedia/gen_qcamera.h index f4d5a8e2..1cf4e68e 100644 --- a/qt6/multimedia/gen_qcamera.h +++ b/qt6/multimedia/gen_qcamera.h @@ -177,7 +177,7 @@ void QCamera_override_virtual_ConnectNotify(void* self, intptr_t slot); void QCamera_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QCamera_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QCamera_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QCamera_Delete(QCamera* self, bool isSubclass); +void QCamera_Delete(QCamera* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qcameradevice.cpp b/qt6/multimedia/gen_qcameradevice.cpp index 1f4e4f16..9717b07f 100644 --- a/qt6/multimedia/gen_qcameradevice.cpp +++ b/qt6/multimedia/gen_qcameradevice.cpp @@ -58,12 +58,8 @@ bool QCameraFormat_OperatorNotEqual(const QCameraFormat* self, QCameraFormat* ot return (*self != *other); } -void QCameraFormat_Delete(QCameraFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraFormat_Delete(QCameraFormat* self) { + delete self; } QCameraDevice* QCameraDevice_new() { @@ -145,11 +141,7 @@ struct miqt_array /* of QCameraFormat* */ QCameraDevice_VideoFormats(const QCam return _out; } -void QCameraDevice_Delete(QCameraDevice* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QCameraDevice_Delete(QCameraDevice* self) { + delete self; } diff --git a/qt6/multimedia/gen_qcameradevice.go b/qt6/multimedia/gen_qcameradevice.go index ee816ff5..19b7e1d5 100644 --- a/qt6/multimedia/gen_qcameradevice.go +++ b/qt6/multimedia/gen_qcameradevice.go @@ -107,7 +107,7 @@ func (this *QCameraFormat) OperatorNotEqual(other *QCameraFormat) bool { // Delete this object from C++ memory. func (this *QCameraFormat) Delete() { - C.QCameraFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -232,7 +232,7 @@ func (this *QCameraDevice) VideoFormats() []QCameraFormat { // Delete this object from C++ memory. func (this *QCameraDevice) Delete() { - C.QCameraDevice_Delete(this.h, C.bool(this.isSubclass)) + C.QCameraDevice_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qcameradevice.h b/qt6/multimedia/gen_qcameradevice.h index 5342822a..a2f07353 100644 --- a/qt6/multimedia/gen_qcameradevice.h +++ b/qt6/multimedia/gen_qcameradevice.h @@ -34,7 +34,7 @@ float QCameraFormat_MaxFrameRate(const QCameraFormat* self); bool QCameraFormat_IsNull(const QCameraFormat* self); bool QCameraFormat_OperatorEqual(const QCameraFormat* self, QCameraFormat* other); bool QCameraFormat_OperatorNotEqual(const QCameraFormat* self, QCameraFormat* other); -void QCameraFormat_Delete(QCameraFormat* self, bool isSubclass); +void QCameraFormat_Delete(QCameraFormat* self); QCameraDevice* QCameraDevice_new(); QCameraDevice* QCameraDevice_new2(QCameraDevice* other); @@ -48,7 +48,7 @@ bool QCameraDevice_IsDefault(const QCameraDevice* self); int QCameraDevice_Position(const QCameraDevice* self); struct miqt_array /* of QSize* */ QCameraDevice_PhotoResolutions(const QCameraDevice* self); struct miqt_array /* of QCameraFormat* */ QCameraDevice_VideoFormats(const QCameraDevice* self); -void QCameraDevice_Delete(QCameraDevice* self, bool isSubclass); +void QCameraDevice_Delete(QCameraDevice* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qgraphicsvideoitem.cpp b/qt6/multimedia/gen_qgraphicsvideoitem.cpp index 7000c1e5..67b4ce06 100644 --- a/qt6/multimedia/gen_qgraphicsvideoitem.cpp +++ b/qt6/multimedia/gen_qgraphicsvideoitem.cpp @@ -34,13 +34,13 @@ bool miqt_exec_callback_QGraphicsVideoItem_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQGraphicsVideoItem : public virtual QGraphicsVideoItem { +class MiqtVirtualQGraphicsVideoItem final : public QGraphicsVideoItem { public: MiqtVirtualQGraphicsVideoItem(): QGraphicsVideoItem() {}; MiqtVirtualQGraphicsVideoItem(QGraphicsItem* parent): QGraphicsVideoItem(parent) {}; - virtual ~MiqtVirtualQGraphicsVideoItem() = default; + virtual ~MiqtVirtualQGraphicsVideoItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -347,11 +347,7 @@ bool QGraphicsVideoItem_virtualbase_Event(void* self, QEvent* ev) { return ( (MiqtVirtualQGraphicsVideoItem*)(self) )->virtualbase_Event(ev); } -void QGraphicsVideoItem_Delete(QGraphicsVideoItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsVideoItem_Delete(QGraphicsVideoItem* self) { + delete self; } diff --git a/qt6/multimedia/gen_qgraphicsvideoitem.go b/qt6/multimedia/gen_qgraphicsvideoitem.go index 90091248..077f68f1 100644 --- a/qt6/multimedia/gen_qgraphicsvideoitem.go +++ b/qt6/multimedia/gen_qgraphicsvideoitem.go @@ -357,7 +357,7 @@ func miqt_exec_callback_QGraphicsVideoItem_Event(self *C.QGraphicsVideoItem, cb // Delete this object from C++ memory. func (this *QGraphicsVideoItem) Delete() { - C.QGraphicsVideoItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsVideoItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qgraphicsvideoitem.h b/qt6/multimedia/gen_qgraphicsvideoitem.h index 7bb0432f..fd908a62 100644 --- a/qt6/multimedia/gen_qgraphicsvideoitem.h +++ b/qt6/multimedia/gen_qgraphicsvideoitem.h @@ -83,7 +83,7 @@ void QGraphicsVideoItem_override_virtual_ItemChange(void* self, intptr_t slot); QVariant* QGraphicsVideoItem_virtualbase_ItemChange(void* self, int change, QVariant* value); void QGraphicsVideoItem_override_virtual_Event(void* self, intptr_t slot); bool QGraphicsVideoItem_virtualbase_Event(void* self, QEvent* ev); -void QGraphicsVideoItem_Delete(QGraphicsVideoItem* self, bool isSubclass); +void QGraphicsVideoItem_Delete(QGraphicsVideoItem* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qimagecapture.cpp b/qt6/multimedia/gen_qimagecapture.cpp index be770d8d..f5254eca 100644 --- a/qt6/multimedia/gen_qimagecapture.cpp +++ b/qt6/multimedia/gen_qimagecapture.cpp @@ -44,13 +44,13 @@ void miqt_exec_callback_QImageCapture_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQImageCapture : public virtual QImageCapture { +class MiqtVirtualQImageCapture final : public QImageCapture { public: MiqtVirtualQImageCapture(): QImageCapture() {}; MiqtVirtualQImageCapture(QObject* parent): QImageCapture(parent) {}; - virtual ~MiqtVirtualQImageCapture() = default; + virtual ~MiqtVirtualQImageCapture() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -609,11 +609,7 @@ void QImageCapture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQImageCapture*)(self) )->virtualbase_DisconnectNotify(signal); } -void QImageCapture_Delete(QImageCapture* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QImageCapture_Delete(QImageCapture* self) { + delete self; } diff --git a/qt6/multimedia/gen_qimagecapture.go b/qt6/multimedia/gen_qimagecapture.go index ff5ce6db..0be1023a 100644 --- a/qt6/multimedia/gen_qimagecapture.go +++ b/qt6/multimedia/gen_qimagecapture.go @@ -689,7 +689,7 @@ func miqt_exec_callback_QImageCapture_DisconnectNotify(self *C.QImageCapture, cb // Delete this object from C++ memory. func (this *QImageCapture) Delete() { - C.QImageCapture_Delete(this.h, C.bool(this.isSubclass)) + C.QImageCapture_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qimagecapture.h b/qt6/multimedia/gen_qimagecapture.h index 9a371200..188766c9 100644 --- a/qt6/multimedia/gen_qimagecapture.h +++ b/qt6/multimedia/gen_qimagecapture.h @@ -109,7 +109,7 @@ void QImageCapture_override_virtual_ConnectNotify(void* self, intptr_t slot); void QImageCapture_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QImageCapture_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QImageCapture_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QImageCapture_Delete(QImageCapture* self, bool isSubclass); +void QImageCapture_Delete(QImageCapture* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qmediacapturesession.cpp b/qt6/multimedia/gen_qmediacapturesession.cpp index 733bc536..598b565d 100644 --- a/qt6/multimedia/gen_qmediacapturesession.cpp +++ b/qt6/multimedia/gen_qmediacapturesession.cpp @@ -38,13 +38,13 @@ void miqt_exec_callback_QMediaCaptureSession_DisconnectNotify(void*, intptr_t, Q } /* extern C */ #endif -class MiqtVirtualQMediaCaptureSession : public virtual QMediaCaptureSession { +class MiqtVirtualQMediaCaptureSession final : public QMediaCaptureSession { public: MiqtVirtualQMediaCaptureSession(): QMediaCaptureSession() {}; MiqtVirtualQMediaCaptureSession(QObject* parent): QMediaCaptureSession(parent) {}; - virtual ~MiqtVirtualQMediaCaptureSession() = default; + virtual ~MiqtVirtualQMediaCaptureSession() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -444,11 +444,7 @@ void QMediaCaptureSession_virtualbase_DisconnectNotify(void* self, QMetaMethod* ( (MiqtVirtualQMediaCaptureSession*)(self) )->virtualbase_DisconnectNotify(signal); } -void QMediaCaptureSession_Delete(QMediaCaptureSession* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaCaptureSession_Delete(QMediaCaptureSession* self) { + delete self; } diff --git a/qt6/multimedia/gen_qmediacapturesession.go b/qt6/multimedia/gen_qmediacapturesession.go index f9878588..2434fe69 100644 --- a/qt6/multimedia/gen_qmediacapturesession.go +++ b/qt6/multimedia/gen_qmediacapturesession.go @@ -457,7 +457,7 @@ func miqt_exec_callback_QMediaCaptureSession_DisconnectNotify(self *C.QMediaCapt // Delete this object from C++ memory. func (this *QMediaCaptureSession) Delete() { - C.QMediaCaptureSession_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaCaptureSession_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qmediacapturesession.h b/qt6/multimedia/gen_qmediacapturesession.h index 8fedf466..91859c97 100644 --- a/qt6/multimedia/gen_qmediacapturesession.h +++ b/qt6/multimedia/gen_qmediacapturesession.h @@ -92,7 +92,7 @@ void QMediaCaptureSession_override_virtual_ConnectNotify(void* self, intptr_t sl void QMediaCaptureSession_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QMediaCaptureSession_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QMediaCaptureSession_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QMediaCaptureSession_Delete(QMediaCaptureSession* self, bool isSubclass); +void QMediaCaptureSession_Delete(QMediaCaptureSession* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qmediadevices.cpp b/qt6/multimedia/gen_qmediadevices.cpp index 8431af74..5918d757 100644 --- a/qt6/multimedia/gen_qmediadevices.cpp +++ b/qt6/multimedia/gen_qmediadevices.cpp @@ -32,13 +32,13 @@ void miqt_exec_callback_QMediaDevices_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQMediaDevices : public virtual QMediaDevices { +class MiqtVirtualQMediaDevices final : public QMediaDevices { public: MiqtVirtualQMediaDevices(): QMediaDevices() {}; MiqtVirtualQMediaDevices(QObject* parent): QMediaDevices(parent) {}; - virtual ~MiqtVirtualQMediaDevices() = default; + virtual ~MiqtVirtualQMediaDevices() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -403,11 +403,7 @@ void QMediaDevices_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQMediaDevices*)(self) )->virtualbase_DisconnectNotify(signal); } -void QMediaDevices_Delete(QMediaDevices* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaDevices_Delete(QMediaDevices* self) { + delete self; } diff --git a/qt6/multimedia/gen_qmediadevices.go b/qt6/multimedia/gen_qmediadevices.go index bd8edfd2..49c37196 100644 --- a/qt6/multimedia/gen_qmediadevices.go +++ b/qt6/multimedia/gen_qmediadevices.go @@ -404,7 +404,7 @@ func miqt_exec_callback_QMediaDevices_DisconnectNotify(self *C.QMediaDevices, cb // Delete this object from C++ memory. func (this *QMediaDevices) Delete() { - C.QMediaDevices_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaDevices_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qmediadevices.h b/qt6/multimedia/gen_qmediadevices.h index 6e303870..c919551d 100644 --- a/qt6/multimedia/gen_qmediadevices.h +++ b/qt6/multimedia/gen_qmediadevices.h @@ -70,7 +70,7 @@ void QMediaDevices_override_virtual_ConnectNotify(void* self, intptr_t slot); void QMediaDevices_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QMediaDevices_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QMediaDevices_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QMediaDevices_Delete(QMediaDevices* self, bool isSubclass); +void QMediaDevices_Delete(QMediaDevices* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qmediaformat.cpp b/qt6/multimedia/gen_qmediaformat.cpp index a3bb5179..cc6faf49 100644 --- a/qt6/multimedia/gen_qmediaformat.cpp +++ b/qt6/multimedia/gen_qmediaformat.cpp @@ -190,11 +190,7 @@ void QMediaFormat_ResolveForEncoding(QMediaFormat* self, int flags) { self->resolveForEncoding(static_cast(flags)); } -void QMediaFormat_Delete(QMediaFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaFormat_Delete(QMediaFormat* self) { + delete self; } diff --git a/qt6/multimedia/gen_qmediaformat.go b/qt6/multimedia/gen_qmediaformat.go index 750f4d80..d5bf428a 100644 --- a/qt6/multimedia/gen_qmediaformat.go +++ b/qt6/multimedia/gen_qmediaformat.go @@ -269,7 +269,7 @@ func (this *QMediaFormat) ResolveForEncoding(flags QMediaFormat__ResolveFlags) { // Delete this object from C++ memory. func (this *QMediaFormat) Delete() { - C.QMediaFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qmediaformat.h b/qt6/multimedia/gen_qmediaformat.h index a18897be..12636c32 100644 --- a/qt6/multimedia/gen_qmediaformat.h +++ b/qt6/multimedia/gen_qmediaformat.h @@ -47,7 +47,7 @@ struct miqt_string QMediaFormat_VideoCodecDescription(int codec); bool QMediaFormat_OperatorEqual(const QMediaFormat* self, QMediaFormat* other); bool QMediaFormat_OperatorNotEqual(const QMediaFormat* self, QMediaFormat* other); void QMediaFormat_ResolveForEncoding(QMediaFormat* self, int flags); -void QMediaFormat_Delete(QMediaFormat* self, bool isSubclass); +void QMediaFormat_Delete(QMediaFormat* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qmediametadata.cpp b/qt6/multimedia/gen_qmediametadata.cpp index c0d6bacf..4c9ad8b2 100644 --- a/qt6/multimedia/gen_qmediametadata.cpp +++ b/qt6/multimedia/gen_qmediametadata.cpp @@ -85,11 +85,7 @@ struct miqt_string QMediaMetaData_MetaDataKeyToString(int k) { return _ms; } -void QMediaMetaData_Delete(QMediaMetaData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaMetaData_Delete(QMediaMetaData* self) { + delete self; } diff --git a/qt6/multimedia/gen_qmediametadata.go b/qt6/multimedia/gen_qmediametadata.go index 0758912c..51d668ef 100644 --- a/qt6/multimedia/gen_qmediametadata.go +++ b/qt6/multimedia/gen_qmediametadata.go @@ -148,7 +148,7 @@ func QMediaMetaData_MetaDataKeyToString(k QMediaMetaData__Key) string { // Delete this object from C++ memory. func (this *QMediaMetaData) Delete() { - C.QMediaMetaData_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaMetaData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qmediametadata.h b/qt6/multimedia/gen_qmediametadata.h index ef2b8217..51e00c8c 100644 --- a/qt6/multimedia/gen_qmediametadata.h +++ b/qt6/multimedia/gen_qmediametadata.h @@ -33,7 +33,7 @@ void QMediaMetaData_Clear(QMediaMetaData* self); bool QMediaMetaData_IsEmpty(const QMediaMetaData* self); struct miqt_string QMediaMetaData_StringValue(const QMediaMetaData* self, int k); struct miqt_string QMediaMetaData_MetaDataKeyToString(int k); -void QMediaMetaData_Delete(QMediaMetaData* self, bool isSubclass); +void QMediaMetaData_Delete(QMediaMetaData* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qmediaplayer.cpp b/qt6/multimedia/gen_qmediaplayer.cpp index 3c5d1888..161abe15 100644 --- a/qt6/multimedia/gen_qmediaplayer.cpp +++ b/qt6/multimedia/gen_qmediaplayer.cpp @@ -51,13 +51,13 @@ void miqt_exec_callback_QMediaPlayer_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQMediaPlayer : public virtual QMediaPlayer { +class MiqtVirtualQMediaPlayer final : public QMediaPlayer { public: MiqtVirtualQMediaPlayer(): QMediaPlayer() {}; MiqtVirtualQMediaPlayer(QObject* parent): QMediaPlayer(parent) {}; - virtual ~MiqtVirtualQMediaPlayer() = default; + virtual ~MiqtVirtualQMediaPlayer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -753,11 +753,7 @@ void QMediaPlayer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQMediaPlayer*)(self) )->virtualbase_DisconnectNotify(signal); } -void QMediaPlayer_Delete(QMediaPlayer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaPlayer_Delete(QMediaPlayer* self) { + delete self; } diff --git a/qt6/multimedia/gen_qmediaplayer.go b/qt6/multimedia/gen_qmediaplayer.go index 9dc18005..e829572e 100644 --- a/qt6/multimedia/gen_qmediaplayer.go +++ b/qt6/multimedia/gen_qmediaplayer.go @@ -882,7 +882,7 @@ func miqt_exec_callback_QMediaPlayer_DisconnectNotify(self *C.QMediaPlayer, cb C // Delete this object from C++ memory. func (this *QMediaPlayer) Delete() { - C.QMediaPlayer_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaPlayer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qmediaplayer.h b/qt6/multimedia/gen_qmediaplayer.h index e93af88b..2d549a88 100644 --- a/qt6/multimedia/gen_qmediaplayer.h +++ b/qt6/multimedia/gen_qmediaplayer.h @@ -143,7 +143,7 @@ void QMediaPlayer_override_virtual_ConnectNotify(void* self, intptr_t slot); void QMediaPlayer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QMediaPlayer_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QMediaPlayer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QMediaPlayer_Delete(QMediaPlayer* self, bool isSubclass); +void QMediaPlayer_Delete(QMediaPlayer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qmediarecorder.cpp b/qt6/multimedia/gen_qmediarecorder.cpp index 647f6cd5..9b53eac2 100644 --- a/qt6/multimedia/gen_qmediarecorder.cpp +++ b/qt6/multimedia/gen_qmediarecorder.cpp @@ -47,13 +47,13 @@ void miqt_exec_callback_QMediaRecorder_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQMediaRecorder : public virtual QMediaRecorder { +class MiqtVirtualQMediaRecorder final : public QMediaRecorder { public: MiqtVirtualQMediaRecorder(): QMediaRecorder() {}; MiqtVirtualQMediaRecorder(QObject* parent): QMediaRecorder(parent) {}; - virtual ~MiqtVirtualQMediaRecorder() = default; + virtual ~MiqtVirtualQMediaRecorder() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -664,11 +664,7 @@ void QMediaRecorder_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQMediaRecorder*)(self) )->virtualbase_DisconnectNotify(signal); } -void QMediaRecorder_Delete(QMediaRecorder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaRecorder_Delete(QMediaRecorder* self) { + delete self; } diff --git a/qt6/multimedia/gen_qmediarecorder.go b/qt6/multimedia/gen_qmediarecorder.go index c7c3317c..7c704701 100644 --- a/qt6/multimedia/gen_qmediarecorder.go +++ b/qt6/multimedia/gen_qmediarecorder.go @@ -778,7 +778,7 @@ func miqt_exec_callback_QMediaRecorder_DisconnectNotify(self *C.QMediaRecorder, // Delete this object from C++ memory. func (this *QMediaRecorder) Delete() { - C.QMediaRecorder_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaRecorder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qmediarecorder.h b/qt6/multimedia/gen_qmediarecorder.h index 6d2cc6a7..d9c61fbc 100644 --- a/qt6/multimedia/gen_qmediarecorder.h +++ b/qt6/multimedia/gen_qmediarecorder.h @@ -130,7 +130,7 @@ void QMediaRecorder_override_virtual_ConnectNotify(void* self, intptr_t slot); void QMediaRecorder_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QMediaRecorder_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QMediaRecorder_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QMediaRecorder_Delete(QMediaRecorder* self, bool isSubclass); +void QMediaRecorder_Delete(QMediaRecorder* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qmediatimerange.cpp b/qt6/multimedia/gen_qmediatimerange.cpp index 2eae69af..6caf00f4 100644 --- a/qt6/multimedia/gen_qmediatimerange.cpp +++ b/qt6/multimedia/gen_qmediatimerange.cpp @@ -131,12 +131,8 @@ void QMediaTimeRange_Clear(QMediaTimeRange* self) { self->clear(); } -void QMediaTimeRange_Delete(QMediaTimeRange* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaTimeRange_Delete(QMediaTimeRange* self) { + delete self; } QMediaTimeRange__Interval* QMediaTimeRange__Interval_new() { @@ -177,11 +173,7 @@ QMediaTimeRange__Interval* QMediaTimeRange__Interval_Translated(const QMediaTime return new QMediaTimeRange::Interval(self->translated(static_cast(offset))); } -void QMediaTimeRange__Interval_Delete(QMediaTimeRange__Interval* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QMediaTimeRange__Interval_Delete(QMediaTimeRange__Interval* self) { + delete self; } diff --git a/qt6/multimedia/gen_qmediatimerange.go b/qt6/multimedia/gen_qmediatimerange.go index 58708386..d9690e19 100644 --- a/qt6/multimedia/gen_qmediatimerange.go +++ b/qt6/multimedia/gen_qmediatimerange.go @@ -172,7 +172,7 @@ func (this *QMediaTimeRange) Clear() { // Delete this object from C++ memory. func (this *QMediaTimeRange) Delete() { - C.QMediaTimeRange_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaTimeRange_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -271,7 +271,7 @@ func (this *QMediaTimeRange__Interval) Translated(offset int64) *QMediaTimeRange // Delete this object from C++ memory. func (this *QMediaTimeRange__Interval) Delete() { - C.QMediaTimeRange__Interval_Delete(this.h, C.bool(this.isSubclass)) + C.QMediaTimeRange__Interval_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qmediatimerange.h b/qt6/multimedia/gen_qmediatimerange.h index 49ef0b3b..3fb507eb 100644 --- a/qt6/multimedia/gen_qmediatimerange.h +++ b/qt6/multimedia/gen_qmediatimerange.h @@ -51,7 +51,7 @@ QMediaTimeRange* QMediaTimeRange_OperatorPlusAssignWithQMediaTimeRangeInterval(Q QMediaTimeRange* QMediaTimeRange_OperatorMinusAssign(QMediaTimeRange* self, QMediaTimeRange* param1); QMediaTimeRange* QMediaTimeRange_OperatorMinusAssignWithQMediaTimeRangeInterval(QMediaTimeRange* self, QMediaTimeRange__Interval* param1); void QMediaTimeRange_Clear(QMediaTimeRange* self); -void QMediaTimeRange_Delete(QMediaTimeRange* self, bool isSubclass); +void QMediaTimeRange_Delete(QMediaTimeRange* self); QMediaTimeRange__Interval* QMediaTimeRange__Interval_new(); QMediaTimeRange__Interval* QMediaTimeRange__Interval_new2(long long start, long long end); @@ -62,7 +62,7 @@ bool QMediaTimeRange__Interval_Contains(const QMediaTimeRange__Interval* self, l bool QMediaTimeRange__Interval_IsNormal(const QMediaTimeRange__Interval* self); QMediaTimeRange__Interval* QMediaTimeRange__Interval_Normalized(const QMediaTimeRange__Interval* self); QMediaTimeRange__Interval* QMediaTimeRange__Interval_Translated(const QMediaTimeRange__Interval* self, long long offset); -void QMediaTimeRange__Interval_Delete(QMediaTimeRange__Interval* self, bool isSubclass); +void QMediaTimeRange__Interval_Delete(QMediaTimeRange__Interval* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qsoundeffect.cpp b/qt6/multimedia/gen_qsoundeffect.cpp index 162f3f2e..74bcc05c 100644 --- a/qt6/multimedia/gen_qsoundeffect.cpp +++ b/qt6/multimedia/gen_qsoundeffect.cpp @@ -38,7 +38,7 @@ void miqt_exec_callback_QSoundEffect_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQSoundEffect : public virtual QSoundEffect { +class MiqtVirtualQSoundEffect final : public QSoundEffect { public: MiqtVirtualQSoundEffect(): QSoundEffect() {}; @@ -46,7 +46,7 @@ public: MiqtVirtualQSoundEffect(QObject* parent): QSoundEffect(parent) {}; MiqtVirtualQSoundEffect(const QAudioDevice& audioDevice, QObject* parent): QSoundEffect(audioDevice, parent) {}; - virtual ~MiqtVirtualQSoundEffect() = default; + virtual ~MiqtVirtualQSoundEffect() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -513,11 +513,7 @@ void QSoundEffect_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQSoundEffect*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSoundEffect_Delete(QSoundEffect* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSoundEffect_Delete(QSoundEffect* self) { + delete self; } diff --git a/qt6/multimedia/gen_qsoundeffect.go b/qt6/multimedia/gen_qsoundeffect.go index 7aeb0fc3..3b9199f8 100644 --- a/qt6/multimedia/gen_qsoundeffect.go +++ b/qt6/multimedia/gen_qsoundeffect.go @@ -564,7 +564,7 @@ func miqt_exec_callback_QSoundEffect_DisconnectNotify(self *C.QSoundEffect, cb C // Delete this object from C++ memory. func (this *QSoundEffect) Delete() { - C.QSoundEffect_Delete(this.h, C.bool(this.isSubclass)) + C.QSoundEffect_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qsoundeffect.h b/qt6/multimedia/gen_qsoundeffect.h index d3671e86..6a4d3ebe 100644 --- a/qt6/multimedia/gen_qsoundeffect.h +++ b/qt6/multimedia/gen_qsoundeffect.h @@ -95,7 +95,7 @@ void QSoundEffect_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSoundEffect_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSoundEffect_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSoundEffect_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSoundEffect_Delete(QSoundEffect* self, bool isSubclass); +void QSoundEffect_Delete(QSoundEffect* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qvideoframe.cpp b/qt6/multimedia/gen_qvideoframe.cpp index d063cb7e..fa3dbff6 100644 --- a/qt6/multimedia/gen_qvideoframe.cpp +++ b/qt6/multimedia/gen_qvideoframe.cpp @@ -183,19 +183,11 @@ void QVideoFrame_Paint(QVideoFrame* self, QPainter* painter, QRectF* rect, QVide self->paint(painter, *rect, *options); } -void QVideoFrame_Delete(QVideoFrame* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoFrame_Delete(QVideoFrame* self) { + delete self; } -void QVideoFrame__PaintOptions_Delete(QVideoFrame__PaintOptions* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoFrame__PaintOptions_Delete(QVideoFrame__PaintOptions* self) { + delete self; } diff --git a/qt6/multimedia/gen_qvideoframe.go b/qt6/multimedia/gen_qvideoframe.go index 5405ceb2..e3b4b0f9 100644 --- a/qt6/multimedia/gen_qvideoframe.go +++ b/qt6/multimedia/gen_qvideoframe.go @@ -253,7 +253,7 @@ func (this *QVideoFrame) Paint(painter *qt6.QPainter, rect *qt6.QRectF, options // Delete this object from C++ memory. func (this *QVideoFrame) Delete() { - C.QVideoFrame_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoFrame_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -300,7 +300,7 @@ func UnsafeNewQVideoFrame__PaintOptions(h unsafe.Pointer) *QVideoFrame__PaintOpt // Delete this object from C++ memory. func (this *QVideoFrame__PaintOptions) Delete() { - C.QVideoFrame__PaintOptions_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoFrame__PaintOptions_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qvideoframe.h b/qt6/multimedia/gen_qvideoframe.h index 4baee27a..3b6df1cc 100644 --- a/qt6/multimedia/gen_qvideoframe.h +++ b/qt6/multimedia/gen_qvideoframe.h @@ -73,9 +73,9 @@ QImage* QVideoFrame_ToImage(const QVideoFrame* self); struct miqt_string QVideoFrame_SubtitleText(const QVideoFrame* self); void QVideoFrame_SetSubtitleText(QVideoFrame* self, struct miqt_string text); void QVideoFrame_Paint(QVideoFrame* self, QPainter* painter, QRectF* rect, QVideoFrame__PaintOptions* options); -void QVideoFrame_Delete(QVideoFrame* self, bool isSubclass); +void QVideoFrame_Delete(QVideoFrame* self); -void QVideoFrame__PaintOptions_Delete(QVideoFrame__PaintOptions* self, bool isSubclass); +void QVideoFrame__PaintOptions_Delete(QVideoFrame__PaintOptions* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qvideoframeformat.cpp b/qt6/multimedia/gen_qvideoframeformat.cpp index 3a5a0dfa..1b66d41c 100644 --- a/qt6/multimedia/gen_qvideoframeformat.cpp +++ b/qt6/multimedia/gen_qvideoframeformat.cpp @@ -201,11 +201,7 @@ struct miqt_string QVideoFrameFormat_PixelFormatToString(int pixelFormat) { return _ms; } -void QVideoFrameFormat_Delete(QVideoFrameFormat* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoFrameFormat_Delete(QVideoFrameFormat* self) { + delete self; } diff --git a/qt6/multimedia/gen_qvideoframeformat.go b/qt6/multimedia/gen_qvideoframeformat.go index 6b44d45c..8c87084c 100644 --- a/qt6/multimedia/gen_qvideoframeformat.go +++ b/qt6/multimedia/gen_qvideoframeformat.go @@ -317,7 +317,7 @@ func QVideoFrameFormat_PixelFormatToString(pixelFormat QVideoFrameFormat__PixelF // Delete this object from C++ memory. func (this *QVideoFrameFormat) Delete() { - C.QVideoFrameFormat_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoFrameFormat_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qvideoframeformat.h b/qt6/multimedia/gen_qvideoframeformat.h index 1a0d6a47..12d0eb0c 100644 --- a/qt6/multimedia/gen_qvideoframeformat.h +++ b/qt6/multimedia/gen_qvideoframeformat.h @@ -63,7 +63,7 @@ void QVideoFrameFormat_SetMaxLuminance(QVideoFrameFormat* self, float lum); int QVideoFrameFormat_PixelFormatFromImageFormat(int format); int QVideoFrameFormat_ImageFormatFromPixelFormat(int format); struct miqt_string QVideoFrameFormat_PixelFormatToString(int pixelFormat); -void QVideoFrameFormat_Delete(QVideoFrameFormat* self, bool isSubclass); +void QVideoFrameFormat_Delete(QVideoFrameFormat* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qvideosink.cpp b/qt6/multimedia/gen_qvideosink.cpp index 95cb4279..14b27527 100644 --- a/qt6/multimedia/gen_qvideosink.cpp +++ b/qt6/multimedia/gen_qvideosink.cpp @@ -31,13 +31,13 @@ void miqt_exec_callback_QVideoSink_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQVideoSink : public virtual QVideoSink { +class MiqtVirtualQVideoSink final : public QVideoSink { public: MiqtVirtualQVideoSink(): QVideoSink() {}; MiqtVirtualQVideoSink(QObject* parent): QVideoSink(parent) {}; - virtual ~MiqtVirtualQVideoSink() = default; + virtual ~MiqtVirtualQVideoSink() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -391,11 +391,7 @@ void QVideoSink_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQVideoSink*)(self) )->virtualbase_DisconnectNotify(signal); } -void QVideoSink_Delete(QVideoSink* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoSink_Delete(QVideoSink* self) { + delete self; } diff --git a/qt6/multimedia/gen_qvideosink.go b/qt6/multimedia/gen_qvideosink.go index 86c5b07c..ee75a2af 100644 --- a/qt6/multimedia/gen_qvideosink.go +++ b/qt6/multimedia/gen_qvideosink.go @@ -394,7 +394,7 @@ func miqt_exec_callback_QVideoSink_DisconnectNotify(self *C.QVideoSink, cb C.int // Delete this object from C++ memory. func (this *QVideoSink) Delete() { - C.QVideoSink_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoSink_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qvideosink.h b/qt6/multimedia/gen_qvideosink.h index f6577dd7..4e6210e2 100644 --- a/qt6/multimedia/gen_qvideosink.h +++ b/qt6/multimedia/gen_qvideosink.h @@ -69,7 +69,7 @@ void QVideoSink_override_virtual_ConnectNotify(void* self, intptr_t slot); void QVideoSink_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QVideoSink_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QVideoSink_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QVideoSink_Delete(QVideoSink* self, bool isSubclass); +void QVideoSink_Delete(QVideoSink* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qvideowidget.cpp b/qt6/multimedia/gen_qvideowidget.cpp index 88aafe0e..d4ead631 100644 --- a/qt6/multimedia/gen_qvideowidget.cpp +++ b/qt6/multimedia/gen_qvideowidget.cpp @@ -87,13 +87,13 @@ bool miqt_exec_callback_QVideoWidget_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQVideoWidget : public virtual QVideoWidget { +class MiqtVirtualQVideoWidget final : public QVideoWidget { public: MiqtVirtualQVideoWidget(QWidget* parent): QVideoWidget(parent) {}; MiqtVirtualQVideoWidget(): QVideoWidget() {}; - virtual ~MiqtVirtualQVideoWidget() = default; + virtual ~MiqtVirtualQVideoWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1498,11 +1498,7 @@ bool QVideoWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQVideoWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QVideoWidget_Delete(QVideoWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QVideoWidget_Delete(QVideoWidget* self) { + delete self; } diff --git a/qt6/multimedia/gen_qvideowidget.go b/qt6/multimedia/gen_qvideowidget.go index 7790d891..f356d58a 100644 --- a/qt6/multimedia/gen_qvideowidget.go +++ b/qt6/multimedia/gen_qvideowidget.go @@ -1262,7 +1262,7 @@ func miqt_exec_callback_QVideoWidget_FocusNextPrevChild(self *C.QVideoWidget, cb // Delete this object from C++ memory. func (this *QVideoWidget) Delete() { - C.QVideoWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QVideoWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qvideowidget.h b/qt6/multimedia/gen_qvideowidget.h index 3b9f09d4..88c9648b 100644 --- a/qt6/multimedia/gen_qvideowidget.h +++ b/qt6/multimedia/gen_qvideowidget.h @@ -184,7 +184,7 @@ void QVideoWidget_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QVideoWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QVideoWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QVideoWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QVideoWidget_Delete(QVideoWidget* self, bool isSubclass); +void QVideoWidget_Delete(QVideoWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/multimedia/gen_qwavedecoder.cpp b/qt6/multimedia/gen_qwavedecoder.cpp index 852afb39..e85366f0 100644 --- a/qt6/multimedia/gen_qwavedecoder.cpp +++ b/qt6/multimedia/gen_qwavedecoder.cpp @@ -35,7 +35,7 @@ long long miqt_exec_callback_QWaveDecoder_SkipData(void*, intptr_t, long long); } /* extern C */ #endif -class MiqtVirtualQWaveDecoder : public virtual QWaveDecoder { +class MiqtVirtualQWaveDecoder final : public QWaveDecoder { public: MiqtVirtualQWaveDecoder(QIODevice* device): QWaveDecoder(device) {}; @@ -43,7 +43,7 @@ public: MiqtVirtualQWaveDecoder(QIODevice* device, QObject* parent): QWaveDecoder(device, parent) {}; MiqtVirtualQWaveDecoder(QIODevice* device, const QAudioFormat& format, QObject* parent): QWaveDecoder(device, format, parent) {}; - virtual ~MiqtVirtualQWaveDecoder() = default; + virtual ~MiqtVirtualQWaveDecoder() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Open = 0; @@ -644,11 +644,7 @@ long long QWaveDecoder_virtualbase_SkipData(void* self, long long maxSize) { return ( (MiqtVirtualQWaveDecoder*)(self) )->virtualbase_SkipData(maxSize); } -void QWaveDecoder_Delete(QWaveDecoder* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWaveDecoder_Delete(QWaveDecoder* self) { + delete self; } diff --git a/qt6/multimedia/gen_qwavedecoder.go b/qt6/multimedia/gen_qwavedecoder.go index dfa9f4d8..2dc33751 100644 --- a/qt6/multimedia/gen_qwavedecoder.go +++ b/qt6/multimedia/gen_qwavedecoder.go @@ -603,7 +603,7 @@ func miqt_exec_callback_QWaveDecoder_SkipData(self *C.QWaveDecoder, cb C.intptr_ // Delete this object from C++ memory. func (this *QWaveDecoder) Delete() { - C.QWaveDecoder_Delete(this.h, C.bool(this.isSubclass)) + C.QWaveDecoder_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/multimedia/gen_qwavedecoder.h b/qt6/multimedia/gen_qwavedecoder.h index 77a56927..3e1ba632 100644 --- a/qt6/multimedia/gen_qwavedecoder.h +++ b/qt6/multimedia/gen_qwavedecoder.h @@ -85,7 +85,7 @@ void QWaveDecoder_override_virtual_ReadLineData(void* self, intptr_t slot); long long QWaveDecoder_virtualbase_ReadLineData(void* self, char* data, long long maxlen); void QWaveDecoder_override_virtual_SkipData(void* self, intptr_t slot); long long QWaveDecoder_virtualbase_SkipData(void* self, long long maxSize); -void QWaveDecoder_Delete(QWaveDecoder* self, bool isSubclass); +void QWaveDecoder_Delete(QWaveDecoder* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qabstractnetworkcache.cpp b/qt6/network/gen_qabstractnetworkcache.cpp index dbb4d715..1d158e7f 100644 --- a/qt6/network/gen_qabstractnetworkcache.cpp +++ b/qt6/network/gen_qabstractnetworkcache.cpp @@ -164,12 +164,8 @@ void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miq self->setAttributes(attributes_QMap); } -void QNetworkCacheMetaData_Delete(QNetworkCacheMetaData* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkCacheMetaData_Delete(QNetworkCacheMetaData* self) { + delete self; } void QAbstractNetworkCache_virtbase(QAbstractNetworkCache* src, QObject** outptr_QObject) { @@ -250,11 +246,7 @@ struct miqt_string QAbstractNetworkCache_Tr3(const char* s, const char* c, int n return _ms; } -void QAbstractNetworkCache_Delete(QAbstractNetworkCache* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractNetworkCache_Delete(QAbstractNetworkCache* self) { + delete self; } diff --git a/qt6/network/gen_qabstractnetworkcache.go b/qt6/network/gen_qabstractnetworkcache.go index e764701e..a0619bfa 100644 --- a/qt6/network/gen_qabstractnetworkcache.go +++ b/qt6/network/gen_qabstractnetworkcache.go @@ -219,7 +219,7 @@ func (this *QNetworkCacheMetaData) SetAttributes(attributes map[QNetworkRequest_ // Delete this object from C++ memory. func (this *QNetworkCacheMetaData) Delete() { - C.QNetworkCacheMetaData_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkCacheMetaData_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -345,7 +345,7 @@ func QAbstractNetworkCache_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QAbstractNetworkCache) Delete() { - C.QAbstractNetworkCache_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractNetworkCache_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qabstractnetworkcache.h b/qt6/network/gen_qabstractnetworkcache.h index 072a8dd7..97c21423 100644 --- a/qt6/network/gen_qabstractnetworkcache.h +++ b/qt6/network/gen_qabstractnetworkcache.h @@ -53,7 +53,7 @@ bool QNetworkCacheMetaData_SaveToDisk(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetSaveToDisk(QNetworkCacheMetaData* self, bool allow); struct miqt_map /* of int to QVariant* */ QNetworkCacheMetaData_Attributes(const QNetworkCacheMetaData* self); void QNetworkCacheMetaData_SetAttributes(QNetworkCacheMetaData* self, struct miqt_map /* of int to QVariant* */ attributes); -void QNetworkCacheMetaData_Delete(QNetworkCacheMetaData* self, bool isSubclass); +void QNetworkCacheMetaData_Delete(QNetworkCacheMetaData* self); void QAbstractNetworkCache_virtbase(QAbstractNetworkCache* src, QObject** outptr_QObject); QMetaObject* QAbstractNetworkCache_MetaObject(const QAbstractNetworkCache* self); @@ -69,7 +69,7 @@ void QAbstractNetworkCache_Insert(QAbstractNetworkCache* self, QIODevice* device void QAbstractNetworkCache_Clear(QAbstractNetworkCache* self); struct miqt_string QAbstractNetworkCache_Tr2(const char* s, const char* c); struct miqt_string QAbstractNetworkCache_Tr3(const char* s, const char* c, int n); -void QAbstractNetworkCache_Delete(QAbstractNetworkCache* self, bool isSubclass); +void QAbstractNetworkCache_Delete(QAbstractNetworkCache* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qabstractsocket.cpp b/qt6/network/gen_qabstractsocket.cpp index 517662b2..aea24834 100644 --- a/qt6/network/gen_qabstractsocket.cpp +++ b/qt6/network/gen_qabstractsocket.cpp @@ -55,12 +55,12 @@ bool miqt_exec_callback_QAbstractSocket_CanReadLine(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQAbstractSocket : public virtual QAbstractSocket { +class MiqtVirtualQAbstractSocket final : public QAbstractSocket { public: MiqtVirtualQAbstractSocket(QAbstractSocket::SocketType socketType, QObject* parent): QAbstractSocket(socketType, parent) {}; - virtual ~MiqtVirtualQAbstractSocket() = default; + virtual ~MiqtVirtualQAbstractSocket() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Resume = 0; @@ -1278,11 +1278,7 @@ bool QAbstractSocket_virtualbase_CanReadLine(const void* self) { return ( (const MiqtVirtualQAbstractSocket*)(self) )->virtualbase_CanReadLine(); } -void QAbstractSocket_Delete(QAbstractSocket* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractSocket_Delete(QAbstractSocket* self) { + delete self; } diff --git a/qt6/network/gen_qabstractsocket.go b/qt6/network/gen_qabstractsocket.go index 85949376..8d502b24 100644 --- a/qt6/network/gen_qabstractsocket.go +++ b/qt6/network/gen_qabstractsocket.go @@ -1261,7 +1261,7 @@ func miqt_exec_callback_QAbstractSocket_CanReadLine(self *C.QAbstractSocket, cb // Delete this object from C++ memory. func (this *QAbstractSocket) Delete() { - C.QAbstractSocket_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractSocket_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qabstractsocket.h b/qt6/network/gen_qabstractsocket.h index 5ea89c91..8c0599e4 100644 --- a/qt6/network/gen_qabstractsocket.h +++ b/qt6/network/gen_qabstractsocket.h @@ -155,7 +155,7 @@ void QAbstractSocket_override_virtual_Reset(void* self, intptr_t slot); bool QAbstractSocket_virtualbase_Reset(void* self); void QAbstractSocket_override_virtual_CanReadLine(void* self, intptr_t slot); bool QAbstractSocket_virtualbase_CanReadLine(const void* self); -void QAbstractSocket_Delete(QAbstractSocket* self, bool isSubclass); +void QAbstractSocket_Delete(QAbstractSocket* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qauthenticator.cpp b/qt6/network/gen_qauthenticator.cpp index 4734c67b..21c343ec 100644 --- a/qt6/network/gen_qauthenticator.cpp +++ b/qt6/network/gen_qauthenticator.cpp @@ -126,11 +126,7 @@ void QAuthenticator_Detach(QAuthenticator* self) { self->detach(); } -void QAuthenticator_Delete(QAuthenticator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAuthenticator_Delete(QAuthenticator* self) { + delete self; } diff --git a/qt6/network/gen_qauthenticator.go b/qt6/network/gen_qauthenticator.go index 103e1d2f..098dea9d 100644 --- a/qt6/network/gen_qauthenticator.go +++ b/qt6/network/gen_qauthenticator.go @@ -167,7 +167,7 @@ func (this *QAuthenticator) Detach() { // Delete this object from C++ memory. func (this *QAuthenticator) Delete() { - C.QAuthenticator_Delete(this.h, C.bool(this.isSubclass)) + C.QAuthenticator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qauthenticator.h b/qt6/network/gen_qauthenticator.h index 8d3a46c0..6ab8f215 100644 --- a/qt6/network/gen_qauthenticator.h +++ b/qt6/network/gen_qauthenticator.h @@ -38,7 +38,7 @@ struct miqt_map /* of struct miqt_string to QVariant* */ QAuthenticator_Options void QAuthenticator_SetOption(QAuthenticator* self, struct miqt_string opt, QVariant* value); bool QAuthenticator_IsNull(const QAuthenticator* self); void QAuthenticator_Detach(QAuthenticator* self); -void QAuthenticator_Delete(QAuthenticator* self, bool isSubclass); +void QAuthenticator_Delete(QAuthenticator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qdnslookup.cpp b/qt6/network/gen_qdnslookup.cpp index 9435f5f9..db52aca1 100644 --- a/qt6/network/gen_qdnslookup.cpp +++ b/qt6/network/gen_qdnslookup.cpp @@ -81,12 +81,8 @@ struct miqt_string QDnsDomainNameRecord_Value(const QDnsDomainNameRecord* self) return _ms; } -void QDnsDomainNameRecord_Delete(QDnsDomainNameRecord* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsDomainNameRecord_Delete(QDnsDomainNameRecord* self) { + delete self; } QDnsHostAddressRecord* QDnsHostAddressRecord_new() { @@ -125,12 +121,8 @@ QHostAddress* QDnsHostAddressRecord_Value(const QDnsHostAddressRecord* self) { return new QHostAddress(self->value()); } -void QDnsHostAddressRecord_Delete(QDnsHostAddressRecord* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsHostAddressRecord_Delete(QDnsHostAddressRecord* self) { + delete self; } QDnsMailExchangeRecord* QDnsMailExchangeRecord_new() { @@ -181,12 +173,8 @@ unsigned int QDnsMailExchangeRecord_TimeToLive(const QDnsMailExchangeRecord* sel return static_cast(_ret); } -void QDnsMailExchangeRecord_Delete(QDnsMailExchangeRecord* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsMailExchangeRecord_Delete(QDnsMailExchangeRecord* self) { + delete self; } QDnsServiceRecord* QDnsServiceRecord_new() { @@ -247,12 +235,8 @@ uint16_t QDnsServiceRecord_Weight(const QDnsServiceRecord* self) { return static_cast(_ret); } -void QDnsServiceRecord_Delete(QDnsServiceRecord* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsServiceRecord_Delete(QDnsServiceRecord* self) { + delete self; } QDnsTextRecord* QDnsTextRecord_new() { @@ -305,15 +289,11 @@ struct miqt_array /* of struct miqt_string */ QDnsTextRecord_Values(const QDnsT return _out; } -void QDnsTextRecord_Delete(QDnsTextRecord* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsTextRecord_Delete(QDnsTextRecord* self) { + delete self; } -class MiqtVirtualQDnsLookup : public virtual QDnsLookup { +class MiqtVirtualQDnsLookup final : public QDnsLookup { public: MiqtVirtualQDnsLookup(): QDnsLookup() {}; @@ -323,7 +303,7 @@ public: MiqtVirtualQDnsLookup(QDnsLookup::Type typeVal, const QString& name, QObject* parent): QDnsLookup(typeVal, name, parent) {}; MiqtVirtualQDnsLookup(QDnsLookup::Type typeVal, const QString& name, const QHostAddress& nameserver, QObject* parent): QDnsLookup(typeVal, name, nameserver, parent) {}; - virtual ~MiqtVirtualQDnsLookup() = default; + virtual ~MiqtVirtualQDnsLookup() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -833,11 +813,7 @@ void QDnsLookup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQDnsLookup*)(self) )->virtualbase_DisconnectNotify(signal); } -void QDnsLookup_Delete(QDnsLookup* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDnsLookup_Delete(QDnsLookup* self) { + delete self; } diff --git a/qt6/network/gen_qdnslookup.go b/qt6/network/gen_qdnslookup.go index 2d6ff613..f2429c78 100644 --- a/qt6/network/gen_qdnslookup.go +++ b/qt6/network/gen_qdnslookup.go @@ -119,7 +119,7 @@ func (this *QDnsDomainNameRecord) Value() string { // Delete this object from C++ memory. func (this *QDnsDomainNameRecord) Delete() { - C.QDnsDomainNameRecord_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsDomainNameRecord_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -207,7 +207,7 @@ func (this *QDnsHostAddressRecord) Value() *QHostAddress { // Delete this object from C++ memory. func (this *QDnsHostAddressRecord) Delete() { - C.QDnsHostAddressRecord_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsHostAddressRecord_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -300,7 +300,7 @@ func (this *QDnsMailExchangeRecord) TimeToLive() uint { // Delete this object from C++ memory. func (this *QDnsMailExchangeRecord) Delete() { - C.QDnsMailExchangeRecord_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsMailExchangeRecord_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -401,7 +401,7 @@ func (this *QDnsServiceRecord) Weight() uint16 { // Delete this object from C++ memory. func (this *QDnsServiceRecord) Delete() { - C.QDnsServiceRecord_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsServiceRecord_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -496,7 +496,7 @@ func (this *QDnsTextRecord) Values() [][]byte { // Delete this object from C++ memory. func (this *QDnsTextRecord) Delete() { - C.QDnsTextRecord_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsTextRecord_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -1064,7 +1064,7 @@ func miqt_exec_callback_QDnsLookup_DisconnectNotify(self *C.QDnsLookup, cb C.int // Delete this object from C++ memory. func (this *QDnsLookup) Delete() { - C.QDnsLookup_Delete(this.h, C.bool(this.isSubclass)) + C.QDnsLookup_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qdnslookup.h b/qt6/network/gen_qdnslookup.h index 6c3cc5c5..b36a403d 100644 --- a/qt6/network/gen_qdnslookup.h +++ b/qt6/network/gen_qdnslookup.h @@ -51,7 +51,7 @@ void QDnsDomainNameRecord_Swap(QDnsDomainNameRecord* self, QDnsDomainNameRecord* struct miqt_string QDnsDomainNameRecord_Name(const QDnsDomainNameRecord* self); unsigned int QDnsDomainNameRecord_TimeToLive(const QDnsDomainNameRecord* self); struct miqt_string QDnsDomainNameRecord_Value(const QDnsDomainNameRecord* self); -void QDnsDomainNameRecord_Delete(QDnsDomainNameRecord* self, bool isSubclass); +void QDnsDomainNameRecord_Delete(QDnsDomainNameRecord* self); QDnsHostAddressRecord* QDnsHostAddressRecord_new(); QDnsHostAddressRecord* QDnsHostAddressRecord_new2(QDnsHostAddressRecord* other); @@ -60,7 +60,7 @@ void QDnsHostAddressRecord_Swap(QDnsHostAddressRecord* self, QDnsHostAddressReco struct miqt_string QDnsHostAddressRecord_Name(const QDnsHostAddressRecord* self); unsigned int QDnsHostAddressRecord_TimeToLive(const QDnsHostAddressRecord* self); QHostAddress* QDnsHostAddressRecord_Value(const QDnsHostAddressRecord* self); -void QDnsHostAddressRecord_Delete(QDnsHostAddressRecord* self, bool isSubclass); +void QDnsHostAddressRecord_Delete(QDnsHostAddressRecord* self); QDnsMailExchangeRecord* QDnsMailExchangeRecord_new(); QDnsMailExchangeRecord* QDnsMailExchangeRecord_new2(QDnsMailExchangeRecord* other); @@ -70,7 +70,7 @@ struct miqt_string QDnsMailExchangeRecord_Exchange(const QDnsMailExchangeRecord* struct miqt_string QDnsMailExchangeRecord_Name(const QDnsMailExchangeRecord* self); uint16_t QDnsMailExchangeRecord_Preference(const QDnsMailExchangeRecord* self); unsigned int QDnsMailExchangeRecord_TimeToLive(const QDnsMailExchangeRecord* self); -void QDnsMailExchangeRecord_Delete(QDnsMailExchangeRecord* self, bool isSubclass); +void QDnsMailExchangeRecord_Delete(QDnsMailExchangeRecord* self); QDnsServiceRecord* QDnsServiceRecord_new(); QDnsServiceRecord* QDnsServiceRecord_new2(QDnsServiceRecord* other); @@ -82,7 +82,7 @@ uint16_t QDnsServiceRecord_Priority(const QDnsServiceRecord* self); struct miqt_string QDnsServiceRecord_Target(const QDnsServiceRecord* self); unsigned int QDnsServiceRecord_TimeToLive(const QDnsServiceRecord* self); uint16_t QDnsServiceRecord_Weight(const QDnsServiceRecord* self); -void QDnsServiceRecord_Delete(QDnsServiceRecord* self, bool isSubclass); +void QDnsServiceRecord_Delete(QDnsServiceRecord* self); QDnsTextRecord* QDnsTextRecord_new(); QDnsTextRecord* QDnsTextRecord_new2(QDnsTextRecord* other); @@ -91,7 +91,7 @@ void QDnsTextRecord_Swap(QDnsTextRecord* self, QDnsTextRecord* other); struct miqt_string QDnsTextRecord_Name(const QDnsTextRecord* self); unsigned int QDnsTextRecord_TimeToLive(const QDnsTextRecord* self); struct miqt_array /* of struct miqt_string */ QDnsTextRecord_Values(const QDnsTextRecord* self); -void QDnsTextRecord_Delete(QDnsTextRecord* self, bool isSubclass); +void QDnsTextRecord_Delete(QDnsTextRecord* self); QDnsLookup* QDnsLookup_new(); QDnsLookup* QDnsLookup_new2(int typeVal, struct miqt_string name); @@ -145,7 +145,7 @@ void QDnsLookup_override_virtual_ConnectNotify(void* self, intptr_t slot); void QDnsLookup_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QDnsLookup_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QDnsLookup_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QDnsLookup_Delete(QDnsLookup* self, bool isSubclass); +void QDnsLookup_Delete(QDnsLookup* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qdtls.cpp b/qt6/network/gen_qdtls.cpp index 6eba0b6b..200233e9 100644 --- a/qt6/network/gen_qdtls.cpp +++ b/qt6/network/gen_qdtls.cpp @@ -45,13 +45,13 @@ void miqt_exec_callback_QDtls_DisconnectNotify(void*, intptr_t, QMetaMethod*); } /* extern C */ #endif -class MiqtVirtualQDtlsClientVerifier : public virtual QDtlsClientVerifier { +class MiqtVirtualQDtlsClientVerifier final : public QDtlsClientVerifier { public: MiqtVirtualQDtlsClientVerifier(): QDtlsClientVerifier() {}; MiqtVirtualQDtlsClientVerifier(QObject* parent): QDtlsClientVerifier(parent) {}; - virtual ~MiqtVirtualQDtlsClientVerifier() = default; + virtual ~MiqtVirtualQDtlsClientVerifier() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -373,21 +373,17 @@ void QDtlsClientVerifier_virtualbase_DisconnectNotify(void* self, QMetaMethod* s ( (MiqtVirtualQDtlsClientVerifier*)(self) )->virtualbase_DisconnectNotify(signal); } -void QDtlsClientVerifier_Delete(QDtlsClientVerifier* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDtlsClientVerifier_Delete(QDtlsClientVerifier* self) { + delete self; } -class MiqtVirtualQDtls : public virtual QDtls { +class MiqtVirtualQDtls final : public QDtls { public: MiqtVirtualQDtls(QSslSocket::SslMode mode): QDtls(mode) {}; MiqtVirtualQDtls(QSslSocket::SslMode mode, QObject* parent): QDtls(mode, parent) {}; - virtual ~MiqtVirtualQDtls() = default; + virtual ~MiqtVirtualQDtls() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -854,12 +850,8 @@ void QDtls_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQDtls*)(self) )->virtualbase_DisconnectNotify(signal); } -void QDtls_Delete(QDtls* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDtls_Delete(QDtls* self) { + delete self; } QDtlsClientVerifier__GeneratorParameters* QDtlsClientVerifier__GeneratorParameters_new() { @@ -879,11 +871,7 @@ void QDtlsClientVerifier__GeneratorParameters_OperatorAssign(QDtlsClientVerifier self->operator=(*param1); } -void QDtlsClientVerifier__GeneratorParameters_Delete(QDtlsClientVerifier__GeneratorParameters* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QDtlsClientVerifier__GeneratorParameters_Delete(QDtlsClientVerifier__GeneratorParameters* self) { + delete self; } diff --git a/qt6/network/gen_qdtls.go b/qt6/network/gen_qdtls.go index c7a591fe..13a69054 100644 --- a/qt6/network/gen_qdtls.go +++ b/qt6/network/gen_qdtls.go @@ -357,7 +357,7 @@ func miqt_exec_callback_QDtlsClientVerifier_DisconnectNotify(self *C.QDtlsClient // Delete this object from C++ memory. func (this *QDtlsClientVerifier) Delete() { - C.QDtlsClientVerifier_Delete(this.h, C.bool(this.isSubclass)) + C.QDtlsClientVerifier_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -854,7 +854,7 @@ func miqt_exec_callback_QDtls_DisconnectNotify(self *C.QDtls, cb C.intptr_t, sig // Delete this object from C++ memory. func (this *QDtls) Delete() { - C.QDtls_Delete(this.h, C.bool(this.isSubclass)) + C.QDtls_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -932,7 +932,7 @@ func (this *QDtlsClientVerifier__GeneratorParameters) OperatorAssign(param1 *QDt // Delete this object from C++ memory. func (this *QDtlsClientVerifier__GeneratorParameters) Delete() { - C.QDtlsClientVerifier__GeneratorParameters_Delete(this.h, C.bool(this.isSubclass)) + C.QDtlsClientVerifier__GeneratorParameters_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qdtls.h b/qt6/network/gen_qdtls.h index 458ba3ce..f10323c3 100644 --- a/qt6/network/gen_qdtls.h +++ b/qt6/network/gen_qdtls.h @@ -80,7 +80,7 @@ void QDtlsClientVerifier_override_virtual_ConnectNotify(void* self, intptr_t slo void QDtlsClientVerifier_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QDtlsClientVerifier_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QDtlsClientVerifier_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QDtlsClientVerifier_Delete(QDtlsClientVerifier* self, bool isSubclass); +void QDtlsClientVerifier_Delete(QDtlsClientVerifier* self); QDtls* QDtls_new(int mode); QDtls* QDtls_new2(int mode, QObject* parent); @@ -137,13 +137,13 @@ void QDtls_override_virtual_ConnectNotify(void* self, intptr_t slot); void QDtls_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QDtls_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QDtls_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QDtls_Delete(QDtls* self, bool isSubclass); +void QDtls_Delete(QDtls* self); QDtlsClientVerifier__GeneratorParameters* QDtlsClientVerifier__GeneratorParameters_new(); QDtlsClientVerifier__GeneratorParameters* QDtlsClientVerifier__GeneratorParameters_new2(int a, struct miqt_string s); QDtlsClientVerifier__GeneratorParameters* QDtlsClientVerifier__GeneratorParameters_new3(QDtlsClientVerifier__GeneratorParameters* param1); void QDtlsClientVerifier__GeneratorParameters_OperatorAssign(QDtlsClientVerifier__GeneratorParameters* self, QDtlsClientVerifier__GeneratorParameters* param1); -void QDtlsClientVerifier__GeneratorParameters_Delete(QDtlsClientVerifier__GeneratorParameters* self, bool isSubclass); +void QDtlsClientVerifier__GeneratorParameters_Delete(QDtlsClientVerifier__GeneratorParameters* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qhostaddress.cpp b/qt6/network/gen_qhostaddress.cpp index 8257e852..de673ed2 100644 --- a/qt6/network/gen_qhostaddress.cpp +++ b/qt6/network/gen_qhostaddress.cpp @@ -20,12 +20,8 @@ unsigned char QIPv6Address_OperatorSubscript(const QIPv6Address* self, int index return static_cast(_ret); } -void QIPv6Address_Delete(QIPv6Address* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QIPv6Address_Delete(QIPv6Address* self) { + delete self; } QHostAddress* QHostAddress_new() { @@ -224,11 +220,7 @@ bool QHostAddress_IsEqual2(const QHostAddress* self, QHostAddress* address, int return self->isEqual(*address, static_cast(mode)); } -void QHostAddress_Delete(QHostAddress* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHostAddress_Delete(QHostAddress* self) { + delete self; } diff --git a/qt6/network/gen_qhostaddress.go b/qt6/network/gen_qhostaddress.go index 1e2982d1..0ef3dd76 100644 --- a/qt6/network/gen_qhostaddress.go +++ b/qt6/network/gen_qhostaddress.go @@ -75,7 +75,7 @@ func (this *QIPv6Address) OperatorSubscript(index int) byte { // Delete this object from C++ memory. func (this *QIPv6Address) Delete() { - C.QIPv6Address_Delete(this.h, C.bool(this.isSubclass)) + C.QIPv6Address_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -363,7 +363,7 @@ func (this *QHostAddress) IsEqual2(address *QHostAddress, mode QHostAddress__Con // Delete this object from C++ memory. func (this *QHostAddress) Delete() { - C.QHostAddress_Delete(this.h, C.bool(this.isSubclass)) + C.QHostAddress_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qhostaddress.h b/qt6/network/gen_qhostaddress.h index 733f3423..ae92b56c 100644 --- a/qt6/network/gen_qhostaddress.h +++ b/qt6/network/gen_qhostaddress.h @@ -23,7 +23,7 @@ typedef struct QIPv6Address QIPv6Address; #endif unsigned char QIPv6Address_OperatorSubscript(const QIPv6Address* self, int index); -void QIPv6Address_Delete(QIPv6Address* self, bool isSubclass); +void QIPv6Address_Delete(QIPv6Address* self); QHostAddress* QHostAddress_new(); QHostAddress* QHostAddress_new2(unsigned int ip4Addr); @@ -65,7 +65,7 @@ bool QHostAddress_IsBroadcast(const QHostAddress* self); struct miqt_map /* tuple of QHostAddress* and int */ QHostAddress_ParseSubnet(struct miqt_string subnet); unsigned int QHostAddress_ToIPv4Address1(const QHostAddress* self, bool* ok); bool QHostAddress_IsEqual2(const QHostAddress* self, QHostAddress* address, int mode); -void QHostAddress_Delete(QHostAddress* self, bool isSubclass); +void QHostAddress_Delete(QHostAddress* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qhostinfo.cpp b/qt6/network/gen_qhostinfo.cpp index e52a7472..dcf46b85 100644 --- a/qt6/network/gen_qhostinfo.cpp +++ b/qt6/network/gen_qhostinfo.cpp @@ -138,11 +138,7 @@ struct miqt_string QHostInfo_LocalDomainName() { return _ms; } -void QHostInfo_Delete(QHostInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHostInfo_Delete(QHostInfo* self) { + delete self; } diff --git a/qt6/network/gen_qhostinfo.go b/qt6/network/gen_qhostinfo.go index bc2392e1..ff5dde6a 100644 --- a/qt6/network/gen_qhostinfo.go +++ b/qt6/network/gen_qhostinfo.go @@ -184,7 +184,7 @@ func QHostInfo_LocalDomainName() string { // Delete this object from C++ memory. func (this *QHostInfo) Delete() { - C.QHostInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QHostInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qhostinfo.h b/qt6/network/gen_qhostinfo.h index 2606431a..a7faea88 100644 --- a/qt6/network/gen_qhostinfo.h +++ b/qt6/network/gen_qhostinfo.h @@ -41,7 +41,7 @@ void QHostInfo_AbortHostLookup(int lookupId); QHostInfo* QHostInfo_FromName(struct miqt_string name); struct miqt_string QHostInfo_LocalHostName(); struct miqt_string QHostInfo_LocalDomainName(); -void QHostInfo_Delete(QHostInfo* self, bool isSubclass); +void QHostInfo_Delete(QHostInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qhstspolicy.cpp b/qt6/network/gen_qhstspolicy.cpp index 312548f9..256154c8 100644 --- a/qt6/network/gen_qhstspolicy.cpp +++ b/qt6/network/gen_qhstspolicy.cpp @@ -92,11 +92,7 @@ struct miqt_string QHstsPolicy_Host1(const QHstsPolicy* self, unsigned int optio return _ms; } -void QHstsPolicy_Delete(QHstsPolicy* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHstsPolicy_Delete(QHstsPolicy* self) { + delete self; } diff --git a/qt6/network/gen_qhstspolicy.go b/qt6/network/gen_qhstspolicy.go index 57f26c36..fe3df976 100644 --- a/qt6/network/gen_qhstspolicy.go +++ b/qt6/network/gen_qhstspolicy.go @@ -155,7 +155,7 @@ func (this *QHstsPolicy) Host1(options qt6.QUrl__ComponentFormattingOption) stri // Delete this object from C++ memory. func (this *QHstsPolicy) Delete() { - C.QHstsPolicy_Delete(this.h, C.bool(this.isSubclass)) + C.QHstsPolicy_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qhstspolicy.h b/qt6/network/gen_qhstspolicy.h index f07be602..cf726548 100644 --- a/qt6/network/gen_qhstspolicy.h +++ b/qt6/network/gen_qhstspolicy.h @@ -37,7 +37,7 @@ bool QHstsPolicy_IncludesSubDomains(const QHstsPolicy* self); bool QHstsPolicy_IsExpired(const QHstsPolicy* self); void QHstsPolicy_SetHost2(QHstsPolicy* self, struct miqt_string host, int mode); struct miqt_string QHstsPolicy_Host1(const QHstsPolicy* self, unsigned int options); -void QHstsPolicy_Delete(QHstsPolicy* self, bool isSubclass); +void QHstsPolicy_Delete(QHstsPolicy* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qhttp2configuration.cpp b/qt6/network/gen_qhttp2configuration.cpp index 995187a2..b080dd94 100644 --- a/qt6/network/gen_qhttp2configuration.cpp +++ b/qt6/network/gen_qhttp2configuration.cpp @@ -66,11 +66,7 @@ void QHttp2Configuration_Swap(QHttp2Configuration* self, QHttp2Configuration* ot self->swap(*other); } -void QHttp2Configuration_Delete(QHttp2Configuration* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHttp2Configuration_Delete(QHttp2Configuration* self) { + delete self; } diff --git a/qt6/network/gen_qhttp2configuration.go b/qt6/network/gen_qhttp2configuration.go index 7bda510f..8e0d0e55 100644 --- a/qt6/network/gen_qhttp2configuration.go +++ b/qt6/network/gen_qhttp2configuration.go @@ -112,7 +112,7 @@ func (this *QHttp2Configuration) Swap(other *QHttp2Configuration) { // Delete this object from C++ memory. func (this *QHttp2Configuration) Delete() { - C.QHttp2Configuration_Delete(this.h, C.bool(this.isSubclass)) + C.QHttp2Configuration_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qhttp2configuration.h b/qt6/network/gen_qhttp2configuration.h index f4690761..77f417e7 100644 --- a/qt6/network/gen_qhttp2configuration.h +++ b/qt6/network/gen_qhttp2configuration.h @@ -34,7 +34,7 @@ unsigned int QHttp2Configuration_StreamReceiveWindowSize(const QHttp2Configurati bool QHttp2Configuration_SetMaxFrameSize(QHttp2Configuration* self, unsigned int size); unsigned int QHttp2Configuration_MaxFrameSize(const QHttp2Configuration* self); void QHttp2Configuration_Swap(QHttp2Configuration* self, QHttp2Configuration* other); -void QHttp2Configuration_Delete(QHttp2Configuration* self, bool isSubclass); +void QHttp2Configuration_Delete(QHttp2Configuration* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qhttpmultipart.cpp b/qt6/network/gen_qhttpmultipart.cpp index 7fe96c5f..07d50854 100644 --- a/qt6/network/gen_qhttpmultipart.cpp +++ b/qt6/network/gen_qhttpmultipart.cpp @@ -73,15 +73,11 @@ void QHttpPart_SetBodyDevice(QHttpPart* self, QIODevice* device) { self->setBodyDevice(device); } -void QHttpPart_Delete(QHttpPart* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHttpPart_Delete(QHttpPart* self) { + delete self; } -class MiqtVirtualQHttpMultiPart : public virtual QHttpMultiPart { +class MiqtVirtualQHttpMultiPart final : public QHttpMultiPart { public: MiqtVirtualQHttpMultiPart(): QHttpMultiPart() {}; @@ -89,7 +85,7 @@ public: MiqtVirtualQHttpMultiPart(QObject* parent): QHttpMultiPart(parent) {}; MiqtVirtualQHttpMultiPart(QHttpMultiPart::ContentType contentType, QObject* parent): QHttpMultiPart(contentType, parent) {}; - virtual ~MiqtVirtualQHttpMultiPart() = default; + virtual ~MiqtVirtualQHttpMultiPart() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -403,11 +399,7 @@ void QHttpMultiPart_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQHttpMultiPart*)(self) )->virtualbase_DisconnectNotify(signal); } -void QHttpMultiPart_Delete(QHttpMultiPart* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QHttpMultiPart_Delete(QHttpMultiPart* self) { + delete self; } diff --git a/qt6/network/gen_qhttpmultipart.go b/qt6/network/gen_qhttpmultipart.go index cabbd764..6e009eee 100644 --- a/qt6/network/gen_qhttpmultipart.go +++ b/qt6/network/gen_qhttpmultipart.go @@ -116,7 +116,7 @@ func (this *QHttpPart) SetBodyDevice(device *qt6.QIODevice) { // Delete this object from C++ memory. func (this *QHttpPart) Delete() { - C.QHttpPart_Delete(this.h, C.bool(this.isSubclass)) + C.QHttpPart_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -450,7 +450,7 @@ func miqt_exec_callback_QHttpMultiPart_DisconnectNotify(self *C.QHttpMultiPart, // Delete this object from C++ memory. func (this *QHttpMultiPart) Delete() { - C.QHttpMultiPart_Delete(this.h, C.bool(this.isSubclass)) + C.QHttpMultiPart_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qhttpmultipart.h b/qt6/network/gen_qhttpmultipart.h index 9edbde9e..ecd96714 100644 --- a/qt6/network/gen_qhttpmultipart.h +++ b/qt6/network/gen_qhttpmultipart.h @@ -48,7 +48,7 @@ void QHttpPart_SetHeader(QHttpPart* self, int header, QVariant* value); void QHttpPart_SetRawHeader(QHttpPart* self, struct miqt_string headerName, struct miqt_string headerValue); void QHttpPart_SetBody(QHttpPart* self, struct miqt_string body); void QHttpPart_SetBodyDevice(QHttpPart* self, QIODevice* device); -void QHttpPart_Delete(QHttpPart* self, bool isSubclass); +void QHttpPart_Delete(QHttpPart* self); QHttpMultiPart* QHttpMultiPart_new(); QHttpMultiPart* QHttpMultiPart_new2(int contentType); @@ -78,7 +78,7 @@ void QHttpMultiPart_override_virtual_ConnectNotify(void* self, intptr_t slot); void QHttpMultiPart_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QHttpMultiPart_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QHttpMultiPart_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QHttpMultiPart_Delete(QHttpMultiPart* self, bool isSubclass); +void QHttpMultiPart_Delete(QHttpMultiPart* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qlocalserver.cpp b/qt6/network/gen_qlocalserver.cpp index ef49d5f6..f64509ca 100644 --- a/qt6/network/gen_qlocalserver.cpp +++ b/qt6/network/gen_qlocalserver.cpp @@ -31,13 +31,13 @@ void miqt_exec_callback_QLocalServer_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQLocalServer : public virtual QLocalServer { +class MiqtVirtualQLocalServer final : public QLocalServer { public: MiqtVirtualQLocalServer(): QLocalServer() {}; MiqtVirtualQLocalServer(QObject* parent): QLocalServer(parent) {}; - virtual ~MiqtVirtualQLocalServer() = default; + virtual ~MiqtVirtualQLocalServer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__HasPendingConnections = 0; @@ -534,11 +534,7 @@ void QLocalServer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQLocalServer*)(self) )->virtualbase_DisconnectNotify(signal); } -void QLocalServer_Delete(QLocalServer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLocalServer_Delete(QLocalServer* self) { + delete self; } diff --git a/qt6/network/gen_qlocalserver.go b/qt6/network/gen_qlocalserver.go index 78264f9e..a713b751 100644 --- a/qt6/network/gen_qlocalserver.go +++ b/qt6/network/gen_qlocalserver.go @@ -504,7 +504,7 @@ func miqt_exec_callback_QLocalServer_DisconnectNotify(self *C.QLocalServer, cb C // Delete this object from C++ memory. func (this *QLocalServer) Delete() { - C.QLocalServer_Delete(this.h, C.bool(this.isSubclass)) + C.QLocalServer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qlocalserver.h b/qt6/network/gen_qlocalserver.h index dc25bda1..c0deeb65 100644 --- a/qt6/network/gen_qlocalserver.h +++ b/qt6/network/gen_qlocalserver.h @@ -86,7 +86,7 @@ void QLocalServer_override_virtual_ConnectNotify(void* self, intptr_t slot); void QLocalServer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QLocalServer_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QLocalServer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QLocalServer_Delete(QLocalServer* self, bool isSubclass); +void QLocalServer_Delete(QLocalServer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qlocalsocket.cpp b/qt6/network/gen_qlocalsocket.cpp index f3082907..70293b23 100644 --- a/qt6/network/gen_qlocalsocket.cpp +++ b/qt6/network/gen_qlocalsocket.cpp @@ -38,13 +38,13 @@ bool miqt_exec_callback_QLocalSocket_Reset(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQLocalSocket : public virtual QLocalSocket { +class MiqtVirtualQLocalSocket final : public QLocalSocket { public: MiqtVirtualQLocalSocket(): QLocalSocket() {}; MiqtVirtualQLocalSocket(QObject* parent): QLocalSocket(parent) {}; - virtual ~MiqtVirtualQLocalSocket() = default; + virtual ~MiqtVirtualQLocalSocket() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IsSequential = 0; @@ -837,11 +837,7 @@ bool QLocalSocket_virtualbase_Reset(void* self) { return ( (MiqtVirtualQLocalSocket*)(self) )->virtualbase_Reset(); } -void QLocalSocket_Delete(QLocalSocket* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QLocalSocket_Delete(QLocalSocket* self) { + delete self; } diff --git a/qt6/network/gen_qlocalsocket.go b/qt6/network/gen_qlocalsocket.go index b3f6a588..9275b0f1 100644 --- a/qt6/network/gen_qlocalsocket.go +++ b/qt6/network/gen_qlocalsocket.go @@ -829,7 +829,7 @@ func miqt_exec_callback_QLocalSocket_Reset(self *C.QLocalSocket, cb C.intptr_t) // Delete this object from C++ memory. func (this *QLocalSocket) Delete() { - C.QLocalSocket_Delete(this.h, C.bool(this.isSubclass)) + C.QLocalSocket_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qlocalsocket.h b/qt6/network/gen_qlocalsocket.h index 4a34a6bc..58d2c385 100644 --- a/qt6/network/gen_qlocalsocket.h +++ b/qt6/network/gen_qlocalsocket.h @@ -115,7 +115,7 @@ void QLocalSocket_override_virtual_AtEnd(void* self, intptr_t slot); bool QLocalSocket_virtualbase_AtEnd(const void* self); void QLocalSocket_override_virtual_Reset(void* self, intptr_t slot); bool QLocalSocket_virtualbase_Reset(void* self); -void QLocalSocket_Delete(QLocalSocket* self, bool isSubclass); +void QLocalSocket_Delete(QLocalSocket* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qnetworkaccessmanager.cpp b/qt6/network/gen_qnetworkaccessmanager.cpp index 75773aac..688e42bb 100644 --- a/qt6/network/gen_qnetworkaccessmanager.cpp +++ b/qt6/network/gen_qnetworkaccessmanager.cpp @@ -49,13 +49,13 @@ void miqt_exec_callback_QNetworkAccessManager_DisconnectNotify(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQNetworkAccessManager : public virtual QNetworkAccessManager { +class MiqtVirtualQNetworkAccessManager final : public QNetworkAccessManager { public: MiqtVirtualQNetworkAccessManager(): QNetworkAccessManager() {}; MiqtVirtualQNetworkAccessManager(QObject* parent): QNetworkAccessManager(parent) {}; - virtual ~MiqtVirtualQNetworkAccessManager() = default; + virtual ~MiqtVirtualQNetworkAccessManager() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SupportedSchemes = 0; @@ -738,11 +738,7 @@ void QNetworkAccessManager_virtualbase_DisconnectNotify(void* self, QMetaMethod* ( (MiqtVirtualQNetworkAccessManager*)(self) )->virtualbase_DisconnectNotify(signal); } -void QNetworkAccessManager_Delete(QNetworkAccessManager* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkAccessManager_Delete(QNetworkAccessManager* self) { + delete self; } diff --git a/qt6/network/gen_qnetworkaccessmanager.go b/qt6/network/gen_qnetworkaccessmanager.go index 9117a437..83d4ec47 100644 --- a/qt6/network/gen_qnetworkaccessmanager.go +++ b/qt6/network/gen_qnetworkaccessmanager.go @@ -783,7 +783,7 @@ func miqt_exec_callback_QNetworkAccessManager_DisconnectNotify(self *C.QNetworkA // Delete this object from C++ memory. func (this *QNetworkAccessManager) Delete() { - C.QNetworkAccessManager_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkAccessManager_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qnetworkaccessmanager.h b/qt6/network/gen_qnetworkaccessmanager.h index b853f623..10aff8ab 100644 --- a/qt6/network/gen_qnetworkaccessmanager.h +++ b/qt6/network/gen_qnetworkaccessmanager.h @@ -141,7 +141,7 @@ void QNetworkAccessManager_override_virtual_ConnectNotify(void* self, intptr_t s void QNetworkAccessManager_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QNetworkAccessManager_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QNetworkAccessManager_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QNetworkAccessManager_Delete(QNetworkAccessManager* self, bool isSubclass); +void QNetworkAccessManager_Delete(QNetworkAccessManager* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qnetworkcookie.cpp b/qt6/network/gen_qnetworkcookie.cpp index e252842a..f5891e04 100644 --- a/qt6/network/gen_qnetworkcookie.cpp +++ b/qt6/network/gen_qnetworkcookie.cpp @@ -189,11 +189,7 @@ struct miqt_string QNetworkCookie_ToRawForm1(const QNetworkCookie* self, int for return _ms; } -void QNetworkCookie_Delete(QNetworkCookie* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkCookie_Delete(QNetworkCookie* self) { + delete self; } diff --git a/qt6/network/gen_qnetworkcookie.go b/qt6/network/gen_qnetworkcookie.go index 32838888..e1502f28 100644 --- a/qt6/network/gen_qnetworkcookie.go +++ b/qt6/network/gen_qnetworkcookie.go @@ -255,7 +255,7 @@ func (this *QNetworkCookie) ToRawForm1(form QNetworkCookie__RawForm) []byte { // Delete this object from C++ memory. func (this *QNetworkCookie) Delete() { - C.QNetworkCookie_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkCookie_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qnetworkcookie.h b/qt6/network/gen_qnetworkcookie.h index 634c57d8..50cb8e6b 100644 --- a/qt6/network/gen_qnetworkcookie.h +++ b/qt6/network/gen_qnetworkcookie.h @@ -54,7 +54,7 @@ bool QNetworkCookie_HasSameIdentifier(const QNetworkCookie* self, QNetworkCookie void QNetworkCookie_Normalize(QNetworkCookie* self, QUrl* url); struct miqt_array /* of QNetworkCookie* */ QNetworkCookie_ParseCookies(struct miqt_string cookieString); struct miqt_string QNetworkCookie_ToRawForm1(const QNetworkCookie* self, int form); -void QNetworkCookie_Delete(QNetworkCookie* self, bool isSubclass); +void QNetworkCookie_Delete(QNetworkCookie* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qnetworkcookiejar.cpp b/qt6/network/gen_qnetworkcookiejar.cpp index 2d2d0199..6468e209 100644 --- a/qt6/network/gen_qnetworkcookiejar.cpp +++ b/qt6/network/gen_qnetworkcookiejar.cpp @@ -35,13 +35,13 @@ void miqt_exec_callback_QNetworkCookieJar_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQNetworkCookieJar : public virtual QNetworkCookieJar { +class MiqtVirtualQNetworkCookieJar final : public QNetworkCookieJar { public: MiqtVirtualQNetworkCookieJar(): QNetworkCookieJar() {}; MiqtVirtualQNetworkCookieJar(QObject* parent): QNetworkCookieJar(parent) {}; - virtual ~MiqtVirtualQNetworkCookieJar() = default; + virtual ~MiqtVirtualQNetworkCookieJar() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CookiesForUrl = 0; @@ -592,11 +592,7 @@ void QNetworkCookieJar_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQNetworkCookieJar*)(self) )->virtualbase_DisconnectNotify(signal); } -void QNetworkCookieJar_Delete(QNetworkCookieJar* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkCookieJar_Delete(QNetworkCookieJar* self) { + delete self; } diff --git a/qt6/network/gen_qnetworkcookiejar.go b/qt6/network/gen_qnetworkcookiejar.go index 3a8db948..508f9405 100644 --- a/qt6/network/gen_qnetworkcookiejar.go +++ b/qt6/network/gen_qnetworkcookiejar.go @@ -533,7 +533,7 @@ func miqt_exec_callback_QNetworkCookieJar_DisconnectNotify(self *C.QNetworkCooki // Delete this object from C++ memory. func (this *QNetworkCookieJar) Delete() { - C.QNetworkCookieJar_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkCookieJar_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qnetworkcookiejar.h b/qt6/network/gen_qnetworkcookiejar.h index 0e2436f6..817d44be 100644 --- a/qt6/network/gen_qnetworkcookiejar.h +++ b/qt6/network/gen_qnetworkcookiejar.h @@ -76,7 +76,7 @@ void QNetworkCookieJar_override_virtual_ConnectNotify(void* self, intptr_t slot) void QNetworkCookieJar_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QNetworkCookieJar_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QNetworkCookieJar_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QNetworkCookieJar_Delete(QNetworkCookieJar* self, bool isSubclass); +void QNetworkCookieJar_Delete(QNetworkCookieJar* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qnetworkdatagram.cpp b/qt6/network/gen_qnetworkdatagram.cpp index 9b536a37..642b29f4 100644 --- a/qt6/network/gen_qnetworkdatagram.cpp +++ b/qt6/network/gen_qnetworkdatagram.cpp @@ -119,11 +119,7 @@ void QNetworkDatagram_SetSender2(QNetworkDatagram* self, QHostAddress* address, self->setSender(*address, static_cast(port)); } -void QNetworkDatagram_Delete(QNetworkDatagram* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkDatagram_Delete(QNetworkDatagram* self) { + delete self; } diff --git a/qt6/network/gen_qnetworkdatagram.go b/qt6/network/gen_qnetworkdatagram.go index 05caa0d3..495f10e8 100644 --- a/qt6/network/gen_qnetworkdatagram.go +++ b/qt6/network/gen_qnetworkdatagram.go @@ -188,7 +188,7 @@ func (this *QNetworkDatagram) SetSender2(address *QHostAddress, port uint16) { // Delete this object from C++ memory. func (this *QNetworkDatagram) Delete() { - C.QNetworkDatagram_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkDatagram_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qnetworkdatagram.h b/qt6/network/gen_qnetworkdatagram.h index 4da939e1..7c1c3141 100644 --- a/qt6/network/gen_qnetworkdatagram.h +++ b/qt6/network/gen_qnetworkdatagram.h @@ -46,7 +46,7 @@ struct miqt_string QNetworkDatagram_Data(const QNetworkDatagram* self); void QNetworkDatagram_SetData(QNetworkDatagram* self, struct miqt_string data); QNetworkDatagram* QNetworkDatagram_MakeReply(const QNetworkDatagram* self, struct miqt_string payload); void QNetworkDatagram_SetSender2(QNetworkDatagram* self, QHostAddress* address, uint16_t port); -void QNetworkDatagram_Delete(QNetworkDatagram* self, bool isSubclass); +void QNetworkDatagram_Delete(QNetworkDatagram* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qnetworkdiskcache.cpp b/qt6/network/gen_qnetworkdiskcache.cpp index bbbd5b39..2752185d 100644 --- a/qt6/network/gen_qnetworkdiskcache.cpp +++ b/qt6/network/gen_qnetworkdiskcache.cpp @@ -28,13 +28,13 @@ long long miqt_exec_callback_QNetworkDiskCache_Expire(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQNetworkDiskCache : public virtual QNetworkDiskCache { +class MiqtVirtualQNetworkDiskCache final : public QNetworkDiskCache { public: MiqtVirtualQNetworkDiskCache(): QNetworkDiskCache() {}; MiqtVirtualQNetworkDiskCache(QObject* parent): QNetworkDiskCache(parent) {}; - virtual ~MiqtVirtualQNetworkDiskCache() = default; + virtual ~MiqtVirtualQNetworkDiskCache() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__CacheSize = 0; @@ -445,11 +445,7 @@ long long QNetworkDiskCache_virtualbase_Expire(void* self) { return ( (MiqtVirtualQNetworkDiskCache*)(self) )->virtualbase_Expire(); } -void QNetworkDiskCache_Delete(QNetworkDiskCache* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkDiskCache_Delete(QNetworkDiskCache* self) { + delete self; } diff --git a/qt6/network/gen_qnetworkdiskcache.go b/qt6/network/gen_qnetworkdiskcache.go index ac57b5e8..2fe32bbe 100644 --- a/qt6/network/gen_qnetworkdiskcache.go +++ b/qt6/network/gen_qnetworkdiskcache.go @@ -417,7 +417,7 @@ func miqt_exec_callback_QNetworkDiskCache_Expire(self *C.QNetworkDiskCache, cb C // Delete this object from C++ memory. func (this *QNetworkDiskCache) Delete() { - C.QNetworkDiskCache_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkDiskCache_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qnetworkdiskcache.h b/qt6/network/gen_qnetworkdiskcache.h index fd2494fb..1bca87f9 100644 --- a/qt6/network/gen_qnetworkdiskcache.h +++ b/qt6/network/gen_qnetworkdiskcache.h @@ -72,7 +72,7 @@ void QNetworkDiskCache_override_virtual_Clear(void* self, intptr_t slot); void QNetworkDiskCache_virtualbase_Clear(void* self); void QNetworkDiskCache_override_virtual_Expire(void* self, intptr_t slot); long long QNetworkDiskCache_virtualbase_Expire(void* self); -void QNetworkDiskCache_Delete(QNetworkDiskCache* self, bool isSubclass); +void QNetworkDiskCache_Delete(QNetworkDiskCache* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qnetworkinterface.cpp b/qt6/network/gen_qnetworkinterface.cpp index 3355b216..3e690b98 100644 --- a/qt6/network/gen_qnetworkinterface.cpp +++ b/qt6/network/gen_qnetworkinterface.cpp @@ -110,12 +110,8 @@ bool QNetworkAddressEntry_IsTemporary(const QNetworkAddressEntry* self) { return self->isTemporary(); } -void QNetworkAddressEntry_Delete(QNetworkAddressEntry* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkAddressEntry_Delete(QNetworkAddressEntry* self) { + delete self; } QNetworkInterface* QNetworkInterface_new() { @@ -253,11 +249,7 @@ struct miqt_array /* of QHostAddress* */ QNetworkInterface_AllAddresses() { return _out; } -void QNetworkInterface_Delete(QNetworkInterface* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkInterface_Delete(QNetworkInterface* self) { + delete self; } diff --git a/qt6/network/gen_qnetworkinterface.go b/qt6/network/gen_qnetworkinterface.go index f6e65d60..cdd90ca4 100644 --- a/qt6/network/gen_qnetworkinterface.go +++ b/qt6/network/gen_qnetworkinterface.go @@ -198,7 +198,7 @@ func (this *QNetworkAddressEntry) IsTemporary() bool { // Delete this object from C++ memory. func (this *QNetworkAddressEntry) Delete() { - C.QNetworkAddressEntry_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkAddressEntry_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -377,7 +377,7 @@ func QNetworkInterface_AllAddresses() []QHostAddress { // Delete this object from C++ memory. func (this *QNetworkInterface) Delete() { - C.QNetworkInterface_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkInterface_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qnetworkinterface.h b/qt6/network/gen_qnetworkinterface.h index ddd6bac0..fe35f360 100644 --- a/qt6/network/gen_qnetworkinterface.h +++ b/qt6/network/gen_qnetworkinterface.h @@ -49,7 +49,7 @@ void QNetworkAddressEntry_SetAddressLifetime(QNetworkAddressEntry* self, QDeadli void QNetworkAddressEntry_ClearAddressLifetime(QNetworkAddressEntry* self); bool QNetworkAddressEntry_IsPermanent(const QNetworkAddressEntry* self); bool QNetworkAddressEntry_IsTemporary(const QNetworkAddressEntry* self); -void QNetworkAddressEntry_Delete(QNetworkAddressEntry* self, bool isSubclass); +void QNetworkAddressEntry_Delete(QNetworkAddressEntry* self); QNetworkInterface* QNetworkInterface_new(); QNetworkInterface* QNetworkInterface_new2(QNetworkInterface* other); @@ -70,7 +70,7 @@ QNetworkInterface* QNetworkInterface_InterfaceFromIndex(int index); struct miqt_string QNetworkInterface_InterfaceNameFromIndex(int index); struct miqt_array /* of QNetworkInterface* */ QNetworkInterface_AllInterfaces(); struct miqt_array /* of QHostAddress* */ QNetworkInterface_AllAddresses(); -void QNetworkInterface_Delete(QNetworkInterface* self, bool isSubclass); +void QNetworkInterface_Delete(QNetworkInterface* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qnetworkproxy.cpp b/qt6/network/gen_qnetworkproxy.cpp index 1bad5c40..7362252b 100644 --- a/qt6/network/gen_qnetworkproxy.cpp +++ b/qt6/network/gen_qnetworkproxy.cpp @@ -148,12 +148,8 @@ void QNetworkProxyQuery_SetUrl(QNetworkProxyQuery* self, QUrl* url) { self->setUrl(*url); } -void QNetworkProxyQuery_Delete(QNetworkProxyQuery* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkProxyQuery_Delete(QNetworkProxyQuery* self) { + delete self; } QNetworkProxy* QNetworkProxy_new() { @@ -345,20 +341,16 @@ void QNetworkProxy_SetRawHeader(QNetworkProxy* self, struct miqt_string headerNa self->setRawHeader(headerName_QByteArray, value_QByteArray); } -void QNetworkProxy_Delete(QNetworkProxy* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkProxy_Delete(QNetworkProxy* self) { + delete self; } -class MiqtVirtualQNetworkProxyFactory : public virtual QNetworkProxyFactory { +class MiqtVirtualQNetworkProxyFactory final : public QNetworkProxyFactory { public: MiqtVirtualQNetworkProxyFactory(): QNetworkProxyFactory() {}; - virtual ~MiqtVirtualQNetworkProxyFactory() = default; + virtual ~MiqtVirtualQNetworkProxyFactory() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__QueryProxy = 0; @@ -462,11 +454,7 @@ void QNetworkProxyFactory_override_virtual_QueryProxy(void* self, intptr_t slot) dynamic_cast( (QNetworkProxyFactory*)(self) )->handle__QueryProxy = slot; } -void QNetworkProxyFactory_Delete(QNetworkProxyFactory* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkProxyFactory_Delete(QNetworkProxyFactory* self) { + delete self; } diff --git a/qt6/network/gen_qnetworkproxy.go b/qt6/network/gen_qnetworkproxy.go index 86d0a84c..b353fc75 100644 --- a/qt6/network/gen_qnetworkproxy.go +++ b/qt6/network/gen_qnetworkproxy.go @@ -272,7 +272,7 @@ func (this *QNetworkProxyQuery) SetUrl(url *qt6.QUrl) { // Delete this object from C++ memory. func (this *QNetworkProxyQuery) Delete() { - C.QNetworkProxyQuery_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkProxyQuery_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -556,7 +556,7 @@ func (this *QNetworkProxy) SetRawHeader(headerName []byte, value []byte) { // Delete this object from C++ memory. func (this *QNetworkProxy) Delete() { - C.QNetworkProxy_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkProxy_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -703,7 +703,7 @@ func miqt_exec_callback_QNetworkProxyFactory_QueryProxy(self *C.QNetworkProxyFac // Delete this object from C++ memory. func (this *QNetworkProxyFactory) Delete() { - C.QNetworkProxyFactory_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkProxyFactory_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qnetworkproxy.h b/qt6/network/gen_qnetworkproxy.h index 7a3709f9..9253e89c 100644 --- a/qt6/network/gen_qnetworkproxy.h +++ b/qt6/network/gen_qnetworkproxy.h @@ -54,7 +54,7 @@ struct miqt_string QNetworkProxyQuery_ProtocolTag(const QNetworkProxyQuery* self void QNetworkProxyQuery_SetProtocolTag(QNetworkProxyQuery* self, struct miqt_string protocolTag); QUrl* QNetworkProxyQuery_Url(const QNetworkProxyQuery* self); void QNetworkProxyQuery_SetUrl(QNetworkProxyQuery* self, QUrl* url); -void QNetworkProxyQuery_Delete(QNetworkProxyQuery* self, bool isSubclass); +void QNetworkProxyQuery_Delete(QNetworkProxyQuery* self); QNetworkProxy* QNetworkProxy_new(); QNetworkProxy* QNetworkProxy_new2(int typeVal); @@ -89,7 +89,7 @@ bool QNetworkProxy_HasRawHeader(const QNetworkProxy* self, struct miqt_string he struct miqt_array /* of struct miqt_string */ QNetworkProxy_RawHeaderList(const QNetworkProxy* self); struct miqt_string QNetworkProxy_RawHeader(const QNetworkProxy* self, struct miqt_string headerName); void QNetworkProxy_SetRawHeader(QNetworkProxy* self, struct miqt_string headerName, struct miqt_string value); -void QNetworkProxy_Delete(QNetworkProxy* self, bool isSubclass); +void QNetworkProxy_Delete(QNetworkProxy* self); QNetworkProxyFactory* QNetworkProxyFactory_new(); struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_QueryProxy(QNetworkProxyFactory* self, QNetworkProxyQuery* query); @@ -102,7 +102,7 @@ void QNetworkProxyFactory_OperatorAssign(QNetworkProxyFactory* self, QNetworkPro struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_SystemProxyForQuery1(QNetworkProxyQuery* query); void QNetworkProxyFactory_override_virtual_QueryProxy(void* self, intptr_t slot); struct miqt_array /* of QNetworkProxy* */ QNetworkProxyFactory_virtualbase_QueryProxy(void* self, QNetworkProxyQuery* query); -void QNetworkProxyFactory_Delete(QNetworkProxyFactory* self, bool isSubclass); +void QNetworkProxyFactory_Delete(QNetworkProxyFactory* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qnetworkreply.cpp b/qt6/network/gen_qnetworkreply.cpp index d235787a..19c269ed 100644 --- a/qt6/network/gen_qnetworkreply.cpp +++ b/qt6/network/gen_qnetworkreply.cpp @@ -381,11 +381,7 @@ struct miqt_string QNetworkReply_Tr3(const char* s, const char* c, int n) { return _ms; } -void QNetworkReply_Delete(QNetworkReply* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkReply_Delete(QNetworkReply* self) { + delete self; } diff --git a/qt6/network/gen_qnetworkreply.go b/qt6/network/gen_qnetworkreply.go index 1392f19d..bbb8e2dc 100644 --- a/qt6/network/gen_qnetworkreply.go +++ b/qt6/network/gen_qnetworkreply.go @@ -522,7 +522,7 @@ func QNetworkReply_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QNetworkReply) Delete() { - C.QNetworkReply_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkReply_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qnetworkreply.h b/qt6/network/gen_qnetworkreply.h index 2a094783..93ca7254 100644 --- a/qt6/network/gen_qnetworkreply.h +++ b/qt6/network/gen_qnetworkreply.h @@ -98,7 +98,7 @@ void QNetworkReply_SetSslConfigurationImplementation(QNetworkReply* self, QSslCo void QNetworkReply_IgnoreSslErrorsImplementation(QNetworkReply* self, struct miqt_array /* of QSslError* */ param1); struct miqt_string QNetworkReply_Tr2(const char* s, const char* c); struct miqt_string QNetworkReply_Tr3(const char* s, const char* c, int n); -void QNetworkReply_Delete(QNetworkReply* self, bool isSubclass); +void QNetworkReply_Delete(QNetworkReply* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qnetworkrequest.cpp b/qt6/network/gen_qnetworkrequest.cpp index fe583911..73549209 100644 --- a/qt6/network/gen_qnetworkrequest.cpp +++ b/qt6/network/gen_qnetworkrequest.cpp @@ -193,11 +193,7 @@ void QNetworkRequest_SetTransferTimeout1(QNetworkRequest* self, int timeout) { self->setTransferTimeout(static_cast(timeout)); } -void QNetworkRequest_Delete(QNetworkRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QNetworkRequest_Delete(QNetworkRequest* self) { + delete self; } diff --git a/qt6/network/gen_qnetworkrequest.go b/qt6/network/gen_qnetworkrequest.go index e67e56f2..9233d8fe 100644 --- a/qt6/network/gen_qnetworkrequest.go +++ b/qt6/network/gen_qnetworkrequest.go @@ -336,7 +336,7 @@ func (this *QNetworkRequest) SetTransferTimeout1(timeout int) { // Delete this object from C++ memory. func (this *QNetworkRequest) Delete() { - C.QNetworkRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QNetworkRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qnetworkrequest.h b/qt6/network/gen_qnetworkrequest.h index d9559df2..a3540b14 100644 --- a/qt6/network/gen_qnetworkrequest.h +++ b/qt6/network/gen_qnetworkrequest.h @@ -65,7 +65,7 @@ int QNetworkRequest_TransferTimeout(const QNetworkRequest* self); void QNetworkRequest_SetTransferTimeout(QNetworkRequest* self); QVariant* QNetworkRequest_Attribute2(const QNetworkRequest* self, int code, QVariant* defaultValue); void QNetworkRequest_SetTransferTimeout1(QNetworkRequest* self, int timeout); -void QNetworkRequest_Delete(QNetworkRequest* self, bool isSubclass); +void QNetworkRequest_Delete(QNetworkRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qocspresponse.cpp b/qt6/network/gen_qocspresponse.cpp index b20f6308..ca8abb4a 100644 --- a/qt6/network/gen_qocspresponse.cpp +++ b/qt6/network/gen_qocspresponse.cpp @@ -45,11 +45,7 @@ void QOcspResponse_Swap(QOcspResponse* self, QOcspResponse* other) { self->swap(*other); } -void QOcspResponse_Delete(QOcspResponse* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QOcspResponse_Delete(QOcspResponse* self) { + delete self; } diff --git a/qt6/network/gen_qocspresponse.go b/qt6/network/gen_qocspresponse.go index c862e9a4..a3d8f40d 100644 --- a/qt6/network/gen_qocspresponse.go +++ b/qt6/network/gen_qocspresponse.go @@ -114,7 +114,7 @@ func (this *QOcspResponse) Swap(other *QOcspResponse) { // Delete this object from C++ memory. func (this *QOcspResponse) Delete() { - C.QOcspResponse_Delete(this.h, C.bool(this.isSubclass)) + C.QOcspResponse_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qocspresponse.h b/qt6/network/gen_qocspresponse.h index 184c9cb9..95f43f03 100644 --- a/qt6/network/gen_qocspresponse.h +++ b/qt6/network/gen_qocspresponse.h @@ -30,7 +30,7 @@ int QOcspResponse_RevocationReason(const QOcspResponse* self); QSslCertificate* QOcspResponse_Responder(const QOcspResponse* self); QSslCertificate* QOcspResponse_Subject(const QOcspResponse* self); void QOcspResponse_Swap(QOcspResponse* self, QOcspResponse* other); -void QOcspResponse_Delete(QOcspResponse* self, bool isSubclass); +void QOcspResponse_Delete(QOcspResponse* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsctpserver.cpp b/qt6/network/gen_qsctpserver.cpp index d9c5d19c..28b7f8de 100644 --- a/qt6/network/gen_qsctpserver.cpp +++ b/qt6/network/gen_qsctpserver.cpp @@ -21,13 +21,13 @@ QTcpSocket* miqt_exec_callback_QSctpServer_NextPendingConnection(void*, intptr_t } /* extern C */ #endif -class MiqtVirtualQSctpServer : public virtual QSctpServer { +class MiqtVirtualQSctpServer final : public QSctpServer { public: MiqtVirtualQSctpServer(): QSctpServer() {}; MiqtVirtualQSctpServer(QObject* parent): QSctpServer(parent) {}; - virtual ~MiqtVirtualQSctpServer() = default; + virtual ~MiqtVirtualQSctpServer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IncomingConnection = 0; @@ -189,11 +189,7 @@ QTcpSocket* QSctpServer_virtualbase_NextPendingConnection(void* self) { return ( (MiqtVirtualQSctpServer*)(self) )->virtualbase_NextPendingConnection(); } -void QSctpServer_Delete(QSctpServer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSctpServer_Delete(QSctpServer* self) { + delete self; } diff --git a/qt6/network/gen_qsctpserver.go b/qt6/network/gen_qsctpserver.go index c593cb91..289d765c 100644 --- a/qt6/network/gen_qsctpserver.go +++ b/qt6/network/gen_qsctpserver.go @@ -199,7 +199,7 @@ func miqt_exec_callback_QSctpServer_NextPendingConnection(self *C.QSctpServer, c // Delete this object from C++ memory. func (this *QSctpServer) Delete() { - C.QSctpServer_Delete(this.h, C.bool(this.isSubclass)) + C.QSctpServer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsctpserver.h b/qt6/network/gen_qsctpserver.h index 5558cdc7..5a4c3893 100644 --- a/qt6/network/gen_qsctpserver.h +++ b/qt6/network/gen_qsctpserver.h @@ -48,7 +48,7 @@ void QSctpServer_override_virtual_HasPendingConnections(void* self, intptr_t slo bool QSctpServer_virtualbase_HasPendingConnections(const void* self); void QSctpServer_override_virtual_NextPendingConnection(void* self, intptr_t slot); QTcpSocket* QSctpServer_virtualbase_NextPendingConnection(void* self); -void QSctpServer_Delete(QSctpServer* self, bool isSubclass); +void QSctpServer_Delete(QSctpServer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsctpsocket.cpp b/qt6/network/gen_qsctpsocket.cpp index 0d07b2f0..bee366a4 100644 --- a/qt6/network/gen_qsctpsocket.cpp +++ b/qt6/network/gen_qsctpsocket.cpp @@ -24,13 +24,13 @@ long long miqt_exec_callback_QSctpSocket_ReadLineData(void*, intptr_t, char*, lo } /* extern C */ #endif -class MiqtVirtualQSctpSocket : public virtual QSctpSocket { +class MiqtVirtualQSctpSocket final : public QSctpSocket { public: MiqtVirtualQSctpSocket(): QSctpSocket() {}; MiqtVirtualQSctpSocket(QObject* parent): QSctpSocket(parent) {}; - virtual ~MiqtVirtualQSctpSocket() = default; + virtual ~MiqtVirtualQSctpSocket() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Close = 0; @@ -245,11 +245,7 @@ long long QSctpSocket_virtualbase_ReadLineData(void* self, char* data, long long return ( (MiqtVirtualQSctpSocket*)(self) )->virtualbase_ReadLineData(data, maxlen); } -void QSctpSocket_Delete(QSctpSocket* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSctpSocket_Delete(QSctpSocket* self) { + delete self; } diff --git a/qt6/network/gen_qsctpsocket.go b/qt6/network/gen_qsctpsocket.go index bad6df12..5778c9b0 100644 --- a/qt6/network/gen_qsctpsocket.go +++ b/qt6/network/gen_qsctpsocket.go @@ -253,7 +253,7 @@ func miqt_exec_callback_QSctpSocket_ReadLineData(self *C.QSctpSocket, cb C.intpt // Delete this object from C++ memory. func (this *QSctpSocket) Delete() { - C.QSctpSocket_Delete(this.h, C.bool(this.isSubclass)) + C.QSctpSocket_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsctpsocket.h b/qt6/network/gen_qsctpsocket.h index 89519a06..36e6c612 100644 --- a/qt6/network/gen_qsctpsocket.h +++ b/qt6/network/gen_qsctpsocket.h @@ -59,7 +59,7 @@ void QSctpSocket_override_virtual_ReadData(void* self, intptr_t slot); long long QSctpSocket_virtualbase_ReadData(void* self, char* data, long long maxlen); void QSctpSocket_override_virtual_ReadLineData(void* self, intptr_t slot); long long QSctpSocket_virtualbase_ReadLineData(void* self, char* data, long long maxlen); -void QSctpSocket_Delete(QSctpSocket* self, bool isSubclass); +void QSctpSocket_Delete(QSctpSocket* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsslcertificate.cpp b/qt6/network/gen_qsslcertificate.cpp index 22c82dac..2f3766a2 100644 --- a/qt6/network/gen_qsslcertificate.cpp +++ b/qt6/network/gen_qsslcertificate.cpp @@ -473,11 +473,7 @@ bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertific return QSslCertificate::importPkcs12(device, key, cert, &caCertificates_QList, passPhrase_QByteArray); } -void QSslCertificate_Delete(QSslCertificate* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslCertificate_Delete(QSslCertificate* self) { + delete self; } diff --git a/qt6/network/gen_qsslcertificate.go b/qt6/network/gen_qsslcertificate.go index 2123fa83..00c39b5c 100644 --- a/qt6/network/gen_qsslcertificate.go +++ b/qt6/network/gen_qsslcertificate.go @@ -507,7 +507,7 @@ func QSslCertificate_ImportPkcs125(device *qt6.QIODevice, key *QSslKey, cert *QS // Delete this object from C++ memory. func (this *QSslCertificate) Delete() { - C.QSslCertificate_Delete(this.h, C.bool(this.isSubclass)) + C.QSslCertificate_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsslcertificate.h b/qt6/network/gen_qsslcertificate.h index bc7ba4f7..8cf7bb88 100644 --- a/qt6/network/gen_qsslcertificate.h +++ b/qt6/network/gen_qsslcertificate.h @@ -76,7 +76,7 @@ struct miqt_array /* of QSslCertificate* */ QSslCertificate_FromData2(struct mi struct miqt_array /* of QSslError* */ QSslCertificate_Verify2(struct miqt_array /* of QSslCertificate* */ certificateChain, struct miqt_string hostName); bool QSslCertificate_ImportPkcs124(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates); bool QSslCertificate_ImportPkcs125(QIODevice* device, QSslKey* key, QSslCertificate* cert, struct miqt_array /* of QSslCertificate* */ caCertificates, struct miqt_string passPhrase); -void QSslCertificate_Delete(QSslCertificate* self, bool isSubclass); +void QSslCertificate_Delete(QSslCertificate* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsslcertificateextension.cpp b/qt6/network/gen_qsslcertificateextension.cpp index 04dbece5..9b29db43 100644 --- a/qt6/network/gen_qsslcertificateextension.cpp +++ b/qt6/network/gen_qsslcertificateextension.cpp @@ -64,11 +64,7 @@ bool QSslCertificateExtension_IsSupported(const QSslCertificateExtension* self) return self->isSupported(); } -void QSslCertificateExtension_Delete(QSslCertificateExtension* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslCertificateExtension_Delete(QSslCertificateExtension* self) { + delete self; } diff --git a/qt6/network/gen_qsslcertificateextension.go b/qt6/network/gen_qsslcertificateextension.go index 7ed8e634..28eb45ee 100644 --- a/qt6/network/gen_qsslcertificateextension.go +++ b/qt6/network/gen_qsslcertificateextension.go @@ -101,7 +101,7 @@ func (this *QSslCertificateExtension) IsSupported() bool { // Delete this object from C++ memory. func (this *QSslCertificateExtension) Delete() { - C.QSslCertificateExtension_Delete(this.h, C.bool(this.isSubclass)) + C.QSslCertificateExtension_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsslcertificateextension.h b/qt6/network/gen_qsslcertificateextension.h index f8de3e84..de3e3a68 100644 --- a/qt6/network/gen_qsslcertificateextension.h +++ b/qt6/network/gen_qsslcertificateextension.h @@ -31,7 +31,7 @@ struct miqt_string QSslCertificateExtension_Name(const QSslCertificateExtension* QVariant* QSslCertificateExtension_Value(const QSslCertificateExtension* self); bool QSslCertificateExtension_IsCritical(const QSslCertificateExtension* self); bool QSslCertificateExtension_IsSupported(const QSslCertificateExtension* self); -void QSslCertificateExtension_Delete(QSslCertificateExtension* self, bool isSubclass); +void QSslCertificateExtension_Delete(QSslCertificateExtension* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsslcipher.cpp b/qt6/network/gen_qsslcipher.cpp index 3baba36e..d1c4eb2d 100644 --- a/qt6/network/gen_qsslcipher.cpp +++ b/qt6/network/gen_qsslcipher.cpp @@ -119,11 +119,7 @@ int QSslCipher_Protocol(const QSslCipher* self) { return static_cast(_ret); } -void QSslCipher_Delete(QSslCipher* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslCipher_Delete(QSslCipher* self) { + delete self; } diff --git a/qt6/network/gen_qsslcipher.go b/qt6/network/gen_qsslcipher.go index 402a8dfe..bbb07c2a 100644 --- a/qt6/network/gen_qsslcipher.go +++ b/qt6/network/gen_qsslcipher.go @@ -155,7 +155,7 @@ func (this *QSslCipher) Protocol() QSsl__SslProtocol { // Delete this object from C++ memory. func (this *QSslCipher) Delete() { - C.QSslCipher_Delete(this.h, C.bool(this.isSubclass)) + C.QSslCipher_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsslcipher.h b/qt6/network/gen_qsslcipher.h index fa5290fa..ea75b25c 100644 --- a/qt6/network/gen_qsslcipher.h +++ b/qt6/network/gen_qsslcipher.h @@ -37,7 +37,7 @@ struct miqt_string QSslCipher_AuthenticationMethod(const QSslCipher* self); struct miqt_string QSslCipher_EncryptionMethod(const QSslCipher* self); struct miqt_string QSslCipher_ProtocolString(const QSslCipher* self); int QSslCipher_Protocol(const QSslCipher* self); -void QSslCipher_Delete(QSslCipher* self, bool isSubclass); +void QSslCipher_Delete(QSslCipher* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsslconfiguration.cpp b/qt6/network/gen_qsslconfiguration.cpp index a83ee0b9..aa8e38d5 100644 --- a/qt6/network/gen_qsslconfiguration.cpp +++ b/qt6/network/gen_qsslconfiguration.cpp @@ -434,11 +434,7 @@ bool QSslConfiguration_AddCaCertificates3(QSslConfiguration* self, struct miqt_s return self->addCaCertificates(path_QString, static_cast(format), static_cast(syntax)); } -void QSslConfiguration_Delete(QSslConfiguration* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslConfiguration_Delete(QSslConfiguration* self) { + delete self; } diff --git a/qt6/network/gen_qsslconfiguration.go b/qt6/network/gen_qsslconfiguration.go index a378552d..e2f7b0ed 100644 --- a/qt6/network/gen_qsslconfiguration.go +++ b/qt6/network/gen_qsslconfiguration.go @@ -491,7 +491,7 @@ func (this *QSslConfiguration) AddCaCertificates3(path string, format QSsl__Enco // Delete this object from C++ memory. func (this *QSslConfiguration) Delete() { - C.QSslConfiguration_Delete(this.h, C.bool(this.isSubclass)) + C.QSslConfiguration_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsslconfiguration.h b/qt6/network/gen_qsslconfiguration.h index f3eb99d3..1cf032d3 100644 --- a/qt6/network/gen_qsslconfiguration.h +++ b/qt6/network/gen_qsslconfiguration.h @@ -98,7 +98,7 @@ struct miqt_string QSslConfiguration_NextNegotiatedProtocol(const QSslConfigurat int QSslConfiguration_NextProtocolNegotiationStatus(const QSslConfiguration* self); bool QSslConfiguration_AddCaCertificates2(QSslConfiguration* self, struct miqt_string path, int format); bool QSslConfiguration_AddCaCertificates3(QSslConfiguration* self, struct miqt_string path, int format, int syntax); -void QSslConfiguration_Delete(QSslConfiguration* self, bool isSubclass); +void QSslConfiguration_Delete(QSslConfiguration* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qssldiffiehellmanparameters.cpp b/qt6/network/gen_qssldiffiehellmanparameters.cpp index 17dd89b9..45b12a72 100644 --- a/qt6/network/gen_qssldiffiehellmanparameters.cpp +++ b/qt6/network/gen_qssldiffiehellmanparameters.cpp @@ -77,11 +77,7 @@ QSslDiffieHellmanParameters* QSslDiffieHellmanParameters_FromEncoded22(QIODevice return new QSslDiffieHellmanParameters(QSslDiffieHellmanParameters::fromEncoded(device, static_cast(format))); } -void QSslDiffieHellmanParameters_Delete(QSslDiffieHellmanParameters* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslDiffieHellmanParameters_Delete(QSslDiffieHellmanParameters* self) { + delete self; } diff --git a/qt6/network/gen_qssldiffiehellmanparameters.go b/qt6/network/gen_qssldiffiehellmanparameters.go index 5cec9c26..d95d54a5 100644 --- a/qt6/network/gen_qssldiffiehellmanparameters.go +++ b/qt6/network/gen_qssldiffiehellmanparameters.go @@ -136,7 +136,7 @@ func QSslDiffieHellmanParameters_FromEncoded22(device *qt6.QIODevice, format QSs // Delete this object from C++ memory. func (this *QSslDiffieHellmanParameters) Delete() { - C.QSslDiffieHellmanParameters_Delete(this.h, C.bool(this.isSubclass)) + C.QSslDiffieHellmanParameters_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qssldiffiehellmanparameters.h b/qt6/network/gen_qssldiffiehellmanparameters.h index e9f9d033..4cd8fd46 100644 --- a/qt6/network/gen_qssldiffiehellmanparameters.h +++ b/qt6/network/gen_qssldiffiehellmanparameters.h @@ -35,7 +35,7 @@ int QSslDiffieHellmanParameters_Error(const QSslDiffieHellmanParameters* self); struct miqt_string QSslDiffieHellmanParameters_ErrorString(const QSslDiffieHellmanParameters* self); QSslDiffieHellmanParameters* QSslDiffieHellmanParameters_FromEncoded2(struct miqt_string encoded, int format); QSslDiffieHellmanParameters* QSslDiffieHellmanParameters_FromEncoded22(QIODevice* device, int format); -void QSslDiffieHellmanParameters_Delete(QSslDiffieHellmanParameters* self, bool isSubclass); +void QSslDiffieHellmanParameters_Delete(QSslDiffieHellmanParameters* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsslellipticcurve.cpp b/qt6/network/gen_qsslellipticcurve.cpp index a2d35662..5e310bf7 100644 --- a/qt6/network/gen_qsslellipticcurve.cpp +++ b/qt6/network/gen_qsslellipticcurve.cpp @@ -61,11 +61,7 @@ bool QSslEllipticCurve_IsTlsNamedCurve(const QSslEllipticCurve* self) { return self->isTlsNamedCurve(); } -void QSslEllipticCurve_Delete(QSslEllipticCurve* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslEllipticCurve_Delete(QSslEllipticCurve* self) { + delete self; } diff --git a/qt6/network/gen_qsslellipticcurve.go b/qt6/network/gen_qsslellipticcurve.go index 3a737154..52e28825 100644 --- a/qt6/network/gen_qsslellipticcurve.go +++ b/qt6/network/gen_qsslellipticcurve.go @@ -106,7 +106,7 @@ func (this *QSslEllipticCurve) IsTlsNamedCurve() bool { // Delete this object from C++ memory. func (this *QSslEllipticCurve) Delete() { - C.QSslEllipticCurve_Delete(this.h, C.bool(this.isSubclass)) + C.QSslEllipticCurve_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsslellipticcurve.h b/qt6/network/gen_qsslellipticcurve.h index 80a78217..47ab7162 100644 --- a/qt6/network/gen_qsslellipticcurve.h +++ b/qt6/network/gen_qsslellipticcurve.h @@ -28,7 +28,7 @@ struct miqt_string QSslEllipticCurve_ShortName(const QSslEllipticCurve* self); struct miqt_string QSslEllipticCurve_LongName(const QSslEllipticCurve* self); bool QSslEllipticCurve_IsValid(const QSslEllipticCurve* self); bool QSslEllipticCurve_IsTlsNamedCurve(const QSslEllipticCurve* self); -void QSslEllipticCurve_Delete(QSslEllipticCurve* self, bool isSubclass); +void QSslEllipticCurve_Delete(QSslEllipticCurve* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsslerror.cpp b/qt6/network/gen_qsslerror.cpp index 9c9b1a4a..bc74afc4 100644 --- a/qt6/network/gen_qsslerror.cpp +++ b/qt6/network/gen_qsslerror.cpp @@ -66,11 +66,7 @@ QSslCertificate* QSslError_Certificate(const QSslError* self) { return new QSslCertificate(self->certificate()); } -void QSslError_Delete(QSslError* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslError_Delete(QSslError* self) { + delete self; } diff --git a/qt6/network/gen_qsslerror.go b/qt6/network/gen_qsslerror.go index 8b51802c..a8b52e68 100644 --- a/qt6/network/gen_qsslerror.go +++ b/qt6/network/gen_qsslerror.go @@ -156,7 +156,7 @@ func (this *QSslError) Certificate() *QSslCertificate { // Delete this object from C++ memory. func (this *QSslError) Delete() { - C.QSslError_Delete(this.h, C.bool(this.isSubclass)) + C.QSslError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsslerror.h b/qt6/network/gen_qsslerror.h index b229e1b6..c407ce44 100644 --- a/qt6/network/gen_qsslerror.h +++ b/qt6/network/gen_qsslerror.h @@ -33,7 +33,7 @@ bool QSslError_OperatorNotEqual(const QSslError* self, QSslError* other); int QSslError_Error(const QSslError* self); struct miqt_string QSslError_ErrorString(const QSslError* self); QSslCertificate* QSslError_Certificate(const QSslError* self); -void QSslError_Delete(QSslError* self, bool isSubclass); +void QSslError_Delete(QSslError* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsslkey.cpp b/qt6/network/gen_qsslkey.cpp index 76ff42e6..be2c959f 100644 --- a/qt6/network/gen_qsslkey.cpp +++ b/qt6/network/gen_qsslkey.cpp @@ -147,11 +147,7 @@ struct miqt_string QSslKey_ToDer1(const QSslKey* self, struct miqt_string passPh return _ms; } -void QSslKey_Delete(QSslKey* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslKey_Delete(QSslKey* self) { + delete self; } diff --git a/qt6/network/gen_qsslkey.go b/qt6/network/gen_qsslkey.go index 5c81df2a..f1416e52 100644 --- a/qt6/network/gen_qsslkey.go +++ b/qt6/network/gen_qsslkey.go @@ -237,7 +237,7 @@ func (this *QSslKey) ToDer1(passPhrase []byte) []byte { // Delete this object from C++ memory. func (this *QSslKey) Delete() { - C.QSslKey_Delete(this.h, C.bool(this.isSubclass)) + C.QSslKey_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsslkey.h b/qt6/network/gen_qsslkey.h index 9eab6442..d29ccf1e 100644 --- a/qt6/network/gen_qsslkey.h +++ b/qt6/network/gen_qsslkey.h @@ -48,7 +48,7 @@ bool QSslKey_OperatorEqual(const QSslKey* self, QSslKey* key); bool QSslKey_OperatorNotEqual(const QSslKey* self, QSslKey* key); struct miqt_string QSslKey_ToPem1(const QSslKey* self, struct miqt_string passPhrase); struct miqt_string QSslKey_ToDer1(const QSslKey* self, struct miqt_string passPhrase); -void QSslKey_Delete(QSslKey* self, bool isSubclass); +void QSslKey_Delete(QSslKey* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsslpresharedkeyauthenticator.cpp b/qt6/network/gen_qsslpresharedkeyauthenticator.cpp index 4297ae2a..0c44a722 100644 --- a/qt6/network/gen_qsslpresharedkeyauthenticator.cpp +++ b/qt6/network/gen_qsslpresharedkeyauthenticator.cpp @@ -72,11 +72,7 @@ int QSslPreSharedKeyAuthenticator_MaximumPreSharedKeyLength(const QSslPreSharedK return self->maximumPreSharedKeyLength(); } -void QSslPreSharedKeyAuthenticator_Delete(QSslPreSharedKeyAuthenticator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslPreSharedKeyAuthenticator_Delete(QSslPreSharedKeyAuthenticator* self) { + delete self; } diff --git a/qt6/network/gen_qsslpresharedkeyauthenticator.go b/qt6/network/gen_qsslpresharedkeyauthenticator.go index c1aa8d01..e550f663 100644 --- a/qt6/network/gen_qsslpresharedkeyauthenticator.go +++ b/qt6/network/gen_qsslpresharedkeyauthenticator.go @@ -115,7 +115,7 @@ func (this *QSslPreSharedKeyAuthenticator) MaximumPreSharedKeyLength() int { // Delete this object from C++ memory. func (this *QSslPreSharedKeyAuthenticator) Delete() { - C.QSslPreSharedKeyAuthenticator_Delete(this.h, C.bool(this.isSubclass)) + C.QSslPreSharedKeyAuthenticator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsslpresharedkeyauthenticator.h b/qt6/network/gen_qsslpresharedkeyauthenticator.h index 4a3390cf..2e95a0da 100644 --- a/qt6/network/gen_qsslpresharedkeyauthenticator.h +++ b/qt6/network/gen_qsslpresharedkeyauthenticator.h @@ -31,7 +31,7 @@ int QSslPreSharedKeyAuthenticator_MaximumIdentityLength(const QSslPreSharedKeyAu void QSslPreSharedKeyAuthenticator_SetPreSharedKey(QSslPreSharedKeyAuthenticator* self, struct miqt_string preSharedKey); struct miqt_string QSslPreSharedKeyAuthenticator_PreSharedKey(const QSslPreSharedKeyAuthenticator* self); int QSslPreSharedKeyAuthenticator_MaximumPreSharedKeyLength(const QSslPreSharedKeyAuthenticator* self); -void QSslPreSharedKeyAuthenticator_Delete(QSslPreSharedKeyAuthenticator* self, bool isSubclass); +void QSslPreSharedKeyAuthenticator_Delete(QSslPreSharedKeyAuthenticator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsslserver.cpp b/qt6/network/gen_qsslserver.cpp index 9222d126..9e98359a 100644 --- a/qt6/network/gen_qsslserver.cpp +++ b/qt6/network/gen_qsslserver.cpp @@ -33,13 +33,13 @@ QTcpSocket* miqt_exec_callback_QSslServer_NextPendingConnection(void*, intptr_t) } /* extern C */ #endif -class MiqtVirtualQSslServer : public virtual QSslServer { +class MiqtVirtualQSslServer final : public QSslServer { public: MiqtVirtualQSslServer(): QSslServer() {}; MiqtVirtualQSslServer(QObject* parent): QSslServer(parent) {}; - virtual ~MiqtVirtualQSslServer() = default; + virtual ~MiqtVirtualQSslServer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__IncomingConnection = 0; @@ -344,11 +344,7 @@ QTcpSocket* QSslServer_virtualbase_NextPendingConnection(void* self) { return ( (MiqtVirtualQSslServer*)(self) )->virtualbase_NextPendingConnection(); } -void QSslServer_Delete(QSslServer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslServer_Delete(QSslServer* self) { + delete self; } diff --git a/qt6/network/gen_qsslserver.go b/qt6/network/gen_qsslserver.go index 0cbef2b1..8ddb2be0 100644 --- a/qt6/network/gen_qsslserver.go +++ b/qt6/network/gen_qsslserver.go @@ -415,7 +415,7 @@ func miqt_exec_callback_QSslServer_NextPendingConnection(self *C.QSslServer, cb // Delete this object from C++ memory. func (this *QSslServer) Delete() { - C.QSslServer_Delete(this.h, C.bool(this.isSubclass)) + C.QSslServer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsslserver.h b/qt6/network/gen_qsslserver.h index ff273d6f..ab79c16d 100644 --- a/qt6/network/gen_qsslserver.h +++ b/qt6/network/gen_qsslserver.h @@ -71,7 +71,7 @@ void QSslServer_override_virtual_HasPendingConnections(void* self, intptr_t slot bool QSslServer_virtualbase_HasPendingConnections(const void* self); void QSslServer_override_virtual_NextPendingConnection(void* self, intptr_t slot); QTcpSocket* QSslServer_virtualbase_NextPendingConnection(void* self); -void QSslServer_Delete(QSslServer* self, bool isSubclass); +void QSslServer_Delete(QSslServer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qsslsocket.cpp b/qt6/network/gen_qsslsocket.cpp index baeeffe7..b742e96c 100644 --- a/qt6/network/gen_qsslsocket.cpp +++ b/qt6/network/gen_qsslsocket.cpp @@ -58,13 +58,13 @@ long long miqt_exec_callback_QSslSocket_WriteData(void*, intptr_t, const char*, } /* extern C */ #endif -class MiqtVirtualQSslSocket : public virtual QSslSocket { +class MiqtVirtualQSslSocket final : public QSslSocket { public: MiqtVirtualQSslSocket(): QSslSocket() {}; MiqtVirtualQSslSocket(QObject* parent): QSslSocket(parent) {}; - virtual ~MiqtVirtualQSslSocket() = default; + virtual ~MiqtVirtualQSslSocket() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Resume = 0; @@ -1406,11 +1406,7 @@ long long QSslSocket_virtualbase_WriteData(void* self, const char* data, long lo return ( (MiqtVirtualQSslSocket*)(self) )->virtualbase_WriteData(data, lenVal); } -void QSslSocket_Delete(QSslSocket* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSslSocket_Delete(QSslSocket* self) { + delete self; } diff --git a/qt6/network/gen_qsslsocket.go b/qt6/network/gen_qsslsocket.go index 885cd41f..c03a300b 100644 --- a/qt6/network/gen_qsslsocket.go +++ b/qt6/network/gen_qsslsocket.go @@ -1423,7 +1423,7 @@ func miqt_exec_callback_QSslSocket_WriteData(self *C.QSslSocket, cb C.intptr_t, // Delete this object from C++ memory. func (this *QSslSocket) Delete() { - C.QSslSocket_Delete(this.h, C.bool(this.isSubclass)) + C.QSslSocket_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qsslsocket.h b/qt6/network/gen_qsslsocket.h index f2ab6aa2..7d40bde9 100644 --- a/qt6/network/gen_qsslsocket.h +++ b/qt6/network/gen_qsslsocket.h @@ -198,7 +198,7 @@ void QSslSocket_override_virtual_SkipData(void* self, intptr_t slot); long long QSslSocket_virtualbase_SkipData(void* self, long long maxSize); void QSslSocket_override_virtual_WriteData(void* self, intptr_t slot); long long QSslSocket_virtualbase_WriteData(void* self, const char* data, long long lenVal); -void QSslSocket_Delete(QSslSocket* self, bool isSubclass); +void QSslSocket_Delete(QSslSocket* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qtcpserver.cpp b/qt6/network/gen_qtcpserver.cpp index dffa1ac1..167ae059 100644 --- a/qt6/network/gen_qtcpserver.cpp +++ b/qt6/network/gen_qtcpserver.cpp @@ -34,13 +34,13 @@ void miqt_exec_callback_QTcpServer_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQTcpServer : public virtual QTcpServer { +class MiqtVirtualQTcpServer final : public QTcpServer { public: MiqtVirtualQTcpServer(): QTcpServer() {}; MiqtVirtualQTcpServer(QObject* parent): QTcpServer(parent) {}; - virtual ~MiqtVirtualQTcpServer() = default; + virtual ~MiqtVirtualQTcpServer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__HasPendingConnections = 0; @@ -545,11 +545,7 @@ void QTcpServer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQTcpServer*)(self) )->virtualbase_DisconnectNotify(signal); } -void QTcpServer_Delete(QTcpServer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTcpServer_Delete(QTcpServer* self) { + delete self; } diff --git a/qt6/network/gen_qtcpserver.go b/qt6/network/gen_qtcpserver.go index dfaa6083..90c7f172 100644 --- a/qt6/network/gen_qtcpserver.go +++ b/qt6/network/gen_qtcpserver.go @@ -515,7 +515,7 @@ func miqt_exec_callback_QTcpServer_DisconnectNotify(self *C.QTcpServer, cb C.int // Delete this object from C++ memory. func (this *QTcpServer) Delete() { - C.QTcpServer_Delete(this.h, C.bool(this.isSubclass)) + C.QTcpServer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qtcpserver.h b/qt6/network/gen_qtcpserver.h index c28d9898..c6137c20 100644 --- a/qt6/network/gen_qtcpserver.h +++ b/qt6/network/gen_qtcpserver.h @@ -95,7 +95,7 @@ void QTcpServer_override_virtual_ConnectNotify(void* self, intptr_t slot); void QTcpServer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QTcpServer_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QTcpServer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QTcpServer_Delete(QTcpServer* self, bool isSubclass); +void QTcpServer_Delete(QTcpServer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qtcpsocket.cpp b/qt6/network/gen_qtcpsocket.cpp index f9f0dc3a..63bb21cd 100644 --- a/qt6/network/gen_qtcpsocket.cpp +++ b/qt6/network/gen_qtcpsocket.cpp @@ -41,13 +41,13 @@ long long miqt_exec_callback_QTcpSocket_WriteData(void*, intptr_t, const char*, } /* extern C */ #endif -class MiqtVirtualQTcpSocket : public virtual QTcpSocket { +class MiqtVirtualQTcpSocket final : public QTcpSocket { public: MiqtVirtualQTcpSocket(): QTcpSocket() {}; MiqtVirtualQTcpSocket(QObject* parent): QTcpSocket(parent) {}; - virtual ~MiqtVirtualQTcpSocket() = default; + virtual ~MiqtVirtualQTcpSocket() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Resume = 0; @@ -811,11 +811,7 @@ long long QTcpSocket_virtualbase_WriteData(void* self, const char* data, long lo return ( (MiqtVirtualQTcpSocket*)(self) )->virtualbase_WriteData(data, lenVal); } -void QTcpSocket_Delete(QTcpSocket* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QTcpSocket_Delete(QTcpSocket* self) { + delete self; } diff --git a/qt6/network/gen_qtcpsocket.go b/qt6/network/gen_qtcpsocket.go index 902d69eb..c4bad7a1 100644 --- a/qt6/network/gen_qtcpsocket.go +++ b/qt6/network/gen_qtcpsocket.go @@ -717,7 +717,7 @@ func miqt_exec_callback_QTcpSocket_WriteData(self *C.QTcpSocket, cb C.intptr_t, // Delete this object from C++ memory. func (this *QTcpSocket) Delete() { - C.QTcpSocket_Delete(this.h, C.bool(this.isSubclass)) + C.QTcpSocket_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qtcpsocket.h b/qt6/network/gen_qtcpsocket.h index b4a1e3f6..ea8665a1 100644 --- a/qt6/network/gen_qtcpsocket.h +++ b/qt6/network/gen_qtcpsocket.h @@ -87,7 +87,7 @@ void QTcpSocket_override_virtual_SkipData(void* self, intptr_t slot); long long QTcpSocket_virtualbase_SkipData(void* self, long long maxSize); void QTcpSocket_override_virtual_WriteData(void* self, intptr_t slot); long long QTcpSocket_virtualbase_WriteData(void* self, const char* data, long long lenVal); -void QTcpSocket_Delete(QTcpSocket* self, bool isSubclass); +void QTcpSocket_Delete(QTcpSocket* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/network/gen_qudpsocket.cpp b/qt6/network/gen_qudpsocket.cpp index 3fdc6225..47ee7a06 100644 --- a/qt6/network/gen_qudpsocket.cpp +++ b/qt6/network/gen_qudpsocket.cpp @@ -44,13 +44,13 @@ long long miqt_exec_callback_QUdpSocket_WriteData(void*, intptr_t, const char*, } /* extern C */ #endif -class MiqtVirtualQUdpSocket : public virtual QUdpSocket { +class MiqtVirtualQUdpSocket final : public QUdpSocket { public: MiqtVirtualQUdpSocket(): QUdpSocket() {}; MiqtVirtualQUdpSocket(QObject* parent): QUdpSocket(parent) {}; - virtual ~MiqtVirtualQUdpSocket() = default; + virtual ~MiqtVirtualQUdpSocket() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Resume = 0; @@ -886,11 +886,7 @@ long long QUdpSocket_virtualbase_WriteData(void* self, const char* data, long lo return ( (MiqtVirtualQUdpSocket*)(self) )->virtualbase_WriteData(data, lenVal); } -void QUdpSocket_Delete(QUdpSocket* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QUdpSocket_Delete(QUdpSocket* self) { + delete self; } diff --git a/qt6/network/gen_qudpsocket.go b/qt6/network/gen_qudpsocket.go index c3cd37b7..5965239d 100644 --- a/qt6/network/gen_qudpsocket.go +++ b/qt6/network/gen_qudpsocket.go @@ -798,7 +798,7 @@ func miqt_exec_callback_QUdpSocket_WriteData(self *C.QUdpSocket, cb C.intptr_t, // Delete this object from C++ memory. func (this *QUdpSocket) Delete() { - C.QUdpSocket_Delete(this.h, C.bool(this.isSubclass)) + C.QUdpSocket_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/network/gen_qudpsocket.h b/qt6/network/gen_qudpsocket.h index e8e9bd0b..f1113e97 100644 --- a/qt6/network/gen_qudpsocket.h +++ b/qt6/network/gen_qudpsocket.h @@ -107,7 +107,7 @@ void QUdpSocket_override_virtual_SkipData(void* self, intptr_t slot); long long QUdpSocket_virtualbase_SkipData(void* self, long long maxSize); void QUdpSocket_override_virtual_WriteData(void* self, intptr_t slot); long long QUdpSocket_virtualbase_WriteData(void* self, const char* data, long long lenVal); -void QUdpSocket_Delete(QUdpSocket* self, bool isSubclass); +void QUdpSocket_Delete(QUdpSocket* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/printsupport/gen_qabstractprintdialog.cpp b/qt6/printsupport/gen_qabstractprintdialog.cpp index aae486de..288e6e0b 100644 --- a/qt6/printsupport/gen_qabstractprintdialog.cpp +++ b/qt6/printsupport/gen_qabstractprintdialog.cpp @@ -41,13 +41,13 @@ bool miqt_exec_callback_QAbstractPrintDialog_EventFilter(void*, intptr_t, QObjec } /* extern C */ #endif -class MiqtVirtualQAbstractPrintDialog : public virtual QAbstractPrintDialog { +class MiqtVirtualQAbstractPrintDialog final : public QAbstractPrintDialog { public: MiqtVirtualQAbstractPrintDialog(QPrinter* printer): QAbstractPrintDialog(printer) {}; MiqtVirtualQAbstractPrintDialog(QPrinter* printer, QWidget* parent): QAbstractPrintDialog(printer, parent) {}; - virtual ~MiqtVirtualQAbstractPrintDialog() = default; + virtual ~MiqtVirtualQAbstractPrintDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -590,11 +590,7 @@ bool QAbstractPrintDialog_virtualbase_EventFilter(void* self, QObject* param1, Q return ( (MiqtVirtualQAbstractPrintDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QAbstractPrintDialog_Delete(QAbstractPrintDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAbstractPrintDialog_Delete(QAbstractPrintDialog* self) { + delete self; } diff --git a/qt6/printsupport/gen_qabstractprintdialog.go b/qt6/printsupport/gen_qabstractprintdialog.go index 0f521ade..7e860ed1 100644 --- a/qt6/printsupport/gen_qabstractprintdialog.go +++ b/qt6/printsupport/gen_qabstractprintdialog.go @@ -537,7 +537,7 @@ func miqt_exec_callback_QAbstractPrintDialog_EventFilter(self *C.QAbstractPrintD // Delete this object from C++ memory. func (this *QAbstractPrintDialog) Delete() { - C.QAbstractPrintDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QAbstractPrintDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/printsupport/gen_qabstractprintdialog.h b/qt6/printsupport/gen_qabstractprintdialog.h index 1b0dc3dc..9dc7d032 100644 --- a/qt6/printsupport/gen_qabstractprintdialog.h +++ b/qt6/printsupport/gen_qabstractprintdialog.h @@ -92,7 +92,7 @@ void QAbstractPrintDialog_override_virtual_ContextMenuEvent(void* self, intptr_t void QAbstractPrintDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QAbstractPrintDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QAbstractPrintDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QAbstractPrintDialog_Delete(QAbstractPrintDialog* self, bool isSubclass); +void QAbstractPrintDialog_Delete(QAbstractPrintDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/printsupport/gen_qpagesetupdialog.cpp b/qt6/printsupport/gen_qpagesetupdialog.cpp index 0c987932..e2260b97 100644 --- a/qt6/printsupport/gen_qpagesetupdialog.cpp +++ b/qt6/printsupport/gen_qpagesetupdialog.cpp @@ -40,7 +40,7 @@ bool miqt_exec_callback_QPageSetupDialog_EventFilter(void*, intptr_t, QObject*, } /* extern C */ #endif -class MiqtVirtualQPageSetupDialog : public virtual QPageSetupDialog { +class MiqtVirtualQPageSetupDialog final : public QPageSetupDialog { public: MiqtVirtualQPageSetupDialog(QWidget* parent): QPageSetupDialog(parent) {}; @@ -48,7 +48,7 @@ public: MiqtVirtualQPageSetupDialog(): QPageSetupDialog() {}; MiqtVirtualQPageSetupDialog(QPrinter* printer, QWidget* parent): QPageSetupDialog(printer, parent) {}; - virtual ~MiqtVirtualQPageSetupDialog() = default; + virtual ~MiqtVirtualQPageSetupDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Exec = 0; @@ -564,11 +564,7 @@ bool QPageSetupDialog_virtualbase_EventFilter(void* self, QObject* param1, QEven return ( (MiqtVirtualQPageSetupDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QPageSetupDialog_Delete(QPageSetupDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPageSetupDialog_Delete(QPageSetupDialog* self) { + delete self; } diff --git a/qt6/printsupport/gen_qpagesetupdialog.go b/qt6/printsupport/gen_qpagesetupdialog.go index c9e1c9da..0fb890a7 100644 --- a/qt6/printsupport/gen_qpagesetupdialog.go +++ b/qt6/printsupport/gen_qpagesetupdialog.go @@ -499,7 +499,7 @@ func miqt_exec_callback_QPageSetupDialog_EventFilter(self *C.QPageSetupDialog, c // Delete this object from C++ memory. func (this *QPageSetupDialog) Delete() { - C.QPageSetupDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QPageSetupDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/printsupport/gen_qpagesetupdialog.h b/qt6/printsupport/gen_qpagesetupdialog.h index 2f30292a..f6e2b277 100644 --- a/qt6/printsupport/gen_qpagesetupdialog.h +++ b/qt6/printsupport/gen_qpagesetupdialog.h @@ -87,7 +87,7 @@ void QPageSetupDialog_override_virtual_ContextMenuEvent(void* self, intptr_t slo void QPageSetupDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QPageSetupDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QPageSetupDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QPageSetupDialog_Delete(QPageSetupDialog* self, bool isSubclass); +void QPageSetupDialog_Delete(QPageSetupDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/printsupport/gen_qprintdialog.cpp b/qt6/printsupport/gen_qprintdialog.cpp index 0cfdbd55..4f009544 100644 --- a/qt6/printsupport/gen_qprintdialog.cpp +++ b/qt6/printsupport/gen_qprintdialog.cpp @@ -25,7 +25,7 @@ void miqt_exec_callback_QPrintDialog_SetVisible(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQPrintDialog : public virtual QPrintDialog { +class MiqtVirtualQPrintDialog final : public QPrintDialog { public: MiqtVirtualQPrintDialog(QWidget* parent): QPrintDialog(parent) {}; @@ -33,7 +33,7 @@ public: MiqtVirtualQPrintDialog(): QPrintDialog() {}; MiqtVirtualQPrintDialog(QPrinter* printer, QWidget* parent): QPrintDialog(printer, parent) {}; - virtual ~MiqtVirtualQPrintDialog() = default; + virtual ~MiqtVirtualQPrintDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Exec = 0; @@ -271,11 +271,7 @@ void QPrintDialog_virtualbase_SetVisible(void* self, bool visible) { ( (MiqtVirtualQPrintDialog*)(self) )->virtualbase_SetVisible(visible); } -void QPrintDialog_Delete(QPrintDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrintDialog_Delete(QPrintDialog* self) { + delete self; } diff --git a/qt6/printsupport/gen_qprintdialog.go b/qt6/printsupport/gen_qprintdialog.go index c0bf463e..12a9ec41 100644 --- a/qt6/printsupport/gen_qprintdialog.go +++ b/qt6/printsupport/gen_qprintdialog.go @@ -283,7 +283,7 @@ func miqt_exec_callback_QPrintDialog_SetVisible(self *C.QPrintDialog, cb C.intpt // Delete this object from C++ memory. func (this *QPrintDialog) Delete() { - C.QPrintDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QPrintDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/printsupport/gen_qprintdialog.h b/qt6/printsupport/gen_qprintdialog.h index 3d4be7ab..b701afe4 100644 --- a/qt6/printsupport/gen_qprintdialog.h +++ b/qt6/printsupport/gen_qprintdialog.h @@ -63,7 +63,7 @@ void QPrintDialog_override_virtual_Done(void* self, intptr_t slot); void QPrintDialog_virtualbase_Done(void* self, int result); void QPrintDialog_override_virtual_SetVisible(void* self, intptr_t slot); void QPrintDialog_virtualbase_SetVisible(void* self, bool visible); -void QPrintDialog_Delete(QPrintDialog* self, bool isSubclass); +void QPrintDialog_Delete(QPrintDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/printsupport/gen_qprintengine.cpp b/qt6/printsupport/gen_qprintengine.cpp index a5b54750..813a992f 100644 --- a/qt6/printsupport/gen_qprintengine.cpp +++ b/qt6/printsupport/gen_qprintengine.cpp @@ -40,11 +40,7 @@ void QPrintEngine_OperatorAssign(QPrintEngine* self, QPrintEngine* param1) { self->operator=(*param1); } -void QPrintEngine_Delete(QPrintEngine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrintEngine_Delete(QPrintEngine* self) { + delete self; } diff --git a/qt6/printsupport/gen_qprintengine.go b/qt6/printsupport/gen_qprintengine.go index 7b3c2135..08aadb69 100644 --- a/qt6/printsupport/gen_qprintengine.go +++ b/qt6/printsupport/gen_qprintengine.go @@ -116,7 +116,7 @@ func (this *QPrintEngine) OperatorAssign(param1 *QPrintEngine) { // Delete this object from C++ memory. func (this *QPrintEngine) Delete() { - C.QPrintEngine_Delete(this.h, C.bool(this.isSubclass)) + C.QPrintEngine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/printsupport/gen_qprintengine.h b/qt6/printsupport/gen_qprintengine.h index e68cf218..a1365351 100644 --- a/qt6/printsupport/gen_qprintengine.h +++ b/qt6/printsupport/gen_qprintengine.h @@ -29,7 +29,7 @@ bool QPrintEngine_Abort(QPrintEngine* self); int QPrintEngine_Metric(const QPrintEngine* self, int param1); int QPrintEngine_PrinterState(const QPrintEngine* self); void QPrintEngine_OperatorAssign(QPrintEngine* self, QPrintEngine* param1); -void QPrintEngine_Delete(QPrintEngine* self, bool isSubclass); +void QPrintEngine_Delete(QPrintEngine* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/printsupport/gen_qprinter.cpp b/qt6/printsupport/gen_qprinter.cpp index 11eca9d2..d2d844a1 100644 --- a/qt6/printsupport/gen_qprinter.cpp +++ b/qt6/printsupport/gen_qprinter.cpp @@ -33,7 +33,7 @@ void miqt_exec_callback_QPrinter_SetPageRanges(void*, intptr_t, QPageRanges*); } /* extern C */ #endif -class MiqtVirtualQPrinter : public virtual QPrinter { +class MiqtVirtualQPrinter final : public QPrinter { public: MiqtVirtualQPrinter(): QPrinter() {}; @@ -41,7 +41,7 @@ public: MiqtVirtualQPrinter(QPrinter::PrinterMode mode): QPrinter(mode) {}; MiqtVirtualQPrinter(const QPrinterInfo& printer, QPrinter::PrinterMode mode): QPrinter(printer, mode) {}; - virtual ~MiqtVirtualQPrinter() = default; + virtual ~MiqtVirtualQPrinter() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__DevType = 0; @@ -619,11 +619,7 @@ void QPrinter_virtualbase_SetPageRanges(void* self, QPageRanges* ranges) { ( (MiqtVirtualQPrinter*)(self) )->virtualbase_SetPageRanges(ranges); } -void QPrinter_Delete(QPrinter* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrinter_Delete(QPrinter* self) { + delete self; } diff --git a/qt6/printsupport/gen_qprinter.go b/qt6/printsupport/gen_qprinter.go index bce69fca..e57ac683 100644 --- a/qt6/printsupport/gen_qprinter.go +++ b/qt6/printsupport/gen_qprinter.go @@ -671,7 +671,7 @@ func miqt_exec_callback_QPrinter_SetPageRanges(self *C.QPrinter, cb C.intptr_t, // Delete this object from C++ memory. func (this *QPrinter) Delete() { - C.QPrinter_Delete(this.h, C.bool(this.isSubclass)) + C.QPrinter_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/printsupport/gen_qprinter.h b/qt6/printsupport/gen_qprinter.h index 672b9069..ed31b8dc 100644 --- a/qt6/printsupport/gen_qprinter.h +++ b/qt6/printsupport/gen_qprinter.h @@ -114,7 +114,7 @@ void QPrinter_override_virtual_SetPageMargins(void* self, intptr_t slot); bool QPrinter_virtualbase_SetPageMargins(void* self, QMarginsF* margins, int units); void QPrinter_override_virtual_SetPageRanges(void* self, intptr_t slot); void QPrinter_virtualbase_SetPageRanges(void* self, QPageRanges* ranges); -void QPrinter_Delete(QPrinter* self, bool isSubclass); +void QPrinter_Delete(QPrinter* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/printsupport/gen_qprinterinfo.cpp b/qt6/printsupport/gen_qprinterinfo.cpp index 53adca87..f28e91be 100644 --- a/qt6/printsupport/gen_qprinterinfo.cpp +++ b/qt6/printsupport/gen_qprinterinfo.cpp @@ -226,11 +226,7 @@ QPrinterInfo* QPrinterInfo_PrinterInfo(struct miqt_string printerName) { return new QPrinterInfo(QPrinterInfo::printerInfo(printerName_QString)); } -void QPrinterInfo_Delete(QPrinterInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrinterInfo_Delete(QPrinterInfo* self) { + delete self; } diff --git a/qt6/printsupport/gen_qprinterinfo.go b/qt6/printsupport/gen_qprinterinfo.go index 3b2a148c..db99a356 100644 --- a/qt6/printsupport/gen_qprinterinfo.go +++ b/qt6/printsupport/gen_qprinterinfo.go @@ -241,7 +241,7 @@ func QPrinterInfo_PrinterInfo(printerName string) *QPrinterInfo { // Delete this object from C++ memory. func (this *QPrinterInfo) Delete() { - C.QPrinterInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QPrinterInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/printsupport/gen_qprinterinfo.h b/qt6/printsupport/gen_qprinterinfo.h index e93fc5c6..5b871647 100644 --- a/qt6/printsupport/gen_qprinterinfo.h +++ b/qt6/printsupport/gen_qprinterinfo.h @@ -51,7 +51,7 @@ struct miqt_array /* of QPrinterInfo* */ QPrinterInfo_AvailablePrinters(); struct miqt_string QPrinterInfo_DefaultPrinterName(); QPrinterInfo* QPrinterInfo_DefaultPrinter(); QPrinterInfo* QPrinterInfo_PrinterInfo(struct miqt_string printerName); -void QPrinterInfo_Delete(QPrinterInfo* self, bool isSubclass); +void QPrinterInfo_Delete(QPrinterInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/printsupport/gen_qprintpreviewdialog.cpp b/qt6/printsupport/gen_qprintpreviewdialog.cpp index e2f2e12d..97413c49 100644 --- a/qt6/printsupport/gen_qprintpreviewdialog.cpp +++ b/qt6/printsupport/gen_qprintpreviewdialog.cpp @@ -41,7 +41,7 @@ bool miqt_exec_callback_QPrintPreviewDialog_EventFilter(void*, intptr_t, QObject } /* extern C */ #endif -class MiqtVirtualQPrintPreviewDialog : public virtual QPrintPreviewDialog { +class MiqtVirtualQPrintPreviewDialog final : public QPrintPreviewDialog { public: MiqtVirtualQPrintPreviewDialog(QWidget* parent): QPrintPreviewDialog(parent) {}; @@ -51,7 +51,7 @@ public: MiqtVirtualQPrintPreviewDialog(QPrinter* printer, QWidget* parent): QPrintPreviewDialog(printer, parent) {}; MiqtVirtualQPrintPreviewDialog(QPrinter* printer, QWidget* parent, Qt::WindowFlags flags): QPrintPreviewDialog(printer, parent, flags) {}; - virtual ~MiqtVirtualQPrintPreviewDialog() = default; + virtual ~MiqtVirtualQPrintPreviewDialog() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -586,11 +586,7 @@ bool QPrintPreviewDialog_virtualbase_EventFilter(void* self, QObject* param1, QE return ( (MiqtVirtualQPrintPreviewDialog*)(self) )->virtualbase_EventFilter(param1, param2); } -void QPrintPreviewDialog_Delete(QPrintPreviewDialog* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrintPreviewDialog_Delete(QPrintPreviewDialog* self) { + delete self; } diff --git a/qt6/printsupport/gen_qprintpreviewdialog.go b/qt6/printsupport/gen_qprintpreviewdialog.go index 80cb52fe..8acc2c70 100644 --- a/qt6/printsupport/gen_qprintpreviewdialog.go +++ b/qt6/printsupport/gen_qprintpreviewdialog.go @@ -535,7 +535,7 @@ func miqt_exec_callback_QPrintPreviewDialog_EventFilter(self *C.QPrintPreviewDia // Delete this object from C++ memory. func (this *QPrintPreviewDialog) Delete() { - C.QPrintPreviewDialog_Delete(this.h, C.bool(this.isSubclass)) + C.QPrintPreviewDialog_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/printsupport/gen_qprintpreviewdialog.h b/qt6/printsupport/gen_qprintpreviewdialog.h index 747eae50..ee01a264 100644 --- a/qt6/printsupport/gen_qprintpreviewdialog.h +++ b/qt6/printsupport/gen_qprintpreviewdialog.h @@ -91,7 +91,7 @@ void QPrintPreviewDialog_override_virtual_ContextMenuEvent(void* self, intptr_t void QPrintPreviewDialog_virtualbase_ContextMenuEvent(void* self, QContextMenuEvent* param1); void QPrintPreviewDialog_override_virtual_EventFilter(void* self, intptr_t slot); bool QPrintPreviewDialog_virtualbase_EventFilter(void* self, QObject* param1, QEvent* param2); -void QPrintPreviewDialog_Delete(QPrintPreviewDialog* self, bool isSubclass); +void QPrintPreviewDialog_Delete(QPrintPreviewDialog* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/printsupport/gen_qprintpreviewwidget.cpp b/qt6/printsupport/gen_qprintpreviewwidget.cpp index dbad99f9..ecaca379 100644 --- a/qt6/printsupport/gen_qprintpreviewwidget.cpp +++ b/qt6/printsupport/gen_qprintpreviewwidget.cpp @@ -87,7 +87,7 @@ bool miqt_exec_callback_QPrintPreviewWidget_FocusNextPrevChild(void*, intptr_t, } /* extern C */ #endif -class MiqtVirtualQPrintPreviewWidget : public virtual QPrintPreviewWidget { +class MiqtVirtualQPrintPreviewWidget final : public QPrintPreviewWidget { public: MiqtVirtualQPrintPreviewWidget(QWidget* parent): QPrintPreviewWidget(parent) {}; @@ -97,7 +97,7 @@ public: MiqtVirtualQPrintPreviewWidget(QPrinter* printer, QWidget* parent, Qt::WindowFlags flags): QPrintPreviewWidget(printer, parent, flags) {}; MiqtVirtualQPrintPreviewWidget(QWidget* parent, Qt::WindowFlags flags): QPrintPreviewWidget(parent, flags) {}; - virtual ~MiqtVirtualQPrintPreviewWidget() = default; + virtual ~MiqtVirtualQPrintPreviewWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SetVisible = 0; @@ -1599,11 +1599,7 @@ bool QPrintPreviewWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQPrintPreviewWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QPrintPreviewWidget_Delete(QPrintPreviewWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QPrintPreviewWidget_Delete(QPrintPreviewWidget* self) { + delete self; } diff --git a/qt6/printsupport/gen_qprintpreviewwidget.go b/qt6/printsupport/gen_qprintpreviewwidget.go index c1baa639..884e8a01 100644 --- a/qt6/printsupport/gen_qprintpreviewwidget.go +++ b/qt6/printsupport/gen_qprintpreviewwidget.go @@ -1385,7 +1385,7 @@ func miqt_exec_callback_QPrintPreviewWidget_FocusNextPrevChild(self *C.QPrintPre // Delete this object from C++ memory. func (this *QPrintPreviewWidget) Delete() { - C.QPrintPreviewWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QPrintPreviewWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/printsupport/gen_qprintpreviewwidget.h b/qt6/printsupport/gen_qprintpreviewwidget.h index 0c8585ce..34080f52 100644 --- a/qt6/printsupport/gen_qprintpreviewwidget.h +++ b/qt6/printsupport/gen_qprintpreviewwidget.h @@ -203,7 +203,7 @@ void QPrintPreviewWidget_override_virtual_InputMethodQuery(void* self, intptr_t QVariant* QPrintPreviewWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QPrintPreviewWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QPrintPreviewWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QPrintPreviewWidget_Delete(QPrintPreviewWidget* self, bool isSubclass); +void QPrintPreviewWidget_Delete(QPrintPreviewWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/spatialaudio/gen_qambientsound.cpp b/qt6/spatialaudio/gen_qambientsound.cpp index e2173f43..684be640 100644 --- a/qt6/spatialaudio/gen_qambientsound.cpp +++ b/qt6/spatialaudio/gen_qambientsound.cpp @@ -32,12 +32,12 @@ void miqt_exec_callback_QAmbientSound_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQAmbientSound : public virtual QAmbientSound { +class MiqtVirtualQAmbientSound final : public QAmbientSound { public: MiqtVirtualQAmbientSound(QAudioEngine* engine): QAmbientSound(engine) {}; - virtual ~MiqtVirtualQAmbientSound() = default; + virtual ~MiqtVirtualQAmbientSound() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -405,11 +405,7 @@ void QAmbientSound_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQAmbientSound*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAmbientSound_Delete(QAmbientSound* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAmbientSound_Delete(QAmbientSound* self) { + delete self; } diff --git a/qt6/spatialaudio/gen_qambientsound.go b/qt6/spatialaudio/gen_qambientsound.go index 5af2cb4e..972d426a 100644 --- a/qt6/spatialaudio/gen_qambientsound.go +++ b/qt6/spatialaudio/gen_qambientsound.go @@ -416,7 +416,7 @@ func miqt_exec_callback_QAmbientSound_DisconnectNotify(self *C.QAmbientSound, cb // Delete this object from C++ memory. func (this *QAmbientSound) Delete() { - C.QAmbientSound_Delete(this.h, C.bool(this.isSubclass)) + C.QAmbientSound_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/spatialaudio/gen_qambientsound.h b/qt6/spatialaudio/gen_qambientsound.h index f2f46a4b..bf20075e 100644 --- a/qt6/spatialaudio/gen_qambientsound.h +++ b/qt6/spatialaudio/gen_qambientsound.h @@ -77,7 +77,7 @@ void QAmbientSound_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAmbientSound_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAmbientSound_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAmbientSound_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAmbientSound_Delete(QAmbientSound* self, bool isSubclass); +void QAmbientSound_Delete(QAmbientSound* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/spatialaudio/gen_qaudioengine.cpp b/qt6/spatialaudio/gen_qaudioengine.cpp index e3b3d845..1301be1f 100644 --- a/qt6/spatialaudio/gen_qaudioengine.cpp +++ b/qt6/spatialaudio/gen_qaudioengine.cpp @@ -32,7 +32,7 @@ void miqt_exec_callback_QAudioEngine_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQAudioEngine : public virtual QAudioEngine { +class MiqtVirtualQAudioEngine final : public QAudioEngine { public: MiqtVirtualQAudioEngine(): QAudioEngine() {}; @@ -40,7 +40,7 @@ public: MiqtVirtualQAudioEngine(int sampleRate): QAudioEngine(sampleRate) {}; MiqtVirtualQAudioEngine(int sampleRate, QObject* parent): QAudioEngine(sampleRate, parent) {}; - virtual ~MiqtVirtualQAudioEngine() = default; + virtual ~MiqtVirtualQAudioEngine() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -451,11 +451,7 @@ void QAudioEngine_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQAudioEngine*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioEngine_Delete(QAudioEngine* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioEngine_Delete(QAudioEngine* self) { + delete self; } diff --git a/qt6/spatialaudio/gen_qaudioengine.go b/qt6/spatialaudio/gen_qaudioengine.go index 80e360ce..549e416a 100644 --- a/qt6/spatialaudio/gen_qaudioengine.go +++ b/qt6/spatialaudio/gen_qaudioengine.go @@ -479,7 +479,7 @@ func miqt_exec_callback_QAudioEngine_DisconnectNotify(self *C.QAudioEngine, cb C // Delete this object from C++ memory. func (this *QAudioEngine) Delete() { - C.QAudioEngine_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioEngine_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/spatialaudio/gen_qaudioengine.h b/qt6/spatialaudio/gen_qaudioengine.h index 860dd83f..6509c327 100644 --- a/qt6/spatialaudio/gen_qaudioengine.h +++ b/qt6/spatialaudio/gen_qaudioengine.h @@ -85,7 +85,7 @@ void QAudioEngine_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAudioEngine_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioEngine_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioEngine_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioEngine_Delete(QAudioEngine* self, bool isSubclass); +void QAudioEngine_Delete(QAudioEngine* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/spatialaudio/gen_qaudiolistener.cpp b/qt6/spatialaudio/gen_qaudiolistener.cpp index 9e7f1c77..4cc2c689 100644 --- a/qt6/spatialaudio/gen_qaudiolistener.cpp +++ b/qt6/spatialaudio/gen_qaudiolistener.cpp @@ -25,12 +25,12 @@ void miqt_exec_callback_QAudioListener_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQAudioListener : public virtual QAudioListener { +class MiqtVirtualQAudioListener final : public QAudioListener { public: MiqtVirtualQAudioListener(QAudioEngine* engine): QAudioListener(engine) {}; - virtual ~MiqtVirtualQAudioListener() = default; + virtual ~MiqtVirtualQAudioListener() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -289,11 +289,7 @@ void QAudioListener_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQAudioListener*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioListener_Delete(QAudioListener* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioListener_Delete(QAudioListener* self) { + delete self; } diff --git a/qt6/spatialaudio/gen_qaudiolistener.go b/qt6/spatialaudio/gen_qaudiolistener.go index fa28f1ba..a91493a6 100644 --- a/qt6/spatialaudio/gen_qaudiolistener.go +++ b/qt6/spatialaudio/gen_qaudiolistener.go @@ -274,7 +274,7 @@ func miqt_exec_callback_QAudioListener_DisconnectNotify(self *C.QAudioListener, // Delete this object from C++ memory. func (this *QAudioListener) Delete() { - C.QAudioListener_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioListener_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/spatialaudio/gen_qaudiolistener.h b/qt6/spatialaudio/gen_qaudiolistener.h index efa40a8e..43aaa2c9 100644 --- a/qt6/spatialaudio/gen_qaudiolistener.h +++ b/qt6/spatialaudio/gen_qaudiolistener.h @@ -57,7 +57,7 @@ void QAudioListener_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAudioListener_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioListener_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioListener_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioListener_Delete(QAudioListener* self, bool isSubclass); +void QAudioListener_Delete(QAudioListener* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/spatialaudio/gen_qaudioroom.cpp b/qt6/spatialaudio/gen_qaudioroom.cpp index 1c4f39d7..366c34f4 100644 --- a/qt6/spatialaudio/gen_qaudioroom.cpp +++ b/qt6/spatialaudio/gen_qaudioroom.cpp @@ -37,12 +37,12 @@ void miqt_exec_callback_QAudioRoom_DisconnectNotify(void*, intptr_t, QMetaMethod } /* extern C */ #endif -class MiqtVirtualQAudioRoom : public virtual QAudioRoom { +class MiqtVirtualQAudioRoom final : public QAudioRoom { public: MiqtVirtualQAudioRoom(QAudioEngine* engine): QAudioRoom(engine) {}; - virtual ~MiqtVirtualQAudioRoom() = default; + virtual ~MiqtVirtualQAudioRoom() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -467,11 +467,7 @@ void QAudioRoom_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQAudioRoom*)(self) )->virtualbase_DisconnectNotify(signal); } -void QAudioRoom_Delete(QAudioRoom* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QAudioRoom_Delete(QAudioRoom* self) { + delete self; } diff --git a/qt6/spatialaudio/gen_qaudioroom.go b/qt6/spatialaudio/gen_qaudioroom.go index 4937b576..0132a98d 100644 --- a/qt6/spatialaudio/gen_qaudioroom.go +++ b/qt6/spatialaudio/gen_qaudioroom.go @@ -537,7 +537,7 @@ func miqt_exec_callback_QAudioRoom_DisconnectNotify(self *C.QAudioRoom, cb C.int // Delete this object from C++ memory. func (this *QAudioRoom) Delete() { - C.QAudioRoom_Delete(this.h, C.bool(this.isSubclass)) + C.QAudioRoom_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/spatialaudio/gen_qaudioroom.h b/qt6/spatialaudio/gen_qaudioroom.h index aa791884..4a6f0aa8 100644 --- a/qt6/spatialaudio/gen_qaudioroom.h +++ b/qt6/spatialaudio/gen_qaudioroom.h @@ -91,7 +91,7 @@ void QAudioRoom_override_virtual_ConnectNotify(void* self, intptr_t slot); void QAudioRoom_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QAudioRoom_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QAudioRoom_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QAudioRoom_Delete(QAudioRoom* self, bool isSubclass); +void QAudioRoom_Delete(QAudioRoom* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/spatialaudio/gen_qspatialsound.cpp b/qt6/spatialaudio/gen_qspatialsound.cpp index a746db08..a4c0a769 100644 --- a/qt6/spatialaudio/gen_qspatialsound.cpp +++ b/qt6/spatialaudio/gen_qspatialsound.cpp @@ -44,12 +44,12 @@ void miqt_exec_callback_QSpatialSound_DisconnectNotify(void*, intptr_t, QMetaMet } /* extern C */ #endif -class MiqtVirtualQSpatialSound : public virtual QSpatialSound { +class MiqtVirtualQSpatialSound final : public QSpatialSound { public: MiqtVirtualQSpatialSound(QAudioEngine* engine): QSpatialSound(engine) {}; - virtual ~MiqtVirtualQSpatialSound() = default; + virtual ~MiqtVirtualQSpatialSound() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -598,11 +598,7 @@ void QSpatialSound_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQSpatialSound*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSpatialSound_Delete(QSpatialSound* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSpatialSound_Delete(QSpatialSound* self) { + delete self; } diff --git a/qt6/spatialaudio/gen_qspatialsound.go b/qt6/spatialaudio/gen_qspatialsound.go index 131f1a4a..599db784 100644 --- a/qt6/spatialaudio/gen_qspatialsound.go +++ b/qt6/spatialaudio/gen_qspatialsound.go @@ -678,7 +678,7 @@ func miqt_exec_callback_QSpatialSound_DisconnectNotify(self *C.QSpatialSound, cb // Delete this object from C++ memory. func (this *QSpatialSound) Delete() { - C.QSpatialSound_Delete(this.h, C.bool(this.isSubclass)) + C.QSpatialSound_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/spatialaudio/gen_qspatialsound.h b/qt6/spatialaudio/gen_qspatialsound.h index 83a05b26..a77c505c 100644 --- a/qt6/spatialaudio/gen_qspatialsound.h +++ b/qt6/spatialaudio/gen_qspatialsound.h @@ -121,7 +121,7 @@ void QSpatialSound_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSpatialSound_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSpatialSound_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSpatialSound_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSpatialSound_Delete(QSpatialSound* self, bool isSubclass); +void QSpatialSound_Delete(QSpatialSound* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/svg/gen_qgraphicssvgitem.cpp b/qt6/svg/gen_qgraphicssvgitem.cpp index 014333c0..1786601e 100644 --- a/qt6/svg/gen_qgraphicssvgitem.cpp +++ b/qt6/svg/gen_qgraphicssvgitem.cpp @@ -28,7 +28,7 @@ bool miqt_exec_callback_QGraphicsSvgItem_Event(void*, intptr_t, QEvent*); } /* extern C */ #endif -class MiqtVirtualQGraphicsSvgItem : public virtual QGraphicsSvgItem { +class MiqtVirtualQGraphicsSvgItem final : public QGraphicsSvgItem { public: MiqtVirtualQGraphicsSvgItem(): QGraphicsSvgItem() {}; @@ -36,7 +36,7 @@ public: MiqtVirtualQGraphicsSvgItem(QGraphicsItem* parentItem): QGraphicsSvgItem(parentItem) {}; MiqtVirtualQGraphicsSvgItem(const QString& fileName, QGraphicsItem* parentItem): QGraphicsSvgItem(fileName, parentItem) {}; - virtual ~MiqtVirtualQGraphicsSvgItem() = default; + virtual ~MiqtVirtualQGraphicsSvgItem() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__BoundingRect = 0; @@ -280,11 +280,7 @@ bool QGraphicsSvgItem_virtualbase_Event(void* self, QEvent* ev) { return ( (MiqtVirtualQGraphicsSvgItem*)(self) )->virtualbase_Event(ev); } -void QGraphicsSvgItem_Delete(QGraphicsSvgItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QGraphicsSvgItem_Delete(QGraphicsSvgItem* self) { + delete self; } diff --git a/qt6/svg/gen_qgraphicssvgitem.go b/qt6/svg/gen_qgraphicssvgitem.go index 6a635859..b5cd9659 100644 --- a/qt6/svg/gen_qgraphicssvgitem.go +++ b/qt6/svg/gen_qgraphicssvgitem.go @@ -306,7 +306,7 @@ func miqt_exec_callback_QGraphicsSvgItem_Event(self *C.QGraphicsSvgItem, cb C.in // Delete this object from C++ memory. func (this *QGraphicsSvgItem) Delete() { - C.QGraphicsSvgItem_Delete(this.h, C.bool(this.isSubclass)) + C.QGraphicsSvgItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/svg/gen_qgraphicssvgitem.h b/qt6/svg/gen_qgraphicssvgitem.h index 0a025532..1e506153 100644 --- a/qt6/svg/gen_qgraphicssvgitem.h +++ b/qt6/svg/gen_qgraphicssvgitem.h @@ -71,7 +71,7 @@ void QGraphicsSvgItem_override_virtual_Type(void* self, intptr_t slot); int QGraphicsSvgItem_virtualbase_Type(const void* self); void QGraphicsSvgItem_override_virtual_Event(void* self, intptr_t slot); bool QGraphicsSvgItem_virtualbase_Event(void* self, QEvent* ev); -void QGraphicsSvgItem_Delete(QGraphicsSvgItem* self, bool isSubclass); +void QGraphicsSvgItem_Delete(QGraphicsSvgItem* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/svg/gen_qsvggenerator.cpp b/qt6/svg/gen_qsvggenerator.cpp index b6751a4a..ce2cc0e9 100644 --- a/qt6/svg/gen_qsvggenerator.cpp +++ b/qt6/svg/gen_qsvggenerator.cpp @@ -27,12 +27,12 @@ QPainter* miqt_exec_callback_QSvgGenerator_SharedPainter(void*, intptr_t); } /* extern C */ #endif -class MiqtVirtualQSvgGenerator : public virtual QSvgGenerator { +class MiqtVirtualQSvgGenerator final : public QSvgGenerator { public: MiqtVirtualQSvgGenerator(): QSvgGenerator() {}; - virtual ~MiqtVirtualQSvgGenerator() = default; + virtual ~MiqtVirtualQSvgGenerator() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__PaintEngine = 0; @@ -317,11 +317,7 @@ QPainter* QSvgGenerator_virtualbase_SharedPainter(const void* self) { return ( (const MiqtVirtualQSvgGenerator*)(self) )->virtualbase_SharedPainter(); } -void QSvgGenerator_Delete(QSvgGenerator* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSvgGenerator_Delete(QSvgGenerator* self) { + delete self; } diff --git a/qt6/svg/gen_qsvggenerator.go b/qt6/svg/gen_qsvggenerator.go index 6dbe452d..fd68f4a2 100644 --- a/qt6/svg/gen_qsvggenerator.go +++ b/qt6/svg/gen_qsvggenerator.go @@ -310,7 +310,7 @@ func miqt_exec_callback_QSvgGenerator_SharedPainter(self *C.QSvgGenerator, cb C. // Delete this object from C++ memory. func (this *QSvgGenerator) Delete() { - C.QSvgGenerator_Delete(this.h, C.bool(this.isSubclass)) + C.QSvgGenerator_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/svg/gen_qsvggenerator.h b/qt6/svg/gen_qsvggenerator.h index f2f2e87a..67ed3635 100644 --- a/qt6/svg/gen_qsvggenerator.h +++ b/qt6/svg/gen_qsvggenerator.h @@ -68,7 +68,7 @@ void QSvgGenerator_override_virtual_Redirected(void* self, intptr_t slot); QPaintDevice* QSvgGenerator_virtualbase_Redirected(const void* self, QPoint* offset); void QSvgGenerator_override_virtual_SharedPainter(void* self, intptr_t slot); QPainter* QSvgGenerator_virtualbase_SharedPainter(const void* self); -void QSvgGenerator_Delete(QSvgGenerator* self, bool isSubclass); +void QSvgGenerator_Delete(QSvgGenerator* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/svg/gen_qsvgrenderer.cpp b/qt6/svg/gen_qsvgrenderer.cpp index 50b837a6..7cd24e76 100644 --- a/qt6/svg/gen_qsvgrenderer.cpp +++ b/qt6/svg/gen_qsvgrenderer.cpp @@ -34,7 +34,7 @@ void miqt_exec_callback_QSvgRenderer_DisconnectNotify(void*, intptr_t, QMetaMeth } /* extern C */ #endif -class MiqtVirtualQSvgRenderer : public virtual QSvgRenderer { +class MiqtVirtualQSvgRenderer final : public QSvgRenderer { public: MiqtVirtualQSvgRenderer(): QSvgRenderer() {}; @@ -46,7 +46,7 @@ public: MiqtVirtualQSvgRenderer(const QByteArray& contents, QObject* parent): QSvgRenderer(contents, parent) {}; MiqtVirtualQSvgRenderer(QXmlStreamReader* contents, QObject* parent): QSvgRenderer(contents, parent) {}; - virtual ~MiqtVirtualQSvgRenderer() = default; + virtual ~MiqtVirtualQSvgRenderer() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -472,11 +472,7 @@ void QSvgRenderer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) ( (MiqtVirtualQSvgRenderer*)(self) )->virtualbase_DisconnectNotify(signal); } -void QSvgRenderer_Delete(QSvgRenderer* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSvgRenderer_Delete(QSvgRenderer* self) { + delete self; } diff --git a/qt6/svg/gen_qsvgrenderer.go b/qt6/svg/gen_qsvgrenderer.go index 9b071b78..f071df83 100644 --- a/qt6/svg/gen_qsvgrenderer.go +++ b/qt6/svg/gen_qsvgrenderer.go @@ -511,7 +511,7 @@ func miqt_exec_callback_QSvgRenderer_DisconnectNotify(self *C.QSvgRenderer, cb C // Delete this object from C++ memory. func (this *QSvgRenderer) Delete() { - C.QSvgRenderer_Delete(this.h, C.bool(this.isSubclass)) + C.QSvgRenderer_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/svg/gen_qsvgrenderer.h b/qt6/svg/gen_qsvgrenderer.h index f801cccc..3d5556db 100644 --- a/qt6/svg/gen_qsvgrenderer.h +++ b/qt6/svg/gen_qsvgrenderer.h @@ -98,7 +98,7 @@ void QSvgRenderer_override_virtual_ConnectNotify(void* self, intptr_t slot); void QSvgRenderer_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QSvgRenderer_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QSvgRenderer_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QSvgRenderer_Delete(QSvgRenderer* self, bool isSubclass); +void QSvgRenderer_Delete(QSvgRenderer* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/svg/gen_qsvgwidget.cpp b/qt6/svg/gen_qsvgwidget.cpp index 4647abe7..a80bf439 100644 --- a/qt6/svg/gen_qsvgwidget.cpp +++ b/qt6/svg/gen_qsvgwidget.cpp @@ -85,7 +85,7 @@ bool miqt_exec_callback_QSvgWidget_FocusNextPrevChild(void*, intptr_t, bool); } /* extern C */ #endif -class MiqtVirtualQSvgWidget : public virtual QSvgWidget { +class MiqtVirtualQSvgWidget final : public QSvgWidget { public: MiqtVirtualQSvgWidget(QWidget* parent): QSvgWidget(parent) {}; @@ -93,7 +93,7 @@ public: MiqtVirtualQSvgWidget(const QString& file): QSvgWidget(file) {}; MiqtVirtualQSvgWidget(const QString& file, QWidget* parent): QSvgWidget(file, parent) {}; - virtual ~MiqtVirtualQSvgWidget() = default; + virtual ~MiqtVirtualQSvgWidget() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1482,11 +1482,7 @@ bool QSvgWidget_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQSvgWidget*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QSvgWidget_Delete(QSvgWidget* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QSvgWidget_Delete(QSvgWidget* self) { + delete self; } diff --git a/qt6/svg/gen_qsvgwidget.go b/qt6/svg/gen_qsvgwidget.go index 83ff5eb1..4d9bb1a2 100644 --- a/qt6/svg/gen_qsvgwidget.go +++ b/qt6/svg/gen_qsvgwidget.go @@ -1249,7 +1249,7 @@ func miqt_exec_callback_QSvgWidget_FocusNextPrevChild(self *C.QSvgWidget, cb C.i // Delete this object from C++ memory. func (this *QSvgWidget) Delete() { - C.QSvgWidget_Delete(this.h, C.bool(this.isSubclass)) + C.QSvgWidget_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/svg/gen_qsvgwidget.h b/qt6/svg/gen_qsvgwidget.h index b7599a57..9e5df17d 100644 --- a/qt6/svg/gen_qsvgwidget.h +++ b/qt6/svg/gen_qsvgwidget.h @@ -177,7 +177,7 @@ void QSvgWidget_override_virtual_InputMethodQuery(void* self, intptr_t slot); QVariant* QSvgWidget_virtualbase_InputMethodQuery(const void* self, int param1); void QSvgWidget_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QSvgWidget_virtualbase_FocusNextPrevChild(void* self, bool next); -void QSvgWidget_Delete(QSvgWidget* self, bool isSubclass); +void QSvgWidget_Delete(QSvgWidget* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webchannel/gen_qqmlwebchannel.cpp b/qt6/webchannel/gen_qqmlwebchannel.cpp index 7da07b92..7d5b817c 100644 --- a/qt6/webchannel/gen_qqmlwebchannel.cpp +++ b/qt6/webchannel/gen_qqmlwebchannel.cpp @@ -90,11 +90,7 @@ struct miqt_string QQmlWebChannel_Tr3(const char* s, const char* c, int n) { return _ms; } -void QQmlWebChannel_Delete(QQmlWebChannel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QQmlWebChannel_Delete(QQmlWebChannel* self) { + delete self; } diff --git a/qt6/webchannel/gen_qqmlwebchannel.go b/qt6/webchannel/gen_qqmlwebchannel.go index 1e0fc03b..4772aadc 100644 --- a/qt6/webchannel/gen_qqmlwebchannel.go +++ b/qt6/webchannel/gen_qqmlwebchannel.go @@ -141,7 +141,7 @@ func QQmlWebChannel_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QQmlWebChannel) Delete() { - C.QQmlWebChannel_Delete(this.h, C.bool(this.isSubclass)) + C.QQmlWebChannel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webchannel/gen_qqmlwebchannel.h b/qt6/webchannel/gen_qqmlwebchannel.h index 82c7cec0..eb0efdd9 100644 --- a/qt6/webchannel/gen_qqmlwebchannel.h +++ b/qt6/webchannel/gen_qqmlwebchannel.h @@ -39,7 +39,7 @@ void QQmlWebChannel_ConnectTo(QQmlWebChannel* self, QObject* transport); void QQmlWebChannel_DisconnectFrom(QQmlWebChannel* self, QObject* transport); struct miqt_string QQmlWebChannel_Tr2(const char* s, const char* c); struct miqt_string QQmlWebChannel_Tr3(const char* s, const char* c, int n); -void QQmlWebChannel_Delete(QQmlWebChannel* self, bool isSubclass); +void QQmlWebChannel_Delete(QQmlWebChannel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webchannel/gen_qwebchannel.cpp b/qt6/webchannel/gen_qwebchannel.cpp index 419d9829..c0a9e60a 100644 --- a/qt6/webchannel/gen_qwebchannel.cpp +++ b/qt6/webchannel/gen_qwebchannel.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QWebChannel_DisconnectNotify(void*, intptr_t, QMetaMetho } /* extern C */ #endif -class MiqtVirtualQWebChannel : public virtual QWebChannel { +class MiqtVirtualQWebChannel final : public QWebChannel { public: MiqtVirtualQWebChannel(): QWebChannel() {}; MiqtVirtualQWebChannel(QObject* parent): QWebChannel(parent) {}; - virtual ~MiqtVirtualQWebChannel() = default; + virtual ~MiqtVirtualQWebChannel() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -400,11 +400,7 @@ void QWebChannel_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal) { ( (MiqtVirtualQWebChannel*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebChannel_Delete(QWebChannel* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebChannel_Delete(QWebChannel* self) { + delete self; } diff --git a/qt6/webchannel/gen_qwebchannel.go b/qt6/webchannel/gen_qwebchannel.go index 402febb0..e70023d5 100644 --- a/qt6/webchannel/gen_qwebchannel.go +++ b/qt6/webchannel/gen_qwebchannel.go @@ -395,7 +395,7 @@ func miqt_exec_callback_QWebChannel_DisconnectNotify(self *C.QWebChannel, cb C.i // Delete this object from C++ memory. func (this *QWebChannel) Delete() { - C.QWebChannel_Delete(this.h, C.bool(this.isSubclass)) + C.QWebChannel_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webchannel/gen_qwebchannel.h b/qt6/webchannel/gen_qwebchannel.h index 661f2e8d..8868119b 100644 --- a/qt6/webchannel/gen_qwebchannel.h +++ b/qt6/webchannel/gen_qwebchannel.h @@ -68,7 +68,7 @@ void QWebChannel_override_virtual_ConnectNotify(void* self, intptr_t slot); void QWebChannel_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebChannel_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebChannel_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebChannel_Delete(QWebChannel* self, bool isSubclass); +void QWebChannel_Delete(QWebChannel* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webchannel/gen_qwebchannelabstracttransport.cpp b/qt6/webchannel/gen_qwebchannelabstracttransport.cpp index 947cc921..c1761c33 100644 --- a/qt6/webchannel/gen_qwebchannelabstracttransport.cpp +++ b/qt6/webchannel/gen_qwebchannelabstracttransport.cpp @@ -29,13 +29,13 @@ void miqt_exec_callback_QWebChannelAbstractTransport_DisconnectNotify(void*, int } /* extern C */ #endif -class MiqtVirtualQWebChannelAbstractTransport : public virtual QWebChannelAbstractTransport { +class MiqtVirtualQWebChannelAbstractTransport final : public QWebChannelAbstractTransport { public: MiqtVirtualQWebChannelAbstractTransport(): QWebChannelAbstractTransport() {}; MiqtVirtualQWebChannelAbstractTransport(QObject* parent): QWebChannelAbstractTransport(parent) {}; - virtual ~MiqtVirtualQWebChannelAbstractTransport() = default; + virtual ~MiqtVirtualQWebChannelAbstractTransport() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SendMessage = 0; @@ -359,11 +359,7 @@ void QWebChannelAbstractTransport_virtualbase_DisconnectNotify(void* self, QMeta ( (MiqtVirtualQWebChannelAbstractTransport*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebChannelAbstractTransport_Delete(QWebChannelAbstractTransport* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebChannelAbstractTransport_Delete(QWebChannelAbstractTransport* self) { + delete self; } diff --git a/qt6/webchannel/gen_qwebchannelabstracttransport.go b/qt6/webchannel/gen_qwebchannelabstracttransport.go index 09012619..d352272a 100644 --- a/qt6/webchannel/gen_qwebchannelabstracttransport.go +++ b/qt6/webchannel/gen_qwebchannelabstracttransport.go @@ -345,7 +345,7 @@ func miqt_exec_callback_QWebChannelAbstractTransport_DisconnectNotify(self *C.QW // Delete this object from C++ memory. func (this *QWebChannelAbstractTransport) Delete() { - C.QWebChannelAbstractTransport_Delete(this.h, C.bool(this.isSubclass)) + C.QWebChannelAbstractTransport_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webchannel/gen_qwebchannelabstracttransport.h b/qt6/webchannel/gen_qwebchannelabstracttransport.h index 4f6126a2..bce6b613 100644 --- a/qt6/webchannel/gen_qwebchannelabstracttransport.h +++ b/qt6/webchannel/gen_qwebchannelabstracttransport.h @@ -61,7 +61,7 @@ void QWebChannelAbstractTransport_override_virtual_ConnectNotify(void* self, int void QWebChannelAbstractTransport_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebChannelAbstractTransport_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebChannelAbstractTransport_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebChannelAbstractTransport_Delete(QWebChannelAbstractTransport* self, bool isSubclass); +void QWebChannelAbstractTransport_Delete(QWebChannelAbstractTransport* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginecertificateerror.cpp b/qt6/webengine/gen_qwebenginecertificateerror.cpp index 4cc78587..629f6730 100644 --- a/qt6/webengine/gen_qwebenginecertificateerror.cpp +++ b/qt6/webengine/gen_qwebenginecertificateerror.cpp @@ -73,11 +73,7 @@ struct miqt_array /* of QSslCertificate* */ QWebEngineCertificateError_Certific return _out; } -void QWebEngineCertificateError_Delete(QWebEngineCertificateError* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineCertificateError_Delete(QWebEngineCertificateError* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginecertificateerror.go b/qt6/webengine/gen_qwebenginecertificateerror.go index 528fc880..1415c0ac 100644 --- a/qt6/webengine/gen_qwebenginecertificateerror.go +++ b/qt6/webengine/gen_qwebenginecertificateerror.go @@ -130,7 +130,7 @@ func (this *QWebEngineCertificateError) CertificateChain() []network.QSslCertifi // Delete this object from C++ memory. func (this *QWebEngineCertificateError) Delete() { - C.QWebEngineCertificateError_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineCertificateError_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginecertificateerror.h b/qt6/webengine/gen_qwebenginecertificateerror.h index 8bb78ad9..7f4e8e91 100644 --- a/qt6/webengine/gen_qwebenginecertificateerror.h +++ b/qt6/webengine/gen_qwebenginecertificateerror.h @@ -34,7 +34,7 @@ void QWebEngineCertificateError_Defer(QWebEngineCertificateError* self); void QWebEngineCertificateError_RejectCertificate(QWebEngineCertificateError* self); void QWebEngineCertificateError_AcceptCertificate(QWebEngineCertificateError* self); struct miqt_array /* of QSslCertificate* */ QWebEngineCertificateError_CertificateChain(const QWebEngineCertificateError* self); -void QWebEngineCertificateError_Delete(QWebEngineCertificateError* self, bool isSubclass); +void QWebEngineCertificateError_Delete(QWebEngineCertificateError* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebengineclientcertificateselection.cpp b/qt6/webengine/gen_qwebengineclientcertificateselection.cpp index a6d02103..67e980f1 100644 --- a/qt6/webengine/gen_qwebengineclientcertificateselection.cpp +++ b/qt6/webengine/gen_qwebengineclientcertificateselection.cpp @@ -46,11 +46,7 @@ struct miqt_array /* of QSslCertificate* */ QWebEngineClientCertificateSelectio return _out; } -void QWebEngineClientCertificateSelection_Delete(QWebEngineClientCertificateSelection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineClientCertificateSelection_Delete(QWebEngineClientCertificateSelection* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebengineclientcertificateselection.go b/qt6/webengine/gen_qwebengineclientcertificateselection.go index d0e61671..10bdd5e3 100644 --- a/qt6/webengine/gen_qwebengineclientcertificateselection.go +++ b/qt6/webengine/gen_qwebengineclientcertificateselection.go @@ -88,7 +88,7 @@ func (this *QWebEngineClientCertificateSelection) Certificates() []network.QSslC // Delete this object from C++ memory. func (this *QWebEngineClientCertificateSelection) Delete() { - C.QWebEngineClientCertificateSelection_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineClientCertificateSelection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebengineclientcertificateselection.h b/qt6/webengine/gen_qwebengineclientcertificateselection.h index f8ecc4f5..408195b1 100644 --- a/qt6/webengine/gen_qwebengineclientcertificateselection.h +++ b/qt6/webengine/gen_qwebengineclientcertificateselection.h @@ -30,7 +30,7 @@ QUrl* QWebEngineClientCertificateSelection_Host(const QWebEngineClientCertificat void QWebEngineClientCertificateSelection_Select(QWebEngineClientCertificateSelection* self, QSslCertificate* certificate); void QWebEngineClientCertificateSelection_SelectNone(QWebEngineClientCertificateSelection* self); struct miqt_array /* of QSslCertificate* */ QWebEngineClientCertificateSelection_Certificates(const QWebEngineClientCertificateSelection* self); -void QWebEngineClientCertificateSelection_Delete(QWebEngineClientCertificateSelection* self, bool isSubclass); +void QWebEngineClientCertificateSelection_Delete(QWebEngineClientCertificateSelection* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginecontextmenurequest.cpp b/qt6/webengine/gen_qwebenginecontextmenurequest.cpp index 0a1dcf01..b78cf244 100644 --- a/qt6/webengine/gen_qwebenginecontextmenurequest.cpp +++ b/qt6/webengine/gen_qwebenginecontextmenurequest.cpp @@ -155,11 +155,7 @@ struct miqt_string QWebEngineContextMenuRequest_Tr3(const char* s, const char* c return _ms; } -void QWebEngineContextMenuRequest_Delete(QWebEngineContextMenuRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineContextMenuRequest_Delete(QWebEngineContextMenuRequest* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginecontextmenurequest.go b/qt6/webengine/gen_qwebenginecontextmenurequest.go index c0f9bd49..2c00a3fe 100644 --- a/qt6/webengine/gen_qwebenginecontextmenurequest.go +++ b/qt6/webengine/gen_qwebenginecontextmenurequest.go @@ -226,7 +226,7 @@ func QWebEngineContextMenuRequest_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebEngineContextMenuRequest) Delete() { - C.QWebEngineContextMenuRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineContextMenuRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginecontextmenurequest.h b/qt6/webengine/gen_qwebenginecontextmenurequest.h index 17de2bff..e01578c8 100644 --- a/qt6/webengine/gen_qwebenginecontextmenurequest.h +++ b/qt6/webengine/gen_qwebenginecontextmenurequest.h @@ -47,7 +47,7 @@ int QWebEngineContextMenuRequest_MediaFlags(const QWebEngineContextMenuRequest* int QWebEngineContextMenuRequest_EditFlags(const QWebEngineContextMenuRequest* self); struct miqt_string QWebEngineContextMenuRequest_Tr2(const char* s, const char* c); struct miqt_string QWebEngineContextMenuRequest_Tr3(const char* s, const char* c, int n); -void QWebEngineContextMenuRequest_Delete(QWebEngineContextMenuRequest* self, bool isSubclass); +void QWebEngineContextMenuRequest_Delete(QWebEngineContextMenuRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginecookiestore.cpp b/qt6/webengine/gen_qwebenginecookiestore.cpp index 7ca525b0..cede8834 100644 --- a/qt6/webengine/gen_qwebenginecookiestore.cpp +++ b/qt6/webengine/gen_qwebenginecookiestore.cpp @@ -119,12 +119,8 @@ void QWebEngineCookieStore_DeleteCookie2(QWebEngineCookieStore* self, QNetworkCo self->deleteCookie(*cookie, *origin); } -void QWebEngineCookieStore_Delete(QWebEngineCookieStore* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineCookieStore_Delete(QWebEngineCookieStore* self) { + delete self; } QWebEngineCookieStore__FilterRequest* QWebEngineCookieStore__FilterRequest_new(QWebEngineCookieStore__FilterRequest* param1) { @@ -135,11 +131,7 @@ void QWebEngineCookieStore__FilterRequest_OperatorAssign(QWebEngineCookieStore__ self->operator=(*param1); } -void QWebEngineCookieStore__FilterRequest_Delete(QWebEngineCookieStore__FilterRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineCookieStore__FilterRequest_Delete(QWebEngineCookieStore__FilterRequest* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginecookiestore.go b/qt6/webengine/gen_qwebenginecookiestore.go index 82575bb0..3622f64f 100644 --- a/qt6/webengine/gen_qwebenginecookiestore.go +++ b/qt6/webengine/gen_qwebenginecookiestore.go @@ -164,7 +164,7 @@ func (this *QWebEngineCookieStore) DeleteCookie2(cookie *network.QNetworkCookie, // Delete this object from C++ memory. func (this *QWebEngineCookieStore) Delete() { - C.QWebEngineCookieStore_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineCookieStore_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted @@ -223,7 +223,7 @@ func (this *QWebEngineCookieStore__FilterRequest) OperatorAssign(param1 *QWebEng // Delete this object from C++ memory. func (this *QWebEngineCookieStore__FilterRequest) Delete() { - C.QWebEngineCookieStore__FilterRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineCookieStore__FilterRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginecookiestore.h b/qt6/webengine/gen_qwebenginecookiestore.h index f68beb95..fb66de78 100644 --- a/qt6/webengine/gen_qwebenginecookiestore.h +++ b/qt6/webengine/gen_qwebenginecookiestore.h @@ -51,11 +51,11 @@ struct miqt_string QWebEngineCookieStore_Tr2(const char* s, const char* c); struct miqt_string QWebEngineCookieStore_Tr3(const char* s, const char* c, int n); void QWebEngineCookieStore_SetCookie2(QWebEngineCookieStore* self, QNetworkCookie* cookie, QUrl* origin); void QWebEngineCookieStore_DeleteCookie2(QWebEngineCookieStore* self, QNetworkCookie* cookie, QUrl* origin); -void QWebEngineCookieStore_Delete(QWebEngineCookieStore* self, bool isSubclass); +void QWebEngineCookieStore_Delete(QWebEngineCookieStore* self); QWebEngineCookieStore__FilterRequest* QWebEngineCookieStore__FilterRequest_new(QWebEngineCookieStore__FilterRequest* param1); void QWebEngineCookieStore__FilterRequest_OperatorAssign(QWebEngineCookieStore__FilterRequest* self, QWebEngineCookieStore__FilterRequest* param1); -void QWebEngineCookieStore__FilterRequest_Delete(QWebEngineCookieStore__FilterRequest* self, bool isSubclass); +void QWebEngineCookieStore__FilterRequest_Delete(QWebEngineCookieStore__FilterRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginedownloadrequest.cpp b/qt6/webengine/gen_qwebenginedownloadrequest.cpp index 077187e9..a7e3b520 100644 --- a/qt6/webengine/gen_qwebenginedownloadrequest.cpp +++ b/qt6/webengine/gen_qwebenginedownloadrequest.cpp @@ -298,11 +298,7 @@ struct miqt_string QWebEngineDownloadRequest_Tr3(const char* s, const char* c, i return _ms; } -void QWebEngineDownloadRequest_Delete(QWebEngineDownloadRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineDownloadRequest_Delete(QWebEngineDownloadRequest* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginedownloadrequest.go b/qt6/webengine/gen_qwebenginedownloadrequest.go index 897001e2..5614f2d3 100644 --- a/qt6/webengine/gen_qwebenginedownloadrequest.go +++ b/qt6/webengine/gen_qwebenginedownloadrequest.go @@ -416,7 +416,7 @@ func QWebEngineDownloadRequest_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebEngineDownloadRequest) Delete() { - C.QWebEngineDownloadRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineDownloadRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginedownloadrequest.h b/qt6/webengine/gen_qwebenginedownloadrequest.h index 8635e663..931aa951 100644 --- a/qt6/webengine/gen_qwebenginedownloadrequest.h +++ b/qt6/webengine/gen_qwebenginedownloadrequest.h @@ -75,7 +75,7 @@ void QWebEngineDownloadRequest_DownloadFileNameChanged(QWebEngineDownloadRequest void QWebEngineDownloadRequest_connect_DownloadFileNameChanged(QWebEngineDownloadRequest* self, intptr_t slot); struct miqt_string QWebEngineDownloadRequest_Tr2(const char* s, const char* c); struct miqt_string QWebEngineDownloadRequest_Tr3(const char* s, const char* c, int n); -void QWebEngineDownloadRequest_Delete(QWebEngineDownloadRequest* self, bool isSubclass); +void QWebEngineDownloadRequest_Delete(QWebEngineDownloadRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginefilesystemaccessrequest.cpp b/qt6/webengine/gen_qwebenginefilesystemaccessrequest.cpp index 8138e5a0..5544715a 100644 --- a/qt6/webengine/gen_qwebenginefilesystemaccessrequest.cpp +++ b/qt6/webengine/gen_qwebenginefilesystemaccessrequest.cpp @@ -49,11 +49,7 @@ int QWebEngineFileSystemAccessRequest_AccessFlags(const QWebEngineFileSystemAcce return static_cast(_ret); } -void QWebEngineFileSystemAccessRequest_Delete(QWebEngineFileSystemAccessRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineFileSystemAccessRequest_Delete(QWebEngineFileSystemAccessRequest* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginefilesystemaccessrequest.go b/qt6/webengine/gen_qwebenginefilesystemaccessrequest.go index fae34db2..38f02029 100644 --- a/qt6/webengine/gen_qwebenginefilesystemaccessrequest.go +++ b/qt6/webengine/gen_qwebenginefilesystemaccessrequest.go @@ -107,7 +107,7 @@ func (this *QWebEngineFileSystemAccessRequest) AccessFlags() QWebEngineFileSyste // Delete this object from C++ memory. func (this *QWebEngineFileSystemAccessRequest) Delete() { - C.QWebEngineFileSystemAccessRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineFileSystemAccessRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginefilesystemaccessrequest.h b/qt6/webengine/gen_qwebenginefilesystemaccessrequest.h index 873880c3..7c14911f 100644 --- a/qt6/webengine/gen_qwebenginefilesystemaccessrequest.h +++ b/qt6/webengine/gen_qwebenginefilesystemaccessrequest.h @@ -31,7 +31,7 @@ QUrl* QWebEngineFileSystemAccessRequest_Origin(const QWebEngineFileSystemAccessR QUrl* QWebEngineFileSystemAccessRequest_FilePath(const QWebEngineFileSystemAccessRequest* self); int QWebEngineFileSystemAccessRequest_HandleType(const QWebEngineFileSystemAccessRequest* self); int QWebEngineFileSystemAccessRequest_AccessFlags(const QWebEngineFileSystemAccessRequest* self); -void QWebEngineFileSystemAccessRequest_Delete(QWebEngineFileSystemAccessRequest* self, bool isSubclass); +void QWebEngineFileSystemAccessRequest_Delete(QWebEngineFileSystemAccessRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginefindtextresult.cpp b/qt6/webengine/gen_qwebenginefindtextresult.cpp index f467522a..7f7322c0 100644 --- a/qt6/webengine/gen_qwebenginefindtextresult.cpp +++ b/qt6/webengine/gen_qwebenginefindtextresult.cpp @@ -30,11 +30,7 @@ void QWebEngineFindTextResult_OperatorAssign(QWebEngineFindTextResult* self, QWe self->operator=(*other); } -void QWebEngineFindTextResult_Delete(QWebEngineFindTextResult* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineFindTextResult_Delete(QWebEngineFindTextResult* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginefindtextresult.go b/qt6/webengine/gen_qwebenginefindtextresult.go index df11a80d..0ccd0b20 100644 --- a/qt6/webengine/gen_qwebenginefindtextresult.go +++ b/qt6/webengine/gen_qwebenginefindtextresult.go @@ -76,7 +76,7 @@ func (this *QWebEngineFindTextResult) OperatorAssign(other *QWebEngineFindTextRe // Delete this object from C++ memory. func (this *QWebEngineFindTextResult) Delete() { - C.QWebEngineFindTextResult_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineFindTextResult_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginefindtextresult.h b/qt6/webengine/gen_qwebenginefindtextresult.h index 394ddae6..1f7043ff 100644 --- a/qt6/webengine/gen_qwebenginefindtextresult.h +++ b/qt6/webengine/gen_qwebenginefindtextresult.h @@ -25,7 +25,7 @@ QWebEngineFindTextResult* QWebEngineFindTextResult_new2(QWebEngineFindTextResult int QWebEngineFindTextResult_NumberOfMatches(const QWebEngineFindTextResult* self); int QWebEngineFindTextResult_ActiveMatch(const QWebEngineFindTextResult* self); void QWebEngineFindTextResult_OperatorAssign(QWebEngineFindTextResult* self, QWebEngineFindTextResult* other); -void QWebEngineFindTextResult_Delete(QWebEngineFindTextResult* self, bool isSubclass); +void QWebEngineFindTextResult_Delete(QWebEngineFindTextResult* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginefullscreenrequest.cpp b/qt6/webengine/gen_qwebenginefullscreenrequest.cpp index 3edfbfda..f0451b8a 100644 --- a/qt6/webengine/gen_qwebenginefullscreenrequest.cpp +++ b/qt6/webengine/gen_qwebenginefullscreenrequest.cpp @@ -35,11 +35,7 @@ QUrl* QWebEngineFullScreenRequest_Origin(const QWebEngineFullScreenRequest* self return new QUrl(self->origin()); } -void QWebEngineFullScreenRequest_Delete(QWebEngineFullScreenRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineFullScreenRequest_Delete(QWebEngineFullScreenRequest* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginefullscreenrequest.go b/qt6/webengine/gen_qwebenginefullscreenrequest.go index f8d9f1cb..f4604685 100644 --- a/qt6/webengine/gen_qwebenginefullscreenrequest.go +++ b/qt6/webengine/gen_qwebenginefullscreenrequest.go @@ -79,7 +79,7 @@ func (this *QWebEngineFullScreenRequest) Origin() *qt6.QUrl { // Delete this object from C++ memory. func (this *QWebEngineFullScreenRequest) Delete() { - C.QWebEngineFullScreenRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineFullScreenRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginefullscreenrequest.h b/qt6/webengine/gen_qwebenginefullscreenrequest.h index d4fb7549..356817b4 100644 --- a/qt6/webengine/gen_qwebenginefullscreenrequest.h +++ b/qt6/webengine/gen_qwebenginefullscreenrequest.h @@ -28,7 +28,7 @@ void QWebEngineFullScreenRequest_Reject(QWebEngineFullScreenRequest* self); void QWebEngineFullScreenRequest_Accept(QWebEngineFullScreenRequest* self); bool QWebEngineFullScreenRequest_ToggleOn(const QWebEngineFullScreenRequest* self); QUrl* QWebEngineFullScreenRequest_Origin(const QWebEngineFullScreenRequest* self); -void QWebEngineFullScreenRequest_Delete(QWebEngineFullScreenRequest* self, bool isSubclass); +void QWebEngineFullScreenRequest_Delete(QWebEngineFullScreenRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginehistory.cpp b/qt6/webengine/gen_qwebenginehistory.cpp index b1a58374..c75529fb 100644 --- a/qt6/webengine/gen_qwebenginehistory.cpp +++ b/qt6/webengine/gen_qwebenginehistory.cpp @@ -69,12 +69,8 @@ void QWebEngineHistoryItem_Swap(QWebEngineHistoryItem* self, QWebEngineHistoryIt self->swap(*other); } -void QWebEngineHistoryItem_Delete(QWebEngineHistoryItem* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineHistoryItem_Delete(QWebEngineHistoryItem* self) { + delete self; } void QWebEngineHistoryModel_virtbase(QWebEngineHistoryModel* src, QAbstractListModel** outptr_QAbstractListModel) { diff --git a/qt6/webengine/gen_qwebenginehistory.go b/qt6/webengine/gen_qwebenginehistory.go index 275bf2b7..8b11dc84 100644 --- a/qt6/webengine/gen_qwebenginehistory.go +++ b/qt6/webengine/gen_qwebenginehistory.go @@ -109,7 +109,7 @@ func (this *QWebEngineHistoryItem) Swap(other *QWebEngineHistoryItem) { // Delete this object from C++ memory. func (this *QWebEngineHistoryItem) Delete() { - C.QWebEngineHistoryItem_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineHistoryItem_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginehistory.h b/qt6/webengine/gen_qwebenginehistory.h index 498af531..d2e1da3a 100644 --- a/qt6/webengine/gen_qwebenginehistory.h +++ b/qt6/webengine/gen_qwebenginehistory.h @@ -49,7 +49,7 @@ QDateTime* QWebEngineHistoryItem_LastVisited(const QWebEngineHistoryItem* self); QUrl* QWebEngineHistoryItem_IconUrl(const QWebEngineHistoryItem* self); bool QWebEngineHistoryItem_IsValid(const QWebEngineHistoryItem* self); void QWebEngineHistoryItem_Swap(QWebEngineHistoryItem* self, QWebEngineHistoryItem* other); -void QWebEngineHistoryItem_Delete(QWebEngineHistoryItem* self, bool isSubclass); +void QWebEngineHistoryItem_Delete(QWebEngineHistoryItem* self); void QWebEngineHistoryModel_virtbase(QWebEngineHistoryModel* src, QAbstractListModel** outptr_QAbstractListModel); QMetaObject* QWebEngineHistoryModel_MetaObject(const QWebEngineHistoryModel* self); diff --git a/qt6/webengine/gen_qwebenginehttprequest.cpp b/qt6/webengine/gen_qwebenginehttprequest.cpp index d6e86283..56fb1afe 100644 --- a/qt6/webengine/gen_qwebenginehttprequest.cpp +++ b/qt6/webengine/gen_qwebenginehttprequest.cpp @@ -136,11 +136,7 @@ void QWebEngineHttpRequest_UnsetHeader(QWebEngineHttpRequest* self, struct miqt_ self->unsetHeader(headerName_QByteArray); } -void QWebEngineHttpRequest_Delete(QWebEngineHttpRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineHttpRequest_Delete(QWebEngineHttpRequest* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginehttprequest.go b/qt6/webengine/gen_qwebenginehttprequest.go index e9b03f0e..5059c4e3 100644 --- a/qt6/webengine/gen_qwebenginehttprequest.go +++ b/qt6/webengine/gen_qwebenginehttprequest.go @@ -212,7 +212,7 @@ func (this *QWebEngineHttpRequest) UnsetHeader(headerName []byte) { // Delete this object from C++ memory. func (this *QWebEngineHttpRequest) Delete() { - C.QWebEngineHttpRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineHttpRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginehttprequest.h b/qt6/webengine/gen_qwebenginehttprequest.h index ee437c06..833e6f6b 100644 --- a/qt6/webengine/gen_qwebenginehttprequest.h +++ b/qt6/webengine/gen_qwebenginehttprequest.h @@ -42,7 +42,7 @@ struct miqt_array /* of struct miqt_string */ QWebEngineHttpRequest_Headers(con struct miqt_string QWebEngineHttpRequest_Header(const QWebEngineHttpRequest* self, struct miqt_string headerName); void QWebEngineHttpRequest_SetHeader(QWebEngineHttpRequest* self, struct miqt_string headerName, struct miqt_string value); void QWebEngineHttpRequest_UnsetHeader(QWebEngineHttpRequest* self, struct miqt_string headerName); -void QWebEngineHttpRequest_Delete(QWebEngineHttpRequest* self, bool isSubclass); +void QWebEngineHttpRequest_Delete(QWebEngineHttpRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebengineloadinginfo.cpp b/qt6/webengine/gen_qwebengineloadinginfo.cpp index 5ab8f616..89ec8c5d 100644 --- a/qt6/webengine/gen_qwebengineloadinginfo.cpp +++ b/qt6/webengine/gen_qwebengineloadinginfo.cpp @@ -55,11 +55,7 @@ int QWebEngineLoadingInfo_ErrorCode(const QWebEngineLoadingInfo* self) { return self->errorCode(); } -void QWebEngineLoadingInfo_Delete(QWebEngineLoadingInfo* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineLoadingInfo_Delete(QWebEngineLoadingInfo* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebengineloadinginfo.go b/qt6/webengine/gen_qwebengineloadinginfo.go index 7b5927e0..c6b52bd3 100644 --- a/qt6/webengine/gen_qwebengineloadinginfo.go +++ b/qt6/webengine/gen_qwebengineloadinginfo.go @@ -112,7 +112,7 @@ func (this *QWebEngineLoadingInfo) ErrorCode() int { // Delete this object from C++ memory. func (this *QWebEngineLoadingInfo) Delete() { - C.QWebEngineLoadingInfo_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineLoadingInfo_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebengineloadinginfo.h b/qt6/webengine/gen_qwebengineloadinginfo.h index 03d27eea..4ec06680 100644 --- a/qt6/webengine/gen_qwebengineloadinginfo.h +++ b/qt6/webengine/gen_qwebengineloadinginfo.h @@ -30,7 +30,7 @@ int QWebEngineLoadingInfo_Status(const QWebEngineLoadingInfo* self); struct miqt_string QWebEngineLoadingInfo_ErrorString(const QWebEngineLoadingInfo* self); int QWebEngineLoadingInfo_ErrorDomain(const QWebEngineLoadingInfo* self); int QWebEngineLoadingInfo_ErrorCode(const QWebEngineLoadingInfo* self); -void QWebEngineLoadingInfo_Delete(QWebEngineLoadingInfo* self, bool isSubclass); +void QWebEngineLoadingInfo_Delete(QWebEngineLoadingInfo* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginenavigationrequest.cpp b/qt6/webengine/gen_qwebenginenavigationrequest.cpp index e39c343c..d3ad1871 100644 --- a/qt6/webengine/gen_qwebenginenavigationrequest.cpp +++ b/qt6/webengine/gen_qwebenginenavigationrequest.cpp @@ -93,11 +93,7 @@ struct miqt_string QWebEngineNavigationRequest_Tr3(const char* s, const char* c, return _ms; } -void QWebEngineNavigationRequest_Delete(QWebEngineNavigationRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineNavigationRequest_Delete(QWebEngineNavigationRequest* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginenavigationrequest.go b/qt6/webengine/gen_qwebenginenavigationrequest.go index e093369b..9f4dc832 100644 --- a/qt6/webengine/gen_qwebenginenavigationrequest.go +++ b/qt6/webengine/gen_qwebenginenavigationrequest.go @@ -153,7 +153,7 @@ func QWebEngineNavigationRequest_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebEngineNavigationRequest) Delete() { - C.QWebEngineNavigationRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineNavigationRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginenavigationrequest.h b/qt6/webengine/gen_qwebenginenavigationrequest.h index a73abc3a..d1930c23 100644 --- a/qt6/webengine/gen_qwebenginenavigationrequest.h +++ b/qt6/webengine/gen_qwebenginenavigationrequest.h @@ -39,7 +39,7 @@ void QWebEngineNavigationRequest_ActionChanged(QWebEngineNavigationRequest* self void QWebEngineNavigationRequest_connect_ActionChanged(QWebEngineNavigationRequest* self, intptr_t slot); struct miqt_string QWebEngineNavigationRequest_Tr2(const char* s, const char* c); struct miqt_string QWebEngineNavigationRequest_Tr3(const char* s, const char* c, int n); -void QWebEngineNavigationRequest_Delete(QWebEngineNavigationRequest* self, bool isSubclass); +void QWebEngineNavigationRequest_Delete(QWebEngineNavigationRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginenewwindowrequest.cpp b/qt6/webengine/gen_qwebenginenewwindowrequest.cpp index 596ab54c..ba948994 100644 --- a/qt6/webengine/gen_qwebenginenewwindowrequest.cpp +++ b/qt6/webengine/gen_qwebenginenewwindowrequest.cpp @@ -84,11 +84,7 @@ struct miqt_string QWebEngineNewWindowRequest_Tr3(const char* s, const char* c, return _ms; } -void QWebEngineNewWindowRequest_Delete(QWebEngineNewWindowRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineNewWindowRequest_Delete(QWebEngineNewWindowRequest* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginenewwindowrequest.go b/qt6/webengine/gen_qwebenginenewwindowrequest.go index f224f749..a08451ad 100644 --- a/qt6/webengine/gen_qwebenginenewwindowrequest.go +++ b/qt6/webengine/gen_qwebenginenewwindowrequest.go @@ -127,7 +127,7 @@ func QWebEngineNewWindowRequest_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebEngineNewWindowRequest) Delete() { - C.QWebEngineNewWindowRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineNewWindowRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginenewwindowrequest.h b/qt6/webengine/gen_qwebenginenewwindowrequest.h index 35ef293d..d4ef9542 100644 --- a/qt6/webengine/gen_qwebenginenewwindowrequest.h +++ b/qt6/webengine/gen_qwebenginenewwindowrequest.h @@ -41,7 +41,7 @@ bool QWebEngineNewWindowRequest_IsUserInitiated(const QWebEngineNewWindowRequest void QWebEngineNewWindowRequest_OpenIn(QWebEngineNewWindowRequest* self, QWebEnginePage* param1); struct miqt_string QWebEngineNewWindowRequest_Tr2(const char* s, const char* c); struct miqt_string QWebEngineNewWindowRequest_Tr3(const char* s, const char* c, int n); -void QWebEngineNewWindowRequest_Delete(QWebEngineNewWindowRequest* self, bool isSubclass); +void QWebEngineNewWindowRequest_Delete(QWebEngineNewWindowRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginenotification.cpp b/qt6/webengine/gen_qwebenginenotification.cpp index 12f9edfc..0a65eee7 100644 --- a/qt6/webengine/gen_qwebenginenotification.cpp +++ b/qt6/webengine/gen_qwebenginenotification.cpp @@ -146,11 +146,7 @@ struct miqt_string QWebEngineNotification_Tr3(const char* s, const char* c, int return _ms; } -void QWebEngineNotification_Delete(QWebEngineNotification* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineNotification_Delete(QWebEngineNotification* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginenotification.go b/qt6/webengine/gen_qwebenginenotification.go index 3b0927d1..fb219e07 100644 --- a/qt6/webengine/gen_qwebenginenotification.go +++ b/qt6/webengine/gen_qwebenginenotification.go @@ -172,7 +172,7 @@ func QWebEngineNotification_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebEngineNotification) Delete() { - C.QWebEngineNotification_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineNotification_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginenotification.h b/qt6/webengine/gen_qwebenginenotification.h index 2a5d1c15..56962613 100644 --- a/qt6/webengine/gen_qwebenginenotification.h +++ b/qt6/webengine/gen_qwebenginenotification.h @@ -47,7 +47,7 @@ void QWebEngineNotification_Closed(QWebEngineNotification* self); void QWebEngineNotification_connect_Closed(QWebEngineNotification* self, intptr_t slot); struct miqt_string QWebEngineNotification_Tr2(const char* s, const char* c); struct miqt_string QWebEngineNotification_Tr3(const char* s, const char* c, int n); -void QWebEngineNotification_Delete(QWebEngineNotification* self, bool isSubclass); +void QWebEngineNotification_Delete(QWebEngineNotification* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginepage.cpp b/qt6/webengine/gen_qwebenginepage.cpp index dc276370..0c710dfa 100644 --- a/qt6/webengine/gen_qwebenginepage.cpp +++ b/qt6/webengine/gen_qwebenginepage.cpp @@ -99,7 +99,7 @@ void miqt_exec_callback_QWebEnginePage_DisconnectNotify(void*, intptr_t, QMetaMe } /* extern C */ #endif -class MiqtVirtualQWebEnginePage : public virtual QWebEnginePage { +class MiqtVirtualQWebEnginePage final : public QWebEnginePage { public: MiqtVirtualQWebEnginePage(): QWebEnginePage() {}; @@ -107,7 +107,7 @@ public: MiqtVirtualQWebEnginePage(QObject* parent): QWebEnginePage(parent) {}; MiqtVirtualQWebEnginePage(QWebEngineProfile* profile, QObject* parent): QWebEnginePage(profile, parent) {}; - virtual ~MiqtVirtualQWebEnginePage() = default; + virtual ~MiqtVirtualQWebEnginePage() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__TriggerAction = 0; @@ -1476,11 +1476,7 @@ void QWebEnginePage_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal ( (MiqtVirtualQWebEnginePage*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebEnginePage_Delete(QWebEnginePage* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEnginePage_Delete(QWebEnginePage* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginepage.go b/qt6/webengine/gen_qwebenginepage.go index 3e5da838..0a571617 100644 --- a/qt6/webengine/gen_qwebenginepage.go +++ b/qt6/webengine/gen_qwebenginepage.go @@ -1819,7 +1819,7 @@ func miqt_exec_callback_QWebEnginePage_DisconnectNotify(self *C.QWebEnginePage, // Delete this object from C++ memory. func (this *QWebEnginePage) Delete() { - C.QWebEnginePage_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEnginePage_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginepage.h b/qt6/webengine/gen_qwebenginepage.h index 9a8aee77..e4ba56fb 100644 --- a/qt6/webengine/gen_qwebenginepage.h +++ b/qt6/webengine/gen_qwebenginepage.h @@ -260,7 +260,7 @@ void QWebEnginePage_override_virtual_ConnectNotify(void* self, intptr_t slot); void QWebEnginePage_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebEnginePage_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebEnginePage_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebEnginePage_Delete(QWebEnginePage* self, bool isSubclass); +void QWebEnginePage_Delete(QWebEnginePage* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebengineprofile.cpp b/qt6/webengine/gen_qwebengineprofile.cpp index 1d4b8aab..c33a4a37 100644 --- a/qt6/webengine/gen_qwebengineprofile.cpp +++ b/qt6/webengine/gen_qwebengineprofile.cpp @@ -37,7 +37,7 @@ void miqt_exec_callback_QWebEngineProfile_DisconnectNotify(void*, intptr_t, QMet } /* extern C */ #endif -class MiqtVirtualQWebEngineProfile : public virtual QWebEngineProfile { +class MiqtVirtualQWebEngineProfile final : public QWebEngineProfile { public: MiqtVirtualQWebEngineProfile(): QWebEngineProfile() {}; @@ -45,7 +45,7 @@ public: MiqtVirtualQWebEngineProfile(QObject* parent): QWebEngineProfile(parent) {}; MiqtVirtualQWebEngineProfile(const QString& name, QObject* parent): QWebEngineProfile(name, parent) {}; - virtual ~MiqtVirtualQWebEngineProfile() = default; + virtual ~MiqtVirtualQWebEngineProfile() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__Event = 0; @@ -579,11 +579,7 @@ void QWebEngineProfile_virtualbase_DisconnectNotify(void* self, QMetaMethod* sig ( (MiqtVirtualQWebEngineProfile*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebEngineProfile_Delete(QWebEngineProfile* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineProfile_Delete(QWebEngineProfile* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebengineprofile.go b/qt6/webengine/gen_qwebengineprofile.go index 648652d9..6398987e 100644 --- a/qt6/webengine/gen_qwebengineprofile.go +++ b/qt6/webengine/gen_qwebengineprofile.go @@ -579,7 +579,7 @@ func miqt_exec_callback_QWebEngineProfile_DisconnectNotify(self *C.QWebEnginePro // Delete this object from C++ memory. func (this *QWebEngineProfile) Delete() { - C.QWebEngineProfile_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineProfile_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebengineprofile.h b/qt6/webengine/gen_qwebengineprofile.h index 63e3c730..3d88f9af 100644 --- a/qt6/webengine/gen_qwebengineprofile.h +++ b/qt6/webengine/gen_qwebengineprofile.h @@ -111,7 +111,7 @@ void QWebEngineProfile_override_virtual_ConnectNotify(void* self, intptr_t slot) void QWebEngineProfile_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebEngineProfile_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebEngineProfile_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebEngineProfile_Delete(QWebEngineProfile* self, bool isSubclass); +void QWebEngineProfile_Delete(QWebEngineProfile* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginequotarequest.cpp b/qt6/webengine/gen_qwebenginequotarequest.cpp index e904b888..659b95b7 100644 --- a/qt6/webengine/gen_qwebenginequotarequest.cpp +++ b/qt6/webengine/gen_qwebenginequotarequest.cpp @@ -44,11 +44,7 @@ bool QWebEngineQuotaRequest_OperatorNotEqual(const QWebEngineQuotaRequest* self, return (*self != *that); } -void QWebEngineQuotaRequest_Delete(QWebEngineQuotaRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineQuotaRequest_Delete(QWebEngineQuotaRequest* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginequotarequest.go b/qt6/webengine/gen_qwebenginequotarequest.go index b24fe1ab..200975d4 100644 --- a/qt6/webengine/gen_qwebenginequotarequest.go +++ b/qt6/webengine/gen_qwebenginequotarequest.go @@ -91,7 +91,7 @@ func (this *QWebEngineQuotaRequest) OperatorNotEqual(that *QWebEngineQuotaReques // Delete this object from C++ memory. func (this *QWebEngineQuotaRequest) Delete() { - C.QWebEngineQuotaRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineQuotaRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginequotarequest.h b/qt6/webengine/gen_qwebenginequotarequest.h index 4ad20125..aaac0190 100644 --- a/qt6/webengine/gen_qwebenginequotarequest.h +++ b/qt6/webengine/gen_qwebenginequotarequest.h @@ -30,7 +30,7 @@ QUrl* QWebEngineQuotaRequest_Origin(const QWebEngineQuotaRequest* self); long long QWebEngineQuotaRequest_RequestedSize(const QWebEngineQuotaRequest* self); bool QWebEngineQuotaRequest_OperatorEqual(const QWebEngineQuotaRequest* self, QWebEngineQuotaRequest* that); bool QWebEngineQuotaRequest_OperatorNotEqual(const QWebEngineQuotaRequest* self, QWebEngineQuotaRequest* that); -void QWebEngineQuotaRequest_Delete(QWebEngineQuotaRequest* self, bool isSubclass); +void QWebEngineQuotaRequest_Delete(QWebEngineQuotaRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.cpp b/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.cpp index fcfd9418..617c0743 100644 --- a/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.cpp +++ b/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.cpp @@ -53,11 +53,7 @@ bool QWebEngineRegisterProtocolHandlerRequest_OperatorNotEqual(const QWebEngineR return (*self != *that); } -void QWebEngineRegisterProtocolHandlerRequest_Delete(QWebEngineRegisterProtocolHandlerRequest* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineRegisterProtocolHandlerRequest_Delete(QWebEngineRegisterProtocolHandlerRequest* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.go b/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.go index 6b5bffc6..4d995d5f 100644 --- a/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.go +++ b/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.go @@ -94,7 +94,7 @@ func (this *QWebEngineRegisterProtocolHandlerRequest) OperatorNotEqual(that *QWe // Delete this object from C++ memory. func (this *QWebEngineRegisterProtocolHandlerRequest) Delete() { - C.QWebEngineRegisterProtocolHandlerRequest_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineRegisterProtocolHandlerRequest_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.h b/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.h index b9f4d2b2..6d089b0e 100644 --- a/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.h +++ b/qt6/webengine/gen_qwebengineregisterprotocolhandlerrequest.h @@ -30,7 +30,7 @@ QUrl* QWebEngineRegisterProtocolHandlerRequest_Origin(const QWebEngineRegisterPr struct miqt_string QWebEngineRegisterProtocolHandlerRequest_Scheme(const QWebEngineRegisterProtocolHandlerRequest* self); bool QWebEngineRegisterProtocolHandlerRequest_OperatorEqual(const QWebEngineRegisterProtocolHandlerRequest* self, QWebEngineRegisterProtocolHandlerRequest* that); bool QWebEngineRegisterProtocolHandlerRequest_OperatorNotEqual(const QWebEngineRegisterProtocolHandlerRequest* self, QWebEngineRegisterProtocolHandlerRequest* that); -void QWebEngineRegisterProtocolHandlerRequest_Delete(QWebEngineRegisterProtocolHandlerRequest* self, bool isSubclass); +void QWebEngineRegisterProtocolHandlerRequest_Delete(QWebEngineRegisterProtocolHandlerRequest* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginescript.cpp b/qt6/webengine/gen_qwebenginescript.cpp index 86d83d2a..4298db12 100644 --- a/qt6/webengine/gen_qwebenginescript.cpp +++ b/qt6/webengine/gen_qwebenginescript.cpp @@ -104,11 +104,7 @@ void QWebEngineScript_Swap(QWebEngineScript* self, QWebEngineScript* other) { self->swap(*other); } -void QWebEngineScript_Delete(QWebEngineScript* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineScript_Delete(QWebEngineScript* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginescript.go b/qt6/webengine/gen_qwebenginescript.go index 28039267..9c3efb14 100644 --- a/qt6/webengine/gen_qwebenginescript.go +++ b/qt6/webengine/gen_qwebenginescript.go @@ -161,7 +161,7 @@ func (this *QWebEngineScript) Swap(other *QWebEngineScript) { // Delete this object from C++ memory. func (this *QWebEngineScript) Delete() { - C.QWebEngineScript_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineScript_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginescript.h b/qt6/webengine/gen_qwebenginescript.h index e792b50f..1217ea94 100644 --- a/qt6/webengine/gen_qwebenginescript.h +++ b/qt6/webengine/gen_qwebenginescript.h @@ -40,7 +40,7 @@ void QWebEngineScript_SetRunsOnSubFrames(QWebEngineScript* self, bool on); bool QWebEngineScript_OperatorEqual(const QWebEngineScript* self, QWebEngineScript* other); bool QWebEngineScript_OperatorNotEqual(const QWebEngineScript* self, QWebEngineScript* other); void QWebEngineScript_Swap(QWebEngineScript* self, QWebEngineScript* other); -void QWebEngineScript_Delete(QWebEngineScript* self, bool isSubclass); +void QWebEngineScript_Delete(QWebEngineScript* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginescriptcollection.cpp b/qt6/webengine/gen_qwebenginescriptcollection.cpp index 670ee65e..ee4d32f8 100644 --- a/qt6/webengine/gen_qwebenginescriptcollection.cpp +++ b/qt6/webengine/gen_qwebenginescriptcollection.cpp @@ -76,11 +76,7 @@ struct miqt_array /* of QWebEngineScript* */ QWebEngineScriptCollection_ToList( return _out; } -void QWebEngineScriptCollection_Delete(QWebEngineScriptCollection* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineScriptCollection_Delete(QWebEngineScriptCollection* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginescriptcollection.go b/qt6/webengine/gen_qwebenginescriptcollection.go index 8d03c493..ebfa0d73 100644 --- a/qt6/webengine/gen_qwebenginescriptcollection.go +++ b/qt6/webengine/gen_qwebenginescriptcollection.go @@ -110,7 +110,7 @@ func (this *QWebEngineScriptCollection) ToList() []QWebEngineScript { // Delete this object from C++ memory. func (this *QWebEngineScriptCollection) Delete() { - C.QWebEngineScriptCollection_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineScriptCollection_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginescriptcollection.h b/qt6/webengine/gen_qwebenginescriptcollection.h index 51f8cc7c..447c40bf 100644 --- a/qt6/webengine/gen_qwebenginescriptcollection.h +++ b/qt6/webengine/gen_qwebenginescriptcollection.h @@ -31,7 +31,7 @@ void QWebEngineScriptCollection_InsertWithList(QWebEngineScriptCollection* self, bool QWebEngineScriptCollection_Remove(QWebEngineScriptCollection* self, QWebEngineScript* param1); void QWebEngineScriptCollection_Clear(QWebEngineScriptCollection* self); struct miqt_array /* of QWebEngineScript* */ QWebEngineScriptCollection_ToList(const QWebEngineScriptCollection* self); -void QWebEngineScriptCollection_Delete(QWebEngineScriptCollection* self, bool isSubclass); +void QWebEngineScriptCollection_Delete(QWebEngineScriptCollection* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebenginesettings.cpp b/qt6/webengine/gen_qwebenginesettings.cpp index fa26a668..ade8ef0f 100644 --- a/qt6/webengine/gen_qwebenginesettings.cpp +++ b/qt6/webengine/gen_qwebenginesettings.cpp @@ -86,11 +86,7 @@ void QWebEngineSettings_ResetUnknownUrlSchemePolicy(QWebEngineSettings* self) { self->resetUnknownUrlSchemePolicy(); } -void QWebEngineSettings_Delete(QWebEngineSettings* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineSettings_Delete(QWebEngineSettings* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebenginesettings.go b/qt6/webengine/gen_qwebenginesettings.go index 85e7f3c6..5be3992f 100644 --- a/qt6/webengine/gen_qwebenginesettings.go +++ b/qt6/webengine/gen_qwebenginesettings.go @@ -185,7 +185,7 @@ func (this *QWebEngineSettings) ResetUnknownUrlSchemePolicy() { // Delete this object from C++ memory. func (this *QWebEngineSettings) Delete() { - C.QWebEngineSettings_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineSettings_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebenginesettings.h b/qt6/webengine/gen_qwebenginesettings.h index 8d1c75ac..9c2570df 100644 --- a/qt6/webengine/gen_qwebenginesettings.h +++ b/qt6/webengine/gen_qwebenginesettings.h @@ -34,7 +34,7 @@ struct miqt_string QWebEngineSettings_DefaultTextEncoding(const QWebEngineSettin int QWebEngineSettings_UnknownUrlSchemePolicy(const QWebEngineSettings* self); void QWebEngineSettings_SetUnknownUrlSchemePolicy(QWebEngineSettings* self, int policy); void QWebEngineSettings_ResetUnknownUrlSchemePolicy(QWebEngineSettings* self); -void QWebEngineSettings_Delete(QWebEngineSettings* self, bool isSubclass); +void QWebEngineSettings_Delete(QWebEngineSettings* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebengineurlrequestinterceptor.cpp b/qt6/webengine/gen_qwebengineurlrequestinterceptor.cpp index 68964df3..3785ddbd 100644 --- a/qt6/webengine/gen_qwebengineurlrequestinterceptor.cpp +++ b/qt6/webengine/gen_qwebengineurlrequestinterceptor.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QWebEngineUrlRequestInterceptor_DisconnectNotify(void*, } /* extern C */ #endif -class MiqtVirtualQWebEngineUrlRequestInterceptor : public virtual QWebEngineUrlRequestInterceptor { +class MiqtVirtualQWebEngineUrlRequestInterceptor final : public QWebEngineUrlRequestInterceptor { public: MiqtVirtualQWebEngineUrlRequestInterceptor(): QWebEngineUrlRequestInterceptor() {}; MiqtVirtualQWebEngineUrlRequestInterceptor(QObject* p): QWebEngineUrlRequestInterceptor(p) {}; - virtual ~MiqtVirtualQWebEngineUrlRequestInterceptor() = default; + virtual ~MiqtVirtualQWebEngineUrlRequestInterceptor() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__InterceptRequest = 0; @@ -344,11 +344,7 @@ void QWebEngineUrlRequestInterceptor_virtualbase_DisconnectNotify(void* self, QM ( (MiqtVirtualQWebEngineUrlRequestInterceptor*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebEngineUrlRequestInterceptor_Delete(QWebEngineUrlRequestInterceptor* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineUrlRequestInterceptor_Delete(QWebEngineUrlRequestInterceptor* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebengineurlrequestinterceptor.go b/qt6/webengine/gen_qwebengineurlrequestinterceptor.go index 04166fce..1478ca63 100644 --- a/qt6/webengine/gen_qwebengineurlrequestinterceptor.go +++ b/qt6/webengine/gen_qwebengineurlrequestinterceptor.go @@ -323,7 +323,7 @@ func miqt_exec_callback_QWebEngineUrlRequestInterceptor_DisconnectNotify(self *C // Delete this object from C++ memory. func (this *QWebEngineUrlRequestInterceptor) Delete() { - C.QWebEngineUrlRequestInterceptor_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineUrlRequestInterceptor_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebengineurlrequestinterceptor.h b/qt6/webengine/gen_qwebengineurlrequestinterceptor.h index 49d95454..e4ddecd4 100644 --- a/qt6/webengine/gen_qwebengineurlrequestinterceptor.h +++ b/qt6/webengine/gen_qwebengineurlrequestinterceptor.h @@ -59,7 +59,7 @@ void QWebEngineUrlRequestInterceptor_override_virtual_ConnectNotify(void* self, void QWebEngineUrlRequestInterceptor_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebEngineUrlRequestInterceptor_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebEngineUrlRequestInterceptor_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebEngineUrlRequestInterceptor_Delete(QWebEngineUrlRequestInterceptor* self, bool isSubclass); +void QWebEngineUrlRequestInterceptor_Delete(QWebEngineUrlRequestInterceptor* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebengineurlrequestjob.cpp b/qt6/webengine/gen_qwebengineurlrequestjob.cpp index d86098c4..449a8573 100644 --- a/qt6/webengine/gen_qwebengineurlrequestjob.cpp +++ b/qt6/webengine/gen_qwebengineurlrequestjob.cpp @@ -93,11 +93,7 @@ struct miqt_string QWebEngineUrlRequestJob_Tr3(const char* s, const char* c, int return _ms; } -void QWebEngineUrlRequestJob_Delete(QWebEngineUrlRequestJob* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineUrlRequestJob_Delete(QWebEngineUrlRequestJob* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebengineurlrequestjob.go b/qt6/webengine/gen_qwebengineurlrequestjob.go index 17658d74..3cdebc76 100644 --- a/qt6/webengine/gen_qwebengineurlrequestjob.go +++ b/qt6/webengine/gen_qwebengineurlrequestjob.go @@ -139,7 +139,7 @@ func QWebEngineUrlRequestJob_Tr3(s string, c string, n int) string { // Delete this object from C++ memory. func (this *QWebEngineUrlRequestJob) Delete() { - C.QWebEngineUrlRequestJob_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineUrlRequestJob_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebengineurlrequestjob.h b/qt6/webengine/gen_qwebengineurlrequestjob.h index 09cf09a8..0cd860c1 100644 --- a/qt6/webengine/gen_qwebengineurlrequestjob.h +++ b/qt6/webengine/gen_qwebengineurlrequestjob.h @@ -40,7 +40,7 @@ void QWebEngineUrlRequestJob_Fail(QWebEngineUrlRequestJob* self, int error); void QWebEngineUrlRequestJob_Redirect(QWebEngineUrlRequestJob* self, QUrl* url); struct miqt_string QWebEngineUrlRequestJob_Tr2(const char* s, const char* c); struct miqt_string QWebEngineUrlRequestJob_Tr3(const char* s, const char* c, int n); -void QWebEngineUrlRequestJob_Delete(QWebEngineUrlRequestJob* self, bool isSubclass); +void QWebEngineUrlRequestJob_Delete(QWebEngineUrlRequestJob* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebengineurlscheme.cpp b/qt6/webengine/gen_qwebengineurlscheme.cpp index 0dc85996..a9be6979 100644 --- a/qt6/webengine/gen_qwebengineurlscheme.cpp +++ b/qt6/webengine/gen_qwebengineurlscheme.cpp @@ -85,11 +85,7 @@ QWebEngineUrlScheme* QWebEngineUrlScheme_SchemeByName(struct miqt_string name) { return new QWebEngineUrlScheme(QWebEngineUrlScheme::schemeByName(name_QByteArray)); } -void QWebEngineUrlScheme_Delete(QWebEngineUrlScheme* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineUrlScheme_Delete(QWebEngineUrlScheme* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebengineurlscheme.go b/qt6/webengine/gen_qwebengineurlscheme.go index dd3330c6..7e3e1b38 100644 --- a/qt6/webengine/gen_qwebengineurlscheme.go +++ b/qt6/webengine/gen_qwebengineurlscheme.go @@ -166,7 +166,7 @@ func QWebEngineUrlScheme_SchemeByName(name []byte) *QWebEngineUrlScheme { // Delete this object from C++ memory. func (this *QWebEngineUrlScheme) Delete() { - C.QWebEngineUrlScheme_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineUrlScheme_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebengineurlscheme.h b/qt6/webengine/gen_qwebengineurlscheme.h index e8231eca..eb2a17c2 100644 --- a/qt6/webengine/gen_qwebengineurlscheme.h +++ b/qt6/webengine/gen_qwebengineurlscheme.h @@ -36,7 +36,7 @@ int QWebEngineUrlScheme_Flags(const QWebEngineUrlScheme* self); void QWebEngineUrlScheme_SetFlags(QWebEngineUrlScheme* self, int newValue); void QWebEngineUrlScheme_RegisterScheme(QWebEngineUrlScheme* scheme); QWebEngineUrlScheme* QWebEngineUrlScheme_SchemeByName(struct miqt_string name); -void QWebEngineUrlScheme_Delete(QWebEngineUrlScheme* self, bool isSubclass); +void QWebEngineUrlScheme_Delete(QWebEngineUrlScheme* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebengineurlschemehandler.cpp b/qt6/webengine/gen_qwebengineurlschemehandler.cpp index fe455a37..b9570e58 100644 --- a/qt6/webengine/gen_qwebengineurlschemehandler.cpp +++ b/qt6/webengine/gen_qwebengineurlschemehandler.cpp @@ -28,13 +28,13 @@ void miqt_exec_callback_QWebEngineUrlSchemeHandler_DisconnectNotify(void*, intpt } /* extern C */ #endif -class MiqtVirtualQWebEngineUrlSchemeHandler : public virtual QWebEngineUrlSchemeHandler { +class MiqtVirtualQWebEngineUrlSchemeHandler final : public QWebEngineUrlSchemeHandler { public: MiqtVirtualQWebEngineUrlSchemeHandler(): QWebEngineUrlSchemeHandler() {}; MiqtVirtualQWebEngineUrlSchemeHandler(QObject* parent): QWebEngineUrlSchemeHandler(parent) {}; - virtual ~MiqtVirtualQWebEngineUrlSchemeHandler() = default; + virtual ~MiqtVirtualQWebEngineUrlSchemeHandler() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__RequestStarted = 0; @@ -342,11 +342,7 @@ void QWebEngineUrlSchemeHandler_virtualbase_DisconnectNotify(void* self, QMetaMe ( (MiqtVirtualQWebEngineUrlSchemeHandler*)(self) )->virtualbase_DisconnectNotify(signal); } -void QWebEngineUrlSchemeHandler_Delete(QWebEngineUrlSchemeHandler* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineUrlSchemeHandler_Delete(QWebEngineUrlSchemeHandler* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebengineurlschemehandler.go b/qt6/webengine/gen_qwebengineurlschemehandler.go index 495d9009..a37b99d5 100644 --- a/qt6/webengine/gen_qwebengineurlschemehandler.go +++ b/qt6/webengine/gen_qwebengineurlschemehandler.go @@ -323,7 +323,7 @@ func miqt_exec_callback_QWebEngineUrlSchemeHandler_DisconnectNotify(self *C.QWeb // Delete this object from C++ memory. func (this *QWebEngineUrlSchemeHandler) Delete() { - C.QWebEngineUrlSchemeHandler_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineUrlSchemeHandler_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebengineurlschemehandler.h b/qt6/webengine/gen_qwebengineurlschemehandler.h index 966866fb..5f58ecb7 100644 --- a/qt6/webengine/gen_qwebengineurlschemehandler.h +++ b/qt6/webengine/gen_qwebengineurlschemehandler.h @@ -59,7 +59,7 @@ void QWebEngineUrlSchemeHandler_override_virtual_ConnectNotify(void* self, intpt void QWebEngineUrlSchemeHandler_virtualbase_ConnectNotify(void* self, QMetaMethod* signal); void QWebEngineUrlSchemeHandler_override_virtual_DisconnectNotify(void* self, intptr_t slot); void QWebEngineUrlSchemeHandler_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal); -void QWebEngineUrlSchemeHandler_Delete(QWebEngineUrlSchemeHandler* self, bool isSubclass); +void QWebEngineUrlSchemeHandler_Delete(QWebEngineUrlSchemeHandler* self); #ifdef __cplusplus } /* extern C */ diff --git a/qt6/webengine/gen_qwebengineview.cpp b/qt6/webengine/gen_qwebengineview.cpp index dc394b34..86b26a2a 100644 --- a/qt6/webengine/gen_qwebengineview.cpp +++ b/qt6/webengine/gen_qwebengineview.cpp @@ -110,7 +110,7 @@ bool miqt_exec_callback_QWebEngineView_FocusNextPrevChild(void*, intptr_t, bool) } /* extern C */ #endif -class MiqtVirtualQWebEngineView : public virtual QWebEngineView { +class MiqtVirtualQWebEngineView final : public QWebEngineView { public: MiqtVirtualQWebEngineView(QWidget* parent): QWebEngineView(parent) {}; @@ -120,7 +120,7 @@ public: MiqtVirtualQWebEngineView(QWebEngineProfile* profile, QWidget* parent): QWebEngineView(profile, parent) {}; MiqtVirtualQWebEngineView(QWebEnginePage* page, QWidget* parent): QWebEngineView(page, parent) {}; - virtual ~MiqtVirtualQWebEngineView() = default; + virtual ~MiqtVirtualQWebEngineView() override = default; // cgo.Handle value for overwritten implementation intptr_t handle__SizeHint = 0; @@ -1848,11 +1848,7 @@ bool QWebEngineView_virtualbase_FocusNextPrevChild(void* self, bool next) { return ( (MiqtVirtualQWebEngineView*)(self) )->virtualbase_FocusNextPrevChild(next); } -void QWebEngineView_Delete(QWebEngineView* self, bool isSubclass) { - if (isSubclass) { - delete dynamic_cast( self ); - } else { - delete self; - } +void QWebEngineView_Delete(QWebEngineView* self) { + delete self; } diff --git a/qt6/webengine/gen_qwebengineview.go b/qt6/webengine/gen_qwebengineview.go index e006f20f..42849c75 100644 --- a/qt6/webengine/gen_qwebengineview.go +++ b/qt6/webengine/gen_qwebengineview.go @@ -1700,7 +1700,7 @@ func miqt_exec_callback_QWebEngineView_FocusNextPrevChild(self *C.QWebEngineView // Delete this object from C++ memory. func (this *QWebEngineView) Delete() { - C.QWebEngineView_Delete(this.h, C.bool(this.isSubclass)) + C.QWebEngineView_Delete(this.h) } // GoGC adds a Go Finalizer to this pointer, so that it will be deleted diff --git a/qt6/webengine/gen_qwebengineview.h b/qt6/webengine/gen_qwebengineview.h index d514b9cc..6f2b1f87 100644 --- a/qt6/webengine/gen_qwebengineview.h +++ b/qt6/webengine/gen_qwebengineview.h @@ -269,7 +269,7 @@ void QWebEngineView_override_virtual_InputMethodQuery(void* self, intptr_t slot) QVariant* QWebEngineView_virtualbase_InputMethodQuery(const void* self, int param1); void QWebEngineView_override_virtual_FocusNextPrevChild(void* self, intptr_t slot); bool QWebEngineView_virtualbase_FocusNextPrevChild(void* self, bool next); -void QWebEngineView_Delete(QWebEngineView* self, bool isSubclass); +void QWebEngineView_Delete(QWebEngineView* self); #ifdef __cplusplus } /* extern C */