src/extPrograms.cc

changeset 944
1a6f1997fcbe
parent 882
2f3cc8e045d5
child 945
c310073e4f22
--- a/src/extPrograms.cc	Sat Aug 22 13:51:20 2015 +0300
+++ b/src/extPrograms.cc	Sat Aug 22 15:37:02 2015 +0300
@@ -169,16 +169,16 @@
 //
 static void WriteObjects (const LDObjectList& objects, QFile& f)
 {
-	for (LDObjectPtr obj : objects)
+	for (LDObject* obj : objects)
 	{
 		if (obj->type() == OBJ_Subfile)
 		{
-			LDSubfilePtr ref = obj.staticCast<LDSubfile>();
+			LDSubfilePtr ref = static_cast<LDSubfile*> (obj);
 			LDObjectList objs = ref->inlineContents (true, false);
 
 			WriteObjects (objs, f);
 
-			for (LDObjectPtr obj : objs)
+			for (LDObject* obj : objs)
 				obj->destroy();
 		}
 		else
@@ -220,7 +220,7 @@
 {
 	LDObjectList objects;
 
-	for (LDObjectPtr obj : CurrentDocument()->objects())
+	for (LDObject* obj : CurrentDocument()->objects())
 	{
 		if (not obj->isColored() or obj->color() != color)
 			continue;
@@ -331,7 +331,7 @@
 	// Insert the new objects
 	CurrentDocument()->clearSelection();
 
-	for (LDObjectPtr obj : objs)
+	for (LDObject* obj : objs)
 	{
 		if (not obj->isScemantic())
 		{

mercurial