diff options
author | rubidium <rubidium@openttd.org> | 2008-05-06 21:28:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-06 21:28:30 +0000 |
commit | e6c944a6c4507ec00948391d1b0bdf300bbd879e (patch) | |
tree | 248a2b8909d0045aad2724ae25b5f9064e597dd1 /src/network | |
parent | 46a0ebe1d931bb49dcc10e811f8f85ea91e1dcb5 (diff) | |
download | openttd-e6c944a6c4507ec00948391d1b0bdf300bbd879e.tar.xz |
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_gui.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index fdfe1f870..0629b5ede 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -869,7 +869,7 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e) ttd_strlcpy(_file_to_saveload.name, name, sizeof(_file_to_saveload.name)); ttd_strlcpy(_file_to_saveload.title, nd->map->title, sizeof(_file_to_saveload.title)); - DeleteWindow(w); + delete w; SwitchMode(SM_START_SCENARIO); } } @@ -879,7 +879,7 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e) _is_network_server = true; /* XXX - WC_NETWORK_WINDOW (this window) should stay, but if it stays, it gets * copied all the elements of 'load game' and upon closing that, it segfaults */ - DeleteWindow(w); + delete w; ShowSaveLoadDialog(SLD_LOAD_GAME); break; } @@ -1672,7 +1672,7 @@ static void NetworkJoinStatusWindowWndProc(Window *w, WindowEvent *e) case WE_CLICK: if (e->we.click.widget == 2) { //Disconnect button NetworkDisconnect(); - DeleteWindow(w); + delete w; SwitchMode(SM_MENU); ShowNetworkGameWindow(); } @@ -1891,7 +1891,7 @@ static void ChatWindowWndProc(Window *w, WindowEvent *e) case 3: /* Send */ SendChat(WP(w, chatquerystr_d).text.buf, WP(w, chatquerystr_d).dtype, WP(w, chatquerystr_d).dest); /* FALLTHROUGH */ - case 0: /* Cancel */ DeleteWindow(w); break; + case 0: /* Cancel */ delete w; break; } break; @@ -1908,7 +1908,7 @@ static void ChatWindowWndProc(Window *w, WindowEvent *e) case 1: /* Return */ SendChat(WP(w, chatquerystr_d).text.buf, WP(w, chatquerystr_d).dtype, WP(w, chatquerystr_d).dest); /* FALLTHROUGH */ - case 2: /* Escape */ DeleteWindow(w); break; + case 2: /* Escape */ delete w; break; } } break; @@ -1987,7 +1987,7 @@ static void NetworkCompanyPasswordWindowWndProc(Window *w, WindowEvent *e) /* FALL THROUGH */ case NCPWW_CANCEL: - DeleteWindow(w); + delete w; break; case NCPWW_SAVE_AS_DEFAULT_PASSWORD: @@ -2013,7 +2013,7 @@ static void NetworkCompanyPasswordWindowWndProc(Window *w, WindowEvent *e) break; case 2: // Escape - DeleteWindow(w); + delete w; break; } break; |