Commit 084c822e authored by Ahmad Samir's avatar Ahmad Samir Committed by Ingo Klöcker
Browse files

SMimeValidationConfigurationWidget: clean up constructor initializer list

Don't intialize a member with another member in the init-list, if the order
of initialization is changed for any reason, "ui" will be created with an
uninitialized q pointer.
parent 4d5bb9a0
Pipeline #178949 passed with stage
in 2 minutes and 21 seconds
......@@ -40,8 +40,7 @@ class SMimeValidationConfigurationWidget::Private
public:
explicit Private(SMimeValidationConfigurationWidget *qq)
: q(qq),
customHTTPProxyWritable(false),
ui(q)
ui(qq)
{
#if HAVE_QDBUS
QDBusConnection::sessionBus().connect(QString(), QString(), QStringLiteral("org.kde.kleo.CryptoConfig"), QStringLiteral("changed"), q, SLOT(load()));
......@@ -76,7 +75,7 @@ public:
connect(ui.disableHTTPCB, &QCheckBox::toggled, q, enableDisableSlot);
}
bool customHTTPProxyWritable;
bool customHTTPProxyWritable = false;
private:
void enableDisableActions()
......
Supports Markdown
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