QMdiSubWindow: fix O(n+nlogn) loop to O(n)
No further comment. Change-Id: I2056b97281b5775d59c0ef9b4a5cbf03943a7d6b Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>bb10
parent
cb60c5c66a
commit
8a25f888e9
|
|
@ -1091,8 +1091,8 @@ void QMdiSubWindowPrivate::updateDirtyRegions()
|
|||
if (!parent)
|
||||
return;
|
||||
|
||||
foreach (Operation operation, operationMap.keys())
|
||||
operationMap.find(operation).value().region = getRegion(operation);
|
||||
for (OperationInfoMap::iterator it = operationMap.begin(), end = operationMap.end(); it != end; ++it)
|
||||
it.value().region = getRegion(it.key());
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
|||
Loading…
Reference in New Issue