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:
@@ -316,19 +316,19 @@ ScreenUnlockStatus::~ScreenUnlockStatus()
|
||||
while (Unlocks.size() > 0)
|
||||
{
|
||||
Sprite* entry = Unlocks[Unlocks.size()-1];
|
||||
SAFE_DELETE(entry);
|
||||
RageUtil::SafeDelete(entry);
|
||||
Unlocks.pop_back();
|
||||
}
|
||||
while (item.size() > 0)
|
||||
{
|
||||
BitmapText* entry = item[item.size()-1];
|
||||
SAFE_DELETE(entry);
|
||||
RageUtil::SafeDelete(entry);
|
||||
item.pop_back();
|
||||
}
|
||||
while (ItemIcons.size() > 0)
|
||||
{
|
||||
Sprite* entry = ItemIcons[ItemIcons.size()-1];
|
||||
SAFE_DELETE(entry);
|
||||
RageUtil::SafeDelete(entry);
|
||||
ItemIcons.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user