Use nullptr instead of 0.

This commit is contained in:
Nodir Temirkhodjaev 2017-11-01 19:06:47 +05:00
parent ac75fc3e9d
commit 2794e3f776
4 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ public:
static bool confIpInRange(const void *drvConf, quint32 ip,
bool included = false);
static bool confAppBlocked(const void *drvConf,
const QString &kernelPath, bool *notify = 0);
const QString &kernelPath, bool *notify = nullptr);
static uint provRegister(bool isBoot);
static void provUnregister();

View File

@ -82,10 +82,10 @@ private:
static QAction *addAction(QWidget *widget,
const QIcon &icon, const QString &text,
const QObject *receiver = 0, const char *member = 0,
const QObject *receiver = nullptr, const char *member = nullptr,
bool checkable = false, bool checked = false);
static void setActionCheckable(QAction *action, bool checked = false,
const QObject *receiver = 0, const char *member = 0);
const QObject *receiver = nullptr, const char *member = nullptr);
private:
MainWindow m_window; // dummy window for tray icon

View File

@ -16,7 +16,7 @@ class TranslationManager : public QObject
Q_PROPERTY(QStringList naturalLabels READ naturalLabels CONSTANT)
protected:
explicit TranslationManager(QObject *parent = 0);
explicit TranslationManager(QObject *parent = nullptr);
virtual ~TranslationManager();
public:

View File

@ -12,7 +12,7 @@ public:
explicit NetUtil(QObject *parent = nullptr);
// Convert IPv4 address from text to number
Q_INVOKABLE static quint32 textToIp4(const QString &text, bool *ok = 0);
Q_INVOKABLE static quint32 textToIp4(const QString &text, bool *ok = nullptr);
// Convert IPv4 address from number to text
Q_INVOKABLE static QString ip4ToText(quint32 ip);