@@ -60,8 +60,8 @@ SaveMenu::SaveMenu() : UI::SaveMenu() {
6060 // Quick Save Pages initialization
6161
6262 for (int i = 0 ; i < Pages; i++) {
63- MainItems = new Widgets::Group (this );
64- MainItems ->WrapFocus = false ;
63+ Widgets::Group* mainItems = new Widgets::Group (this );
64+ mainItems ->WrapFocus = false ;
6565
6666 for (int j = 0 ; j < EntriesPerPage; j++) {
6767 SaveEntryButton* saveEntryButton =
@@ -70,7 +70,7 @@ SaveMenu::SaveMenu() : UI::SaveMenu() {
7070 EntryPositions[j], i, false , LockedSymbolSprite);
7171 saveEntryButton->OnClickHandler = onClick;
7272 saveEntryButton->AddThumbnail (EmptyThumbnailSprite, ThumbnailRelativePos);
73- MainItems ->Add (saveEntryButton);
73+ mainItems ->Add (saveEntryButton);
7474 EntryGrid[j] = saveEntryButton;
7575 }
7676
@@ -89,7 +89,7 @@ SaveMenu::SaveMenu() : UI::SaveMenu() {
8989 EntryGrid[5 ]->SetFocus (EntryGrid[4 ], FDIR_UP);
9090 EntryGrid[5 ]->SetFocus (EntryGrid[4 ], FDIR_DOWN);
9191
92- QuickSavePages.push_back (MainItems );
92+ QuickSavePages.push_back (mainItems );
9393 }
9494 // Maintaining focus across pages
9595 for (auto pageItr = QuickSavePages.begin (); pageItr != QuickSavePages.end ();
@@ -120,15 +120,15 @@ SaveMenu::SaveMenu() : UI::SaveMenu() {
120120 // Full Save Pages initialization
121121
122122 for (int i = 0 ; i < Pages; i++) {
123- MainItems = new Widgets::Group (this );
124- MainItems ->WrapFocus = false ;
123+ Widgets::Group* mainItems = new Widgets::Group (this );
124+ mainItems ->WrapFocus = false ;
125125
126126 for (int j = 0 ; j < EntriesPerPage; j++) {
127127 SaveEntryButton* saveEntryButton = new SaveEntryButton (
128128 i * EntriesPerPage + j, SaveEntrySprite, EntryHighlightedSprite,
129129 SaveEntrySprite, EntryPositions[j], i, true , LockedSymbolSprite);
130130 saveEntryButton->OnClickHandler = onClick;
131- MainItems ->Add (saveEntryButton);
131+ mainItems ->Add (saveEntryButton);
132132 EntryGrid[j] = saveEntryButton;
133133 }
134134
@@ -147,7 +147,7 @@ SaveMenu::SaveMenu() : UI::SaveMenu() {
147147 EntryGrid[5 ]->SetFocus (EntryGrid[4 ], FDIR_UP);
148148 EntryGrid[5 ]->SetFocus (EntryGrid[4 ], FDIR_DOWN);
149149
150- FullSavePages.push_back (MainItems );
150+ FullSavePages.push_back (mainItems );
151151 }
152152
153153 // Maintaining focus across pages
0 commit comments