Use qEnvironmentVariableIntValue

This commit is contained in:
Laurent Montel 2018-10-10 21:47:27 +02:00
parent a6ade5e373
commit cc280a4dd7

View file

@ -45,7 +45,7 @@ WaylandClipboard::WaylandClipboard(QObject *parent)
, m_thread(new QThread)
, m_connectionThread(new ConnectionThread)
{
m_connectionThread->setSocketFd(qgetenv("WAYLAND_SOCKET").toInt());
m_connectionThread->setSocketFd(qEnvironmentVariableIntValue("WAYLAND_SOCKET"));
m_connectionThread->moveToThread(m_thread);
m_thread->start();