src/file.cpp

changeset 252
3f9067022d74
parent 251
c4b96bc41298
child 253
0737c217a54d
--- a/src/file.cpp	Fri May 24 15:23:56 2013 +0300
+++ b/src/file.cpp	Fri May 24 15:38:23 2013 +0300
@@ -216,7 +216,7 @@
 				(*m_warningsPointer)++;
 		}
 		
-		m_objs.push_back (obj);
+		m_objs << obj;
 		m_progress++;
 		emit progressUpdate (m_progress);
 		
@@ -334,7 +334,7 @@
 		load->addObject (obj);
 	
 	fclose (fp);
-	g_loadedFiles.push_back (load);
+	g_loadedFiles << load;
 	
 	logf ("File %s parsed successfully (%lu warning%s).\n",
 		path.chars(), numWarnings, plural (numWarnings));
@@ -419,7 +419,7 @@
 	LDOpenFile* f = new LDOpenFile;
 	f->setName ("");
 	f->setImplicit (false);
-	g_loadedFiles.push_back (f);
+	g_loadedFiles << f;
 	g_curfile = f;
 	
 	History::clear ();
@@ -791,7 +791,7 @@
 			delete file;
 	
 	g_loadedFiles.clear ();
-	g_loadedFiles.push_back (g_curfile);
+	g_loadedFiles << g_curfile;
 	
 	// Go through all objects in the current file and reload the subfiles
 	for (LDObject* obj : g_curfile->objs ()) {
@@ -819,7 +819,7 @@
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
 ulong LDOpenFile::addObject (LDObject* obj) {
-	m_objs.push_back (obj);
+	m_objs << obj;
 	
 	if (this == g_curfile)
 		g_BBox.calcObject (obj);
@@ -909,7 +909,7 @@
 		partListEntry entry;
 		strcpy (entry.sName, sName);
 		strcpy (entry.sTitle, sTitle);
-		g_PartList.push_back (entry);
+		g_PartList << entry;
 	}
 }
 

mercurial