Replace SAFE_DELETE / SAFE_DELETE_ARRAY macros

SAFE_DELETE -> RageUtil::SafeDelete
SAFE_DELETE_ARRAY -> RageUtil::SafeDeleteArray

Update JsonUtil.h to include RageUtil.h - MSVC doesn't need it included for some reason, but GCC and XCode does.
This commit is contained in:
sukibaby
2024-09-30 15:13:32 -07:00
committed by teejusb
parent cff063cd21
commit abf89ec2b1
62 changed files with 193 additions and 178 deletions
+4 -4
View File
@@ -99,12 +99,12 @@ Song::~Song()
{
for (Steps *s : m_vpSteps)
{
SAFE_DELETE( s );
RageUtil::SafeDelete( s );
}
m_vpSteps.clear();
for (Steps *s : m_UnknownStyleSteps)
{
SAFE_DELETE(s);
RageUtil::SafeDelete(s);
}
m_UnknownStyleSteps.clear();
@@ -170,14 +170,14 @@ void Song::Reset()
{
for (Steps *s : m_vpSteps)
{
SAFE_DELETE( s );
RageUtil::SafeDelete( s );
}
m_vpSteps.clear();
FOREACH_ENUM( StepsType, st )
m_vpStepsByType[st].clear();
for (Steps *s : m_UnknownStyleSteps)
{
SAFE_DELETE(s);
RageUtil::SafeDelete(s);
}
m_UnknownStyleSteps.clear();