1
0
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:
Gymnasiast
2018-02-05 22:59:44 +01:00
committed by Michael Steenbeek
parent e3c0f6606d
commit cc4f7e144a
9 changed files with 68 additions and 91 deletions

View File

@@ -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);
}
}