diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2018-03-15 18:07:48 +0100 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2018-04-14 17:02:53 +0000 |
commit | cba414a26b58b867d0c46ac214606e29e4bbdd94 (patch) | |
tree | 935c384a68a43cef62a2a54300f46673d7c384cc /src/plugins/platforms/xcb/qxcbwindow.cpp | |
parent | 0dd3e02aacf7db51a1ab75170f9ceb759f334fec (diff) |
xcb: cleanup the code for detecting when to create/destroy SHM segment
- removed the check for "m_segmentSize > 0" as according to the code it
will never be <= 0.
- wrap the entire logic in connection()->hasShm() { .. } as that is when
the logic becomes relevant. This makes the code more readable.
Change-Id: I572420df8e29cc46593f8a13c250f8c05c6a9108
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbwindow.cpp')
0 files changed, 0 insertions, 0 deletions