fix strings

This commit is contained in:
Patrick von Reth 2015-07-03 12:01:57 +02:00
parent 95cc073b5e
commit ba8e6bde21
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ QString SnoreToast::appId(const Application &application)
appID = application.constHints().value("windows_app_id").toString(); appID = application.constHints().value("windows_app_id").toString();
} }
if (appID.isEmpty()) { if (appID.isEmpty()) {
appID = (qApp->organizationName() + QLatin1Char(".") + qApp->applicationName() + QLatin1String(".SnoreToast")).remove(QLatin1Char(' ')); appID = QString(qApp->organizationName() + QLatin1Char('.') + qApp->applicationName() + QLatin1String(".SnoreToast")).remove(QLatin1Char(' '));
} }
return appID; return appID;
} }

View File

@ -108,7 +108,7 @@ void SnarlNetworkFrontend::handleMessages()
if (noti.isValid()) { if (noti.isValid()) {
noti.addActiveIn(this); noti.addActiveIn(this);
SnoreCore::instance().broadcastNotification(noti); SnoreCore::instance().broadcastNotification(noti);
write(client, out + QLatin1Char("/") + QString::number(noti.id()) + QLatin1String("\r\n")); write(client, out + QLatin1Char('/') + QString::number(noti.id()) + QLatin1String("\r\n"));
} else { } else {
write(client, out + QLatin1String("\r\n")); write(client, out + QLatin1String("\r\n"));
} }