diff options
author | Peter Åstrand <astrand@cendio.se> | 2010-02-10 12:47:43 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2010-02-10 12:47:43 +0000 |
commit | c4d87f9950878b28fd8332199af72621a7adf385 (patch) | |
tree | 340fcfda656f8abef68bb89cb217727385c6cd64 /win | |
parent | ebf77754dd7c541b5e5305a5117e5618e43ca018 (diff) | |
download | tigervnc-c4d87f9950878b28fd8332199af72621a7adf385.tar.gz tigervnc-c4d87f9950878b28fd8332199af72621a7adf385.zip |
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
Diffstat (limited to 'win')
-rw-r--r-- | win/vncviewer/ListenServer.h | 2 | ||||
-rw-r--r-- | win/vncviewer/ListenTrayIcon.h | 2 | ||||
-rw-r--r-- | win/vncviewer/vncviewer.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
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(); } |