QSvgRefCounted hierarchy: de-inline dtors


Destructors of polymorphic classes should be defined out-of-line, even
if empty, to avoid -Wweak-vtable and all the bad side effects that
weak vtables entail.

For the few dtors that were already out-of-line, add the override
keyword, if missing, and standardize on =default instead of {}.

Amends many, but essentially the start of the public history.

When picking back, will just drop changes to classes that had not been
added in that branch. This is a best-effort change for older branches.

Task-number: QTBUG-45582
Pick-to: 6.11 6.8
Change-Id: I1ea2da3d9cdef77291b7f376dc08eeec3005487f
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
commit91d6efc6e95895f0e69ae3743c7083e25eee1491
parent66fb951acbd0257bb580a4992a9479c2b0a5c9cc
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeThu, 30 Apr 2026 09:05:47 +0000