Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit faf8609f authored by Laurent Montel's avatar Laurent Montel 😁

Use nullptr. Clean up code

parent 85ad7146
......@@ -65,15 +65,13 @@ public:
void readProperties(const KConfigGroup &config) override;
void saveProperties(KConfigGroup &config) override;
private Q_SLOTS:
void addFeed();
protected:
KParts::ReadOnlyPart *createPart() override;
KontactInterface::UniqueAppWatcher *mUniqueAppWatcher = nullptr;
OrgKdeAkregatorPartInterface *m_interface = nullptr;
private:
void addFeed();
void setHelpText(QAction *action, const QString &text);
};
......
......@@ -61,10 +61,8 @@ public Q_SLOTS:
void fetchDiscovery(Akregator::Feed *);
void fetchError(Akregator::Feed *);
private Q_SLOTS:
void textChanged(const QString &);
private:
void textChanged(const QString &);
QString feedUrl;
AddFeedWidget *widget = nullptr;
Feed *m_feed = nullptr;
......
......@@ -56,7 +56,7 @@ public:
QString m_url;
QPointer<Folder> m_parentFolder;
QPointer<TreeNode> m_after;
bool m_autoexec;
bool m_autoexec = false;
};
CreateFeedCommand::Private::Private(CreateFeedCommand *qq)
......@@ -176,7 +176,7 @@ void CreateFeedCommand::setAutoExecute(bool autoexec)
void CreateFeedCommand::doStart()
{
QTimer::singleShot(0, this, SLOT(doCreate()));
QTimer::singleShot(0, this, [this]() { d->doCreate(); });
}
void CreateFeedCommand::doAbort()
......
......@@ -53,7 +53,6 @@ private:
private:
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void doCreate())
};
}
......
......@@ -80,11 +80,10 @@ private:
void loadHeaderSettings();
void restoreHeaderState();
private Q_SLOTS:
private:
void showHeaderMenu(const QPoint &pos);
void headerMenuItemTriggered(QAction *action);
private:
QByteArray m_headerState;
};
}
......
......@@ -39,10 +39,9 @@ public:
Q_SIGNALS:
void restoreSession(Akregator::CrashWidget::CrashAction type);
private Q_SLOTS:
private:
void slotRestoreSession(Akregator::CrashWidget::CrashAction type);
private:
Akregator::CrashWidget *mCrashWidget = nullptr;
Akregator::MainWidget *mMainWidget = nullptr;
};
......
......@@ -83,7 +83,7 @@ SearchBar::SearchBar(QWidget *parent)
SearchBar::~SearchBar()
{
delete d;
d = 0;
d = nullptr;
}
QString SearchBar::text() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment