QWaylandShmBuffer: use make_unique / unique_ptr


This keeps the QFile/QTemporaryFile objects inside a RAII wrapper at
any time, which is safer.

Since QScopedPointer doesn't have a similar function (and because of
upcoming QT_NO_SCOPED_POINTER), also port to std::unique_ptr.

Amends 1e6063f6fc9fa02bd2f12ad9e60cbc2529fc0377.

Pick-to: 6.9 6.8
Change-Id: If67a3a3bdb4fa2a06ecafd1c3dcb90e1121159b0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
commitea4c3652c5b4f42f1d441a3c5cdc9aed4bde48d5
parent1306c1a47deac24e8ed2b51b2803588558c68277
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeSun, 29 Dec 2024 22:13:16 +0100