diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2017-12-05 15:24:57 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2017-12-06 18:30:49 +0000 |
| commit | 28fbd13e22935483d9ebcf2f088681f3d649cf2a (patch) | |
| tree | 7e78f85e99f55b67cc39781b5d2591b5ad7dfded /src/concurrent/doc/snippets/code | |
| parent | 6fed5cf4e28927bae88c1f18cad8a3ee0eedbc5b (diff) | |
xcb: use a more efficient unique_ptr instantiation
Wrap std::free() in a function object, to avoid having to carry around
state (the function pointer) inside unique_ptr objects. This shrinks
unique_ptrs back to sizeof(void*).
Change-Id: I32a711192c5485dc04e3b36a1ddabf02d1e9d4f9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src/concurrent/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions
