1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Clean nullptr usage

This commit is contained in:
Allan Sandfeld Jensen 2022-02-01 12:03:06 +01:00
parent b0b89339f3
commit 1413aba338
3 changed files with 8 additions and 8 deletions

View File

@ -44,7 +44,7 @@ public:
};
Q_DECLARE_FLAGS(SessionFlags, SessionFlag)
explicit SessionManager(QObject* parent = 0);
explicit SessionManager(QObject* parent = nullptr);
void loadSettings();
void saveSettings();
@ -66,8 +66,8 @@ public Q_SLOTS:
private Q_SLOTS:
void aboutToShowSessionsMenu();
void sessionsDirectoryChanged();
void openSession(QString sessionFilePath = QString(), SessionFlags flags = nullptr);
void renameSession(QString sessionFilePath = QString(), SessionFlags flags = nullptr);
void openSession(QString sessionFilePath = QString(), SessionFlags flags = {});
void renameSession(QString sessionFilePath = QString(), SessionFlags flags = {});
void saveSession();
void replaceSession(const QString &filePath);

View File

@ -77,10 +77,10 @@ public:
static bool containsSpace(const QString &str);
// QFileDialog static functions that remembers last used directory
static QString getExistingDirectory(const QString &name, QWidget* parent = 0, const QString &caption = QString(), const QString &dir = QString(), QFileDialog::Options options = QFileDialog::ShowDirsOnly);
static QString getOpenFileName(const QString &name, QWidget* parent = 0, const QString &caption = QString(), const QString &dir = QString(), const QString &filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0);
static QStringList getOpenFileNames(const QString &name, QWidget* parent = 0, const QString &caption = QString(), const QString &dir = QString(), const QString &filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0);
static QString getSaveFileName(const QString &name, QWidget* parent = 0, const QString &caption = QString(), const QString &dir = QString(), const QString &filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0);
static QString getExistingDirectory(const QString &name, QWidget* parent = nullptr, const QString &caption = QString(), const QString &dir = QString(), QFileDialog::Options options = QFileDialog::ShowDirsOnly);
static QString getOpenFileName(const QString &name, QWidget* parent = nullptr, const QString &caption = QString(), const QString &dir = QString(), const QString &filter = QString(), QString* selectedFilter = nullptr, QFileDialog::Options options = {});
static QStringList getOpenFileNames(const QString &name, QWidget* parent = nullptr, const QString &caption = QString(), const QString &dir = QString(), const QString &filter = QString(), QString* selectedFilter = nullptr, QFileDialog::Options options = {});
static QString getSaveFileName(const QString &name, QWidget* parent = nullptr, const QString &caption = QString(), const QString &dir = QString(), const QString &filter = QString(), QString* selectedFilter = nullptr, QFileDialog::Options options = {});
static bool matchDomain(const QString &pattern, const QString &domain);
static QKeySequence actionShortcut(const QKeySequence &shortcut, const QKeySequence &fallBack, const QKeySequence &shortcutRtl = QKeySequence(), const QKeySequence &fallbackRtl = QKeySequence());

View File

@ -754,5 +754,5 @@ QWebEnginePage* WebPage::createWindow(QWebEnginePage::WebWindowType type)
break;
}
return Q_NULLPTR;
return nullptr;
}