forked from qt-creator/qt-creator
ClangCodeModel: Fix compile on older compilers
Avoid digraph "<:" in template specialization. Change-Id: Ia6fac2639458fe98b662a5e033538c15e8df5aa7 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
449e2dcadc
commit
3b9a65f210
@@ -74,12 +74,12 @@ UnsavedFiles createUnsavedFiles(WorkingCopy workingCopy)
|
|||||||
// TODO: change the modelmanager to hold one working copy, and amend it every time we ask for one.
|
// TODO: change the modelmanager to hold one working copy, and amend it every time we ask for one.
|
||||||
// TODO: Reason: the UnsavedFile needs a QByteArray.
|
// TODO: Reason: the UnsavedFile needs a QByteArray.
|
||||||
|
|
||||||
QSet<::Utils::FileName> modifiedFiles;
|
QSet< ::Utils::FileName> modifiedFiles;
|
||||||
foreach (IDocument *doc, Core::DocumentManager::modifiedDocuments())
|
foreach (IDocument *doc, Core::DocumentManager::modifiedDocuments())
|
||||||
modifiedFiles.insert(::Utils::FileName::fromString(doc->filePath()));
|
modifiedFiles.insert(::Utils::FileName::fromString(doc->filePath()));
|
||||||
|
|
||||||
UnsavedFiles result;
|
UnsavedFiles result;
|
||||||
QHashIterator<::Utils::FileName, QPair<QByteArray, unsigned> > wcIter = workingCopy.iterator();
|
QHashIterator< ::Utils::FileName, QPair<QByteArray, unsigned> > wcIter = workingCopy.iterator();
|
||||||
while (wcIter.hasNext()) {
|
while (wcIter.hasNext()) {
|
||||||
wcIter.next();
|
wcIter.next();
|
||||||
const ::Utils::FileName &fileName = wcIter.key();
|
const ::Utils::FileName &fileName = wcIter.key();
|
||||||
|
|||||||
Reference in New Issue
Block a user