mirror of
https://github.com/mappu/miqt.git
synced 2025-01-20 21:50:38 +00:00
929e4e630a
The subclassing structure in `miqt` is such that nothing ever inherits from `MiqtVirtual` - also, for `MiqtVirtual` to work correctly when Qt deletes an instance part of a tree of widgets, the technique can only be used with types that already have a virtual destructor. Therefore: * make `MiqtVirtual` final to ensure nothing inherits from it by accident * remove `virtual` inheritance of its base class - since there is no MI invonved and no further inheritance, there can also not be any diamond inheritance structures - removing `virtual` makes inheritance a bit cheaper * remove `isSubclass` from `delete` function - C++ already calls the most inherited destructor * mark destructor `override` to verify said assumption