forked from qt-creator/qt-creator
Locator: Cleanup and modernize Locator and filters
* Omit QLatin1{Char|String} * Use member initialization * Use range-based-for (and fixed the cases with non-const Qt container) * Sort includes to common style Change-Id: Ibc33a732bb153862efd6d5febfac758229cb61d4 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
André Hartmann
parent
ccc0bebcf4
commit
b2aa1b9845
@@ -55,7 +55,7 @@ void CppLocatorData::onDocumentUpdated(const CPlusPlus::Document::Ptr &document)
|
||||
}
|
||||
}
|
||||
|
||||
if (i == ei && QFileInfo(document->fileName()).suffix() != QLatin1String("moc"))
|
||||
if (i == ei && QFileInfo(document->fileName()).suffix() != "moc")
|
||||
m_pendingDocuments.append(document);
|
||||
|
||||
flushPendingDocument(false);
|
||||
|
Reference in New Issue
Block a user