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

Initialize pointer

parent bb2b17ad
......@@ -259,7 +259,7 @@ bool FakeAkonadiServer::quit()
}
PreprocessorManager::done();
SearchManager::instance();
(void)SearchManager::instance();
if (mDataStore) {
mDataStore->close();
......
......@@ -49,6 +49,7 @@ void AgentSearchInterfacePrivate::delayedInit()
QStringLiteral("org.freedesktop.Akonadi.SearchManager"),
QDBusConnection::sessionBus(), this);
QDBusMessage msg = iface.call(QStringLiteral("registerInstance"), dynamic_cast<AgentBase *>(q)->identifier());
//TODO ?
}
void AgentSearchInterfacePrivate::addSearch(const QString &query, const QString &queryLanguage, quint64 resultCollectionId)
......
......@@ -244,10 +244,10 @@ public:
return mContextTexts[type].value(context);
}
AgentActionManager *q;
KActionCollection *mActionCollection;
QWidget *mParentWidget;
QItemSelectionModel *mSelectionModel;
AgentActionManager *q = nullptr;
KActionCollection *mActionCollection = nullptr;
QWidget *mParentWidget = nullptr;
QItemSelectionModel *mSelectionModel = nullptr;
QVector<QAction *> mActions;
QStringList mMimeTypeFilter;
QStringList mCapabilityFilter;
......
......@@ -81,7 +81,7 @@ public:
}
}
CollectionPropertiesDialog *q;
CollectionPropertiesDialog *q = nullptr;
Collection mCollection;
QStringList mPageNames;
QTabWidget *mTabWidget = nullptr;
......
......@@ -58,7 +58,7 @@ public:
void _k_collectionReceived(KJob *job);
void _k_collectionsNamesReceived(KJob *job);
CollectionRequester *q;
CollectionRequester *q = nullptr;
Collection collection;
QLineEdit *edit = nullptr;
QPushButton *button = nullptr;
......
......@@ -191,7 +191,7 @@ public:
private:
Q_DISABLE_COPY(PainterStateSaver)
QPainter *mPainter;
QPainter *mPainter = nullptr;
};
void CollectionStatisticsDelegate::paint(QPainter *painter,
......
......@@ -41,7 +41,7 @@ struct Q_DECL_HIDDEN TagManagementDialog::Private {
}
void writeConfig();
void readConfig();
QDialog *d;
QDialog *d = nullptr;
QDialogButtonBox *buttonBox = nullptr;
};
......
......@@ -35,8 +35,8 @@ public:
init();
}
void init();
TagSelectWidget *mParent;
Akonadi::TagEditWidget *mTagEditWidget;
TagSelectWidget *mParent = nullptr;
Akonadi::TagEditWidget *mTagEditWidget = nullptr;
};
void TagSelectWidget::Private::init()
......
......@@ -39,15 +39,13 @@ class Q_DECL_HIDDEN TagWidget::Private
{
public:
Private()
: mTagView(nullptr),
mModel(nullptr)
{
}
TagView *mTagView;
Akonadi::Tag::List mTags;
Akonadi::TagModel *mModel;
TagView *mTagView = nullptr;
Akonadi::TagModel *mModel = nullptr;
};
TagView::TagView(QWidget *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