Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QPA plugins]
This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: I4aef078ea87ecd3699de107d1e9352d9fb6d6e39 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>bb10
parent
3ea4e7b90d
commit
8c3a6570af
|
|
@ -52,9 +52,9 @@ QT_BEGIN_NAMESPACE
|
|||
QKmsDevice::QKmsDevice(const QString &path, QKmsIntegration *parent) :
|
||||
QObject(0), m_integration(parent)
|
||||
{
|
||||
m_fd = QT_OPEN(path.toAscii().constData(), O_RDWR);
|
||||
m_fd = QT_OPEN(path.toLatin1().constData(), O_RDWR);
|
||||
if (m_fd < 0) {
|
||||
qWarning("Could not open %s.", path.toAscii().constData());
|
||||
qWarning("Could not open %s.", path.toLatin1().constData());
|
||||
qFatal("No DRM display device");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ void QLinuxFbIntegrationPrivate::openTty()
|
|||
break;
|
||||
}
|
||||
} else {
|
||||
ttyfd = QT_OPEN(ttyDevice.toAscii().constData(), O_RDWR);
|
||||
ttyfd = QT_OPEN(ttyDevice.toLatin1().constData(), O_RDWR);
|
||||
}
|
||||
|
||||
if (ttyfd == -1)
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ void QQnxRootWindow::resize(const QSize &size)
|
|||
void QQnxRootWindow::createWindowGroup()
|
||||
{
|
||||
// Generate a random window group name
|
||||
m_windowGroupName = QUuid::createUuid().toString().toAscii();
|
||||
m_windowGroupName = QUuid::createUuid().toString().toLatin1();
|
||||
|
||||
// Create window group so child windows can be parented by container window
|
||||
errno = 0;
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ void QWindowsBackingStore::flush(QWindow *window, const QRegion ®ion,
|
|||
// Write image for debug purposes.
|
||||
if (QWindowsContext::verboseBackingStore > 2) {
|
||||
static int n = 0;
|
||||
const QString fileName = QString::fromAscii("win%1_%2.png").
|
||||
const QString fileName = QString::fromLatin1("win%1_%2.png").
|
||||
arg(rw->winId()).arg(n++);
|
||||
m_image->image().save(fileName);
|
||||
qDebug() << "Wrote " << m_image->image().size() << fileName;
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ QXcbIntegration::QXcbIntegration(const QStringList ¶meters)
|
|||
qDebug() << "QXcbIntegration: Connecting to additional display: " << parameters.at(i) << parameters.at(i+1);
|
||||
#endif
|
||||
QString display = parameters.at(i) + ':' + parameters.at(i+1);
|
||||
m_connections << new QXcbConnection(m_nativeInterface.data(), display.toAscii().constData());
|
||||
m_connections << new QXcbConnection(m_nativeInterface.data(), display.toLatin1().constData());
|
||||
}
|
||||
|
||||
foreach (QXcbConnection *connection, m_connections)
|
||||
|
|
|
|||
Loading…
Reference in New Issue