summaryrefslogtreecommitdiff
path: root/examples/compiled-qml
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2023-05-05 23:05:10 +0300
committerIvan Komissarov <ABBAPOH@gmail.com>2023-05-10 09:40:29 +0000
commit99c1fa4037c106d2f5268826ee392e00208bc24e (patch)
tree3775fdfd3417a72ed0ad87274ecff48ee736bbe2 /examples/compiled-qml
parentd849e77fd2bc748f04cc3f15faafb8f1c8328670 (diff)
downloadqbs-99c1fa4037c106d2f5268826ee392e00208bc24e.tar.gz
Implement Pimpl class using std::unique_ptr
... and propagate_const from KDAB tools. The propagate_const class fixes the issue that d-pointer in const-methods is not const. Such Pimpl class has several advantages over the raw pointer. - the d-tor is trivial and removes the burden for the author/reviewer to remember to check if pointer is deleted correctly. - constness is now propageted correctly to the d-pointer in const methods. - makes the intention clear that we're using the PIMPL idiom Change-Id: Ibc42cdaeb6d3303fea81ac6edd63bea0da2ac08d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'examples/compiled-qml')
0 files changed, 0 insertions, 0 deletions