aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-10-10 21:47:27 +0200
committerLaurent Montel <[email protected]>2018-10-10 21:47:36 +0200
commitcc280a4dd764a9d2df1ad24bb12055daa748a953 (patch)
tree9d809d285e6b17c038ecd00c6251e77988697ae2
parenta6ade5e373eb601148c669bcb8fc4092f9cfac64 (diff)
Use qEnvironmentVariableIntValue
-rw-r--r--helpers/xclipboardsync/waylandclipboard.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/xclipboardsync/waylandclipboard.cpp b/helpers/xclipboardsync/waylandclipboard.cpp
index 2362304..3b2b3f4 100644
--- a/helpers/xclipboardsync/waylandclipboard.cpp
+++ b/helpers/xclipboardsync/waylandclipboard.cpp
@@ -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();