From c4d87f9950878b28fd8332199af72621a7adf385 Mon Sep 17 00:00:00 2001 From: Peter Åstrand Date: Wed, 10 Feb 2010 12:47:43 +0000 Subject: Don't assign new threads to unused thread variables. No point, plus causes GCC warnings. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3980 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/vncviewer/ListenServer.h | 2 +- win/vncviewer/ListenTrayIcon.h | 2 +- win/vncviewer/vncviewer.cxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'win') diff --git a/win/vncviewer/ListenServer.h b/win/vncviewer/ListenServer.h index 8386d298..a7676a21 100644 --- a/win/vncviewer/ListenServer.h +++ b/win/vncviewer/ListenServer.h @@ -41,7 +41,7 @@ namespace rfb { LRESULT processMessage(UINT msg, WPARAM wParam, LPARAM lParam) { if (msg == WM_USER) { network::Socket* newConn = sock->accept(); - Thread* newThread = new CConnThread(newConn, true); + new CConnThread(newConn, true); return 0; } return MsgWindow::processMessage(msg, wParam, lParam); diff --git a/win/vncviewer/ListenTrayIcon.h b/win/vncviewer/ListenTrayIcon.h index b082368e..047a1049 100644 --- a/win/vncviewer/ListenTrayIcon.h +++ b/win/vncviewer/ListenTrayIcon.h @@ -65,7 +65,7 @@ namespace rfb { switch (LOWORD(wParam)) { case ID_NEW_CONNECTION: { - Thread* connThread = new CConnThread(); + new CConnThread(); break; } case ID_OPTIONS: diff --git a/win/vncviewer/vncviewer.cxx b/win/vncviewer/vncviewer.cxx index f82dd259..0e0c92d6 100644 --- a/win/vncviewer/vncviewer.cxx +++ b/win/vncviewer/vncviewer.cxx @@ -253,7 +253,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prevInst, char* cmdLine, int cmdSho // Read each config file in turn while (!configFiles.empty()) { char* filename = configFiles.front(); - Thread* connThread = new CConnThread(filename, true); + new CConnThread(filename, true); strFree(filename); configFiles.pop_front(); } @@ -261,7 +261,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prevInst, char* cmdLine, int cmdSho // Connect to each client in turn while (!hosts.empty()) { char* hostinfo = hosts.front(); - Thread* connThread = new CConnThread(hostinfo); + new CConnThread(hostinfo); strFree(hostinfo); hosts.pop_front(); } -- cgit v1.2.3