Commit 8b76f518 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

syntax cleanup.

parent 4577c38c
...@@ -98,7 +98,7 @@ QByteArray AutocryptRecipientPrivate::toJson (QJsonDocument::JsonFormat format) ...@@ -98,7 +98,7 @@ QByteArray AutocryptRecipientPrivate::toJson (QJsonDocument::JsonFormat format)
entry.insert(QStringLiteral("gossip_key"), QString::fromLatin1(gossip_key)); entry.insert(QStringLiteral("gossip_key"), QString::fromLatin1(gossip_key));
} }
QJsonDocument document; QJsonDocument document;
document.setObject( entry ); document.setObject(entry);
return document.toJson(format); return document.toJson(format);
} }
...@@ -153,7 +153,7 @@ AutocryptRecipient::~AutocryptRecipient() ...@@ -153,7 +153,7 @@ AutocryptRecipient::~AutocryptRecipient()
delete d_ptr; delete d_ptr;
} }
void AutocryptRecipient::updateFromMessage ( const HeaderMixupNodeHelper& mixup ) void AutocryptRecipient::updateFromMessage(const HeaderMixupNodeHelper& mixup )
{ {
Q_D(AutocryptRecipient); Q_D(AutocryptRecipient);
QDateTime effectiveDate = mixup.dateHeader(); QDateTime effectiveDate = mixup.dateHeader();
...@@ -230,7 +230,7 @@ void AutocryptRecipient::updateFromGossip(const HeaderMixupNodeHelper& mixup, co ...@@ -230,7 +230,7 @@ void AutocryptRecipient::updateFromGossip(const HeaderMixupNodeHelper& mixup, co
d->gossip_key = params["keydata"].replace(' ', QByteArray()); d->gossip_key = params["keydata"].replace(' ', QByteArray());
} }
QByteArray AutocryptRecipient::toJson ( QJsonDocument::JsonFormat format ) const QByteArray AutocryptRecipient::toJson (QJsonDocument::JsonFormat format) const
{ {
const Q_D(AutocryptRecipient); const Q_D(AutocryptRecipient);
return d->toJson(format); return d->toJson(format);
......
...@@ -42,6 +42,7 @@ public: ...@@ -42,6 +42,7 @@ public:
~AutocryptRecipient(); ~AutocryptRecipient();
void updateFromMessage(const HeaderMixupNodeHelper &mixup); void updateFromMessage(const HeaderMixupNodeHelper &mixup);
void updateFromGossip(const HeaderMixupNodeHelper& mixup, const KMime::Headers::Base* header); void updateFromGossip(const HeaderMixupNodeHelper& mixup, const KMime::Headers::Base* header);
QByteArray toJson(QJsonDocument::JsonFormat format) const; QByteArray toJson(QJsonDocument::JsonFormat format) const;
void fromJson(const QByteArray &json); void fromJson(const QByteArray &json);
......
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