Use nullptr instead of 0

This commit is contained in:
Albert Vaca Cintora 2023-07-20 18:25:06 +02:00
parent 382ace9c69
commit 6c1b81a384
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ class KDECONNECTCORE_EXPORT Server : public QTcpServer
Q_OBJECT Q_OBJECT
public: public:
Server(QObject *parent = 0); Server(QObject *parent = nullptr);
~Server() override = default; ~Server() override = default;
QSslSocket *nextPendingConnection() override; QSslSocket *nextPendingConnection() override;

View file

@ -149,7 +149,7 @@ void KdeConnectKcm::resetSelection()
void KdeConnectKcm::deviceSelected(const QModelIndex &current) void KdeConnectKcm::deviceSelected(const QModelIndex &current)
{ {
if (currentDevice) { if (currentDevice) {
disconnect(currentDevice, 0, this, 0); disconnect(currentDevice, nullptr, this, nullptr);
} }
if (!current.isValid()) { if (!current.isValid()) {