Commit afeb6dc5 authored by David Jarvie's avatar David Jarvie

Declare as a movable type

parent b2454549
......@@ -50,6 +50,9 @@ struct EventId : public QPair<Akonadi::Collection::Id, QString>
QString eventId() const { return second; }
};
// Declare as a movable type (note that QString is movable).
Q_DECLARE_TYPEINFO(EventId, Q_MOVABLE_TYPE);
inline QDebug operator<<(QDebug s, const EventId& id)
{
s.nospace() << "\"" << id.collectionId() << "::" << id.eventId().toLatin1().constData() << "\"";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment