diff options
| author | Renato Araujo Oliveira Filho <[email protected]> | 2017-11-16 12:32:49 -0300 |
|---|---|---|
| committer | Renato Araujo Oliveira Filho <[email protected]> | 2017-12-14 09:40:34 -0300 |
| commit | da6f8fe0862585287153f0d90e19eab0b34bfbef (patch) | |
| tree | 75fcb68ef19e54d7c5f6209636a30e1968ef9b87 /src/kitemviews | |
| parent | 8cea647ce11dbc8bb009f8a16adaaa94be3dcfb1 (diff) | |
Use Kio::KPlacesModel as source model for PlacesItemModel
Summary:
Use Kio::KPlacesModel as source model for PlacesItemModel avoiding
duplicated code.
Depends on D8862
Depends on D8332
Depends on D8434
Depends on D8348
Depends on D8630
Test Plan: Unit test created
Reviewers: elvisangelaccio, emmanuelp, mlaurent, mwolff
Reviewed By: elvisangelaccio, mlaurent, mwolff
Subscribers: mwolff, mlaurent, anthonyfieroni, nicolasfella, ngraham, #dolphin
Differential Revision: https://phabricator.kde.org/D8855
Diffstat (limited to 'src/kitemviews')
| -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 08520c9f6..634e70399 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -2373,7 +2373,7 @@ bool KFileItemModel::isConsistent() const return false; } - for (int i = 0; i < count(); ++i) { + for (int i = 0, iMax = count(); i < iMax; ++i) { // Check if m_items and m_itemData are consistent. const KFileItem item = fileItem(i); if (item.isNull()) { |
