diff options
author | George Hazan <ghazan@miranda.im> | 2023-02-21 20:26:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-02-21 20:26:50 +0300 |
commit | 1af62415a03e312a813a4f56ba9606d3ed9ab1ee (patch) | |
tree | 9745ef13d6034351896186626fd528a69ddd288a /src/mir_core | |
parent | 06e4b579a26dc7bac30aa33edf55c986e03b1525 (diff) |
these iterator variables became useless
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/Windows/threads.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mir_core/src/Windows/threads.cpp b/src/mir_core/src/Windows/threads.cpp index c33a80faed..b48a9c7b79 100644 --- a/src/mir_core/src/Windows/threads.cpp +++ b/src/mir_core/src/Windows/threads.cpp @@ -230,8 +230,7 @@ static void __cdecl KillObjectThreadsWorker(void* owner) // forcibly kill all remaining threads after 5 secs
mir_cslock lck(csThreads);
- auto T = threads.rev_iter();
- for (auto &it : T) {
+ for (auto &it : threads.rev_iter()) {
if (it->pObject == owner) {
char szModuleName[MAX_PATH];
GetModuleFileNameA(it->hOwner, szModuleName, sizeof(szModuleName));
|