on xenial help sign in
use QStringLiteral for string literals
commitb6f652bed54a88bda02b011f527d04bc7b135286 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 14 Mar 2017, 11:50 (10 years ago) parent022c107
1 file changed+3−3
plugins/Unity/Launcher/launchermodel.cpp+3−3
plugins/Unity/Launcher/launchermodel.cpp+3−3
@@ -198,13 +198,13 @@ void LauncherModel::quickListActionInvoked(const QString &appId, int actionIndex
198198 } else {
199199 pin(appId);
200200 }
201− } else if (actionId == QLatin1String("launch_item")) {
201+ } else if (actionId == QStringLiteral("launch_item")) {
202202 QDesktopServices::openUrl(getUrlForAppId(appId));
203− } else if (actionId == QLatin1String("stop_item")) { // Quit
203+ } else if (actionId == QStringLiteral("stop_item")) { // Quit
204204 if (m_appManager) {
205205 m_appManager->stopApplication(appId);
206206 }
207− } else if (actionId.startsWith("surface_")){
207+ } else if (actionId.startsWith(QStringLiteral("surface_"))){
208208 ApplicationInfoInterface *appInfo = m_appManager->findApplication(appId);
209209 if (!appInfo) {
210210 qWarning() << "App for" << appId << "not found in launcher. Cannot invoke quicklist action";