summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-15 13:17:09 +0200
committerMontel Laurent <[email protected]>2017-09-15 13:17:09 +0200
commit48e33bddae07d82fbda194de1256c3131d318c17 (patch)
treed185baba80312df9ec63b09f95683cb0a114fbe2
parent0c73a996b2d1eda755d0b1409ec0fc6d50887194 (diff)
Initialize variables
-rw-r--r--src/libkdepim/progresswidget/progressdialog.cpp2
-rw-r--r--src/libkdepim/progresswidget/progressdialog.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/libkdepim/progresswidget/progressdialog.cpp b/src/libkdepim/progresswidget/progressdialog.cpp
index c228816..bb7bc0a 100644
--- a/src/libkdepim/progresswidget/progressdialog.cpp
+++ b/src/libkdepim/progresswidget/progressdialog.cpp
@@ -256,8 +256,6 @@ void TransactionItem::addSubTransaction(ProgressItem *item)
ProgressDialog::ProgressDialog(QWidget *alignWidget, QWidget *parent)
: OverlayWidget(alignWidget, parent)
- , mShowTypeProgressItem(0)
- , mWasLastShown(false)
{
setFrameStyle(QFrame::Panel | QFrame::Sunken); // QFrame
diff --git a/src/libkdepim/progresswidget/progressdialog.h b/src/libkdepim/progresswidget/progressdialog.h
index e12f155..ec85212 100644
--- a/src/libkdepim/progresswidget/progressdialog.h
+++ b/src/libkdepim/progresswidget/progressdialog.h
@@ -160,8 +160,8 @@ protected:
TransactionItemView *mScrollView = nullptr;
QMap<const ProgressItem *, TransactionItem *> mTransactionsToListviewItems;
- unsigned int mShowTypeProgressItem;
- bool mWasLastShown;
+ unsigned int mShowTypeProgressItem = 0;
+ bool mWasLastShown = false;
};
} // namespace KPIM