diff -r 05b0e8d057a6 -r 9c061834b33b gui/new_map_win.cc --- a/gui/new_map_win.cc Fri Jan 06 14:44:04 2006 +0000 +++ b/gui/new_map_win.cc Fri Jan 06 16:07:08 2006 +0000 @@ -114,13 +114,7 @@ } else { - char * def_val_ch=new char [(int)(ch2var[ polishform[i] ].length())]; - for(int j=0;j<(int)(ch2var[ polishform[i] ].length());j++) - { - def_val_ch[j]=ch2var[ polishform[i] ][j]; - } - polishstack.push(atof(def_val_ch)); - delete def_val_ch; + polishstack.push(atof(ch2var[ polishform[i] ].c_str())); } operation=false; break; @@ -201,13 +195,7 @@ } else { - char * def_val_ch=new char [(int)(ch2var[ polishform[i] ].length())]; - for(int j=0;j<(int)(ch2var[ polishform[i] ].length());j++) - { - def_val_ch[j]=ch2var[ polishform[i] ][j]; - } - polishstack.push(atof(def_val_ch)); - delete def_val_ch; + polishstack.push(atof(ch2var[ polishform[i] ].c_str())); } operation=false; break;