on xenial help sign in
Fix compiler-errors.
2286975Mirco Müller
tests/mocks/Unity/Notifications/MockNotificationModel.cpp+2−2
@@ -76,7 +76,7 @@ QVariant MockNotificationModel::data(const QModelIndex &index, int role) const {
76 return QVariant(m_queue[index.row()]->getHints());
76 return QVariant(m_queue[index.row()]->getHints());
77
77
78 case ModelInterface::RoleNotification:
78 case ModelInterface::RoleNotification:
79− return QVariant(m_queue[index.row()]);
79+ return QVariant::fromValue(m_queue[index.row()]);
80
80
81 default:
81 default:
82 return QVariant();
82 return QVariant();
@@ -87,7 +87,7 @@ void MockNotificationModel::append(MockNotification* n) {
87 int location = m_queue.size();
87 int location = m_queue.size();
88 QModelIndex insertionPoint = QModelIndex();
88 QModelIndex insertionPoint = QModelIndex();
89 beginInsertRows(insertionPoint, location, location);
89 beginInsertRows(insertionPoint, location, location);
90− m_queue.insert(location, QSharedPointer<MockNotification>(n));
90+ m_queue.insert(location, n);
91 endInsertRows();
91 endInsertRows();
92 qDebug() << "queue-size:" << m_queue.size();
92 qDebug() << "queue-size:" << m_queue.size();
93}
93}