summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-23 11:32:21 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-11-24 05:14:34 +0000
commit12651fc4be9b158fc74af8b4360cc8237dcc4576 (patch)
tree79a38b0765cd373f1153c348dec8fbec43a0fff8 /src/corelib/global/qglobal.cpp
parent1e62e3c638d14809de9a439e497bb389dd761685 (diff)
Return subclass type from overrides of QEvent::clone
C++ allows overrides to return a covariant type, so if calling code has already cast the callee down to the right type, don't require it to cast the returned clone down as well. Change-Id: I802f00a3c78e03047046986d0ed0a479b47573b8 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 146b37cdf376fb2fde85fa27326acfbeb2a024e3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/corelib/global/qglobal.cpp')
0 files changed, 0 insertions, 0 deletions