delete cdfiles[i];
for ( i = 0; i < installfiles.size (); i++ )
delete installfiles[i];
- delete head;
+ if ( head )
+ delete head;
}
const Property*
void
Project::SetConfigurationOption ( char* s,
string name,
- string* alternativeName )
+ string alternativeName )
{
const Property* property = LookupProperty ( name );
if ( property != NULL && property->value.length () > 0 )
"#define %s\n",
property->name.c_str () );
}
- else if ( alternativeName != NULL )
+ else if ( !alternativeName.empty() )
{
s = s + sprintf ( s,
"#define %s\n",
- alternativeName->c_str () );
+ alternativeName.c_str () );
}
}
Project::SetConfigurationOption ( char* s,
string name )
{
- SetConfigurationOption ( s, name, NULL );
+ SetConfigurationOption ( s, name, "" );
}
void
SetConfigurationOption ( s, "ARCH" );
SetConfigurationOption ( s, "OPTIMIZED" );
- SetConfigurationOption ( s, "MP", new string ( "UP" ) );
+ SetConfigurationOption ( s, "MP", "UP");
SetConfigurationOption ( s, "ACPI" );
SetConfigurationOption ( s, "_3GB" );