on xenial help sign in
shorten creation of QPair
commit7898ab7c77db0e22bcdbcc1e06cb5ddd78146b25 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 14 Mar 2017, 11:51 (10 years ago) parentb6f652b
1 file changed+1−1
plugins/Unity/Launcher/launchermodel.cpp+1−1
plugins/Unity/Launcher/launchermodel.cpp+1−1
@@ -558,7 +558,7 @@ void LauncherModel::applicationSurfaceCountChanged(int count)
558558 QList<QPair<QString, QString> > surfaces;
559559 for (int i = 0; i < app->surfaceList()->count(); ++i) {
560560 MirSurfaceInterface* iface = app->surfaceList()->get(i);
561− surfaces.append(qMakePair<QString, QString>(iface->persistentId(), iface->name()));
561+ surfaces.append({iface->persistentId(), iface->name()});
562562 }
563563 item->setSurfaces(surfaces);
564564 Q_EMIT dataChanged(index(idx), index(idx), {RoleSurfaceCount});