src/ldtypes.cpp

changeset 269
2d71227f35cb
parent 268
778eed342ee4
child 270
f5f2353af0d9
--- a/src/ldtypes.cpp	Sat Jun 01 21:36:03 2013 +0300
+++ b/src/ldtypes.cpp	Sat Jun 01 22:01:27 2013 +0300
@@ -81,7 +81,7 @@
 	str val = fmt ("1 %d %s ", color (), position ().stringRep (false).chars ());
 	val += transform ().stringRep ();
 	val += ' ';
-	val += fileName;
+	val += fileInfo ()->name ();
 	return val;
 }
 
@@ -262,14 +262,14 @@
 	vector<LDObject*> objs, objcache;
 	
 	// If we have this cached, just clone that
-	if (deep && fileInfo->cache ().size ()) {
-		for (LDObject* obj : fileInfo->cache ())
+	if (deep && fileInfo ()->cache ().size ()) {
+		for (LDObject* obj : fileInfo ()->cache ())
 			objs << obj->clone ();
 	} else {
 		if (!deep)
 			cache = false;
 		
-		for (LDObject* obj : fileInfo->objs ()) {
+		for (LDObject* obj : *fileInfo ()) {
 			// Skip those without schemantic meaning
 			switch (obj->getType ()) {
 			case LDObject::Comment:
@@ -313,7 +313,7 @@
 		}
 		
 		if (cache)
-			fileInfo->setCache (objcache);
+			fileInfo ()->setCache (objcache);
 	}
 	
 	// Transform the objects

mercurial