ProjectTree: Use Utils::equal

Change-Id: Id95f97a61e2ec5d3e0e9b2f3d1e28adfb1002df0
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Eike Ziller
2016-03-11 10:59:12 +01:00
parent a1926727cd
commit 7cc1ee395d

View File

@@ -387,9 +387,7 @@ void ProjectTree::emitFilesAdded(FolderNode *folder)
Core::IDocument *document = Core::EditorManager::currentDocument();
const FileName fileName = document ? document->filePath() : FileName();
int index = Utils::indexOf(m_filesAdded, [&fileName](FileNode *node) {
return node->filePath() == fileName;
});
int index = Utils::indexOf(m_filesAdded, Utils::equal(&FileNode::filePath, fileName));
if (index == -1)
return;