Skip to content
  • Ahmad Samir's avatar
    Q_DECLARE_METATYPE isn't needed for Qt6 QExplicitlySharedDataPointer · 260abc1e
    Ahmad Samir authored and Tomaz  Canabrava's avatar Tomaz Canabrava committed
    src/profile/Profile.h:815:1: error: specialization of ‘QMetaTypeId<QExplicitlySharedDataPointer<Konsole::Profile> >’ after instantiation
      815 | Q_DECLARE_METATYPE(Konsole::Profile::Ptr)
          | ^~~~~~~~~~~~~~~~~~
    src/profile/Profile.h:815:1: error: redefinition of ‘struct QMetaTypeId<QExplicitlySharedDataPointer<Konsole::Profile> >’
    /usr/include/qt6/QtCore/qmetatype.h:1124:8: note: previous definition of ‘struct QMetaTypeId<QExplicitlySharedDataPointer<Konsole::Profile> >’
     1124 | struct QMetaTypeId : public QMetaTypeIdQObject<T>
    260abc1e