My KWIN fork where I work on features like per-output virtual desktops
Find a file
Martin Gräßlin 6f2d49e680 ShmPool returns QWeakPointer<Buffer> instead of Buffer*
The Buffers are exclusively hold by ShmPool. The user of a Buffer is not
supposed to delete it as a no longer used Buffer should be reused by the
ShmPool.

To make it obvious that the ownership of the pointer is not passed to the
user the return type is changed to QWeakPointer. This also allows the
ShmPool to destroy Buffers as needed.
2014-09-22 09:54:10 +02:00
src/wayland ShmPool returns QWeakPointer<Buffer> instead of Buffer* 2014-09-22 09:54:10 +02:00