Commit 131da245 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clean up code

parent 3fb85857
......@@ -49,8 +49,6 @@
Key::Key(QObject *parent)
: SetupObject(parent)
, m_transportId(0)
, m_publishingMethod(NoPublishing)
{
}
......
......@@ -72,7 +72,7 @@ private:
GpgME::Key m_key;
QString m_mailbox;
QPointer<QObject> mJob;
PublishingMethod m_publishingMethod;
PublishingMethod m_publishingMethod = NoPublishing;
};
#endif
......@@ -38,14 +38,7 @@
SetupManager::SetupManager(QWidget *parent)
: QObject(parent)
, m_currentSetupObject(nullptr)
, m_page(nullptr)
, m_wallet(nullptr)
, m_keyPublishingMethod(Key::NoPublishing)
, m_personalDataAvailable(false)
, m_rollbackRequested(false)
, m_pgpAutoSign(false)
, m_pgpAutoEncrypt(false)
{
KEMailSettings e;
m_name = e.getSetting(KEMailSettings::RealName);
......
......@@ -94,10 +94,10 @@ private:
KWallet::Wallet *m_wallet = nullptr;
GpgME::Key m_key;
Key::PublishingMethod m_keyPublishingMethod;
bool m_personalDataAvailable;
bool m_rollbackRequested;
bool m_pgpAutoSign;
bool m_pgpAutoEncrypt;
bool m_personalDataAvailable = false;
bool m_rollbackRequested = false;
bool m_pgpAutoSign = false;
bool m_pgpAutoEncrypt = false;
};
#endif
......@@ -20,7 +20,6 @@
#include "setupobject.h"
SetupObject::SetupObject(QObject *parent) : QObject(parent)
, m_dependsOn(nullptr)
{
}
......
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