Changeset View
Changeset View
Standalone View
Standalone View
src/PlatformBackends/KWinWaylandImageGrabber.cpp
Show All 16 Lines | |||||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | #include "KWinWaylandImageGrabber.h" | 19 | #include "KWinWaylandImageGrabber.h" | ||
20 | 20 | | |||
21 | #include <QDBusInterface> | 21 | #include <QDBusInterface> | ||
22 | #include <QDBusPendingCall> | 22 | #include <QDBusPendingCall> | ||
23 | #include <QDBusPendingReply> | 23 | #include <QDBusPendingReply> | ||
24 | #include <QDBusUnixFileDescriptor> | 24 | #include <QDBusUnixFileDescriptor> | ||
25 | | ||||
26 | #include <QtConcurrentRun> | | |||
27 | #include <QFutureWatcher> | 25 | #include <QFutureWatcher> | ||
26 | #include <QtConcurrentRun> | ||||
28 | #include <qplatformdefs.h> | 27 | #include <qplatformdefs.h> | ||
29 | 28 | | |||
30 | #include <errno.h> | 29 | #include <cerrno> | ||
rkflx: This should be kept and changed to `<cerrno>`. | |||||
31 | 30 | | |||
32 | static int readData(int fd, QByteArray &data) | 31 | static int readData(int fd, QByteArray &data) | ||
33 | { | 32 | { | ||
34 | // implementation based on QtWayland file qwaylanddataoffer.cpp | 33 | // implementation based on QtWayland file qwaylanddataoffer.cpp | ||
35 | char buf[4096]; | 34 | char buf[4096]; | ||
36 | int retryCount = 0; | 35 | int retryCount = 0; | ||
37 | int n; | 36 | int n; | ||
38 | while (true) { | 37 | while (true) { | ||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |
This should be kept and changed to <cerrno>.