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>