1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Get rid of NEW(), TRACKED_NEW, and ZERO().

This commit is contained in:
Darryl Pogue
2012-01-21 01:09:48 -08:00
committed by Adam Johnson
parent 30430d3024
commit 5013a978eb
423 changed files with 2500 additions and 2503 deletions

View File

@ -173,7 +173,7 @@ bool plCreatableListHelper::ItemExists( uint16_t id ) const
void plCreatableListHelper::AddString(uint16_t id, const char * value)
{
plCreatableGenericValue * V = TRACKED_NEW plCreatableGenericValue();
plCreatableGenericValue * V = new plCreatableGenericValue();
V->Value().SetString( (char*)value );
AddItem( id, V, true );
}
@ -185,14 +185,14 @@ void plCreatableListHelper::AddString( uint16_t id, std::string & value )
void plCreatableListHelper::AddInt( uint16_t id, int32_t value )
{
plCreatableGenericValue * V = TRACKED_NEW plCreatableGenericValue();
plCreatableGenericValue * V = new plCreatableGenericValue();
V->Value().SetInt(value);
AddItem( id, V, true );
}
void plCreatableListHelper::AddDouble( uint16_t id, double value )
{
plCreatableGenericValue * V = TRACKED_NEW plCreatableGenericValue();
plCreatableGenericValue * V = new plCreatableGenericValue();
V->Value().SetDouble(value);
AddItem( id, V, true );
}