diff options
| author | Frank Reininghaus <[email protected]> | 2013-07-28 23:36:43 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2013-07-28 23:36:43 +0200 |
| commit | 15107c780ccc84d4c7bb33e674b519d692348746 (patch) | |
| tree | f080212c5a6d54f161438fa269a0ac562d74e3b5 /src | |
| parent | 32bf4827c45faf432593eb03432118e5436dded5 (diff) | |
Do not convert a KUrl to a QString and back again
This small change saves a lot of CPU cycles when the items are resorted.
REVIEW: 111700
Diffstat (limited to 'src')
| -rw-r--r-- | src/kitemviews/kfileitemmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index d174cf67f..1b4911dec 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -702,7 +702,7 @@ void KFileItemModel::resortAllItems() QList<int> movedToIndexes; movedToIndexes.reserve(itemCount); for (int i = 0; i < itemCount; i++) { - const int newIndex = m_items.value(oldUrls.at(i).url()); + const int newIndex = m_items.value(oldUrls.at(i)); movedToIndexes.append(newIndex); } |
