| 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(); |