From ba8e6bde21247a4f83a0ca26fc1c4725d45314fa Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Fri, 3 Jul 2015 12:01:57 +0200 Subject: [PATCH] fix strings --- src/plugins/backends/snoretoast/snoretoast.cpp | 2 +- src/plugins/frontends/snarlnetwork/snarlnetwork.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/backends/snoretoast/snoretoast.cpp b/src/plugins/backends/snoretoast/snoretoast.cpp index 86b657c..2f5a5a3 100644 --- a/src/plugins/backends/snoretoast/snoretoast.cpp +++ b/src/plugins/backends/snoretoast/snoretoast.cpp @@ -145,7 +145,7 @@ QString SnoreToast::appId(const Application &application) appID = application.constHints().value("windows_app_id").toString(); } 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; } diff --git a/src/plugins/frontends/snarlnetwork/snarlnetwork.cpp b/src/plugins/frontends/snarlnetwork/snarlnetwork.cpp index 9cc1e92..2422af4 100644 --- a/src/plugins/frontends/snarlnetwork/snarlnetwork.cpp +++ b/src/plugins/frontends/snarlnetwork/snarlnetwork.cpp @@ -108,7 +108,7 @@ void SnarlNetworkFrontend::handleMessages() if (noti.isValid()) { noti.addActiveIn(this); 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 { write(client, out + QLatin1String("\r\n")); }