diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2021-09-06 08:54:42 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2021-09-07 12:09:49 -0700 |
commit | da2fd6a9038b1130a2ae411546216d8874ffa4f7 (patch) | |
tree | bfab01a15abd0a9eee5653f97b4f631d81110897 /tests/auto/corelib/kernel | |
parent | 0108275b0c6a38ac73014c8e135b9be9fe75c8b2 (diff) |
Q_DECLARE_INTERFACE: add missing const to const qobject_cast
[ChangeLog][Potantially Source-Incompatible Changes] The macro
Q_DECLARE_INTERFACE used to cast away the constness of the QObject
parameter. That is now fixed in this release, but may cause failure to
build source code that depended on this incorrect behavior. If fixing
the const correctness in your code is not an option, insert an explicit
const_cast<IFace *> of the object prior to the qobject_cast call.
Change-Id: Ie72b0dd0fbe84d2caae0fffd16a246a36f0c088f
Reviewed-by: Rui Oliveira
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib/kernel')
0 files changed, 0 insertions, 0 deletions