mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-20 22:06:25 +08:00
Using static_cast<className*>(obj) when the object is not actually of the given type is UB, so avoid it even if should be harmless in practice, by simply omitting it: we only need "obj" to be a wxObject here. Note that this means that using wxCheckCast() or wxStaticCast() with a type not deriving from wxObject is always UB, but there is not much that we can do about it, so just document this explicitly.