aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/doc/how-tos/how-to-cpp-enum-js/backend.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2023-05-23 11:36:32 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2023-05-23 17:22:14 +0200
commitf2823f0a04b3c26daed51195af9a388810e30c02 (patch)
tree25e10885e0c628897c2dd4f0663ba28152226e7b /tests/auto/quick/doc/how-tos/how-to-cpp-enum-js/backend.cpp
parenta466002701e24b37d97b79b73db8c6b3689fdfff (diff)
Fixup: Avoid QQmlJSScope dependency cycle
The scope of a JavaScriptIdentifier references an existing type; if that existing type "owns" the JavaScriptIdentifier, we end up with a reference cycle. Given that we always reference an existing type (or none at all if type resoluton would fail), we can use a WeakConstPtr instead. This can be verified by running the tests under ASAN. Amends a7ae588cb27feb086e7574082d3ded7abc944d6b Change-Id: I5420bb6ff1bc0be88282ce4b0ee2e1642570818c Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tests/auto/quick/doc/how-tos/how-to-cpp-enum-js/backend.cpp')
0 files changed, 0 insertions, 0 deletions