src/partDownloader.cc

changeset 944
1a6f1997fcbe
parent 888
7ad8fb667084
child 945
c310073e4f22
--- a/src/partDownloader.cc	Sat Aug 22 13:51:20 2015 +0300
+++ b/src/partDownloader.cc	Sat Aug 22 15:37:02 2015 +0300
@@ -501,11 +501,11 @@
 	// from unknown file references, try resolve that by downloading the reference.
 	// This is why downloading a part may end up downloading multiple files, as
 	// it resolves dependencies.
-	for (LDObjectPtr obj : f->objects())
+	for (LDObject* obj : f->objects())
 	{
-		LDErrorPtr err = obj.dynamicCast<LDError>();
+		LDErrorPtr err = dynamic_cast<LDError*> (obj);
 
-		if ((err == null) or (err->fileReferenced().isEmpty()))
+		if (err == null or err->fileReferenced().isEmpty())
 			continue;
 
 		QString dest = err->fileReferenced();

mercurial