forked from qt-creator/qt-creator
Fix clang warnings about copies in range-for constructs
Change-Id: If50553964483626e72a816b1d23fa81b45ed9ca7 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -294,7 +294,7 @@ void ItemLibraryModel::sortSections()
|
||||
|
||||
std::sort(m_sections.begin(), m_sections.end(), sectionSort);
|
||||
|
||||
for (const auto itemLibrarySection : m_sections)
|
||||
for (const auto &itemLibrarySection : qAsConst(m_sections))
|
||||
itemLibrarySection->sortItems();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user