src/config.cpp

changeset 21
99225eac33ba
parent 20
a5457405cc9b
child 25
256bb5c6b77f
--- a/src/config.cpp	Sun Sep 08 16:14:58 2013 +0300
+++ b/src/config.cpp	Sun Sep 08 16:53:31 2013 +0300
@@ -84,10 +84,10 @@
 	m_releaseLayout = new QFormLayout (ui->zandronumVersions);
 	m_testLayout = new QFormLayout (ui->betaVersions);
 	
-	for (const var& ver : cfg::devBuildNames)
+	for (const QVariant& ver : cfg::devBuildNames)
 		addVersion (ver.toString(), false);
 	
-	for (const var& rel : cfg::releaseNames)
+	for (const QVariant& rel : cfg::releaseNames)
 		addVersion (rel.toString(), true);
 }
 
@@ -118,12 +118,12 @@
 void ConfigBox::initFromSettings() {
 	ui->wad_pathsList->clear();
 	
-	for (const var& it : cfg::wadpaths)
+	for (const QVariant& it : cfg::wadpaths)
 		addPath (it.toString());
 	
 	int i = 0;
 	
-	for (const var& ver : getVersions())
+	for (const QVariant& ver : getVersions())
 		m_zanBinaries[i++]->setText (cfg::binaryPaths[ver.toString()].toString());
 	
 	ui->noDemoPrompt->setChecked (cfg::noprompt);
@@ -141,7 +141,7 @@
 	cfg::noprompt = ui->noDemoPrompt->isChecked();
 	
 	int i = 0;
-	for (const var& ver : getVersions())
+	for (const QVariant& ver : getVersions())
 		cfg::binaryPaths[ver.toString()] = m_zanBinaries[i++]->text();
 	
 	cfg::save();

mercurial