diff options
author | Jarek Kobus <jaroslaw.kobus@vacuum-cleaner.com> | 2016-12-16 13:39:44 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2017-01-10 12:16:57 +0000 |
commit | 4acf08bbd347d0793f57efb92b7267c5c0b6454c (patch) | |
tree | 48ed557ddcbac14ad5348b73e956505418480ecb /src/assistant/assistant/bookmarkdialog.cpp | |
parent | 8c3946e5f957f5dc5cd1f2e549edd8999f63eeb6 (diff) |
Refactor Assistant's iterators
Replace foreach with for.
Remove java-style iterators.
Don't mix const iterators with non-const ones.
Use std algorithms when possible.
Fix const correctness.
Change-Id: I6519e490b6270f56b54f05867c6def5f140e57cd
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'src/assistant/assistant/bookmarkdialog.cpp')
-rw-r--r-- | src/assistant/assistant/bookmarkdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assistant/assistant/bookmarkdialog.cpp b/src/assistant/assistant/bookmarkdialog.cpp index 16821d8c5..1e47deddf 100644 --- a/src/assistant/assistant/bookmarkdialog.cpp +++ b/src/assistant/assistant/bookmarkdialog.cpp @@ -156,7 +156,7 @@ void BookmarkDialog::accepted() void BookmarkDialog::rejected() { TRACE_OBJ - foreach (const QPersistentModelIndex &index, cache) + for (const QPersistentModelIndex &index : qAsConst(cache)) bookmarkModel->removeItem(index); reject(); } |