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:
@ -301,7 +301,7 @@ public:
|
||||
\param type The "verb" for the command - next stage, previous stage, goto stage
|
||||
\param stage The stage we're going to, if this is a goto command
|
||||
\param setTime Do we want to manually set the time on the target stage?
|
||||
\param newTime If setTime is true, this is the TRACKED_NEW (local) time used in the target stage
|
||||
\param newTime If setTime is true, this is the new (local) time used in the target stage
|
||||
\param setDirection Do we want to set the overall brain direction?
|
||||
\param isForward If setDirection is true, then true = forward, false = backward
|
||||
\param transitionTime Time in seconds to transition between stages.
|
||||
|
@ -123,7 +123,7 @@ void plDynamicTextMsg::DrawString( int16_t x, int16_t y, const wchar_t *text
|
||||
fCmd &= ~( kStringCmds | kPosCmds );
|
||||
fCmd |= kDrawString;
|
||||
|
||||
fString = TRACKED_NEW wchar_t[wcslen(text)+1];
|
||||
fString = new wchar_t[wcslen(text)+1];
|
||||
wcscpy( fString, text );
|
||||
fString[wcslen(text)] = L'\0';
|
||||
fX = x;
|
||||
@ -143,7 +143,7 @@ void plDynamicTextMsg::DrawClippedString( int16_t x, int16_t y, uint16_t clip
|
||||
fCmd &= ~( kStringCmds | kPosCmds | kRectCmds );
|
||||
fCmd |= kDrawClippedString;
|
||||
|
||||
fString = TRACKED_NEW wchar_t[wcslen(text)+1];
|
||||
fString = new wchar_t[wcslen(text)+1];
|
||||
wcscpy( fString, text );
|
||||
fString[wcslen(text)] = L'\0';
|
||||
fX = x;
|
||||
@ -168,7 +168,7 @@ void plDynamicTextMsg::DrawWrappedString( int16_t x, int16_t y, uint16_t wrap
|
||||
fCmd &= ~( kStringCmds | kPosCmds | kRectCmds );
|
||||
fCmd |= kDrawWrappedString;
|
||||
|
||||
fString = TRACKED_NEW wchar_t[wcslen(text)+1];
|
||||
fString = new wchar_t[wcslen(text)+1];
|
||||
wcscpy( fString, text );
|
||||
fString[wcslen(text)] = L'\0';
|
||||
fX = x;
|
||||
|
@ -56,7 +56,7 @@ void plLoadAgeMsg::Read(hsStream* stream, hsResMgr* mgr)
|
||||
stream->ReadLE(&len);
|
||||
if (len)
|
||||
{
|
||||
fAgeFilename=TRACKED_NEW char[len+1];
|
||||
fAgeFilename=new char[len+1];
|
||||
stream->Read(len, fAgeFilename);
|
||||
fAgeFilename[len]=0;
|
||||
}
|
||||
|
@ -226,7 +226,7 @@ void plLoadAvatarMsg::SetUserStr(const char *userStr)
|
||||
return;
|
||||
}
|
||||
|
||||
fUserStr = TRACKED_NEW char[strlen(userStr) + 1];
|
||||
fUserStr = new char[strlen(userStr) + 1];
|
||||
strcpy(fUserStr, userStr);
|
||||
fUserStr[strlen(userStr)] = '\0';
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
plOneShotMsg::plOneShotMsg()
|
||||
{
|
||||
fCallbacks = TRACKED_NEW plOneShotCallbacks;
|
||||
fCallbacks = new plOneShotCallbacks;
|
||||
}
|
||||
|
||||
plOneShotMsg::~plOneShotMsg()
|
||||
|
Reference in New Issue
Block a user