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

Initialize variables

parent 9e741f61
......@@ -85,7 +85,7 @@ public:
private:
KLDAP::LdapServer mServer;
bool mIsActive;
bool mIsActive = false;
};
KCMLdap::KCMLdap(QWidget *parent, const QVariantList &)
......
......@@ -74,7 +74,7 @@ public:
void slotDataTimer();
void slotFileChanged(const QString &);
LdapClientSearch *q;
LdapClientSearch *q = nullptr;
QList<LdapClient *> mClients;
QStringList mAttributes;
QString mSearchText;
......
......@@ -36,16 +36,9 @@ using namespace KPIM;
MultiplyingLineView::MultiplyingLineView(MultiplyingLineFactory *factory, MultiplyingLineEditor *parent)
: QScrollArea(parent)
, mCurDelLine(nullptr)
, mPage(new QWidget(this))
, mTopLayout(new QVBoxLayout(this))
, mMultiplyingLineFactory(factory)
, mLineHeight(0)
, mFirstColumnWidth(0)
, mCompletionMode(KCompletion::CompletionNone)
, mAutoResize(false)
, mDynamicSizeHint(true)
, mModified(false)
{
setWidgetResizable(true);
setFrameStyle(QFrame::NoFrame);
......
......@@ -123,16 +123,16 @@ protected Q_SLOTS:
private:
QList<MultiplyingLine *> mLines;
QPointer<MultiplyingLine> mCurDelLine;
QPointer<MultiplyingLine> mCurDelLine = nullptr;
QWidget *mPage = nullptr;
QLayout *mTopLayout = nullptr;
MultiplyingLineFactory *mMultiplyingLineFactory = nullptr;
int mLineHeight;
int mFirstColumnWidth;
KCompletion::CompletionMode mCompletionMode;
bool mAutoResize;
bool mDynamicSizeHint;
bool mModified;
int mLineHeight = 0;
int mFirstColumnWidth = 0;
KCompletion::CompletionMode mCompletionMode = KCompletion::CompletionNone;
bool mAutoResize = false;
bool mDynamicSizeHint = true;
bool mModified = false;
};
}
......
......@@ -241,17 +241,17 @@ private:
QString mLabel;
QString mStatus;
QPointer<ProgressItem> mParent;
bool mCanBeCanceled;
unsigned int mProgress;
bool mCanBeCanceled = false;
unsigned int mProgress = 0;
ProgressItemMap mChildren;
unsigned int mTotal;
unsigned int mCompleted;
unsigned int mTotal = 0;
unsigned int mCompleted = 0;
CryptoStatus mCryptoStatus;
unsigned int mType;
bool mWaitingForKids;
bool mCanceled;
bool mUsesBusyIndicator;
bool mCompletedCalled;
unsigned int mType = 0;
bool mWaitingForKids = false;
bool mCanceled = false;
bool mUsesBusyIndicator = false;
bool mCompletedCalled = false;
};
struct ProgressManagerPrivate;
......
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