Fix TODO with qAsConst

Change-Id: I457a51ad5c6069fc8b27e3074296189f1a8087c9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Federico Guerinoni
2020-06-25 06:30:11 +02:00
parent c3ab20ef9c
commit 5e486c601f

View File

@@ -137,13 +137,13 @@ namespace ADS
void hideFloatingWidgets()
{
// Hide updates of floating widgets from user
for (auto floatingWidget : m_floatingWidgets) // TODO qAsConst()
for (auto floatingWidget : qAsConst(m_floatingWidgets))
floatingWidget->hide();
}
void markDockWidgetsDirty()
{
for (auto dockWidget : m_dockWidgetsMap) // TODO qAsConst()
for (auto dockWidget : qAsConst(m_dockWidgetsMap))
dockWidget->setProperty("dirty", true);
}