Changeset 13718 for trunk/qt/torrent-model.cc
- Timestamp:
- Dec 29, 2012, 9:05:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/torrent-model.cc
r13713 r13718 139 139 { 140 140 QList<Torrent*> newTorrents; 141 QSet<int> oldIds ( getIds( ) );141 QSet<int> oldIds; 142 142 QSet<int> addIds; 143 143 QSet<int> newIds; 144 144 int updatedCount = 0; 145 146 if ( isCompleteList ) 147 oldIds = getIds( ); 145 148 146 149 if( tr_variantIsList( torrents ) ) … … 247 250 248 251 QSet<int> 249 TorrentModel :: getIds( ) const 250 { 251 QSet<int> ids; 252 foreach( const Torrent * tor, myTorrents ) 253 ids.insert( tor->id( ) ); 254 return ids; 252 TorrentModel :: getIds () const 253 { 254 QSet<int> ids; 255 256 ids.reserve (myTorrents.size()); 257 foreach (const Torrent * tor, myTorrents) 258 ids.insert (tor->id()); 259 260 return ids; 255 261 } 256 262
Note: See TracChangeset
for help on using the changeset viewer.