mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:38:16 +00:00
Use nullptr instead of 0.
This commit is contained in:
parent
ac75fc3e9d
commit
2794e3f776
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user