Code optimization

This commit is contained in:
Christophe Dumez
2011-04-21 18:57:43 +00:00
parent 284fbf5512
commit 8589eb7c0f
2 changed files with 3 additions and 1 deletions

View File

@@ -420,6 +420,8 @@ QStringList QTorrentHandle::absolute_files_path_uneeded() const {
QDir saveDir(save_path());
QStringList res;
std::vector<int> fp = torrent_handle::file_priorities();
qDebug() << fp.size() << num_files();
Q_ASSERT(fp.size() == num_files());
for(int i = 0; i < num_files(); ++i) {
if(fp[i] == 0) {
const QString file_path = QDir::cleanPath(saveDir.absoluteFilePath(filepath_at(i)));