Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Initialize pointer

parent 643cdd94
......@@ -56,7 +56,7 @@ protected Q_SLOTS:
private:
void checkChildren(const QModelIndex &parent, int currentDepth = 0);
QAbstractItemModel *model;
QAbstractItemModel *model = nullptr;
struct Changing {
QModelIndex parent;
......
......@@ -95,13 +95,13 @@ static QStringList preferencesStrings()
class Q_DECL_HIDDEN Kleo::KeyApprovalDialog::Private
{
public:
Private() : selfRequester(nullptr), prefsChanged(false) {}
Private() {}
Kleo::KeyRequester *selfRequester;
Kleo::KeyRequester *selfRequester = nullptr;
QStringList addresses;
std::vector<Kleo::KeyRequester *> requesters;
std::vector<QComboBox *> preferences;
bool prefsChanged;
bool prefsChanged = false;
};
Kleo::KeyApprovalDialog::KeyApprovalDialog(const std::vector<Item> &recipients,
......
......@@ -143,8 +143,8 @@ private Q_SLOTS:
void slotEraseButtonClicked();
private:
const QGpgME::Protocol *mOpenPGPBackend;
const QGpgME::Protocol *mSMIMEBackend;
const QGpgME::Protocol *mOpenPGPBackend = nullptr;
const QGpgME::Protocol *mSMIMEBackend = nullptr;
QLabel *mLabel = nullptr;
QPushButton *mEraseButton = nullptr;
QPushButton *mDialogButton = nullptr;
......
......@@ -186,8 +186,8 @@ private:
private:
QVBoxLayout *mTopLayout = nullptr;
Kleo::KeyListView *mKeyListView = nullptr;
const QGpgME::Protocol *mOpenPGPBackend;
const QGpgME::Protocol *mSMIMEBackend;
const QGpgME::Protocol *mOpenPGPBackend = nullptr;
const QGpgME::Protocol *mSMIMEBackend = nullptr;
QCheckBox *mRememberCB = nullptr;
std::vector<GpgME::Key> mSelectedKeys, mKeysToCheck;
unsigned int mKeyUsage;
......
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