summaryrefslogtreecommitdiffstats
path: root/src/libraries/qmfclient/support/qcopchannel.cpp
diff options
context:
space:
mode:
authorPekka Vuorela <pekka.vuorela@jolla.com>2018-08-15 14:19:02 +0300
committerPekka Vuorela <pvuorela@iki.fi>2018-08-30 11:15:12 +0000
commit764f6e92a7d0837db67efa5374473224c0d178f8 (patch)
treec24b7079f69e0fea561dc070b028f8bd0b0d6cb2 /src/libraries/qmfclient/support/qcopchannel.cpp
parent0d05972b955178184e520c8d86659cbbc4552606 (diff)
Fix hundreds of compiler warnings on ascii strings
Like earlier fixes, mostly adding QLatin1String everywhere. Occasionally QStringLiteral, QByteArray or QString/QChar::fromLatin1 or something similar. Still warnings left, but rest might need more work than latin1 wrapping. Change-Id: I0fb2fc74e56e497342a78d9497370db6a7f2b169 Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com> Reviewed-by: Joona Petrell <joona.petrell@jollamobile.com>
Diffstat (limited to 'src/libraries/qmfclient/support/qcopchannel.cpp')
-rw-r--r--src/libraries/qmfclient/support/qcopchannel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libraries/qmfclient/support/qcopchannel.cpp b/src/libraries/qmfclient/support/qcopchannel.cpp
index b50a6e81..2e1d67af 100644
--- a/src/libraries/qmfclient/support/qcopchannel.cpp
+++ b/src/libraries/qmfclient/support/qcopchannel.cpp
@@ -52,7 +52,7 @@
QCopServerRegexp::QCopServerRegexp(const QString& ch, QCopClient *cl)
: channel(ch), client(cl)
{
- if (ch.endsWith(QChar('*')) && ch.count(QChar('*')) == 1) {
+ if (ch.endsWith(QChar::fromLatin1('*')) && ch.count(QChar::fromLatin1('*')) == 1) {
prefixMatch = ch.length() - 1;
} else {
prefixMatch = 0;
@@ -86,7 +86,7 @@ QCopServerRegexpList::~QCopServerRegexpList()
// Determine if a channel name contains wildcard characters.
static inline bool containsWildcards(const QString& channel)
{
- return channel.contains(QChar('*'));
+ return channel.contains(QChar::fromLatin1('*'));
}
#ifndef QT_NO_THREAD
@@ -1096,7 +1096,7 @@ void QCopClient::disconnectFromServer()
QString QCopThreadData::socketPath()
{
//return (Qtopia::inline tempDir() + "qcop-server").toUtf8();
- return "qcop-server-0";
+ return QString::fromLatin1("qcop-server-0");
}
#else