Commit 2410da0a authored by Laurent Montel's avatar Laurent Montel 😁

Initialize variables

parent c630169d
......@@ -35,8 +35,6 @@ using namespace SendLater;
SendLaterDialog::SendLaterDialog(SendLater::SendLaterInfo *info, QWidget *parent)
: QDialog(parent)
, mAction(Unknown)
, mDelay(nullptr)
, mInfo(info)
{
setWindowTitle(i18nc("@title:window", "Send Later"));
......
......@@ -59,7 +59,7 @@ private:
private:
QDateTime mSendDateTime;
SendLaterAction mAction;
SendLaterAction mAction = Unknown;
QCheckBox *mDelay = nullptr;
Ui::SendLaterWidget *mSendLaterWidget = nullptr;
SendLater::SendLaterInfo *mInfo = nullptr;
......
......@@ -24,18 +24,10 @@
using namespace SendLater;
SendLaterInfo::SendLaterInfo()
: mId(-1)
, mRecurrenceEachValue(1)
, mRecurrenceUnit(Days)
, mRecurrence(false)
{
}
SendLaterInfo::SendLaterInfo(const KConfigGroup &config)
: mId(-1)
, mRecurrenceEachValue(1)
, mRecurrenceUnit(Days)
, mRecurrence(false)
{
readConfig(config);
}
......
......@@ -78,10 +78,10 @@ private:
QString mSubject;
QDateTime mDateTime;
QDateTime mLastDateTimeSend;
Akonadi::Item::Id mId;
int mRecurrenceEachValue;
RecurrenceUnit mRecurrenceUnit;
bool mRecurrence;
Akonadi::Item::Id mId = -1;
int mRecurrenceEachValue = 1;
RecurrenceUnit mRecurrenceUnit = Days;
bool mRecurrence = false;
};
}
......
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