deletion of a const char * is not allowed with MSVC 6. I had to cast to char
*
to avoid compile errors.
if (_tied) {
return _value.string_val->setValue(val);
} else {
- delete _local_val.string_val;
+ delete (char *)_local_val.string_val;
_local_val.string_val = copy_string(val);
return true;
}
case UNSPECIFIED:
delete _value.string_val;
_value.string_val = 0;
- delete _local_val.string_val;
+ delete (char *)_local_val.string_val;
_local_val.string_val = 0;
break;
}
*/
SGPropertyNode::~SGPropertyNode ()
{
- delete _name;
+ delete (char *)_name;
for (int i = 0; i < (int)_children.size(); i++) {
delete _children[i];
}