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

Not necessary to keep it as local variable

parent 9cdf7ed2
......@@ -42,10 +42,10 @@ SearchLineStatus::SearchLineStatus(QWidget *parent)
mFilterMenu(nullptr),
mContainsOutboundMessages(false)
{
mCompleter = new QCompleter(this);
QCompleter *completer = new QCompleter(this);
mCompleterListModel = new QStringListModel(this);
mCompleter->setModel(mCompleterListModel);
setCompleter(mCompleter);
completer->setModel(mCompleterListModel);
setCompleter(completer);
setClearButtonEnabled(true);
initializeActions();
......
......@@ -84,7 +84,6 @@ private:
QAction *mSearchAgainstSubjectAction;
QAction *mSearchAgainstFromOrToAction;
QAction *mSearchAgainstBccAction;
QCompleter *mCompleter;
QStringListModel *mCompleterListModel;
QStringList mListCompetion;
bool mContainsOutboundMessages;
......
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