Files
wxWidgets/interface
Vadim Zeitlin 5d10c50361 Remove cast resulting in undefined behaviour from wxDynamicCast()
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.
2024-10-21 21:23:07 +02:00
..