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:
+4
-4
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user