Commit b9a4cac0 authored by Jan Kundrát's avatar Jan Kundrát Committed by Kai Koehne

Fix building with -DQT_NO_CAST_TO_ASCII

Change-Id: Ie919eff17c3122a70f4a8f3349b399e0a62017aa
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 05b6c466
......@@ -20,7 +20,7 @@ int main()
qDebug() << ipPorts.usedPorts().toString();
qDebug() << "Getting a few ports ...";
PortList portList = PortList::fromString("10000-10100");
PortList portList = PortList::fromString(QLatin1String("10000-10100"));
QStringList ports;
for (int i = 0; i < 10; ++i) {
quint16 port = ipPorts.getNextFreePort(&portList);
......@@ -31,6 +31,6 @@ int main()
Q_ASSERT(!ports.contains(portStr));
ports.append(QString::number(port));
}
qDebug() << ports.join(", ");
qDebug() << ports.join(QLatin1String(", "));
return 0;
}
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