zz_setContentsDialog.cpp

changeset 16
7e604baff022
parent 15
a78ccb3976b6
child 19
6c5977e43e73
equal deleted inserted replaced
15:a78ccb3976b6 16:7e604baff022
64 LDObject* oldobj = obj; 64 LDObject* oldobj = obj;
65 65
66 // Reinterpret it from the text of the input field 66 // Reinterpret it from the text of the input field
67 obj = ParseLine (dlg.qContents->text ().toStdString ().c_str ()); 67 obj = ParseLine (dlg.qContents->text ().toStdString ().c_str ());
68 68
69 printf ("object re-parsed, new type: %s\n", g_saObjTypeNames[obj->getType ()]);
70
71 // Remove the old object 69 // Remove the old object
72 delete oldobj; 70 delete oldobj;
73 71
74 // Replace all instances of the old object with the new object 72 // Replace all instances of the old object with the new object
75 for (ulong i = 0; i < g_CurrentFile->objects.size(); ++i) { 73 for (ulong i = 0; i < g_CurrentFile->objects.size(); ++i) {

mercurial