aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-24 13:36:17 +0200
committerMontel Laurent <[email protected]>2017-08-24 13:36:17 +0200
commite5eefe41341c058fef4fbbe0cb1d540666094221 (patch)
treece548a6e587cad350769d06651428b7c459d6444
parentc299745cd974c2ab9757c2b25e8b1e5b352c67af (diff)
Make sure to initialize value
-rw-r--r--src/noteutils.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/noteutils.cpp b/src/noteutils.cpp
index ba619ee..760a9fa 100644
--- a/src/noteutils.cpp
+++ b/src/noteutils.cpp
@@ -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)