Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Make sure to initialize value

parent c299745c
......@@ -154,13 +154,10 @@ class Q_DECL_HIDDEN NoteMessageWrapper::NoteMessageWrapperPrivate
{
public:
NoteMessageWrapperPrivate()
: classification(Public)
{
}
NoteMessageWrapperPrivate(const KMime::MessagePtr &msg)
: classification(Public)
, textFormat(Qt::PlainText)
{
readMimeMessage(msg);
}
......@@ -181,8 +178,8 @@ public:
QDateTime lastModifiedDate;
QMap< QString, QString > custom;
QVector<Attachment> attachments;
Classification classification;
Qt::TextFormat textFormat;
Classification classification = Public;
Qt::TextFormat textFormat = Qt::PlainText;
};
void NoteMessageWrapper::NoteMessageWrapperPrivate::readMimeMessage(const KMime::MessagePtr &msg)
......
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