1. 23 May, 2022 18 commits
  2. 22 May, 2022 2 commits
  3. 21 May, 2022 1 commit
    • Giuseppe D'Angelo's avatar
      QMetaType: disable conversion from smart pointer<const QObject> · c613dd47
      Giuseppe D'Angelo authored
      
      
      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: default avatarThiago Macieira <thiago.macieira@intel.com>
      Reviewed-by: default avatarQt CI Bot <qt_ci_bot@qt-project.org>
      c613dd47
  4. 20 May, 2022 19 commits