aboutsummaryrefslogtreecommitdiffstats
path: root/win/vncviewer/vncviewer.cxx
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2010-02-10 12:47:43 +0000
committerPeter Åstrand <astrand@cendio.se>2010-02-10 12:47:43 +0000
commitc4d87f9950878b28fd8332199af72621a7adf385 (patch)
tree340fcfda656f8abef68bb89cb217727385c6cd64 /win/vncviewer/vncviewer.cxx
parentebf77754dd7c541b5e5305a5117e5618e43ca018 (diff)
downloadtigervnc-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/vncviewer/vncviewer.cxx')
-rw-r--r--win/vncviewer/vncviewer.cxx4
1 files changed, 2 insertions, 2 deletions
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();
}