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

initialize pointer

parent 7b419bd1
......@@ -54,9 +54,9 @@ public:
private:
void processPart(KMime::Content *content, KMime::Content *mainContent);
void process(const KMime::Message::Ptr &msg);
Xapian::WritableDatabase *m_db;
Xapian::Document *m_doc;
Xapian::TermGenerator *m_termGen;
Xapian::WritableDatabase *m_db = nullptr;
Xapian::Document *m_doc = nullptr;
Xapian::TermGenerator *m_termGen = nullptr;
};
#endif // AKONOTESINDEXER_H
......@@ -54,11 +54,11 @@ public:
void commit() override;
private:
Xapian::WritableDatabase *m_db;
Xapian::Document *m_doc;
Xapian::TermGenerator *m_termGen;
Xapian::WritableDatabase *m_db = nullptr;
Xapian::Document *m_doc = nullptr;
Xapian::TermGenerator *m_termGen = nullptr;
Xapian::WritableDatabase *m_contactDb;
Xapian::WritableDatabase *m_contactDb = nullptr;
void toggleFlag(Xapian::Document &doc, const char *remove, const char *add);
......
......@@ -86,9 +86,9 @@ private:
QList<AbstractIndexer *> m_listIndexer;
QHash<QString, AbstractIndexer *> m_indexer;
Akonadi::Search::PIM::IndexedItems *m_indexedItems;
Akonadi::Search::PIM::IndexedItems *m_indexedItems = nullptr;
QTimer m_commitTimer;
CollectionIndexer *m_collectionIndexer;
CollectionIndexer *m_collectionIndexer = nullptr;
};
#endif
......@@ -87,7 +87,7 @@ private:
QHash<Akonadi::Collection::Id, QQueue<Akonadi::Item::Id> > m_queues;
QQueue<Akonadi::Collection::Id> m_collectionQueue;
Index &m_index;
KJob *m_currentJob;
KJob *m_currentJob = nullptr;
QTimer m_processTimer;
QHash<Akonadi::Collection::Id, qint64> m_lastModifiedTimestamps;
QSet<Akonadi::Collection::Id> m_dirtyCollections;
......
......@@ -49,10 +49,10 @@ private Q_SLOTS:
void slotError(const QString &errorStr);
private:
QPlainTextEdit *mPlainTextEditor;
AkonadiSearchDebugSearchPathComboBox *mSearchPathComboBox;
KLineEdit *mLineEdit;
QPushButton *mSearchButton;
QPlainTextEdit *mPlainTextEditor = nullptr;
AkonadiSearchDebugSearchPathComboBox *mSearchPathComboBox = nullptr;
KLineEdit *mLineEdit = nullptr;
QPushButton *mSearchButton = nullptr;
};
}
}
......
......@@ -50,7 +50,7 @@ private:
QStringList mArguments;
QString mAkonadiId;
QString mPath;
QProcess *mProcess;
QProcess *mProcess = nullptr;
};
}
}
......
......@@ -37,7 +37,7 @@ public Q_SLOTS:
void defaults() override;
private:
QCheckBox *mQueryCompletionCheckBox;
QCheckBox *mQueryCompletionCheckBox = nullptr;
};
#endif
......@@ -77,7 +77,7 @@ public:
bool haveChanges() const;
private:
Xapian::Database *m_db;
Xapian::Database *m_db = nullptr;
Xapian::WritableDatabase m_wDb;
typedef QPair<Xapian::docid, Xapian::Document> DocIdPair;
......@@ -85,7 +85,7 @@ private:
QVector<uint> m_docsToRemove;
std::string m_path;
bool m_writeOnly;
bool m_writeOnly = false;
Xapian::WritableDatabase createWritableDb();
};
......
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