forked from qt-creator/qt-creator
ClassView: Use only const pointers to ParserTreeItems
There is no need to use non-const pointers anymore. This also ensures, that after generating the tree data in the non-gui thread no-one modifies already created items. Task-number: QTCREATORBUG-25317 Change-Id: I91f63da8f57ae9798587265adc029ebd0c68504e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -68,13 +68,13 @@ private:
|
||||
|
||||
ParserTreeItem::ConstPtr getParseDocumentTree(const CPlusPlus::Document::Ptr &doc);
|
||||
ParserTreeItem::ConstPtr getCachedOrParseDocumentTree(const CPlusPlus::Document::Ptr &doc);
|
||||
ParserTreeItem::Ptr getParseProjectTree(const QStringList &fileList, const QString &projectId);
|
||||
ParserTreeItem::Ptr getCachedOrParseProjectTree(const QStringList &fileList,
|
||||
ParserTreeItem::ConstPtr getParseProjectTree(const QStringList &fileList, const QString &projectId);
|
||||
ParserTreeItem::ConstPtr getCachedOrParseProjectTree(const QStringList &fileList,
|
||||
const QString &projectId);
|
||||
ParserTreeItem::ConstPtr parse();
|
||||
|
||||
QStringList getAllFiles(const ProjectExplorer::Project *project);
|
||||
ParserTreeItem::Ptr addFlatTree(const ProjectExplorer::Project *project);
|
||||
ParserTreeItem::ConstPtr addFlatTree(const ProjectExplorer::Project *project);
|
||||
|
||||
//! Private class data pointer
|
||||
ParserPrivate *d;
|
||||
|
||||
Reference in New Issue
Block a user