mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 09:44:52 +01:00
Remove most usages of 'new Intent'
This commit is contained in:
committed by
Michael Steenbeek
parent
e3c0f6606d
commit
cc4f7e144a
@@ -592,11 +592,10 @@ static void shortcut_quick_save_game()
|
||||
}
|
||||
else if (gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR)
|
||||
{
|
||||
Intent * intent = new Intent(WC_LOADSAVE);
|
||||
intent->putExtra(INTENT_EXTRA_LOADSAVE_TYPE, LOADSAVETYPE_SAVE | LOADSAVETYPE_LANDSCAPE);
|
||||
intent->putExtra(INTENT_EXTRA_PATH, gS6Info.name);
|
||||
context_open_intent(intent);
|
||||
delete intent;
|
||||
auto intent = Intent(WC_LOADSAVE);
|
||||
intent.putExtra(INTENT_EXTRA_LOADSAVE_TYPE, LOADSAVETYPE_SAVE | LOADSAVETYPE_LANDSCAPE);
|
||||
intent.putExtra(INTENT_EXTRA_PATH, gS6Info.name);
|
||||
context_open_intent(&intent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user