aboutsummaryrefslogtreecommitdiffstats
path: root/src/libexec
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2019-02-19 22:16:04 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2019-02-25 15:58:40 +0000
commit0876dc4d6abb147ccdcc190adfad01c704a73e61 (patch)
treee8a1d558827e2a9e4092600cbe1a2029895d9f99 /src/libexec
parente160b26d8c7476c63f6220ac69d1d6405e8ce3aa (diff)
Use QStringLiteral more where it is possible
Change-Id: I7419cc3fbc1e8776de3943852dcedab4c95d1c32 Reviewed-by: Anton Kudryavtsev <antkudr@mail.ru> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/libexec')
-rw-r--r--src/libexec/qbs_processlauncher/launchersockethandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexec/qbs_processlauncher/launchersockethandler.cpp b/src/libexec/qbs_processlauncher/launchersockethandler.cpp
index 9fb7d4655..54951a586 100644
--- a/src/libexec/qbs_processlauncher/launchersockethandler.cpp
+++ b/src/libexec/qbs_processlauncher/launchersockethandler.cpp
@@ -133,7 +133,7 @@ void LauncherSocketHandler::handleSocketData()
if (!m_packetParser.parse())
return;
} catch (const PacketParser::InvalidPacketSizeException &e) {
- logWarn(QString::fromLatin1("Internal protocol error: invalid packet size %1.")
+ logWarn(QStringLiteral("Internal protocol error: invalid packet size %1.")
.arg(e.size));
return;
}
@@ -148,7 +148,7 @@ void LauncherSocketHandler::handleSocketData()
handleShutdownPacket();
return;
default:
- logWarn(QString::fromLatin1("Internal protocol error: invalid packet type %1.")
+ logWarn(QStringLiteral("Internal protocol error: invalid packet type %1.")
.arg(static_cast<int>(m_packetParser.type())));
return;
}
@@ -158,7 +158,7 @@ void LauncherSocketHandler::handleSocketData()
void LauncherSocketHandler::handleSocketError()
{
if (m_socket->error() != QLocalSocket::PeerClosedError) {
- logError(QString::fromLatin1("socket error: %1").arg(m_socket->errorString()));
+ logError(QStringLiteral("socket error: %1").arg(m_socket->errorString()));
m_socket->disconnect();
qApp->quit();
}