Q_DISABLE_COPY breaks compilation

David Faure faure at kde.org
Wed Jun 3 09:00:11 BST 2020


Hi Dan

I see you added lots of Q_DISABLE_COPY in akonadi.

But this breaks akonadi-mime

/d/kde/src/5/kde/pim/akonadi-mime/src/messagefolderattribute.cpp: In copy constructor ‘Akonadi::MessageFolderAttribute::MessageFolderAttribute(const Akonadi::MessageFolderAttribute&)’:
/d/kde/src/5/kde/pim/akonadi-mime/src/messagefolderattribute.cpp:42:32: error: use of deleted function ‘Akonadi::Attribute::Attribute(const Akonadi::Attribute&)’
   42 |     , d(new Private(*(other.d)))

and akonadi-search

/d/kde/inst/kde_frameworks/include/KF5/AkonadiCore/itempayloadinternals_p.h:333:66: error: use of deleted function ‘Akonadi::PayloadException::PayloadException(const Akonadi::PayloadException&)’
/d/kde/inst/kde_frameworks/include/KF5/AkonadiCore/itempayloadinternals_p.h:333:66: error:   in thrown expression

and akonadi-calendar (also because of PayloadException).

Can you take a look?

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5





More information about the kde-pim mailing list