summaryrefslogtreecommitdiffstats
path: root/mkspecs/features
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2022-05-20 18:36:48 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2022-05-21 11:43:59 +0200
commitc613dd4765637a00837dd66abc2b940632022a60 (patch)
treec7abdbd920f7ccb157e440fc36eceb14021380e1 /mkspecs/features
parent3d9e56aa6cc20a5a0822877e86a43e9a0affb503 (diff)
QMetaType: disable conversion from smart pointer<const QObject>
QMetaType can register a converter from a smart pointer class to QObject *. The code tries to do so even if the smart pointer is actually holding a pointer to a _const_ QObject (e.g. shared_ptr<const QObject>), causing a compile error: ../src/qt5/qtbase/build/include/QtCore/../../../src/corelib/kernel/qmetatype.h:1208:32: error: invalid conversion from ‘const QObject*’ to ‘QObject*’ [-fpermissive] 1208 | return p.operator->(); | ~~~~~~~~~~~~^~ | | | const QObject* Disable the conversion if indeed the source is const qualified. Change-Id: I9e9bc5992f74131e5cfd6ece9b83d4f26d370e92 Fixes: QTBUG-103741 Pick-to: 6.2 6.3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'mkspecs/features')
0 files changed, 0 insertions, 0 deletions