Changeset View
Changeset View
Standalone View
Standalone View
core/device.cpp
Show All 35 Lines | |||||
36 | #include "pluginloader.h" | 36 | #include "pluginloader.h" | ||
37 | #include "backends/devicelink.h" | 37 | #include "backends/devicelink.h" | ||
38 | #include "backends/lan/landevicelink.h" | 38 | #include "backends/lan/landevicelink.h" | ||
39 | #include "backends/linkprovider.h" | 39 | #include "backends/linkprovider.h" | ||
40 | #include "networkpackage.h" | 40 | #include "networkpackage.h" | ||
41 | #include "kdeconnectconfig.h" | 41 | #include "kdeconnectconfig.h" | ||
42 | #include "daemon.h" | 42 | #include "daemon.h" | ||
43 | 43 | | |||
44 | //In older Qt released, qAsConst isnt available | ||||
45 | #ifdef SAILFISHOS | ||||
46 | #define qAsConst | ||||
nicolasfella: Does that really solve the issue? | |||||
Well .... it just defines qAsConst as nothing, so it compiles. in reality, it will mean that there are extra copies of the data created, which will be a (minor?) performance impact. Im open to other suggestions. piggz: Well .... it just defines qAsConst as nothing, so it compiles. in reality, it will mean that… | |||||
47 | #endif | ||||
48 | | ||||
44 | static void warn(const QString& info) | 49 | static void warn(const QString& info) | ||
45 | { | 50 | { | ||
46 | qWarning() << "Device pairing error" << info; | 51 | qWarning() << "Device pairing error" << info; | ||
47 | } | 52 | } | ||
48 | 53 | | |||
49 | Device::Device(QObject* parent, const QString& id) | 54 | Device::Device(QObject* parent, const QString& id) | ||
50 | : QObject(parent) | 55 | : QObject(parent) | ||
51 | , m_deviceId(id) | 56 | , m_deviceId(id) | ||
▲ Show 20 Lines • Show All 438 Lines • Show Last 20 Lines |
Does that really solve the issue?