diff options
author | Fawzi Mohamed <fawzi.mohamed@qt.io> | 2020-09-11 15:08:26 +0200 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@qt.io> | 2020-10-08 18:13:34 +0200 |
commit | f69144471bd2e6a6b92f57e7727f28af9386d846 (patch) | |
tree | 81fd3633ceced7b25fc3c70f317924e631136d84 /src/gui/platform | |
parent | 6c7ed4c013393ce414f02fe4c9a88ebebeb3e47d (diff) |
Allow getting a const pointer out of a variant containing pointer
Currently
A a;
QVariant::fromValue(&a).value<const A*>() == nullptr;
Still casting non const to const is safe, and worked in Qt5.
After this change
A a;
QVariant::fromValue(&a).value<const A*>() == &a;
Change-Id: I257049d084c712b00a338a2943d379aa478e0981
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/gui/platform')
0 files changed, 0 insertions, 0 deletions