qt5base-lts/examples/network/secureudpserver
Marc Mutz c6a3507de2 SecureUDPServer example: use std::unique_ptr instead of QSharedPointer
The only reason the code used QSharedPointer is that it used QVector
to hold a collection of them, and QVector infamously cannot hold
move-only types such as std::unique_ptr.

Fix by using std::vector<std::unique_ptr> instead. Also, pass the
objeccts into non-sink functions by raw pointer instead of shared_ptr.

As a drive-by, replace clear-following-iterate by the for-exchanged
pattern.

Change-Id: I605fbb98af840c1b93eab9e65c07defd6e7b39e1
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2019-05-15 14:40:23 +02:00
..
main.cpp Add a secure UDP server example 2018-06-21 17:01:03 +00:00
mainwindow.cpp Document DTLS examples 2018-08-09 03:52:13 +00:00
mainwindow.h Document DTLS examples 2018-08-09 03:52:13 +00:00
mainwindow.ui Add a secure UDP server example 2018-06-21 17:01:03 +00:00
nicselector.cpp Add a secure UDP server example 2018-06-21 17:01:03 +00:00
nicselector.h Add a secure UDP server example 2018-06-21 17:01:03 +00:00
nicselector.ui Add a secure UDP server example 2018-06-21 17:01:03 +00:00
secureudpserver.pro Add a secure UDP server example 2018-06-21 17:01:03 +00:00
server.cpp SecureUDPServer example: use std::unique_ptr instead of QSharedPointer 2019-05-15 14:40:23 +02:00
server.h SecureUDPServer example: use std::unique_ptr instead of QSharedPointer 2019-05-15 14:40:23 +02:00