config.cpp

changeset 146
2ab24976acaa
parent 104
6e29bb0e83c5
child 161
c9fba92c4e35
--- a/config.cpp	Sat Apr 27 16:22:35 2013 +0300
+++ b/config.cpp	Sun Apr 28 04:04:36 2013 +0300
@@ -121,7 +121,7 @@
 				break;
 		}
 		
-		switch (const_cast<config*> (cfg)->getType()) {
+		switch (cfg->getType()) {
 		case CONFIG_int:
 			static_cast<intconfig*> (cfg)->value = atoi (valstring.chars());
 			break;

mercurial