Commit f6ca7b10 authored by Laurent Montel's avatar Laurent Montel
Browse files

const'ify pointer

parent e923be39
Pipeline #224481 canceled with stage
in 14 minutes and 36 seconds
......@@ -39,11 +39,10 @@ Manager *Manager::mInstance = nullptr;
Manager::Manager()
: QObject()
, mDateFormatter(new KMime::DateFormatter())
{
mInstance = this;
mDateFormatter = new KMime::DateFormatter();
mCachedLocalizedUnknownText = i18nc("Unknown date", "Unknown");
loadConfiguration();
......
......@@ -53,7 +53,7 @@ private:
QList<Widget *> mWidgetList;
QMap<QString, Aggregation *> mAggregations;
QMap<QString, Theme *> mThemes;
KMime::DateFormatter *mDateFormatter = nullptr;
KMime::DateFormatter *const mDateFormatter;
QString mCachedLocalizedUnknownText;
public:
......
......@@ -32,9 +32,9 @@ static const char qLineEditclearButtonActionNameC[] = "_q_qlineeditclearaction";
using namespace MessageList::Core;
SearchLineStatus::SearchLineStatus(QWidget *parent)
: QLineEdit(parent)
, mCompleter(new QCompleter(this))
, mCompleterListModel(new QStringListModel(this))
{
mCompleter = new QCompleter(this);
mCompleterListModel = new QStringListModel(this);
mCompleter->setModel(mCompleterListModel);
setCompleter(mCompleter);
......
......@@ -78,14 +78,14 @@ private:
QAction *mFiltersAction = nullptr;
QAction *mSaveFilterAction = nullptr;
QMenu *mFilterMenu = nullptr;
QCompleter *mCompleter = nullptr;
QCompleter *const mCompleter;
QList<QAction *> mFilterListActions;
QAction *mSearchEveryWhereAction = nullptr;
QAction *mSearchAgainstBodyAction = nullptr;
QAction *mSearchAgainstSubjectAction = nullptr;
QAction *mSearchAgainstFromOrToAction = nullptr;
QAction *mSearchAgainstBccAction = nullptr;
QStringListModel *mCompleterListModel = nullptr;
QStringListModel *const mCompleterListModel;
FilterSavedMenu *mFilterSavedMenu = nullptr;
QStringList mListCompetion;
QString mColorName;
......
Supports Markdown
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