Commit 6846731f authored by David Edmundson's avatar David Edmundson
Browse files

QLatin1String-ify

Test Plan: Compiles

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D8609
parent 065a0fcf
...@@ -53,15 +53,15 @@ using namespace KAStats::Terms; ...@@ -53,15 +53,15 @@ using namespace KAStats::Terms;
QString agentForUrl(const QString &url) QString agentForUrl(const QString &url)
{ {
return url.startsWith("ktp:") return url.startsWith(QLatin1String("ktp:"))
? AGENT_CONTACTS ? AGENT_CONTACTS
: url.startsWith("preferred:") : url.startsWith(QLatin1String("preferred:"))
? AGENT_APPLICATIONS ? AGENT_APPLICATIONS
: url.startsWith("applications:") : url.startsWith(QLatin1String("applications:"))
? AGENT_APPLICATIONS ? AGENT_APPLICATIONS
: (url.startsWith("/") && !url.endsWith(".desktop")) : (url.startsWith(QLatin1Char('/')) && !url.endsWith(QLatin1String(".desktop")))
? AGENT_DOCUMENTS ? AGENT_DOCUMENTS
: (url.startsWith("file:/") && !url.endsWith(".desktop")) : (url.startsWith(QLatin1String("file:/")) && !url.endsWith(QLatin1String(".desktop")))
? AGENT_DOCUMENTS ? AGENT_DOCUMENTS
// use applications as the default // use applications as the default
: AGENT_APPLICATIONS; : AGENT_APPLICATIONS;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment