Commit 5cf70320 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify. Use nullptr

parent 46c2f6c1
...@@ -77,5 +77,5 @@ void FilterInfoGui::alert(const QString &message) ...@@ -77,5 +77,5 @@ void FilterInfoGui::alert(const QString &message)
QWidget *FilterInfoGui::parent() const QWidget *FilterInfoGui::parent() const
{ {
return 0; return nullptr;
} }
...@@ -105,7 +105,7 @@ void Filter::setFilterInfo(FilterInfo *info) ...@@ -105,7 +105,7 @@ void Filter::setFilterInfo(FilterInfo *info)
clear(); clear();
} }
MailImporter::FilterInfo *Filter::filterInfo() MailImporter::FilterInfo *Filter::filterInfo() const
{ {
if (!d->filterInfo) { if (!d->filterInfo) {
qCDebug(MAILIMPORTER_LOG) << " filterInfo must never be null. You forgot to create a filterinfo"; qCDebug(MAILIMPORTER_LOG) << " filterInfo must never be null. You forgot to create a filterinfo";
......
...@@ -54,7 +54,7 @@ public: ...@@ -54,7 +54,7 @@ public:
void clear(); void clear();
void setFilterInfo(MailImporter::FilterInfo *info); void setFilterInfo(MailImporter::FilterInfo *info);
MailImporter::FilterInfo *filterInfo(); MailImporter::FilterInfo *filterInfo() const;
void setCountDuplicates(int countDuplicate); void setCountDuplicates(int countDuplicate);
int countDuplicates() const; int countDuplicates() 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