Commit 43309a43 authored by Laurent Montel's avatar Laurent Montel 😁

Initialize pointer here too

parent fc05f6df
......@@ -37,7 +37,7 @@ class LdapClient;
*/
struct LdapResultObject {
typedef QVector<LdapResultObject> List;
const LdapClient *client;
const LdapClient *client = nullptr;
KLDAP::LdapObject object;
};
......
......@@ -321,7 +321,7 @@ bool MultiplyingLineView::isModified() const
}
QListIterator<MultiplyingLine *> it(mLines);
MultiplyingLine *line;
MultiplyingLine *line = nullptr;
while (it.hasNext()) {
line = it.next();
if (line->isModified()) {
......
......@@ -793,8 +793,8 @@ void KPrefsDialog::autoCreate()
for (it = items.constBegin(); it != items.constEnd(); ++it) {
QString group = (*it)->group();
QWidget *page;
QGridLayout *layout;
QWidget *page = nullptr;
QGridLayout *layout = nullptr;
int currentRow;
if (!mGroupPages.contains(group)) {
page = new QWidget(this);
......
......@@ -112,9 +112,9 @@ public:
QList<QWidget *> widgets() const override;
private:
KConfigSkeleton::ItemBool *mItem;
KConfigSkeleton::ItemBool *mItem = nullptr;
QCheckBox *mCheck;
QCheckBox *mCheck = nullptr;
};
/**
......@@ -153,10 +153,10 @@ public:
QList<QWidget *> widgets() const override;
private:
KConfigSkeleton::ItemInt *mItem;
KConfigSkeleton::ItemInt *mItem = nullptr;
QLabel *mLabel;
QSpinBox *mSpin;
QLabel *mLabel = nullptr;
QSpinBox *mSpin = nullptr;
};
/**
......@@ -192,10 +192,10 @@ public:
void writeConfig() override;
private:
KConfigSkeleton::ItemDateTime *mItem;
KConfigSkeleton::ItemDateTime *mItem = nullptr;
QLabel *mLabel;
KTimeComboBox *mTimeEdit;
QLabel *mLabel = nullptr;
KTimeComboBox *mTimeEdit = nullptr;
};
/**
......@@ -232,10 +232,10 @@ public:
void writeConfig() override;
private:
KConfigSkeleton::ItemDateTime *mItem;
KConfigSkeleton::ItemDateTime *mItem = nullptr;
QLabel *mLabel;
QTimeEdit *mTimeEdit;
QLabel *mLabel = nullptr;
QTimeEdit *mTimeEdit = nullptr;
};
/**
......@@ -271,10 +271,10 @@ public:
void writeConfig() override;
private:
KConfigSkeleton::ItemDateTime *mItem;
KConfigSkeleton::ItemDateTime *mItem = nullptr;
QLabel *mLabel;
KDateComboBox *mDateEdit;
QLabel *mLabel = nullptr;
KDateComboBox *mDateEdit = nullptr;
};
/**
......@@ -315,10 +315,10 @@ public:
void writeConfig() override;
private:
KConfigSkeleton::ItemColor *mItem;
KConfigSkeleton::ItemColor *mItem = nullptr;
QLabel *mLabel;
KColorButton *mButton;
QLabel *mLabel = nullptr;
KColorButton *mButton = nullptr;
};
/**
......@@ -367,11 +367,11 @@ protected Q_SLOTS:
void selectFont();
private:
KConfigSkeleton::ItemFont *mItem;
KConfigSkeleton::ItemFont *mItem = nullptr;
QLabel *mLabel;
QLabel *mPreview;
QPushButton *mButton;
QLabel *mLabel = nullptr;
QLabel *mPreview = nullptr;
QPushButton *mButton = nullptr;
};
/**
......@@ -420,10 +420,10 @@ public:
QList<QWidget *> widgets() const override;
private:
KConfigSkeleton::ItemEnum *mItem;
KConfigSkeleton::ItemEnum *mItem = nullptr;
QGroupBox *mBox;
QButtonGroup *mGroup;
QGroupBox *mBox = nullptr;
QButtonGroup *mGroup = nullptr;
};
/**
......@@ -462,9 +462,9 @@ public:
QLabel *label() const;
private:
KConfigSkeleton::ItemEnum *mItem;
KComboBox *mCombo;
QLabel *mLabel;
KConfigSkeleton::ItemEnum *mItem = nullptr;
KComboBox *mCombo = nullptr;
QLabel *mLabel = nullptr;
};
/**
......@@ -507,10 +507,10 @@ public:
QList<QWidget *> widgets() const override;
private:
KConfigSkeleton::ItemString *mItem;
KConfigSkeleton::ItemString *mItem = nullptr;
QLabel *mLabel;
KLineEdit *mEdit;
QLabel *mLabel = nullptr;
KLineEdit *mEdit = nullptr;
};
/**
......@@ -556,10 +556,10 @@ public:
QList<QWidget *> widgets() const override;
private:
KConfigSkeleton::ItemPath *mItem;
KConfigSkeleton::ItemPath *mItem = nullptr;
QLabel *mLabel;
KUrlRequester *mURLRequester;
QLabel *mLabel = nullptr;
KUrlRequester *mURLRequester = nullptr;
};
/**
......@@ -708,7 +708,7 @@ public:
void writeWidConfig();
private:
KConfigSkeleton *mPrefs;
KConfigSkeleton *mPrefs = nullptr;
QList<KPrefsWid *> mPrefsWids;
};
......
......@@ -72,7 +72,7 @@ protected:
void resizeEvent(QResizeEvent *event) override;
private:
QWidget *mBigBox;
QWidget *mBigBox = nullptr;
};
class TransactionItem : public QWidget
......@@ -113,13 +113,13 @@ public Q_SLOTS:
void slotItemCanceled();
protected:
QProgressBar *mProgress;
QPushButton *mCancelButton;
QLabel *mItemLabel;
QLabel *mItemStatus;
QFrame *mFrame;
SSLLabel *mSSLLabel;
ProgressItem *mItem;
QProgressBar *mProgress = nullptr;
QPushButton *mCancelButton = nullptr;
QLabel *mItemLabel = nullptr;
QLabel *mItemStatus = nullptr;
QFrame *mFrame = nullptr;
SSLLabel *mSSLLabel = nullptr;
ProgressItem *mItem = nullptr;
};
class KDEPIM_EXPORT ProgressDialog : public OverlayWidget
......
......@@ -52,7 +52,7 @@ private Q_SLOTS:
private:
bool check(const QString &, QString, QString);
KLDAP::LdapClient *mClient;
KLDAP::LdapClient *mClient = nullptr;
};
#endif
......@@ -40,7 +40,7 @@ using namespace KPIM;
namespace KPIM {
class Q_DECL_HIDDEN KCheckComboBox::Private
{
KCheckComboBox *q;
KCheckComboBox *q = nullptr;
public:
Private(KCheckComboBox *qq)
......
......@@ -139,7 +139,7 @@ private:
QString mSearchString;
QList<KJob *> mMightBeGroupJobs;
KContacts::ContactGroup::List mGroups;
KConfig *mRecentAddressConfig;
KConfig *mRecentAddressConfig = nullptr;
bool mUseCompletion;
bool mCompletionInitialized;
bool mSmartPaste;
......
......@@ -225,7 +225,7 @@ public:
}
private:
CompletionItem *mItem;
CompletionItem *mItem = nullptr;
};
CompletionOrderWidget::CompletionOrderWidget(QWidget *parent)
......
......@@ -50,8 +50,8 @@ Q_SIGNALS:
void wasUpdated();
private:
KPIM::AddresseeLineEdit *mLinedit;
bool mEnabled;
KPIM::AddresseeLineEdit *mLinedit = nullptr;
bool mEnabled = false;
};
}
......
......@@ -138,9 +138,9 @@ public:
AddContactJob *q;
KContacts::Addressee mContact;
QWidget *mParentWidget;
QWidget *mParentWidget = nullptr;
Akonadi::Collection mCollection;
bool mShowMessageBox;
bool mShowMessageBox = false;
};
AddContactJob::AddContactJob(const KContacts::Addressee &contact, QWidget *parentWidget, QObject *parent)
......
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