on xenial help sign in
Fix compiler-errors.
commit22869755dcd592a3280a6e1dd27993b6bb2c4a1a authorMirco Müller <mirco.mueller@ubuntu.com> dateThu 15 Jan 2015, 17:13 (12 years ago) parent5105786
1 file changed+2−2
tests/mocks/Unity/Notifications/MockNotificationModel.cpp+2−2
tests/mocks/Unity/Notifications/MockNotificationModel.cpp+2−2
@@ -76,7 +76,7 @@ QVariant MockNotificationModel::data(const QModelIndex &index, int role) const {
7676 return QVariant(m_queue[index.row()]->getHints());
7777
7878 case ModelInterface::RoleNotification:
79− return QVariant(m_queue[index.row()]);
79+ return QVariant::fromValue(m_queue[index.row()]);
8080
8181 default:
8282 return QVariant();
@@ -87,7 +87,7 @@ void MockNotificationModel::append(MockNotification* n) {
8787 int location = m_queue.size();
8888 QModelIndex insertionPoint = QModelIndex();
8989 beginInsertRows(insertionPoint, location, location);
90− m_queue.insert(location, QSharedPointer<MockNotification>(n));
90+ m_queue.insert(location, n);
9191 endInsertRows();
9292 qDebug() << "queue-size:" << m_queue.size();
9393}