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

Initialize variables

parent b34bdb02
......@@ -44,14 +44,12 @@ public:
protected:
void doStart() override;
private Q_SLOTS:
private:
void collectionFetchResult(KJob *job);
void itemFetchResult(KJob *job);
private:
Akonadi::Item::List m_items;
Akonadi::MimeTypeChecker m_mimeTypeChecker;
int m_jobCount;
int m_jobCount = 0;
};
}
......
......@@ -25,7 +25,8 @@
#include "akonadicalendar_debug.h"
using namespace Akonadi;
ITIPHandler::Private::Private(ITIPHandlerComponentFactory *factory, ITIPHandler *qq) : m_calendarLoadError(false)
ITIPHandler::Private::Private(ITIPHandlerComponentFactory *factory, ITIPHandler *qq)
: m_calendarLoadError(false)
, m_factory(factory ? factory : new ITIPHandlerComponentFactory(this))
, m_scheduler(new MailScheduler(m_factory, qq))
, m_method(KCalCore::iTIPNoMethod)
......
......@@ -73,7 +73,7 @@ public:
bool isLoaded(); // don't make const
Invitation m_queuedInvitation;
bool m_calendarLoadError;
bool m_calendarLoadError = false;
CalendarBase::Ptr m_calendar;
ITIPHandlerComponentFactory *m_factory = nullptr;
MailScheduler *m_scheduler = nullptr;
......@@ -83,10 +83,10 @@ public:
Operation m_currentOperation;
QPointer<QWidget> m_parentWidget; // To be used for KMessageBoxes
GroupwareUiDelegate *m_uiDelegate = nullptr;
bool m_showDialogsOnError;
bool m_showDialogsOnError = true;
ITIPHandler *const q;
private Q_SLOTS:
private:
void finishSendAsICalendar(Akonadi::MailScheduler::Result, const QString &errorMessage);
void onLoadFinished(bool success, const QString &errorMessage);
void onSchedulerFinished(Akonadi::Scheduler::Result, const QString &errorMessage);
......
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