Commit 0f61929c authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Use auto for iterators in the item library



Change-Id: Ib6664b1a0609d3f882d8a50f114504ef48e30510
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 72906cc7
......@@ -263,7 +263,7 @@ int ItemLibraryModel::visibleSectionCount() const
{
int visibleCount = 0;
QMap<int, ItemLibrarySection*>::const_iterator sectionIterator = m_sectionModels.constBegin();
auto sectionIterator = m_sectionModels.constBegin();
while (sectionIterator != m_sectionModels.constEnd()) {
ItemLibrarySection *sectionModel = sectionIterator.value();
if (sectionModel->isVisible())
......@@ -278,7 +278,7 @@ QList<ItemLibrarySection *> ItemLibraryModel::visibleSections() const
{
QList<ItemLibrarySection *> visibleSectionList;
QMap<int, ItemLibrarySection*>::const_iterator sectionIterator = m_sectionModels.constBegin();
auto sectionIterator = m_sectionModels.constBegin();
while (sectionIterator != m_sectionModels.constEnd()) {
ItemLibrarySection *sectionModel = sectionIterator.value();
if (sectionModel->isVisible())
......@@ -295,7 +295,7 @@ void ItemLibraryModel::updateVisibility()
endResetModel();
bool changed = false;
QMap<int, ItemLibrarySection*>::const_iterator sectionIterator = m_sectionModels.constBegin();
auto sectionIterator = m_sectionModels.constBegin();
while (sectionIterator != m_sectionModels.constEnd()) {
ItemLibrarySection *sectionModel = sectionIterator.value();
......
Supports Markdown
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