Port from QScopedPointer to std::unique_ptr


The swap() in QSerialPortPrivate/Unix is actually deprecated. But
instead of fixing yet one more QScopedPointer, I've fixed them all.

Also simplified the udev deleters by using a statically-polymophic
deleter.

QScopedPointer::swap() is deperecated since 6.1, so

Pick-to: 6.3 6.2
Change-Id: I5ceeeb8e13bc080afa5dc46a1421038a1169f30e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
commit28143c4137ec0560a43dcc0b2cf80334651faa43
parent513bb0375dd1bd088f36e84ee66c51298f0ba032
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeWed, 4 May 2022 10:55:58 +0200