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-16 03:08:09 -07:00
committed by teejusb
parent cff063cd21
commit abf89ec2b1
62 changed files with 193 additions and 178 deletions
+3 -3
View File
@@ -104,16 +104,16 @@ ScreenDebugOverlay::~ScreenDebugOverlay()
for (BitmapText *p : m_vptextPages)
{
SAFE_DELETE(p);
RageUtil::SafeDelete(p);
}
for (BitmapText *p : m_vptextButton)
{
SAFE_DELETE(p);
RageUtil::SafeDelete(p);
}
m_vptextButton.clear();
for (BitmapText *p : m_vptextFunction)
{
SAFE_DELETE(p);
RageUtil::SafeDelete(p);
}
m_vptextFunction.clear();
}