summaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/collidingmice/mouse.cpp
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2017-02-22 02:18:27 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2017-02-23 13:05:36 +0000
commit89870a35bde2f67f9c371ba145e90b86d3e2dd1b (patch)
treebd20b0cc37fad488153cd32a018bcbd679eaa82f /examples/widgets/graphicsview/collidingmice/mouse.cpp
parent2a3297c7269c9a3a9e6b4129c76366bac5c9d7cb (diff)
xcb: Wrap xcb callings in macros
... to improve readability and reliability. This change introduces macros Q_XCB_REPLY and Q_XCB_REPLY_UNCHECKED that allow to replace couples of xcb cookie/reply callings by a single "calling" of a macro. The macros wrap the reply in std::unique_ptr thus preventing the need to free it manually. The following C++11 features are used: - variadic macros - std::unique_ptr - auto type deduction Change-Id: Icf9b93353404a39bf5f4a4562b9234db18cac696 Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'examples/widgets/graphicsview/collidingmice/mouse.cpp')
0 files changed, 0 insertions, 0 deletions