src/download.cpp

changeset 484
5b5c77c7f3dd
parent 482
5e96648f416f
child 491
7d1b5ecd76c0
equal deleted inserted replaced
483:138b7c5c3c59 484:5b5c77c7f3dd
411 411
412 // Iterate through this file and check for errors. If there's any that stems 412 // Iterate through this file and check for errors. If there's any that stems
413 // from unknown file references, try resolve that by downloading the reference. 413 // from unknown file references, try resolve that by downloading the reference.
414 // This is why downloading a part may end up downloading multiple files, as 414 // This is why downloading a part may end up downloading multiple files, as
415 // it resolves dependencies. 415 // it resolves dependencies.
416 for (LDObject* obj : *f) { 416 for (LDObject* obj : f->objects()) {
417 LDError* err = dynamic_cast<LDError*> (obj); 417 LDError* err = dynamic_cast<LDError*> (obj);
418 if (!err || err->fileRef().isEmpty()) 418 if (!err || err->fileRef().isEmpty())
419 continue; 419 continue;
420 420
421 str dest = err->fileRef(); 421 str dest = err->fileRef();

mercurial