Commit 168508e8 authored by David Schulz's avatar David Schulz
Browse files

Revert "DocumentModel: Simplify code by using Utils::equal"

Doesn't compile on MSVC 12.

This reverts commit b932a61d


Change-Id: I18a875deb5dd67914ff71ab3daeec318c98794a9
Reviewed-by: default avatarDaniel Teske <>
parent dd76f048
......@@ -469,7 +469,8 @@ int DocumentModelPrivate::indexOfDocument(IDocument *document) const
DocumentModel::Entry *DocumentModel::entryForDocument(IDocument *document)
return Utils::findOrDefault(d->m_entries, Utils::equal(&Entry::document, document));
return Utils::findOrDefault(d->m_entries,
[&document](Entry *entry) { return entry->document == document; });
QList<IDocument *> DocumentModel::openedDocuments()
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