diff --git a/core/backends/lan/server.h b/core/backends/lan/server.h index d47560a24..3d8d25112 100644 --- a/core/backends/lan/server.h +++ b/core/backends/lan/server.h @@ -18,7 +18,7 @@ class KDECONNECTCORE_EXPORT Server : public QTcpServer Q_OBJECT public: - Server(QObject *parent = 0); + Server(QObject *parent = nullptr); ~Server() override = default; QSslSocket *nextPendingConnection() override; diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index 7b5a1497d..84314fd01 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -149,7 +149,7 @@ void KdeConnectKcm::resetSelection() void KdeConnectKcm::deviceSelected(const QModelIndex ¤t) { if (currentDevice) { - disconnect(currentDevice, 0, this, 0); + disconnect(currentDevice, nullptr, this, nullptr); } if (!current.isValid()) {