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

modernize code

parent b4e1fa5a
Pipeline #32661 passed with stage
in 8 minutes and 20 seconds
......@@ -24,7 +24,6 @@ static Identity *identityNull = nullptr;
Q_DECLARE_METATYPE(KIdentityManagement::Signature)
Identity::Identity(const QString &id, const QString &fullName, const QString &emailAddr, const QString &organization, const QString &replyToAddr)
: mIsDefault(false)
{
qRegisterMetaType<Signature>();
qRegisterMetaTypeStreamOperators<Signature>();
......
......@@ -343,7 +343,7 @@ protected:
Q_REQUIRED_RESULT bool useSignatureFile() const;
Signature mSignature;
bool mIsDefault;
bool mIsDefault = false;
QHash<QString, QVariant> mPropertiesMap;
};
}
......
......@@ -42,8 +42,8 @@ public:
void reloadUoidList();
QList<uint> mUoidList;
IdentityManager *const mIdentityManager = nullptr;
IdentityCombo *const q = nullptr;
IdentityManager *const mIdentityManager;
IdentityCombo *const q;
};
void KIdentityManagement::IdentityComboPrivate::reloadCombo()
......
......@@ -51,7 +51,7 @@ public:
Signature::Type type = Signature::Disabled;
bool enabled = false;
bool inlinedHtml = false;
Signature * const q = nullptr;
Signature * const q;
};
static bool isCursorAtEndOfLine(const QTextCursor &cursor)
......
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