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/vncviewer/vncviewer.cxx | |
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/vncviewer/vncviewer.cxx')
-rw-r--r-- | win/vncviewer/vncviewer.cxx | 4 |
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(); } |