diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2023-09-22 00:44:13 +0300 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-09-23 23:52:28 +0300 |
| commit | 3bac47336483d720c1d7376ea053c03a4e80173c (patch) | |
| tree | 25ba2d9abbcb253bd12ac1dccdb72d6aeec47e68 /src/corelib/kernel/qpointer.cpp | |
| parent | b74f180ac065741783dc4e7f793bb97e35aed7f7 (diff) | |
QItemSelectionModel: remove some redundant code
QObject::disconnect(connection) already sets connection.d_ptr to
nullptr, and the default constructor only does that:
QMetaObject::Connection::Connection() : d_ptr(nullptr) {}
So calling disconnect() suffices in this case.
Pick-to: 6.6 6.5 6.2
Change-Id: Icd5f9a15c83939eeecd9efb474ac3b38c0f2dfe4
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/corelib/kernel/qpointer.cpp')
0 files changed, 0 insertions, 0 deletions
