From e6c944a6c4507ec00948391d1b0bdf300bbd879e Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 6 May 2008 21:28:30 +0000 Subject: (svn r12975) -Codechange: replace DeleteWindow(w) with delete w. --- src/settings_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/settings_gui.cpp') diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index fa829ce67..c20caa85f 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -642,7 +642,7 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e) DoCommandP(0, btn, val, NULL, CMD_CHANGE_DIFFICULTY_LEVEL); } DoCommandP(0, UINT_MAX, _opt_mod_temp.diff_level, NULL, CMD_CHANGE_DIFFICULTY_LEVEL); - DeleteWindow(w); + delete w; /* If we are in the editor, we should reload the economy. * This way when you load a game, the max loan and interest rate * are loaded correctly. */ @@ -651,7 +651,7 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e) } case GDW_CANCEL: // Cancel button - close window, abandon changes - DeleteWindow(w); + delete w; break; } break; -- cgit v1.2.3-70-g09d2