path: root/tests/auto
diff options
authorMarc Mutz <>2015-06-01 00:22:35 +0200
committerMarc Mutz <>2017-02-05 18:29:47 +0000
commit5923fb966d3d869b23f74bc43560b08921f4321b (patch)
treee616fc60917b0017cb732b1a84420950ef2daea2 /tests/auto
parent239418a947dc5230ce295b04edc5ee5b59009c7b (diff)
QDateTimeParser: de-duplicate vtable
QDateTimeEdit (QtWidgets) inherits its Private class from QDateTimeParser. By making the destructor (usually the first non-inline, non-pure, virtual function, and therefore the trigger for most compilers to emit the vtable and type_info structures for the class in that TU) out-of-line, vtables and, more importantly, type_info structures for the class are pinned to a single TU. This prevents false negative dynamic_cast and catch evaluation. Since the class is already exported, users of these classes are unaffected by the change, and since it's private API, we don't need to avoid adding code to the out-of-line destructor until Qt 6. Task-number: QTBUG-45582 Change-Id: Id57289a7eff13564dddeca0af1c45a6180c36c48 Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions