s/Q_NULLPTR/nullptr/
This commit is contained in:
parent
6dda515f29
commit
0692295ae7
7 changed files with 9 additions and 9 deletions
|
@ -164,7 +164,7 @@ Device*Daemon::getDevice(const QString& deviceId)
|
|||
return device;
|
||||
}
|
||||
}
|
||||
return Q_NULLPTR;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
QStringList Daemon::devices(bool onlyReachable, bool onlyTrusted) const
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
FileTransferJob::FileTransferJob(const QSharedPointer<QIODevice>& origin, qint64 size, const QUrl& destination)
|
||||
: KJob()
|
||||
, m_origin(origin)
|
||||
, m_reply(Q_NULLPTR)
|
||||
, m_reply(nullptr)
|
||||
, m_from(QStringLiteral("KDE Connect"))
|
||||
, m_destination(destination)
|
||||
, m_speedBytes(0)
|
||||
|
|
|
@ -57,7 +57,7 @@ KPluginMetaData PluginLoader::getPluginInfo(const QString& name) const
|
|||
|
||||
KdeConnectPlugin* PluginLoader::instantiatePluginForDevice(const QString& pluginName, Device* device) const
|
||||
{
|
||||
KdeConnectPlugin* ret = Q_NULLPTR;
|
||||
KdeConnectPlugin* ret = nullptr;
|
||||
|
||||
KPluginMetaData service = plugins.value(pluginName);
|
||||
if (!service.isValid()) {
|
||||
|
|
|
@ -38,9 +38,9 @@ class DesktopDaemon : public Daemon
|
|||
Q_OBJECT
|
||||
Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.daemon")
|
||||
public:
|
||||
DesktopDaemon(QObject* parent = Q_NULLPTR)
|
||||
DesktopDaemon(QObject* parent = nullptr)
|
||||
: Daemon(parent)
|
||||
, m_nam(Q_NULLPTR)
|
||||
, m_nam(nullptr)
|
||||
{}
|
||||
|
||||
void askPairingConfirmation(Device* device) override
|
||||
|
|
|
@ -30,7 +30,7 @@ class KDECONNECTINTERFACES_EXPORT DevicesSortProxyModel : public QSortFilterProx
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit DevicesSortProxyModel(DevicesModel* devicesModel = Q_NULLPTR);
|
||||
explicit DevicesSortProxyModel(DevicesModel* devicesModel = nullptr);
|
||||
bool lessThan(const QModelIndex& left, const QModelIndex& right) const override;
|
||||
bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const override;
|
||||
void setSourceModel(QAbstractItemModel* sourceModel) override;
|
||||
|
|
|
@ -39,7 +39,7 @@ class SailfishDaemon : public Daemon
|
|||
Q_OBJECT
|
||||
Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.daemon")
|
||||
public:
|
||||
SailfishDaemon(QObject* parent = Q_NULLPTR)
|
||||
SailfishDaemon(QObject* parent = nullptr)
|
||||
: Daemon(parent)
|
||||
, m_background(new BackgroundActivity())
|
||||
{
|
||||
|
|
|
@ -27,9 +27,9 @@
|
|||
class TestDaemon : public Daemon
|
||||
{
|
||||
public:
|
||||
TestDaemon(QObject* parent = Q_NULLPTR)
|
||||
TestDaemon(QObject* parent = nullptr)
|
||||
: Daemon(parent, true)
|
||||
, m_nam(Q_NULLPTR)
|
||||
, m_nam(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue