Xcb: remove compile warnings
Change-Id: Ieb3ccd18a2bdde9ef7628a031266004cd55480da Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>bb10
parent
6cec75a730
commit
ec9104a71d
|
|
@ -166,7 +166,7 @@ QXcbScreen* QXcbConnection::findOrCreateScreen(QList<QXcbScreen *>& newScreens,
|
|||
int dotPos = displayName.lastIndexOf('.');
|
||||
if (dotPos != -1)
|
||||
displayName.truncate(dotPos);
|
||||
name = displayName + QLatin1Char('.') + QString::number(screenNumber);
|
||||
name = QString::fromLocal8Bit(displayName) + QLatin1Char('.') + QString::number(screenNumber);
|
||||
}
|
||||
foreach (QXcbScreen* scr, m_screens)
|
||||
if (scr->name() == name && scr->root() == xcbScreen->root)
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ QXcbIntegration::QXcbIntegration(const QStringList ¶meters, int &argc, char
|
|||
#ifdef Q_XCB_DEBUG
|
||||
qDebug() << "QXcbIntegration: Connecting to additional display: " << parameters.at(i) << parameters.at(i+1);
|
||||
#endif
|
||||
QString display = parameters.at(i) + ':' + parameters.at(i+1);
|
||||
QString display = parameters.at(i) + QLatin1Char(':') + parameters.at(i+1);
|
||||
m_connections << new QXcbConnection(m_nativeInterface.data(), display.toLatin1().constData());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue