Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/plugins/todo/cpptodoitemsscanner.cpp b/src/plugins/todo/cpptodoitemsscanner.cpp
- index 9f60e62..04aefdb 100644
- --- a/src/plugins/todo/cpptodoitemsscanner.cpp
- +++ b/src/plugins/todo/cpptodoitemsscanner.cpp
- @@ -53,7 +53,7 @@ bool CppTodoItemsScanner::shouldProcessFile(const QString &fileName)
- CPlusPlus::CppModelManagerInterface *modelManager = CPlusPlus::CppModelManagerInterface::instance();
- foreach (const CPlusPlus::CppModelManagerInterface::ProjectInfo &info, modelManager->projectInfos())
- - if (info.project->files(ProjectExplorer::Project::ExcludeGeneratedFiles).contains(fileName))
- + if (info.project().data()->files(ProjectExplorer::Project::ExcludeGeneratedFiles).contains(fileName))
- return true;
- return false;
- @@ -68,7 +68,7 @@ void CppTodoItemsScanner::keywordListChanged()
- QStringList filesToBeUpdated;
- foreach (const CPlusPlus::CppModelManagerInterface::ProjectInfo &info, modelManager->projectInfos())
- - filesToBeUpdated << info.project->files(ProjectExplorer::Project::ExcludeGeneratedFiles);
- + filesToBeUpdated << info.project().data()->files(ProjectExplorer::Project::ExcludeGeneratedFiles);
- modelManager->updateSourceFiles(filesToBeUpdated);
- }
- diff --git a/src/plugins/todo/todoitemsprovider.cpp b/src/plugins/todo/todoitemsprovider.cpp
- index 5e3dda2..54c2799 100644
- --- a/src/plugins/todo/todoitemsprovider.cpp
- +++ b/src/plugins/todo/todoitemsprovider.cpp
- @@ -79,7 +79,7 @@ void TodoItemsProvider::updateList()
- // Show only items of the current file if any
- if (m_settings.scanningScope == ScanningScopeCurrentFile) {
- if (m_currentEditor)
- - m_itemsList = m_itemsHash.value(m_currentEditor->file()->fileName());
- + m_itemsList = m_itemsHash.value(m_currentEditor->document()->fileName());
- }
- // Show only items of the startup project if any
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement