QWaylandShmBuffer: don't ignore the result of Q(Temporary)File::open()


The code checked isOpen() afterwards, so everything was ok, but the
compiler still complained with QFile::open()-turned-nodiscard-in-6.10.

Use a boolean to store the result of open() and use it in lieu of
isOpen().

Amends 1e6063f6fc9fa02bd2f12ad9e60cbc2529fc0377.

Pick-to: 6.9 6.8
Change-Id: Ia7db2505e939e4f4614cfc8319e779812dd17353
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
commit1306c1a47deac24e8ed2b51b2803588558c68277
parent9b8e0a25aaefa5048311fd5fa0adb11e444eca22
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeSun, 29 Dec 2024 22:12:27 +0100