Commit 2f5f1f29 authored by Laurent Montel's avatar Laurent Montel 😁

Add assert

parent 763707b1
......@@ -34,6 +34,7 @@ AbstractCalendar::~AbstractCalendar()
void AbstractCalendar::addImportInfo(const QString &log)
{
Q_ASSERT_X(mAbstractDisplayInfo, __FUNCTION__, "mAbstractDisplayInfo is not setting");
if (mAbstractDisplayInfo) {
mAbstractDisplayInfo->calendarImportInfo(log);
}
......@@ -41,6 +42,7 @@ void AbstractCalendar::addImportInfo(const QString &log)
void AbstractCalendar::addImportError(const QString &log)
{
Q_ASSERT_X(mAbstractDisplayInfo, __FUNCTION__, "mAbstractDisplayInfo is not setting");
if (mAbstractDisplayInfo) {
mAbstractDisplayInfo->calendarImportError(log);
}
......
......@@ -71,6 +71,7 @@ bool AbstractImporter::importCalendar()
void AbstractImporter::initializeFilter(MailImporter::Filter &filter)
{
Q_ASSERT_X(mAbstractDisplayInfo, __FUNCTION__, "mAbstractDisplayInfo is not setting");
mAbstractDisplayInfo->initializeFilter(filter);
}
......@@ -102,6 +103,7 @@ void AbstractImporter::appendFilters(const QList<MailCommon::MailFilter *> &filt
void AbstractImporter::addImportFilterInfo(const QString &log) const
{
Q_ASSERT_X(mAbstractDisplayInfo, __FUNCTION__, "mAbstractDisplayInfo is not setting");
if (mAbstractDisplayInfo) {
mAbstractDisplayInfo->filterImportInfo(log);
}
......@@ -109,6 +111,7 @@ void AbstractImporter::addImportFilterInfo(const QString &log) const
void AbstractImporter::addImportFilterError(const QString &log) const
{
Q_ASSERT_X(mAbstractDisplayInfo, __FUNCTION__, "mAbstractDisplayInfo is not setting");
if (mAbstractDisplayInfo) {
mAbstractDisplayInfo->filterImportError(log);
}
......@@ -116,6 +119,7 @@ void AbstractImporter::addImportFilterError(const QString &log) const
void AbstractImporter::addImportSettingsInfo(const QString &log) const
{
Q_ASSERT_X(mAbstractDisplayInfo, __FUNCTION__, "mAbstractDisplayInfo is not setting");
if (mAbstractDisplayInfo) {
mAbstractDisplayInfo->settingsImportInfo(log);
}
......@@ -123,6 +127,7 @@ void AbstractImporter::addImportSettingsInfo(const QString &log) const
void AbstractImporter::addImportCalendarInfo(const QString &log) const
{
Q_ASSERT_X(mAbstractDisplayInfo, __FUNCTION__, "mAbstractDisplayInfo is not setting");
if (mAbstractDisplayInfo) {
mAbstractDisplayInfo->calendarImportInfo(log);
}
......
......@@ -92,6 +92,7 @@ void AbstractSettings::storeTransport(MailTransport::Transport *mt, bool isDefau
void AbstractSettings::addImportInfo(const QString &log)
{
Q_ASSERT_X(mAbstractDisplayInfo, __FUNCTION__, "mAbstractDisplayInfo is not setting");
if (mAbstractDisplayInfo) {
mAbstractDisplayInfo->settingsImportInfo(log);
}
......@@ -99,6 +100,7 @@ void AbstractSettings::addImportInfo(const QString &log)
void AbstractSettings::addImportError(const QString &log)
{
Q_ASSERT_X(mAbstractDisplayInfo, __FUNCTION__, "mAbstractDisplayInfo is not setting");
if (mAbstractDisplayInfo) {
mAbstractDisplayInfo->settingsImportError(log);
}
......
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