Advertisement
Mister_Magister

problem

May 28th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. void addBuddy(const Buddy &buddy);
  2.  
  3. void BuddyModel::addBuddy(const Buddy &buddy)
  4. {
  5. beginInsertRows(QModelIndex(), rowCount(), rowCount());
  6. m_buddies << buddy;
  7. endInsertRows();
  8. }
  9.  
  10. /usr/include/qt5/QtCore/qlist.h:458: error: use of deleted function ‘Buddy::Buddy(const Buddy&)’
  11. current->v = new T(*reinterpret_cast<T*>(src->v));
  12. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13.  
  14. /home/foidbgen/Qt Workspace/FishbookMesseenger/buddy.h:8: error: use of deleted function ‘QObject& QObject::operator=(const QObject&)’
  15. class Buddy : public QObject
  16. ^~~~~
  17.  
  18. /home/foidbgen/Qt Workspace/FishbookMesseenger/buddy.h:8: error: ‘QObject& QObject::operator=(const QObject&)’ is private within this context
  19.  
  20. /home/foidbgen/Qt Workspace/FishbookMesseenger/buddy.h:8: error: use of deleted function ‘QObject::QObject(const QObject&)’
  21. class Buddy : public QObject
  22. ^~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement