Commit 56e2a2e9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add nullptr

parent d2ff38fd
......@@ -112,14 +112,14 @@ protected:
};
struct TagWidgetPrivate {
TagWidget *q;
TagWidget *q = nullptr;
TagInfo mTagInfo;
QListView *mListView;
QComboBox *mComboBox;
QPushButton *mAddButton;
AbstractSemanticInfoBackEnd *mBackEnd;
TagCompleterModel *mTagCompleterModel;
TagModel *mAssignedTagModel;
QListView *mListView = nullptr;
QComboBox *mComboBox = nullptr;
QPushButton *mAddButton = nullptr;
AbstractSemanticInfoBackEnd *mBackEnd = nullptr;
TagCompleterModel *mTagCompleterModel = nullptr;
TagModel *mAssignedTagModel = nullptr;
void setupWidgets()
{
......
......@@ -51,15 +51,15 @@ struct TouchPrivate {
qreal mRotationThreshold;
qint64 mLastTouchTimeStamp;
TapHoldAndMovingRecognizer *mTapHoldAndMovingRecognizer;
TapHoldAndMovingRecognizer *mTapHoldAndMovingRecognizer = nullptr;
Qt::GestureType mTapHoldAndMoving;
TwoFingerPanRecognizer *mTwoFingerPanRecognizer;
TwoFingerPanRecognizer *mTwoFingerPanRecognizer = nullptr;
Qt::GestureType mTwoFingerPan;
OneAndTwoFingerSwipeRecognizer *mOneAndTwoFingerSwipeRecognizer;
OneAndTwoFingerSwipeRecognizer *mOneAndTwoFingerSwipeRecognizer = nullptr;
Qt::GestureType mOneAndTwoFingerSwipe;
DoubleTapRecognizer *mDoubleTapRecognizer;
DoubleTapRecognizer *mDoubleTapRecognizer = nullptr;
Qt::GestureType mDoubleTap;
TwoFingerTapRecognizer *mTwoFingerTapRecognizer;
TwoFingerTapRecognizer *mTwoFingerTapRecognizer = nullptr;
Qt::GestureType mTwoFingerTap;
};
......
......@@ -35,7 +35,7 @@ class GVBrowserExtension : public KParts::BrowserExtension
{
Q_OBJECT
public:
GVBrowserExtension(KParts::ReadOnlyPart *);
explicit GVBrowserExtension(KParts::ReadOnlyPart *);
~GVBrowserExtension() override;
private Q_SLOTS:
......
......@@ -51,7 +51,7 @@ private Q_SLOTS:
void showJobError(KJob *);
private:
DocumentView *mDocumentView;
DocumentView *mDocumentView = nullptr;
};
} // namespace
......
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