diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-20 21:34:49 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-06-21 11:43:58 +0000 |
commit | 8a25f888e947d406f69759b51732bdfc041d5707 (patch) | |
tree | 0698d91e25984042518e9130cd79f220818d8092 /src/widgets/widgets/qmdisubwindow.cpp | |
parent | cb60c5c66ae9460352e51d063af6261d4cc76d38 (diff) |
QMdiSubWindow: fix O(n+nlogn) loop to O(n)
No further comment.
Change-Id: I2056b97281b5775d59c0ef9b4a5cbf03943a7d6b
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/widgets/qmdisubwindow.cpp')
-rw-r--r-- | src/widgets/widgets/qmdisubwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/widgets/qmdisubwindow.cpp b/src/widgets/widgets/qmdisubwindow.cpp index 1808030639..c3b31ea5a4 100644 --- a/src/widgets/widgets/qmdisubwindow.cpp +++ b/src/widgets/widgets/qmdisubwindow.cpp @@ -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()); } /*! |