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 cb304bac authored by Laurent Montel's avatar Laurent Montel 😁

initialize values

parent 5286a8ef
......@@ -35,7 +35,7 @@ private:
void readIdentity();
void readGlobalSettings();
void readTransport();
QSettings *settings;
QSettings *settings = nullptr;
};
#endif // ClawsMailSettings_H
......@@ -51,11 +51,11 @@ private:
NumberOfProtocols = 4
};
QCheckBox *mProtocolCB[NumberOfProtocols];
KComboBox *mSignPref;
KComboBox *mCryptPref;
Kleo::KeyRequester *mPgpKey;
Kleo::KeyRequester *mSmimeCert;
bool mReadOnly;
KComboBox *mSignPref = nullptr;
KComboBox *mCryptPref = nullptr;
Kleo::KeyRequester *mPgpKey = nullptr;
Kleo::KeyRequester *mSmimeCert = nullptr;
bool mReadOnly = false;
};
#endif
......@@ -69,15 +69,15 @@ private:
void applyTemplate();
void saveTemplate();
QTableView *mTable;
QButtonGroup *mDelimiterGroup;
QLineEdit *mDelimiterEdit;
QLineEdit *mDatePatternEdit;
KComboBox *mComboQuote;
KComboBox *mCodecCombo;
QCheckBox *mSkipFirstRow;
KUrlRequester *mUrlRequester;
QCsvModel *mModel;
QTableView *mTable = nullptr;
QButtonGroup *mDelimiterGroup = nullptr;
QLineEdit *mDelimiterEdit = nullptr;
QLineEdit *mDatePatternEdit = nullptr;
KComboBox *mComboQuote = nullptr;
KComboBox *mCodecCombo = nullptr;
QCheckBox *mSkipFirstRow = nullptr;
KUrlRequester *mUrlRequester = nullptr;
QCsvModel *mModel = nullptr;
void initGUI();
......@@ -88,11 +88,11 @@ private:
QChar mTextQuote;
QString mDelimiter;
QMap<QString, uint> mTypeMap;
QIODevice *mDevice;
QIODevice *mDevice = nullptr;
KAddressBookImportExport::KAddressBookImportExportContactFields::Fields mFieldSelection;
QPushButton *mUser1Button;
QPushButton *mUser2Button;
QPushButton *mOkButton;
QPushButton *mUser1Button = nullptr;
QPushButton *mUser2Button = nullptr;
QPushButton *mOkButton = nullptr;
};
#endif
......@@ -28,10 +28,6 @@
CsvParser::CsvParser(QObject *parent)
: QThread(parent)
, mDevice(nullptr)
, mRowCount(0)
, mColumnCount(0)
, mCacheCounter(0)
{
mReader = new QCsvReader(this);
}
......
......@@ -56,11 +56,11 @@ protected:
void run() override;
private:
QCsvReader *mReader;
QIODevice *mDevice;
int mRowCount;
int mColumnCount;
int mCacheCounter;
QCsvReader *mReader = nullptr;
QIODevice *mDevice = nullptr;
int mRowCount = 0;
int mColumnCount = 0;
int mCacheCounter = 0;
};
#endif
......@@ -39,8 +39,8 @@ private Q_SLOTS:
void updateButtons();
private:
QListView *mView;
QPushButton *mOkButton;
QListView *mView = nullptr;
QPushButton *mOkButton = nullptr;
};
#endif
......@@ -30,10 +30,6 @@
ImportExportEngine::ImportExportEngine(QObject *parent)
: QObject(parent)
, mParentWidget(nullptr)
, mImportProgressDialog(nullptr)
, mNumberElementToImport(-1)
, mImportDone(0)
{
}
......
......@@ -46,10 +46,10 @@ private:
void slotImportJobDone(KJob *);
KAddressBookImportExport::KAddressBookImportExportContactList mContactsList;
Akonadi::Collection mDefaultAddressBook;
QWidget *mParentWidget;
QProgressDialog *mImportProgressDialog;
int mNumberElementToImport;
int mImportDone;
QWidget *mParentWidget = nullptr;
QProgressDialog *mImportProgressDialog = nullptr;
int mNumberElementToImport = -1;
int mImportDone = 0;
};
#endif // IMPORTEXPORTENGINE_H
......@@ -45,12 +45,12 @@ public:
private:
void readSettings();
void writeSettings();
QCheckBox *mPrivateBox;
QCheckBox *mBusinessBox;
QCheckBox *mOtherBox;
QCheckBox *mEncryptionKeys;
QCheckBox *mPictureBox;
QCheckBox *mDisplayNameBox;
QCheckBox *mPrivateBox = nullptr;
QCheckBox *mBusinessBox = nullptr;
QCheckBox *mOtherBox = nullptr;
QCheckBox *mEncryptionKeys = nullptr;
QCheckBox *mPictureBox = nullptr;
QCheckBox *mDisplayNameBox = nullptr;
};
#endif // VCARDEXPORTSELECTIONWIDGET_H
......@@ -46,11 +46,11 @@ private:
void writeConfig();
void updateView();
KAddressBookGrantlee::GrantleeContactViewer *mView;
KContacts::Addressee::List mContacts;
KContacts::Addressee::List::Iterator mIt;
QPushButton *mApplyButton;
QPushButton *mApplyButton = nullptr;
KAddressBookGrantlee::GrantleeContactViewer *mView = nullptr;
};
#endif // VCARDVIEWERDIALOG_H
......@@ -30,7 +30,6 @@ using namespace KABGravatar;
GravatarUpdateDialog::GravatarUpdateDialog(QWidget *parent)
: QDialog(parent)
, mSaveUrl(false)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
setWindowTitle(i18n("Check and update Gravatar"));
......
......@@ -47,10 +47,10 @@ private:
void slotActivateButton(bool state);
void readConfig();
void writeConfig();
GravatarUpdateWidget *mGravatarUpdateWidget;
QPushButton *mSaveImageButton;
QPushButton *mSaveUrlButton;
bool mSaveUrl;
GravatarUpdateWidget *mGravatarUpdateWidget = nullptr;
QPushButton *mSaveImageButton = nullptr;
QPushButton *mSaveUrlButton = nullptr;
bool mSaveUrl = false;
};
}
#endif // GRAVATARUPDATEDIALOG_H
......@@ -55,11 +55,11 @@ private:
QString mEmail;
QPixmap mPixmap;
QUrl mCurrentUrl;
QLabel *mEmailLab;
QPushButton *mSearchGravatar;
QLabel *mResultGravatar;
QCheckBox *mUseLibravatar;
QCheckBox *mFallbackGravatar;
QLabel *mEmailLab = nullptr;
QPushButton *mSearchGravatar = nullptr;
QLabel *mResultGravatar = nullptr;
QCheckBox *mUseLibravatar = nullptr;
QCheckBox *mFallbackGravatar = 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